ramips: use pinmux nodes from dtsi
authorMathias Kresin <dev@kresin.me>
Sat, 18 Nov 2017 21:05:16 +0000 (22:05 +0100)
committerMathias Kresin <dev@kresin.me>
Wed, 22 Nov 2017 07:21:53 +0000 (08:21 +0100)
Use the pinmux nodes from the included dtsi file instead of adding
duplicate nodes.

Signed-off-by: Mathias Kresin <dev@kresin.me>
15 files changed:
target/linux/ramips/dts/ArcherC20.dts
target/linux/ramips/dts/ArcherC50.dts
target/linux/ramips/dts/DCH-M225.dts
target/linux/ramips/dts/DIR-615-H1.dts
target/linux/ramips/dts/DIR-620-D1.dts
target/linux/ramips/dts/DUZUN-DM06.dts
target/linux/ramips/dts/HC5X61.dtsi
target/linux/ramips/dts/MIWIFI-MINI.dts
target/linux/ramips/dts/PSG1218A.dts
target/linux/ramips/dts/WHR-300HP2.dts
target/linux/ramips/dts/WIZFI630A.dts
target/linux/ramips/dts/WL-351.dts
target/linux/ramips/dts/Y1.dtsi
target/linux/ramips/dts/ZBT-APE522II.dts
target/linux/ramips/dts/ZBT-WR8305RT.dts

index ba842d9ba764d6ab7318d64f3c48bfa990b76fe1..f0281c37c37ce813f3a754b9a03acb881b86b814 100644 (file)
                        ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk", "wdt";
                        ralink,function = "gpio";
                };
-
-               pa {
-                       ralink,group = "pa";
-                       ralink,function = "pa";
-               };
        };
 };
 
        ralink,mtd-eeprom = <&radio 0>;
        mtd-mac-address = <&rom 0xf100>;
        mtd-mac-address-increment = <(-2)>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pa_pins>;
 };
 
 &pcie {
index e8729232b043c82f4381340d31df653b873c70b1..88bd3272d7a0e44883ea1ae93e012556487fd983 100644 (file)
                        ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd";
                        ralink,function = "gpio";
                };
-
-               pa {
-                       ralink,group = "pa";
-                       ralink,function = "pa";
-               };
        };
 };
 
        ralink,mtd-eeprom = <&radio 0>;
        mtd-mac-address = <&rom 0xf100>;
        mtd-mac-address-increment = <(-2)>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pa_pins>;
 };
 
 &pcie {
index 5856036c954b634c36aa0a232131b82ca7f9ea68..1aea90805ca9a3b6f25a9258a5f3de41626488d6 100644 (file)
@@ -90,7 +90,7 @@
        #sound-dai-cells = <0>;
        status = "okay";
        pinctrl-names = "default";
-       pinctrl-0 = <&wm8960_mclk_pins>;
+       pinctrl-0 = <&mdio_refclk_pins>;
 };
 
 &spi0 {
                        ralink,group = "uartf";
                        ralink,function = "gpio i2s";
                };
-
-               pa {
-                       ralink,group = "pa";
-                       ralink,function = "pa";
-               };
-
-               wm8960_mclk_pins: wm8960_mclk {
-                       wm8960_mclk {
-                               ralink,group = "mdio";
-                               ralink,function = "refclk";
-                       };
-               };
        };
 };
 
 
 &wmac {
        ralink,mtd-eeprom = <&factory 0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pa_pins>;
 };
-
index 9e8b86ed7cc1518318d5bde03e937c38c21f9302..7d410f1ddc6738f35d22a33517b08d0ea2d79447 100644 (file)
                        ralink,group = "i2c", "jtag", "uartf";
                        ralink,function = "gpio";
                };
-
-               rgmii {
-                       ralink,group = "rgmii";
-                       ralink,function = "rgmii";
-               };
-
-               mdio {
-                       ralink,group = "mdio";
-                       ralink,function = "mdio";
-               };
        };
 };
 
 &ethernet {
        mtd-mac-address = <&factory 0x28>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&rgmii_pins &mdio_pins>;
 };
 
 &esw {
index baf17e733113000c5a417acc65ea56ef41c50a8f..2def8aae4a6f4f0e6c435469d786f7a9e844563b 100644 (file)
                        ralink,group = "i2c", "jtag", "uartf";
                        ralink,function = "gpio";
                };
-
-               rgmii {
-                       ralink,group = "rgmii";
-                       ralink,function = "rgmii";
-               };
-
-               mdio {
-                       ralink,group = "mdio";
-                       ralink,function = "mdio";
-               };
        };
 };
 
 &ethernet {
        mtd-mac-address = <&factory 0x4>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&rgmii_pins &mdio_pins>;
 };
 
 &esw {
index c529b34a7ac364ea062c2cd067e901ddbe19698d..b8261a591e2e3b91e6277f5f8197f649203bdd19 100644 (file)
                        ralink,function = "gpio";
                };
        };
-
-       i2s_pins: i2s {
-               i2s {
-                       ralink,group = "i2s";
-                       ralink,function = "i2s";
-               };
-       };
-
-       wm8960_mclk_pins: wm8960_mclk {
-               wm8960_mclk {
-                       ralink,group = "refclk";
-                       ralink,function = "refclk";
-               };
-       };
 };
 
 &gpio1 {
        #sound-dai-cells = <0>;
        status = "okay";
        pinctrl-names = "default";
-       pinctrl-0 = <&i2s_pins>, <&wm8960_mclk_pins>;
+       pinctrl-0 = <&i2s_pins>, <&refclk_pins>;
 };
 
 &sdhci {
index 1a5927dfd4b85b6e2c762ff79f50c5b4b59a230f..f0b59ecf1141645e281f59765cada88114d3ce5a 100644 (file)
 
 &wmac {
        ralink,mtd-eeprom = <&factory 0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pa_pins>;
 };
 
 &pcie {
                        ralink,group = "uartf", "wled", "nd_sd";
                        ralink,function = "gpio";
                };
-
-               pa {
-                       ralink,group = "pa";
-                       ralink,function = "pa";
-               };
        };
 };
