This fixes gpio to the state when gpio leds and buttons start to work but something still broken for ethernet part (mdio?). Externet switch is detectable and configurable, packet counters change but looks like there is no connection between rt2880 and external switch. Wireless appears to be broken also (at least for Asus rt-n15).
Signed-off-by: Roman Yeryomin <ro...@advem.lv> --- target/linux/ramips/dts/RT-N15.dts | 18 ++++++++++-------- target/linux/ramips/dts/rt2880.dtsi | 28 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 8 deletions(-) diff --git a/target/linux/ramips/dts/RT-N15.dts b/target/linux/ramips/dts/RT-N15.dts index 77e640f..b1a2545 100644 --- a/target/linux/ramips/dts/RT-N15.dts +++ b/target/linux/ramips/dts/RT-N15.dts @@ -9,18 +9,20 @@ model = "Asus RT-N15"; palmbus@300000 { - sysc@0 { - ralink,pinmux = "uartlite"; - ralink,gpiomux = "i2c"; - ralink,uartmux = "gpio"; - ralink,wdtmux = <1>; - }; - gpio0: gpio@600 { status = "okay"; }; }; + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "uartlite", "mdio"; + ralink,function = "gpio"; + }; + }; + }; + cfi@1f000000 { compatible = "cfi-flash"; reg = <0x1f000000 0x800000>; @@ -46,7 +48,7 @@ read-only; }; partition@50000 { - label = "linux"; + label = "firmware"; reg = <0x50000 0x3b0000>; }; }; diff --git a/target/linux/ramips/dts/rt2880.dtsi b/target/linux/ramips/dts/rt2880.dtsi index b513148..287d35a 100644 --- a/target/linux/ramips/dts/rt2880.dtsi +++ b/target/linux/ramips/dts/rt2880.dtsi @@ -121,6 +121,34 @@ }; }; + pinctrl { + compatible = "ralink,rt2880-pinmux"; + + pinctrl-names = "default"; + pinctrl-0 = <&state_default>; + + state_default: pinctrl0 { + sdram { + ralink,group = "sdram"; + ralink,function = "sdram"; + }; + }; + + spi_pins: spi { + spi { + ralink,group = "spi"; + ralink,function = "spi"; + }; + }; + + uartlite_pins: uartlite { + uart { + ralink,group = "uartlite"; + ralink,function = "uartlite"; + }; + }; + }; + ethernet@400000 { compatible = "ralink,rt2880-eth"; reg = <0x00400000 10000>; -- 1.8.3.2 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel