X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fbrcm63xx%2Fdts%2Fa4001n1.dts;h=b5d510650a7e8295fa8ea484762cc8ce0539c776;hb=refs%2Fheads%2Fbrcm63xx-pinctrl-leds;hp=8b2b1f4b31a9307413b72ccfba9ccd6091008f83;hpb=292dcdb8ace8af88eeb3602949d87292921d6d99;p=openwrt%2Fstaging%2Fnoltari.git diff --git a/target/linux/brcm63xx/dts/a4001n1.dts b/target/linux/brcm63xx/dts/a4001n1.dts index 8b2b1f4b31..b5d510650a 100644 --- a/target/linux/brcm63xx/dts/a4001n1.dts +++ b/target/linux/brcm63xx/dts/a4001n1.dts @@ -34,54 +34,75 @@ gpio-leds { compatible = "gpio-leds"; - inet_red { - label = "A4001N1:red:inet"; - gpios = <&pinctrl 2 1>; - }; - ppp_green { - label = "A4001N1:green:ppp"; - gpios = <&pinctrl 3 1>; - }; - power_green { - label = "A4001N1:green:power"; - gpios = <&pinctrl 4 1>; - default-state = "on"; - }; - ppp_red { - label = "A4001N1:red:ppp"; - gpios = <&pinctrl 5 1>; - }; - usb_green { - label = "A4001N1:green:3g"; - gpios = <&pinctrl 6 1>; - }; - usb_red { - label = "A4001N1:red:3g"; - gpios = <&pinctrl 7 1>; - }; - power_red { - label = "A4001N1:red:power"; - gpios = <&pinctrl 8 1>; - }; - wlan_green { - label = "A4001N1:green:wlan"; - gpios = <&pinctrl 9 1>; - }; - wlan_red { - label = "A4001N1:red:wlan"; - gpios = <&pinctrl 10 1>; - }; - inet_green { - label = "A4001N1:green:inet"; - gpios = <&pinctrl 11 1>; - }; - eth_red { - label = "A4001N1:red:eth"; - gpios = <&pinctrl 20 1>; - }; eth_green { label = "A4001N1:green:eth"; gpios = <&pinctrl 31 1>; }; }; }; + +&leds0 { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_leds>; + + inet_red@2 { + reg = <2>; + active-low; + label = "A4001N1:red:inet"; + }; + ppp_green@3 { + reg = <3>; + active-low; + label = "A4001N1:green:ppp"; + }; + power_green@4 { + reg = <4>; + active-low; + label = "A4001N1:green:power"; + default-state = "on"; + }; + ppp_red@5 { + reg = <5>; + active-low; + label = "A4001N1:red:ppp"; + }; + usb_green@6 { + reg = <6>; + active-low; + label = "A4001N1:green:3g"; + }; + usb_red@7 { + reg = <7>; + active-low; + label = "A4001N1:red:3g"; + }; + wlan_green@8 { + reg = <8>; + active-low; + label = "A4001N1:green:wlan"; + }; + wlan_red@10 { + reg = <10>; + active-low; + label = "A4001N1:red:wlan"; + }; + inet_green@11 { + reg = <11>; + active-low; + label = "A4001N1:green:inet"; + }; + eth_red@20 { + reg = <20>; + active-low; + label = "A4001N1:red:eth"; + }; +}; + +&pinctrl { + pinctrl_leds: leds { + function = "led"; + pins = "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", "gpio8", "gpio10", "gpio11", "gpio20"; + }; +};