aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-14 16:14:35 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-14 16:14:35 +0200
commitdfbc93b69734af4ab3496bfae6ff6e62360a7522 (patch)
tree1b411f54c6872bdca44db0d88252074b23130857
parentdb8a968971df853c2f20b5ba0aa877cd89026ea5 (diff)
fix dts w/ led
-rw-r--r--dts/am335x-boneblack-uboot.dts10
-rw-r--r--dts/makefile7
2 files changed, 14 insertions, 3 deletions
diff --git a/dts/am335x-boneblack-uboot.dts b/dts/am335x-boneblack-uboot.dts
index f944011..8d140c0 100644
--- a/dts/am335x-boneblack-uboot.dts
+++ b/dts/am335x-boneblack-uboot.dts
@@ -1,3 +1,5 @@
+#include <dt-bindings/gpio/gpio.h>
+
/dts-v1/;
/ {
@@ -1998,7 +2000,7 @@
#size-cells = <0x01>;
ranges = <0x00 0x4c000 0x1000>;
- gpio@0 {
+ gpio1: gpio@0 {
compatible = "ti,omap4-gpio";
gpio-ranges = <0x23 0x00 0x00 0x08 0x23 0x08 0x5a 0x04 0x23 0x0c 0x0c 0x10 0x23 0x1c 0x1e 0x04>;
gpio-controller;
@@ -3890,4 +3892,10 @@
not_available = "/not_available";
vmmcsd_fixed = "/fixedregulator0";
};
+
+ led_extern {
+ compatible = "gpio-extern";
+ label = "lork-gpio";
+ gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
+ };
};
diff --git a/dts/makefile b/dts/makefile
index a556a5f..5f0fe9c 100644
--- a/dts/makefile
+++ b/dts/makefile
@@ -10,11 +10,14 @@ CPPFLAGS += -x assembler-with-cpp
all: am335x-boneblack-uboot.dtb
# all: am335x-boneblack-uboot-univ.dtb
+# odering is important:
+%.dts.pre: %.dts
+ $(CPP) $(CPPFLAGS) $< $@
%.dts.pre: src/%.dts
$(CPP) $(CPPFLAGS) $< $@
%.dtb: %.dts.pre
$(DTC) $(DTCFLAGS) -o $@ $<
-%.dtb: %.dts
- $(DTC) $(DTCFLAGS) -o $@ $<
+# %.dtb: %.dts
+# $(DTC) $(DTCFLAGS) -o $@ $<