diff options
Diffstat (limited to 'target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts')
-rw-r--r-- | target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts index 1976b4af96..e165e0b81f 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts @@ -9,6 +9,9 @@ * option) any later version. */ +#include <dt-bindings/input/input.h> +#include <dt-bindings/gpio/gpio.h> + /include/ "fsl/p1010si-pre.dtsi" / { @@ -53,6 +56,14 @@ reg = <0x0 0x0050000>; label = "u-boot"; read-only; + + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_uboot_4fc00: macaddr@4fc00 { + reg = <0x4fc00 0x6>; + }; }; partition@50000 { @@ -199,22 +210,22 @@ compatible = "gpio-leds"; system_green: system { - gpios = <&gpio0 2 1>; /* active low */ + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; label = "tp-link:blue:system"; }; usb1 { - gpios = <&gpio0 3 1>; /* active low */ + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; label = "tp-link:green:usb1"; }; usb2 { - gpios = <&gpio0 4 1>; /* active low */ + gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; label = "tp-link:green:usb2"; }; usbpower { - gpios = <&gpio0 10 1>; /* active low */ + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; label = "tp-link:usb:power"; }; }; @@ -224,14 +235,14 @@ reset { label = "Reset button"; - gpios = <&gpio0 5 1>; /* active low */ - linux,code = <0x198>; /* KEY_RESTART */ + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + linux,code = <KEY_RESTART>; }; rfkill { label = "RFKILL switch"; - gpios = <&gpio0 11 1>; /* active low */ - linux,code = <0xf7>; /* RFKill */ + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + linux,code = <KEY_RFKill>; }; }; }; @@ -291,13 +302,3 @@ /delete-node/ crypto@30000; /* Pulled in by p1010si-post */ }; }; - -&uboot { - compatible = "nvmem-cells"; - #address-cells = <1>; - #size-cells = <1>; - - macaddr_uboot_4fc00: macaddr@4fc00 { - reg = <0x4fc00 0x6>; - }; -}; |