index 9da5673d4af405eba95b91b38622634cb4a06e2c..3da39c529e39c8d62d02f37f3753677641ea2933 100644 (file)
 
 &wmac {
        ralink,mtd-eeprom = <&factory 0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pa_pins>;
 };
 
 &pcie {
                        ralink,group = "i2c", "rgmii1";
                        ralink,function = "gpio";
                };
-
-               pa {
-                       ralink,group = "pa";
-                       ralink,function = "pa";
-               };
        };
 };
index c63af5803489c49dff59ff5bd01bf6d611d39611..d76abc39fcda1b6d19ed91361cb201e405922936 100644 (file)
                        ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
                        ralink,function = "gpio";
                };
-
-               pa {
-                       ralink,group = "pa";
-                       ralink,function = "pa";
-               };
        };
 };
 
@@ -45,3 +40,8 @@
        mtd-mac-address = <&factory 0x28>;
        mediatek,portmap = "llllw";
 };
+
+&wmac {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pa_pins>;
+};
index f74a0b84b83d2b4425699229177d6644f6c7f926..d405686d7a290b40aa028af3d46cb7c1c576e8aa 100644 (file)
                        ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
                        ralink,function = "gpio";
                };
-
-               pa {
-                       ralink,group = "pa";
-                       ralink,function = "pa";
-               };
        };
 };
 
 
 &wmac {
        ralink,mtd-eeprom = <&factory 0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pa_pins>;
 };
index 882086bcc046797fbf054229095f20aa6a425321..86ed197300f953212249c498c043a156d6492534 100644 (file)
 };
 
 &uart {
-       compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
-       reg = <0x500 0x100>;
-       resets = <&rstctrl 12>;
-       reset-names = "uart";
-       interrupt-parent = <&intc>;
-       interrupts = <5>;
-       reg-shift = <2>;
-       pinctrl-names = "default";
-       pinctrl-0 = <&uartf_pins>;
        status = "okay";
-};
-
-&uartlite {
-       compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
-       reg = <0xc00 0x100>;
-       resets = <&rstctrl 19>;
-       reset-names = "uartl";
-       interrupt-parent = <&intc>;
-       interrupts = <12>;
-       reg-shift = <2>;
        pinctrl-names = "default";
-       pinctrl-0 = <&uartlite_pins>;
+       pinctrl-0 = <&uartf_pins>;
 };
 
 &pinctrl {
                        ralink,function = "gpio";
                };
        };
-
-       uartf_gpio_pins: uartf_gpio {
-               uartf_gpio {
-                       ralink,group = "uartf";
-                       ralink,function = "uartf";
-               };
-       };
-
-       uartlite_pins: uartlite {
-               uart {
-                       ralink,group = "uartlite";
-                       ralink,function = "uartlite";
-               };
-       };
 };
 
 &ethernet {
index e620f10d84c1caeb480ff2bcad9bb57c54abd38e..0dd596cfe6de168eeb3fc143240122aef9ee398f 100644 (file)
                        ralink,group = "spi", "i2c", "jtag", "mdio", "uartf";
                        ralink,function = "gpio";
                };
-               rgmii {
-                       ralink,group = "rgmii";
-                       ralink,function = "rgmii";
-               };
        };
 };
 
 &ethernet {
        mtd-mac-address = <&factory 0x4>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&rgmii_pins>;
 };
 
 &esw {
index 022b67949dd1c6c74b0a93f89f07ade85424a5ba..cc126f04abf2cc072d2cdf1fe06b6800ed2389ff 100644 (file)
@@ -94,6 +94,8 @@
        
 &wmac {
        ralink,mtd-eeprom = <&factory 0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pa_pins>;
 };
 
 &pinctrl {
                        ralink,group = "uartf", "wled", "nd_sd";
                        ralink,function = "gpio";
                };
-
-               pa {
-                       ralink,group = "pa";
-                       ralink,function = "pa";
-               };
        };
 };
index 45fef667ca4a83eb0717297f3dc8126b0882ca86..05d053f22a2a50db65bbb821432289dfd073015f 100644 (file)
 
 &wmac {
        ralink,mtd-eeprom = <&factory 0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pa_pins>;
 };
 
 &pcie {
                        ralink,group = "wled", "i2c", "uartf", "wdt";
                        ralink,function = "gpio";
                };
-
-               pa {
-                       ralink,group = "pa";
-                       ralink,function = "pa";
-               };
        };
 };
index 11911b9f09fc45917ce8a720ba5795aedd2f9b20..52cac80a728f39bb4c0e6d550deff14482f3c369 100644 (file)
@@ -94,6 +94,8 @@
 };
 
 &ethernet {
+       pinctrl-names = "default";
+       pinctrl-0 = <&ephy_pins>;
        mtd-mac-address = <&factory 0x4>;
        mediatek,portmap = "llllw";
 };
 
 &pinctrl {
        state_default: pinctrl0 {
-               ephy {
-                       ralink,group = "ephy";
-                       ralink,function = "ephy";
-               };
-
                default {
                        ralink,group = "i2c", "uartf", "spi refclk", "wled";
                        ralink,function = "gpio";