ARM: dts: sun5i: Remove all useless pinctrl nodes
authorMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 7 Nov 2018 10:14:15 +0000 (11:14 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 28 Nov 2018 10:36:43 +0000 (11:36 +0100)
The gpio pinctrl nodes are redundant and as such useless most of the times.
Since they will also generate warnings in DTC, we can simply remove most of
them.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
13 files changed:
arch/arm/boot/dts/sun5i-a10s-auxtek-t004.dts
arch/arm/boot/dts/sun5i-a10s-mk802.dts
arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts
arch/arm/boot/dts/sun5i-a10s-r7-tv-dongle.dts
arch/arm/boot/dts/sun5i-a10s-wobo-i5.dts
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts
arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts
arch/arm/boot/dts/sun5i-a13-olinuxino.dts
arch/arm/boot/dts/sun5i-a13-utoo-p66.dts
arch/arm/boot/dts/sun5i-gr8-chip-pro.dts
arch/arm/boot/dts/sun5i-gr8-evb.dts
arch/arm/boot/dts/sun5i-r8-chip.dts
arch/arm/boot/dts/sun5i-reference-design-tablet.dtsi

index 8d4fb93..f103e17 100644 (file)
@@ -71,8 +71,6 @@
 
        reg_vmmc1: vmmc1 {
                compatible = "regulator-fixed";
-               pinctrl-names = "default";
-               pinctrl-0 = <&mmc1_vcc_en_pin_t004>;
                regulator-name = "vmmc1";
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
                bias-pull-up;
        };
 
-       mmc1_vcc_en_pin_t004: mmc1_vcc_en_pin@0 {
-               pins = "PB18";
-               function = "gpio_out";
-       };
-
        led_pins_t004: led_pins@0 {
                pins = "PB2";
                function = "gpio_out";
index dd7fd5c..b17c036 100644 (file)
@@ -59,8 +59,6 @@
 
        leds {
                compatible = "gpio-leds";
-               pinctrl-names = "default";
-               pinctrl-0 = <&led_pins_mk802>;
 
                red {
                        label = "mk802:red:usr";
 };
 
 &pio {
-       led_pins_mk802: led_pins@0 {
-               pins = "PB2";
-               function = "gpio_out";
-       };
-
        mmc0_cd_pin_mk802: mmc0_cd_pin@0 {
                pins = "PG1";
                function = "gpio_in";
                bias-pull-up;
        };
-
-       usb1_vbus_pin_mk802: usb1_vbus_pin@0 {
-               pins = "PB10";
-               function = "gpio_out";
-       };
 };
 
 &reg_usb1_vbus {
-       pinctrl-0 = <&usb1_vbus_pin_mk802>;
        gpio = <&pio 1 10 GPIO_ACTIVE_HIGH>; /* PB10 */
        status = "okay";
 };
index 243319e..3ffae22 100644 (file)
                drive-strength = <20>;
        };
 
-       usb1_vbus_pin_olinuxino_m: usb1_vbus_pin@0 {
-               pins = "PB10";
-               function = "gpio_out";
-       };
-
        usb0_id_detect_pin: usb0_id_detect_pin@0 {
                pins = "PG12";
                function = "gpio_in";
 };
 
 &reg_usb1_vbus {
-       pinctrl-0 = <&usb1_vbus_pin_olinuxino_m>;
        gpio = <&pio 1 10 GPIO_ACTIVE_HIGH>;
        status = "okay";
 };
index 034853d..1e713a4 100644 (file)
                function = "gpio_out";
                drive-strength = <20>;
        };
-
-       usb1_vbus_pin_r7: usb1_vbus_pin@0 {
-               pins = "PG13";
-               function = "gpio_out";
-       };
 };
 
 &reg_usb1_vbus {
-       pinctrl-0 = <&usb1_vbus_pin_r7>;
        gpio = <&pio 6 13 GPIO_ACTIVE_HIGH>;
        status = "okay";
 };
