ARM: sunxi: common-regulators: Drop pinmux settings for GPIO pins
authorChen-Yu Tsai <wens@csie.org>
Wed, 19 Apr 2017 05:09:16 +0000 (13:09 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 14 May 2017 06:32:31 +0000 (08:32 +0200)
As part of our effort to move pinctrl/GPIO interlocking into the
driver where it belongs, this patch drops the definition and usage
of the pinmux settings for the common regulators defined in
sunxi-common-regulators.dtsi.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
13 files changed:
arch/arm/boot/dts/sun4i-a10-hyundai-a7hd.dts
arch/arm/boot/dts/sun5i-a10s-auxtek-t003.dts
arch/arm/boot/dts/sun5i-a10s-auxtek-t004.dts
arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts
arch/arm/boot/dts/sun5i-a10s-wobo-i5.dts
arch/arm/boot/dts/sun5i-a13-empire-electronix-d709.dts
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts
arch/arm/boot/dts/sun5i-a13-olinuxino.dts
arch/arm/boot/dts/sun6i-a31-hummingbird.dts
arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts
arch/arm/boot/dts/sun7i-a20-pcduino3.dts
arch/arm/boot/dts/sun8i-h3-orangepi-2.dts
arch/arm/boot/dts/sunxi-common-regulators.dtsi

index 85dcf81ab64ef0fd67d49881f7efe1b54c0248a4..bc4351bb851f0a1ea6b368f14fd5afac3eed8809 100644 (file)
        status = "okay";
 };
 
-&usb2_vbus_pin_a {
-       pins = "PH6";
-};
-
 &usb_otg {
        dr_mode = "otg";
        status = "okay";
index c6f742a7e69f610ee4e50b7c87ffff93f3b60ac2..d2dee8d434bf33b676114c950f13ad64a99ebe2c 100644 (file)
        status = "okay";
 };
 
-&usb0_vbus_pin_a {
-       pins = "PG13";
-};
-
-&usb1_vbus_pin_a {
-       pins = "PB10";
-};
-
 &usb_otg {
        dr_mode = "host";
        status = "okay";
index a27c3fa587366a19684bb151045a53cfb69d8775..16f839df42272d34b13cc088423e4bc04338ca82 100644 (file)
        status = "okay";
 };
 
-&usb1_vbus_pin_a {
-       pins = "PG13";
-};
-
 &usbphy {
        pinctrl-names = "default";
        pinctrl-0 = <&usb0_id_detect_pin>;
index 894f874a5beb32e8643577c48a562d9dddf20e92..eff36fe1aaa348d0d35e0ab587556eeb4a609924 100644 (file)
        status = "okay";
 };
 
-&usb0_vbus_pin_a {
-       pins = "PG11";
-};
-
 &usbphy {
        pinctrl-names = "default";
        pinctrl-0 = <&usb0_id_detect_pin>;
index ea3e5655a61bdacbcf3eb739848cfcb2f81ba181..5482be174e12244fc59669b34fe1e49ea7b5fe6b 100644 (file)
        status = "okay";
 };
 
-&usb1_vbus_pin_a {
-       pins = "PG12";
-};
-
 &usbphy {
        usb1_vbus-supply = <&reg_usb1_vbus>;
        status = "okay";
index 34411d27aadfd712f64d189ae81638aabd1a2837..3dbb0d7c2f8c78698a7486f9c2eaf5b13a46db7e 100644 (file)
        status = "okay";
 };
 
-&usb0_vbus_pin_a {
-       pins = "PG12";
-};
-
 &usbphy {
        pinctrl-names = "default";
        pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
index 2489c16f7efa528dde0cbfb3b3089f2cf7340f56..584fa579ded20629fec110b13a689689222b149c 100644 (file)
 };
 
 &reg_usb0_vbus {
-       pinctrl-0 = <&usb0_vbus_pin_a>;
        gpio = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
        status = "okay";
 };
        status = "okay";
 };
 
-&usb0_vbus_pin_a {
-       pins = "PG12";
-};
-
 &usbphy {
        pinctrl-names = "default";
        pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
index 95f591bb8ced0bc7d6c479959c9497be8a1bef6f..38072c7e10e202c5bb3618c49caebdd0bdd3e793 100644 (file)
        status = "okay";
 };
 
