aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/dts/nb4-fxc-r1.dts
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2017-05-11 13:50:18 +0200
committerJonas Gorski <jonas.gorski@gmail.com>2017-06-10 12:40:38 +0200
commit9ceeaf4c6cac6e5ff5a5225a5c9d13ba63d9c478 (patch)
tree21133bbfd54fd38bb437b0824ec27ad14649ff38 /target/linux/brcm63xx/dts/nb4-fxc-r1.dts
parent0aa366c6e0f323b161cb61331fd456d3d775dba2 (diff)
downloadupstream-9ceeaf4c6cac6e5ff5a5225a5c9d13ba63d9c478.tar.gz
upstream-9ceeaf4c6cac6e5ff5a5225a5c9d13ba63d9c478.tar.bz2
upstream-9ceeaf4c6cac6e5ff5a5225a5c9d13ba63d9c478.zip
brcm63xx: switch to hardware led controllers
Instead of bit banging SPI to talk to the GPIO chip, use the hardware led controllers intended for controlling the LEDs. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'target/linux/brcm63xx/dts/nb4-fxc-r1.dts')
-rw-r--r--target/linux/brcm63xx/dts/nb4-fxc-r1.dts67
1 files changed, 31 insertions, 36 deletions
diff --git a/target/linux/brcm63xx/dts/nb4-fxc-r1.dts b/target/linux/brcm63xx/dts/nb4-fxc-r1.dts
index 4960afb49c..e11ec4678d 100644
--- a/target/linux/brcm63xx/dts/nb4-fxc-r1.dts
+++ b/target/linux/brcm63xx/dts/nb4-fxc-r1.dts
@@ -12,26 +12,6 @@
bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
};
- spi-gpio {
- #address-cells = <1>;
- #size-cells = <0>;
- compatible = "spi-gpio";
-
- gpio-mosi = <&pinctrl 7 0>;
- gpio-sck = <&pinctrl 6 0>;
- num-chipselects = <0>;
-
- hc595: gpio-spi-controller@0 {
- compatible = "fairchild,74hc595";
- reg = <0>;
- registers-number = <1>;
- spi-max-frequency = <100000>;
-
- gpio-controller;
- #gpio-cells = <2>;
- };
- };
-
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
@@ -84,22 +64,37 @@
label = "NB4-FXC-r1:green:service";
gpios = <&pinctrl 30 0>;
};
- alarm_white {
- label = "NB4-FXC-r1:white:alarm";
- gpios = <&hc595 0 1>;
- };
- tv_white {
- label = "NB4-FXC-r1:white:tv";
- gpios = <&hc595 2 1>;
- };
- tel_white {
- label = "NB4-FXC-r1:white:tel";
- gpios = <&hc595 3 1>;
- };
- adsl_white {
- label = "NB4-FXC-r0:white:adsl";
- gpios = <&hc595 4 1>;
- };
+ };
+};
+
+&leds {
+ status = "ok";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_serial_led>;
+
+ led@0 {
+ reg = <0>;
+ active-low;
+ label = "NB4-FXC-r1:white:alarm";
+ };
+
+ led@2 {
+ reg = <2>;
+ active-low;
+ label = "NB4-FXC-r1:white:tv";
+ };
+
+ led@3 {
+ reg = <3>;
+ active-low;
+ label = "NB4-FXC-r1:white:tel";
+ };
+
+ led@4 {
+ reg = <4>;
+ active-low;
+ label = "NB4-FXC-r1:white:adsl";
};
};