ARM: dts: sun8i: a23/a33: Change pinctrl nodes to avoid warning
authorMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 7 Nov 2018 09:58:01 +0000 (10:58 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 28 Nov 2018 14:14:20 +0000 (15:14 +0100)
All our pinctrl nodes were using a node name convention with a unit-address
to differentiate the different muxing options. However, since those nodes
didn't have a reg property, they were generating warnings in DTC.

In order to accomodate for this, convert the old nodes to the syntax we've
been using for the new SoCs, including removing the letter suffix of the
node labels to the bank of those pins to make things more readable.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
14 files changed:
arch/arm/boot/dts/sun8i-a23-a33.dtsi
arch/arm/boot/dts/sun8i-a23-evb.dts
arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts
arch/arm/boot/dts/sun8i-a23-polaroid-mid2809pxe04.dts
arch/arm/boot/dts/sun8i-a33-ga10h-v1.1.dts
arch/arm/boot/dts/sun8i-a33-inet-d978-rev2.dts
arch/arm/boot/dts/sun8i-a33-olinuxino.dts
arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts
arch/arm/boot/dts/sun8i-a33.dtsi
arch/arm/boot/dts/sun8i-q8-common.dtsi
arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts
arch/arm/boot/dts/sun8i-r16-nintendo-nes-classic.dts
arch/arm/boot/dts/sun8i-r16-parrot.dts
arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi

index 43978625df214a3bc0cba28d074fce915a49e891..bcb5b30a02f0727e4b81cb0e3d5a69e6c601c84b 100644 (file)
                        #interrupt-cells = <3>;
                        #gpio-cells = <3>;
 
-                       i2c0_pins_a: i2c0@0 {
+                       i2c0_pins: i2c0-pins {
                                pins = "PH2", "PH3";
                                function = "i2c0";
                        };
 
-                       i2c1_pins_a: i2c1@0 {
+                       i2c1_pins: i2c1-pins {
                                pins = "PH4", "PH5";
                                function = "i2c1";
                        };
 
-                       i2c2_pins_a: i2c2@0 {
+                       i2c2_pins: i2c2-pins {
                                pins = "PE12", "PE13";
                                function = "i2c2";
                        };
 
-                       lcd_rgb666_pins: lcd-rgb666@0 {
+                       lcd_rgb666_pins: lcd-rgb666-pins {
                                pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7",
                                       "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
                                       "PD18", "PD19", "PD20", "PD21", "PD22", "PD23",
                                function = "lcd0";
                        };
 
-                       mmc0_pins_a: mmc0@0 {
+                       mmc0_pins: mmc0-pins {
                                pins = "PF0", "PF1", "PF2",
                                       "PF3", "PF4", "PF5";
                                function = "mmc0";
                                bias-pull-up;
                        };
 
-                       mmc1_pins_a: mmc1@0 {
+                       mmc1_pg_pins: mmc1-pg-pins {
                                pins = "PG0", "PG1", "PG2",
                                       "PG3", "PG4", "PG5";
                                function = "mmc1";
                                bias-pull-up;
                        };
 
-                       mmc2_8bit_pins: mmc2_8bit {
+                       mmc2_8bit_pins: mmc2-8bit-pins {
                                pins = "PC5", "PC6", "PC8",
                                       "PC9", "PC10", "PC11",
                                       "PC12", "PC13", "PC14",
                                bias-pull-up;
                        };
 
-                       pwm0_pins: pwm0 {
+                       pwm0_pin: pwm0-pin {
                                pins = "PH0";
                                function = "pwm0";
                        };
 
-                       uart0_pins_a: uart0@0 {
+                       uart0_pf_pins: uart0-pf-pins {
                                pins = "PF2", "PF4";
                                function = "uart0";
                        };
 
-                       uart1_pins_a: uart1@0 {
+                       uart1_pg_pins: uart1-pg-pins {
                                pins = "PG6", "PG7";
                                function = "uart1";
                        };
 
-                       uart1_pins_cts_rts_a: uart1-cts-rts@0 {
+                       uart1_cts_rts_pg_pins: uart1-cts-rts-pg-pins {
                                pins = "PG8", "PG9";
                                function = "uart1";
                        };
                        #interrupt-cells = <3>;
                        #gpio-cells = <3>;
 
-                       r_rsb_pins: r_rsb {
+                       r_rsb_pins: r-rsb-pins {
                                pins = "PL0", "PL1";
                                function = "s_rsb";
                                drive-strength = <20>;
                                bias-pull-up;
                        };
 
-                       r_uart_pins_a: r_uart@0 {
+                       r_uart_pins_a: r-uart-pins {
                                pins = "PL2", "PL3";
                                function = "s_uart";
                        };
index 3c994df0ffdf31697ff723ec664d5fa3dfaaaa5b..36896155f2b950ea11c265e988831ec2cdc406ee 100644 (file)
 
 &i2c0 {
        pinctrl-names = "default";
-       pinctrl-0 = <&i2c0_pins_a>;
+       pinctrl-0 = <&i2c0_pins>;
        status = "okay";
 };
 
 &i2c1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&i2c1_pins_a>;
+       pinctrl-0 = <&i2c1_pins>;
        status = "okay";
 };
 
 
 &mmc0 {
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
+       pinctrl-0 = <&mmc0_pins>;
        vmmc-supply = <&reg_vcc3v0>;
        bus-width = <4>;
        cd-gpios = <&pio 1 4 GPIO_ACTIVE_LOW>; /* PB4 */
index 4a318faa462a8bddb18ae06805d3ee3ff588a189..d5f6aebd7216d2cc910d44919355bd622d98d480 100644 (file)
@@ -69,7 +69,7 @@
 
 &mmc1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc1_pins_a>;
+       pinctrl-0 = <&mmc1_pg_pins>;
        vmmc-supply = <&reg_dldo1>;
        mmc-pwrseq = <&wifi_pwrseq>;
        bus-width = <4>;
index 22e153d505236b949d4feffe5d00973247df4b3e..9f9232a2fefbbbe86225eea83aa5873c2f0bde58 100644 (file)
@@ -62,7 +62,7 @@
 
 &mmc1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc1_pins_a>;
+       pinctrl-0 = <&mmc1_pg_pins>;
        vmmc-supply = <&reg_dldo1>;
        mmc-pwrseq = <&wifi_pwrseq>;
        bus-width = <4>;
index 9ead5e1b7b65ec51faa17656d64f638e3e20fd07..2dfdd0a3151e84863a38937c9b33346df5f74bd0 100644 (file)
@@ -79,7 +79,7 @@
 
 &mmc1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc1_pins_a>;
+       pinctrl-0 = <&mmc1_pg_pins>;
        vmmc-supply = <&reg_dldo1>;
        bus-width = <4>;
        non-removable;
index f8a72d07467c265d8becbda57fb61d1eb1019fef..42726576a6a943cec5acd71441419c9c07a8b651 100644 (file)
@@ -72,7 +72,7 @@
 
 &mmc1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc1_pins_a>;
+       pinctrl-0 = <&mmc1_pg_pins>;
        vmmc-supply = <&reg_dldo1>;
        bus-width = <4>;
        non-removable;
@@ -97,7 +97,7 @@
 
 &uart1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&uart1_pins_a>,
-                   <&uart1_pins_cts_rts_a>;
+       pinctrl-0 = <&uart1_pg_pins>,
+                   <&uart1_cts_rts_pg_pins>;
        status = "okay";
 };
index a1a1eb64caeb9ecde85baa051782e7def4a819e7..9ad7eeba9df475c2f5de5df043690afc15f35912 100644 (file)
@@ -83,7 +83,7 @@
 
 &mmc0 {
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
+       pinctrl-0 = <&mmc0_pins>;
        vmmc-supply = <&reg_dcdc1>;
        bus-width = <4>;
        cd-gpios = <&pio 1 4 GPIO_ACTIVE_LOW>; /* PB4 */
 
 &uart0 {
        pinctrl-names = "default";
-       pinctrl-0 = <&uart0_pins_b>;
+       pinctrl-0 = <&uart0_pb_pins>;
        status = "okay";
 };
 
index 775ab6422eeb449ab354cc47027a1f50190ec9fa..2a3ec6871788fc8de3dd294fd151ae6731d1e4d6 100644 (file)
 
 &mmc0 {
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
+       pinctrl-0 = <&mmc0_pins>;
        vmmc-supply = <&reg_dcdc1>;
        bus-width = <4>;
        cd-gpios = <&pio 1 4 GPIO_ACTIVE_LOW>; /* PB4 */
 
 &uart0 {
        pinctrl-names = "default";
-       pinctrl-0 = <&uart0_pins_b>;
+       pinctrl-0 = <&uart0_pb_pins>;
        status = "okay";
 };
 
index 72cd1a2431bc3bf60165608523e572f5e14c59c0..c2c10cd4a210c2d5dcf58f08378220290aa43797 100644 (file)
        interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
 
-       uart0_pins_b: uart0@1 {
+       uart0_pb_pins: uart0-pb-pins {
                pins = "PB0", "PB1";
                function = "uart0";
        };
index 0b3db925254b333c2ef080ff0a1a870d13bbb680..e3ca8a94d690809cfdced2fdafe67da6203fd53e 100644 (file)
@@ -70,7 +70,7 @@
 
 &mmc1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc1_pins_a>;
+       pinctrl-0 = <&mmc1_pg_pins>;
        vmmc-supply = <&reg_dldo1>;
        mmc-pwrseq = <&wifi_pwrseq>;
        bus-width = <4>;
index ee7ce3752581b59160e0c6f62315cfbd27ebdb41..a44d80c244169cab06666a7fc92ca97e90a017df 100644 (file)
 /* This is the i2c bus exposed on the DSI connector for the touch panel */
 &i2c0 {
        pinctrl-names = "default";
-       pinctrl-0 = <&i2c0_pins_a>;
+       pinctrl-0 = <&i2c0_pins>;
        status = "disabled";
 };
 
 /* This is the i2c bus exposed on the GPIO header */
 &i2c1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&i2c1_pins_a>;
+       pinctrl-0 = <&i2c1_pins>;
        status = "disabled";
 };
 
 /* This is the i2c bus exposed on the CSI connector to control the sensor */
 &i2c2 {
        pinctrl-names = "default";
-       pinctrl-0 = <&i2c2_pins_a>;
+       pinctrl-0 = <&i2c2_pins>;
        status = "disabled";
 };
 
 &mmc0 {
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
+       pinctrl-0 = <&mmc0_pins>;
        vmmc-supply = <&reg_dcdc1>;
        bus-width = <4>;
        cd-gpios = <&pio 1 4 GPIO_ACTIVE_LOW>; /* PB4 */
 
 &mmc1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc1_pins_a>;
+       pinctrl-0 = <&mmc1_pg_pins>;
        vmmc-supply = <&reg_aldo1>;
        mmc-pwrseq = <&wifi_pwrseq>;
        bus-width = <4>;
 
 &uart0 {
        pinctrl-names = "default";
-       pinctrl-0 = <&uart0_pins_b>;
+       pinctrl-0 = <&uart0_pb_pins>;
        status = "okay";
 };
 
 &uart1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&uart1_pins_a>, <&uart1_pins_cts_rts_a>;
+       pinctrl-0 = <&uart1_pg_pins>, <&uart1_cts_rts_pg_pins>;
        status = "okay";
 };
 
index fc0658cfa3199deac132454f490ef402e817e954..32cf1ab33aabc63c2b484993b0ec15b7bc96180f 100644 (file)
@@ -25,7 +25,7 @@
         * PF can also be used for the SD card so PB is preferred.
         */
        pinctrl-names = "default";
-       pinctrl-0 = <&uart0_pins_a>;
+       pinctrl-0 = <&uart0_pf_pins>;
        status = "okay";
 };
 
index ec987f42204110f560fe4ec8a288f72a0dea48a7..3897a91cca47ead89cf594b75dab88d493202c79 100644 (file)
@@ -96,7 +96,7 @@
 
 &i2c1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&i2c1_pins_a>;
+       pinctrl-0 = <&i2c1_pins>;
        status = "okay";
 
        /*
 
 &mmc0 {
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
+       pinctrl-0 = <&mmc0_pins>;
        vmmc-supply = <&reg_dcdc1>;
        cd-gpios = <&pio 3 14 GPIO_ACTIVE_LOW>; /* PD14 */
        bus-width = <4>;
 
 &mmc1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc1_pins_a>;
+       pinctrl-0 = <&mmc1_pg_pins>;
        vmmc-supply = <&reg_aldo1>;
        mmc-pwrseq = <&wifi_pwrseq>;
        bus-width = <4>;
 
 &uart0 {
        pinctrl-names = "default";
-       pinctrl-0 = <&uart0_pins_b>;
+       pinctrl-0 = <&uart0_pb_pins>;
        status = "okay";
 };
 
index 6838bce7dd4e16f83b0c8b3539d577ea266c3df8..12a2ad67844e038829f0b38e10f78e428ccd93b0 100644 (file)
@@ -62,6 +62,7 @@
 };
 
 &i2c0 {
+       pinctrl-0 = <&i2c0_pins>;
        /*
         * The gsl1680 is rated at 400KHz and it will not work reliable at
         * 100KHz, this has been confirmed on multiple different q8 tablets.
        };
 };
 
+&i2c1 {
+       pinctrl-0 = <&i2c1_pins>;
+};
+
 &mmc0 {
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
+       pinctrl-0 = <&mmc0_pins>;
        vmmc-supply = <&reg_dcdc1>;
        bus-width = <4>;
        cd-gpios = <&pio 1 4 GPIO_ACTIVE_LOW>; /* PB4 */
        };
 };
 
+&pwm {
+       pinctrl-0 = <&pwm0_pin>;
+};
+
 &r_rsb {
        status = "okay";