-&usb0_vbus_pin_a {
-       pins = "PG12";
-};
-
 &usbphy {
        pinctrl-names = "default";
        pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
index d4f74f476f25e036ba6b0248f2bfcdf429167796..b4c87a23e3f8475058583cb502bf7ff1bf85c0f1 100644 (file)
        status = "okay";
 };
 
-&usb1_vbus_pin_a {
-       /* different pin from sunxi-common-regulators */
-       pins = "PH24";
-};
-
 &usbphy {
        usb0_id_det-gpio = <&pio 0 15 GPIO_ACTIVE_HIGH>; /* PA15 */
        usb0_vbus_det-gpio = <&pio 0 16 GPIO_ACTIVE_HIGH>; /* PA16 */
index 96bb0bc198baff67123df539911e7e173b926df1..004b6ddac8131c26d381aa046060a3876c6729e8 100644 (file)
        };
 };
 
-&ahci_pwr_pin_a {
-       pins = "PB3";
-};
-
 &ahci {
        target-supply = <&reg_ahci_5v>;
        status = "okay";
        status = "okay";
 };
 
-&usb2_vbus_pin_a {
-       pins = "PH12";
-};
-
 &usbphy {
        pinctrl-names = "default";
        pinctrl-0 = <&usb0_id_detect_pin>;
index 7c96b53b76bfe0ae4a9a6beac0d93e737aa9b919..98177b5891cbfd43cb82d82bf40ba3894c794ea3 100644 (file)
        status = "okay";
 };
 
-&ahci_pwr_pin_a {
-       pins = "PH2";
-};
-
 &codec {
        status = "okay";
 };
index 5b6d14555b7ccb8b537d35ea82a75d01b39e0833..d7d5330c566f1d66b92adb9fa47e025e484852d6 100644 (file)
        status = "disabled";
 };
 
-&usb1_vbus_pin_a {
-       pins = "PG13";
-};
-
 &usbphy {
        usb1_vbus-supply = <&reg_usb1_vbus>;
        status = "okay";
index ce5c53e4452fcda1357f045783d7ee0a9b343d74..d8e5826fb3de367ff9a32cf372a9105da53ad8ef 100644 (file)
 
 #include <dt-bindings/gpio/gpio.h>
 
-&pio {
-       ahci_pwr_pin_a: ahci_pwr_pin@0 {
-               pins = "PB8";
-               function = "gpio_out";
-       };
-
-       usb0_vbus_pin_a: usb0_vbus_pin@0 {
-               pins = "PB9";
-               function = "gpio_out";
-       };
-
-       usb1_vbus_pin_a: usb1_vbus_pin@0 {
-               pins = "PH6";
-               function = "gpio_out";
-       };
-
-       usb2_vbus_pin_a: usb2_vbus_pin@0 {
-               pins = "PH3";
-               function = "gpio_out";
-       };
-};
-
 / {
        reg_ahci_5v: ahci-5v {
                compatible = "regulator-fixed";
-               pinctrl-names = "default";
-               pinctrl-0 = <&ahci_pwr_pin_a>;
                regulator-name = "ahci-5v";
                regulator-min-microvolt = <5000000>;
                regulator-max-microvolt = <5000000>;
@@ -82,8 +58,6 @@
 
        reg_usb0_vbus: usb0-vbus {
                compatible = "regulator-fixed";
-               pinctrl-names = "default";
-               pinctrl-0 = <&usb0_vbus_pin_a>;
                regulator-name = "usb0-vbus";
                regulator-min-microvolt = <5000000>;
                regulator-max-microvolt = <5000000>;
@@ -94,8 +68,6 @@
 
        reg_usb1_vbus: usb1-vbus {
                compatible = "regulator-fixed";
-               pinctrl-names = "default";
-               pinctrl-0 = <&usb1_vbus_pin_a>;
                regulator-name = "usb1-vbus";
                regulator-min-microvolt = <5000000>;
                regulator-max-microvolt = <5000000>;
 
        reg_usb2_vbus: usb2-vbus {
                compatible = "regulator-fixed";
-               pinctrl-names = "default";
-               pinctrl-0 = <&usb2_vbus_pin_a>;
                regulator-name = "usb2-vbus";
                regulator-min-microvolt = <5000000>;
                regulator-max-microvolt = <5000000>;