]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: at91: sam9x60-curiosity: Sync LED nodes from Linux
authorAlexander Dahl <ada@thorsis.com>
Wed, 23 Aug 2023 13:58:54 +0000 (15:58 +0200)
committerEugen Hristev <eugen.hristev@collabora.com>
Tue, 29 Aug 2023 14:39:01 +0000 (17:39 +0300)
Copied as is from Linux Kernel release v6.4.

(dts file is still the same in Linux v6.5-rc7 but was moved to vendor
sub-directories with v6.5-rc1.)

Signed-off-by: Alexander Dahl <ada@thorsis.com>
arch/arm/dts/at91-sam9x60_curiosity.dts

index 2547b4527ce5af0a523fc24ce99565ac598f0ee8..244cacfe1b33fcd688366da538747a36f850cea5 100644 (file)
                };
        };
 
+       leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_gpio_leds>;
+
+               led-red {
+                       label = "red";
+                       gpios = <&pioD 17 GPIO_ACTIVE_HIGH>;
+               };
+
+               led-green {
+                       label = "green";
+                       gpios = <&pioD 19 GPIO_ACTIVE_HIGH>;
+               };
+
+               led-blue {
+                       label = "blue";
+                       gpios = <&pioD 21 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "heartbeat";
+               };
+       };
+
        onewire_tm: onewire {
                gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
                pinctrl-names = "default";
                };
        };
 
+       leds {
+               pinctrl_gpio_leds: gpio-leds {
+                       atmel,pins = <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
+                                     AT91_PIOD 19 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
+                                     AT91_PIOD 21 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
+               };
+       };
+
        nand {
                pinctrl_nand_oe_we: nand-oe-we-0 {
                        atmel,pins =