* Copyright 2020 - 2021 Stijn Tintel <stijn@linux-ipv6.be>
*/
+#include <dt-bindings/gpio/gpio.h>
+
/include/ "t208xsi-pre.dtsi"
/include/ "t208xqds.dtsi"
ethernet2 = &enet1;
ethernet3 = &enet2;
ethernet4 = &enet3;
+
+ led-boot = &led_shield;
+ led-failsafe = &led_shield;
+ led-running = &led_shield;
+ led-upgrade = &led_shield;
};
};
status = "disabled";
};
};
+
+ leds {
+ compatible = "gpio-leds";
+
+ shield-red {
+ label = "red:shield";
+ gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
+ };
+
+ led_shield: shield-green {
+ label = "green:shield";
+ gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
+ };
+ };
};
DEVICE_COMPAT_VERSION := 1.1
DEVICE_DTS_DIR := $(DTS_DIR)/fsl
DEVICE_PACKAGES := \
- kmod-hwmon-w83793 kmod-ptp-qoriq kmod-rtc-rs5c372a kmod-tpm-i2c-atmel
+ kmod-hwmon-w83793 kmod-leds-gpio kmod-ptp-qoriq kmod-rtc-rs5c372a kmod-tpm-i2c-atmel
KERNEL := kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
KERNEL_SUFFIX := -fit-uImage.itb
IMAGES := sdcard.img.gz sysupgrade.img.gz