index 3f68ef5..d8bff29 100644 (file)
@@ -61,8 +61,6 @@
 
        leds {
                compatible = "gpio-leds";
-               pinctrl-names = "default";
-               pinctrl-0 = <&led_pins_wobo_i5>;
 
                blue {
                        label = "a10s-wobo-i5:blue:usr";
@@ -73,8 +71,6 @@
 
        reg_emac_3v3: emac-3v3 {
                compatible = "regulator-fixed";
-               pinctrl-names = "default";
-               pinctrl-0 = <&emac_power_pin_wobo>;
                regulator-name = "emac-3v3";
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
 };
 
 &pio {
-       led_pins_wobo_i5: led_pins@0 {
-               pins = "PB2";
-               function = "gpio_out";
-       };
-
        mmc0_cd_pin_wobo_i5: mmc0_cd_pin@0 {
                pins = "PB3";
                function = "gpio_in";
                bias-pull-up;
        };
-
-       emac_power_pin_wobo: emac_power_pin@0 {
-               pins = "PA02";
-               function = "gpio_out";
-       };
 };
 
 &reg_dcdc2 {
index 24ac6f1..f6211c2 100644 (file)
                function = "gpio_in";
                bias-pull-up;
        };
-
-       usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
-               pins = "PG1";
-               function = "gpio_in";
-       };
 };
 
 #include "axp209.dtsi"
 
 &usbphy {
        pinctrl-names = "default";
-       pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
+       pinctrl-0 = <&usb0_id_detect_pin>;
        usb0_id_det-gpios = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */
        usb0_vbus_det-gpios = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
        usb0_vbus-supply = <&reg_usb0_vbus>;
index aa4b34f..0e107ff 100644 (file)
                function = "gpio_in";
                bias-pull-down;
        };
-
-       usb0_vbus_pin_olinuxinom: usb0_vbus_pin@0 {
-               pins = "PG12";
-               function = "gpio_out";
-       };
-
-       usb1_vbus_pin_olinuxinom: usb1_vbus_pin@0 {
-               pins = "PG11";
-               function = "gpio_out";
-       };
 };
 
 &reg_usb0_vbus {
-       pinctrl-0 = <&usb0_vbus_pin_olinuxinom>;
        gpio = <&pio 6 12 GPIO_ACTIVE_HIGH>;
        status = "okay";
 };
 
 &reg_usb1_vbus {
-       pinctrl-0 = <&usb1_vbus_pin_olinuxinom>;
        gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>;
        status = "okay";
 };
index 49dcef1..d963cac 100644 (file)
                function = "gpio_in";
                bias-pull-down;
        };
-
-       usb1_vbus_pin_olinuxino: usb1_vbus_pin@0 {
-               pins = "PG11";
-               function = "gpio_out";
-       };
 };
 
 &reg_usb0_vbus {
 };
 
 &reg_usb1_vbus {
-       pinctrl-0 = <&usb1_vbus_pin_olinuxino>;
        gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>;
        status = "okay";
 };
index bfdd38d..962ec29 100644 (file)
        allwinner,pa-gpios = <&pio 6 3 GPIO_ACTIVE_HIGH>; /* PG3 */
 };
 
-&codec_pa_pin {
-       pins = "PG3";
-};
-
 &mmc2 {
        pinctrl-names = "default";
        pinctrl-0 = <&mmc2_pins_a>;
        /* The P66 uses the uart pins as gpios */
        status = "disabled";
 };
-
-&usb0_vbus_pin_a {
-       pins = "PB4";
-};
index c55b11a..959dd94 100644 (file)
@@ -79,8 +79,6 @@
 
        mmc0_pwrseq: mmc0_pwrseq {
                compatible = "mmc-pwrseq-simple";
-               pinctrl-names = "default";
-               pinctrl-0 = <&wifi_reg_on_pin_chip_pro>;
                reset-gpios = <&pio 1 10 GPIO_ACTIVE_LOW>; /* PB10 */
        };
 };
        status = "okay";
 };
 
