diff options
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r-- | target/linux/ramips/dts/F5D8235_V1.dts | 85 |
1 files changed, 69 insertions, 16 deletions
diff --git a/target/linux/ramips/dts/F5D8235_V1.dts b/target/linux/ramips/dts/F5D8235_V1.dts index 74e423c265..4d95860aa2 100644 --- a/target/linux/ramips/dts/F5D8235_V1.dts +++ b/target/linux/ramips/dts/F5D8235_V1.dts @@ -2,6 +2,7 @@ #include "rt2880.dtsi" +#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> / { @@ -12,7 +13,7 @@ cfi@1f000000 { compatible = "cfi-flash"; - reg = <0x1f000000 0x800000>; + reg = <0xbc400000 0x800000>; bank-width = <2>; device-width = <2>; #address-cells = <1>; @@ -37,15 +38,15 @@ }; partition@50000 { - label = "linux"; - reg = <0x50000 0x3b0000>; + label = "firmware"; + reg = <0x50000 0x7b0000>; }; }; rtl8366s { compatible = "realtek,rtl8366s"; - gpio-sda = <&gpio0 1 0>; - gpio-sck = <&gpio0 2 0>; + gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; + gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; }; gpio-keys-polled { @@ -56,13 +57,13 @@ wps { label = "wps"; - gpios = <&gpio0 0 1>; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; linux,code = <KEY_WPS_BUTTON>; }; reset { label = "reset"; - gpios = <&gpio0 9 1>; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; linux,code = <KEY_RESTART>; }; }; @@ -70,14 +71,69 @@ gpio-leds { compatible = "gpio-leds"; + internet { + label = "f5d8235-v1:blue:internet"; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + }; + + internet2 { + label = "f5d8235-v1:amber:internet"; + gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; + }; + + modem { + label = "f5d8235-v1:blue:modem"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + + modem2 { + label = "f5d8235-v1:amber:modem"; + gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; + }; + + router { + label = "f5d8235-v1:blue:router"; + gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + }; + storage { label = "f5d8235-v1:blue:storage"; - gpios = <&gpio0 7 1>; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; storage2 { - label = "f5d8235-v1:orange:storage"; - gpios = <&gpio0 8 1>; + label = "f5d8235-v1:amber:storage"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + }; + + security { + label = "f5d8235-v1:blue:security"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + }; + + security2 { + label = "f5d8235-v1:amber:security"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + wired { + label = "f5d8235-v1:blue:wired"; + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + }; + + wired2 { + label = "f5d8235-v1:amber:wired"; + gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; + }; + + wireless { + label = "f5d8235-v1:blue:wireless"; + gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; + }; + + wireless2 { + label = "f5d8235-v1:amber:wireless"; + gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; }; }; @@ -89,7 +145,7 @@ &pinctrl { state_default: pinctrl0 { gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite"; ralink,function = "gpio"; }; }; @@ -104,10 +160,7 @@ }; }; -/* FIXME: no u-boot partition and 0x40000@uboot is out of boundaries */ -/*&wmac { +&wmac { status = "okay"; - ralink,mtd-eeprom = <&u-boot 0x40000>; + ralink,mtd-eeprom = <&factory 0x0>; }; -*/ - |