diff options
author | John Crispin <john@openwrt.org> | 2013-09-17 21:45:44 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-09-17 21:45:44 +0000 |
commit | 8cd1c997079246942680893adbd21d884e131b84 (patch) | |
tree | 2e67af73e7ceed76eba06c8cf1c771dbb9785cda /target/linux/ramips/dts/mt7620a.dtsi | |
parent | 66bed0b0194cfc29bfa477bb525e7618eb696263 (diff) | |
download | mtk-20170518-8cd1c997079246942680893adbd21d884e131b84.zip mtk-20170518-8cd1c997079246942680893adbd21d884e131b84.tar.gz mtk-20170518-8cd1c997079246942680893adbd21d884e131b84.tar.bz2 |
ralink: add pinctrl driver
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38026
Diffstat (limited to 'target/linux/ramips/dts/mt7620a.dtsi')
-rw-r--r-- | target/linux/ramips/dts/mt7620a.dtsi | 74 |
1 files changed, 68 insertions, 6 deletions
diff --git a/target/linux/ramips/dts/mt7620a.dtsi b/target/linux/ramips/dts/mt7620a.dtsi index 506155b..4182582 100644 --- a/target/linux/ramips/dts/mt7620a.dtsi +++ b/target/linux/ramips/dts/mt7620a.dtsi @@ -110,8 +110,6 @@ ralink,register-map = [ 00 04 08 0c 20 24 28 2c 30 34 ]; - - status = "disabled"; }; gpio1: gpio@638 { @@ -163,6 +161,9 @@ #size-cells = <0>; status = "disabled"; + + pinctrl-names = "default"; + pinctrl-0 = <&i2c_pins>; }; i2s@a00 { @@ -189,6 +190,9 @@ #size-cells = <1>; status = "disabled"; + + pinctrl-names = "default"; + pinctrl-0 = <&spi_pins>; }; uartlite@c00 { @@ -202,6 +206,9 @@ interrupts = <12>; reg-shift = <2>; + + pinctrl-names = "default"; + pinctrl-0 = <&uartlite_pins>; }; systick@d00 { @@ -242,6 +249,62 @@ }; }; + pinctrl { + compatible = "ralink,rt2880-pinmux"; + pinctrl-names = "default"; + pinctrl-0 = <&state_default>; + state_default: pinctrl0 { + }; + spi_pins: spi { + spi { + ralink,group = "spi"; + ralink,function = "spi"; + }; + }; + i2c_pins: i2c { + i2c { + lantiq,group = "i2c"; + lantiq,function = "i2c"; + }; + }; + uartlite_pins: uartlite { + uart { + ralink,group = "uartlite"; + ralink,function = "uartlite"; + }; + }; + mdio_pins: mdio { + mdio { + ralink,group = "mdio"; + ralink,function = "mdio"; + }; + }; + ephy_pins: ephy { + ephy { + ralink,group = "ephy"; + ralink,function = "ephy"; + }; + }; + wled_pins: wled { + wled { + ralink,group = "wled"; + ralink,function = "wled"; + }; + }; + rgmii1_pins: rgmii1 { + mdio { + ralink,group = "rgmii1"; + ralink,function = "rgmii1"; + }; + }; + rgmii2_pins: rgmii2 { + mdio { + ralink,group = "rgmii2"; + ralink,function = "rgmii2"; + }; + }; + }; + rstctrl: rstctrl { compatible = "ralink,mt7620a-reset", "ralink,rt2880-reset"; #reset-cells = <1>; @@ -264,13 +327,14 @@ interrupt-parent = <&cpuintc>; interrupts = <5>; - status = "disabled"; - mdio-bus { #address-cells = <1>; #size-cells = <0>; status = "disabled"; + + pinctrl-names = "default"; + pinctrl-0 = <&mdio_pins>; }; }; @@ -280,8 +344,6 @@ interrupt-parent = <&intc>; interrupts = <17>; - - status = "disabled"; }; sdhci@10130000 { |