-&pio {
-       usb0_id_pin_chip_pro: usb0-id-pin@0 {
-               pins = "PG2";
-               function = "gpio_in";
-       };
-
-       wifi_reg_on_pin_chip_pro: wifi-reg-on-pin@0 {
-               pins = "PB10";
-               function = "gpio_out";
-       };
-};
-
 &pwm {
        pinctrl-names = "default";
        pinctrl-0 = <&pwm0_pins>, <&pwm1_pins>;
 };
 
 &usbphy {
-       pinctrl-names = "default";
-       pinctrl-0 = <&usb0_id_pin_chip_pro>;
        usb0_id_det-gpio = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */
        usb0_vbus_power-supply = <&usb_power_supply>;
        usb1_vbus-supply = <&reg_vcc5v0>;
index e914915..5196aef 100644 (file)
 
 &mmc0 {
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_gr8_evb>;
+       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        cd-gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */
        status = "okay";
 };
 
-&pio {
-       mmc0_cd_pin_gr8_evb: mmc0-cd-pin@0 {
-               pins = "PG0";
-               function = "gpio_in";
-       };
-
-       usb0_id_pin_gr8_evb: usb0-id-pin@0 {
-               pins = "PG2";
-               function = "gpio_in";
-       };
-
-       usb0_vbus_det_pin_gr8_evb: usb0-vbus-det-pin@0 {
-               pins = "PG1";
-               function = "gpio_in";
-       };
-
-       usb1_vbus_pin_gr8_evb: usb1-vbus-pin@0 {
-               pins = "PG13";
-               function = "gpio_out";
-       };
-};
-
 &pwm {
        pinctrl-names = "default";
        pinctrl-0 = <&pwm0_pins>;
 };
 
 &reg_usb1_vbus {
-       pinctrl-0 = <&usb1_vbus_pin_gr8_evb>;
        gpio = <&pio 6 13 GPIO_ACTIVE_HIGH>;
        status = "okay";
 };
 };
 
 &usbphy {
-       pinctrl-names = "default";
-       pinctrl-0 = <&usb0_id_pin_gr8_evb>, <&usb0_vbus_det_pin_gr8_evb>;
        usb0_id_det-gpio = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */
        usb0_vbus_det-gpio = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
        usb0_vbus_power-supply = <&usb_power_supply>;
index 879a4b0..c97e46e 100644 (file)
@@ -79,8 +79,6 @@
 
        mmc0_pwrseq: mmc0_pwrseq {
                compatible = "mmc-pwrseq-simple";
-               pinctrl-names = "default";
-               pinctrl-0 = <&chip_wifi_reg_on_pin>;
                reset-gpios = <&pio 2 19 GPIO_ACTIVE_LOW>; /* PC19 */
        };
 
 };
 
 &pio {
-       chip_vbus_pin: chip_vbus_pin@0 {
-               pins = "PB10";
-               function = "gpio_out";
-       };
-
-       chip_wifi_reg_on_pin: chip_wifi_reg_on_pin@0 {
-               pins = "PC19";
-               function = "gpio_out";
-       };
-
-       chip_id_det_pin: chip_id_det_pin@0 {
-               pins = "PG2";
-               function = "gpio_in";
-       };
 
        chip_w1_pin: chip_w1_pin@0 {
                pins = "PD2";
 };
 
 &reg_usb0_vbus {
-       pinctrl-0 = <&chip_vbus_pin>;
        vin-supply = <&reg_vcc5v0>;
        gpio = <&pio 1 10 GPIO_ACTIVE_HIGH>; /* PB10 */
        status = "okay";
 };
 
 &usbphy {
-       pinctrl-names = "default";
-       pinctrl-0 = <&chip_id_det_pin>;
        status = "okay";
 
        usb0_id_det-gpio = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */
index d2a2eb8..eafb362 100644 (file)
@@ -63,8 +63,6 @@
 };
 
 &codec {
-       pinctrl-names = "default";
-       pinctrl-0 = <&codec_pa_pin>;
        allwinner,pa-gpios = <&pio 6 10 GPIO_ACTIVE_HIGH>; /* PG10 */
        status = "okay";
 };
@@ -96,8 +94,6 @@
                reg = <0x40>;
                interrupt-parent = <&pio>;
                interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>; /* EINT11 (PG11) */
-               pinctrl-names = "default";
-               pinctrl-0 = <&ts_power_pin>;
                power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */
                /* Tablet dts must provide reg and compatible */
                status = "disabled";
 };
 
 &pio {
-       codec_pa_pin: codec_pa_pin@0 {
-               pins = "PG10";
-               function = "gpio_out";
-       };
-
        mmc0_cd_pin: mmc0_cd_pin@0 {
                pins = "PG0";
                function = "gpio_in";
                bias-pull-up;
        };
 
-       ts_power_pin: ts_power_pin {
-               pins = "PB3";
-               function = "gpio_out";
-               drive-strength = <10>;
-               bias-disable;
-       };
-
        usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
                pins = "PG1";
                function = "gpio_in";
                function = "gpio_in";
                bias-pull-up;
        };
-
-       usb0_vbus_pin_a: usb0_vbus_pin@0 {
-               pins = "PG12";
-               function = "gpio_out";
-       };
 };
 
 &reg_dcdc2 {