Commit 054da074 authored by Maxime Ripard's avatar Maxime Ripard

ARM: dts: sun7i: Remove all useless pinctrl nodes

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: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
parent 8ce97caa
...@@ -73,8 +73,6 @@ hdmi_con_in: endpoint { ...@@ -73,8 +73,6 @@ hdmi_con_in: endpoint {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_bpi_m1p>;
green { green {
label = "bananapi-m1-plus:green:usr"; label = "bananapi-m1-plus:green:usr";
...@@ -90,15 +88,11 @@ pwr { ...@@ -90,15 +88,11 @@ pwr {
mmc3_pwrseq: mmc3_pwrseq { mmc3_pwrseq: mmc3_pwrseq {
compatible = "mmc-pwrseq-simple"; compatible = "mmc-pwrseq-simple";
pinctrl-names = "default";
pinctrl-0 = <&mmc3_pwrseq_pin_bpi_m1p>;
reset-gpios = <&pio 7 22 GPIO_ACTIVE_LOW>; /* PH22 WL-PMU-EN */ reset-gpios = <&pio 7 22 GPIO_ACTIVE_LOW>; /* PH22 WL-PMU-EN */
}; };
reg_gmac_3v3: gmac-3v3 { reg_gmac_3v3: gmac-3v3 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&gmac_power_pin_bpi_m1p>;
regulator-name = "gmac-3v3"; regulator-name = "gmac-3v3";
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
...@@ -227,26 +221,11 @@ &otg_sram { ...@@ -227,26 +221,11 @@ &otg_sram {
}; };
&pio { &pio {
gmac_power_pin_bpi_m1p: gmac_power_pin@0 {
pins = "PH23";
function = "gpio_out";
};
led_pins_bpi_m1p: led_pins@0 {
pins = "PH24", "PH25";
function = "gpio_out";
};
mmc0_cd_pin_bpi_m1p: mmc0_cd_pin@0 { mmc0_cd_pin_bpi_m1p: mmc0_cd_pin@0 {
pins = "PH10"; pins = "PH10";
function = "gpio_in"; function = "gpio_in";
bias-pull-up; bias-pull-up;
}; };
mmc3_pwrseq_pin_bpi_m1p: mmc3_pwrseq_pin@0 {
pins = "PH22";
function = "gpio_out";
};
}; };
&reg_dcdc2 { &reg_dcdc2 {
......
...@@ -76,8 +76,6 @@ hdmi_con_in: endpoint { ...@@ -76,8 +76,6 @@ hdmi_con_in: endpoint {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_bananapi>;
green { green {
label = "bananapi:green:usr"; label = "bananapi:green:usr";
...@@ -87,8 +85,6 @@ green { ...@@ -87,8 +85,6 @@ green {
reg_gmac_3v3: gmac-3v3 { reg_gmac_3v3: gmac-3v3 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&gmac_power_pin_bananapi>;
regulator-name = "gmac-3v3"; regulator-name = "gmac-3v3";
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
...@@ -263,16 +259,6 @@ mmc0_cd_pin_bananapi: mmc0_cd_pin@0 { ...@@ -263,16 +259,6 @@ mmc0_cd_pin_bananapi: mmc0_cd_pin@0 {
function = "gpio_in"; function = "gpio_in";
bias-pull-up; bias-pull-up;
}; };
gmac_power_pin_bananapi: gmac_power_pin@0 {
pins = "PH23";
function = "gpio_out";
};
led_pins_bananapi: led_pins@0 {
pins = "PH24";
function = "gpio_out";
};
}; };
#include "axp209.dtsi" #include "axp209.dtsi"
......
...@@ -62,8 +62,6 @@ chosen { ...@@ -62,8 +62,6 @@ chosen {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_bananapro>;
blue { blue {
label = "bananapro:blue:usr"; label = "bananapro:blue:usr";
...@@ -78,15 +76,11 @@ green { ...@@ -78,15 +76,11 @@ green {
wifi_pwrseq: wifi-pwrseq { wifi_pwrseq: wifi-pwrseq {
compatible = "mmc-pwrseq-simple"; compatible = "mmc-pwrseq-simple";
pinctrl-names = "default";
pinctrl-0 = <&vmmc3_pin_bananapro>;
reset-gpios = <&pio 7 22 GPIO_ACTIVE_LOW>; reset-gpios = <&pio 7 22 GPIO_ACTIVE_LOW>;
}; };
reg_gmac_3v3: gmac-3v3 { reg_gmac_3v3: gmac-3v3 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&gmac_power_pin_bananapro>;
regulator-name = "gmac-3v3"; regulator-name = "gmac-3v3";
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
...@@ -189,46 +183,19 @@ &ohci1 { ...@@ -189,46 +183,19 @@ &ohci1 {
}; };
&pio { &pio {
gmac_power_pin_bananapro: gmac_power_pin@0 {
pins = "PH23";
function = "gpio_out";
};
led_pins_bananapro: led_pins@0 {
pins = "PH24", "PG2";
function = "gpio_out";
};
mmc0_cd_pin_bananapro: mmc0_cd_pin@0 { mmc0_cd_pin_bananapro: mmc0_cd_pin@0 {
pins = "PH10"; pins = "PH10";
function = "gpio_in"; function = "gpio_in";
bias-pull-up; bias-pull-up;
}; };
usb1_vbus_pin_bananapro: usb1_vbus_pin@0 {
pins = "PH0";
function = "gpio_out";
};
usb2_vbus_pin_bananapro: usb2_vbus_pin@0 {
pins = "PH1";
function = "gpio_out";
};
vmmc3_pin_bananapro: vmmc3_pin@0 {
pins = "PH22";
function = "gpio_out";
};
}; };
&reg_usb1_vbus { &reg_usb1_vbus {
pinctrl-0 = <&usb1_vbus_pin_bananapro>;
gpio = <&pio 7 0 GPIO_ACTIVE_HIGH>; /* PH0 */ gpio = <&pio 7 0 GPIO_ACTIVE_HIGH>; /* PH0 */
status = "okay"; status = "okay";
}; };
&reg_usb2_vbus { &reg_usb2_vbus {
pinctrl-0 = <&usb2_vbus_pin_bananapro>;
gpio = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ gpio = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
status = "okay"; status = "okay";
}; };
......
...@@ -74,8 +74,6 @@ hdmi_con_in: endpoint { ...@@ -74,8 +74,6 @@ hdmi_con_in: endpoint {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_cubieboard2>;
blue { blue {
label = "cubieboard2:blue:usr"; label = "cubieboard2:blue:usr";
...@@ -182,11 +180,6 @@ &otg_sram { ...@@ -182,11 +180,6 @@ &otg_sram {
}; };
&pio { &pio {
led_pins_cubieboard2: led_pins@0 {
pins = "PH20", "PH21";
function = "gpio_out";
};
usb0_id_detect_pin: usb0_id_detect_pin@0 { usb0_id_detect_pin: usb0_id_detect_pin@0 {
pins = "PH4"; pins = "PH4";
function = "gpio_in"; function = "gpio_in";
......
...@@ -74,8 +74,6 @@ hdmi_con_in: endpoint { ...@@ -74,8 +74,6 @@ hdmi_con_in: endpoint {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_cubietruck>;
blue { blue {
label = "cubietruck:blue:usr"; label = "cubietruck:blue:usr";
...@@ -100,8 +98,6 @@ green { ...@@ -100,8 +98,6 @@ green {
mmc3_pwrseq: mmc3_pwrseq { mmc3_pwrseq: mmc3_pwrseq {
compatible = "mmc-pwrseq-simple"; compatible = "mmc-pwrseq-simple";
pinctrl-names = "default";
pinctrl-0 = <&mmc3_pwrseq_pin_cubietruck>;
reset-gpios = <&pio 7 9 GPIO_ACTIVE_LOW>; /* PH9 WIFI_EN */ reset-gpios = <&pio 7 9 GPIO_ACTIVE_LOW>; /* PH9 WIFI_EN */
}; };
...@@ -245,38 +241,6 @@ &otg_sram { ...@@ -245,38 +241,6 @@ &otg_sram {
status = "okay"; status = "okay";
}; };
&pio {
ahci_pwr_pin_cubietruck: ahci_pwr_pin@1 {
pins = "PH12";
function = "gpio_out";
};
led_pins_cubietruck: led_pins@0 {
pins = "PH7", "PH11", "PH20", "PH21";
function = "gpio_out";
};
mmc3_pwrseq_pin_cubietruck: mmc3_pwrseq_pin@0 {
pins = "PH9";
function = "gpio_out";
};
usb0_vbus_pin_a: usb0_vbus_pin@0 {
pins = "PH17";
function = "gpio_out";
};
usb0_id_detect_pin: usb0_id_detect_pin@0 {
pins = "PH19";
function = "gpio_in";
};
usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
pins = "PH22";
function = "gpio_in";
};
};
&pwm { &pwm {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>; pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>;
...@@ -284,7 +248,6 @@ &pwm { ...@@ -284,7 +248,6 @@ &pwm {
}; };
&reg_ahci_5v { &reg_ahci_5v {
pinctrl-0 = <&ahci_pwr_pin_cubietruck>;
gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>; gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
...@@ -325,7 +288,6 @@ &reg_ldo2 { ...@@ -325,7 +288,6 @@ &reg_ldo2 {
}; };
&reg_usb0_vbus { &reg_usb0_vbus {
pinctrl-0 = <&usb0_vbus_pin_a>;
gpio = <&pio 7 17 GPIO_ACTIVE_HIGH>; gpio = <&pio 7 17 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
...@@ -360,8 +322,6 @@ &usb_power_supply { ...@@ -360,8 +322,6 @@ &usb_power_supply {
}; };
&usbphy { &usbphy {
pinctrl-names = "default";
pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
usb0_id_det-gpios = <&pio 7 19 GPIO_ACTIVE_HIGH>; /* PH19 */ usb0_id_det-gpios = <&pio 7 19 GPIO_ACTIVE_HIGH>; /* PH19 */
usb0_vbus_det-gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */ usb0_vbus_det-gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */
usb0_vbus_power-supply = <&usb_power_supply>; usb0_vbus_power-supply = <&usb_power_supply>;
......
...@@ -67,8 +67,6 @@ chosen { ...@@ -67,8 +67,6 @@ chosen {
reg_mmc3_vdd: mmc3_vdd { reg_mmc3_vdd: mmc3_vdd {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&mmc3_vdd_pin_a20_hummingbird>;
regulator-name = "mmc3_vdd"; regulator-name = "mmc3_vdd";
regulator-min-microvolt = <3000000>; regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>; regulator-max-microvolt = <3000000>;
...@@ -78,8 +76,6 @@ reg_mmc3_vdd: mmc3_vdd { ...@@ -78,8 +76,6 @@ reg_mmc3_vdd: mmc3_vdd {
reg_gmac_vdd: gmac_vdd { reg_gmac_vdd: gmac_vdd {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&gmac_vdd_pin_a20_hummingbird>;
regulator-name = "gmac_vdd"; regulator-name = "gmac_vdd";
regulator-min-microvolt = <3000000>; regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>; regulator-max-microvolt = <3000000>;
...@@ -184,28 +180,6 @@ &ohci1 { ...@@ -184,28 +180,6 @@ &ohci1 {
status = "okay"; status = "okay";
}; };
&pio {
ahci_pwr_pin_a20_hummingbird: ahci_pwr_pin@0 {
pins = "PH15";
function = "gpio_out";
};
usb1_vbus_pin_a20_hummingbird: usb1_vbus_pin@0 {
pins = "PH2";
function = "gpio_out";
};
mmc3_vdd_pin_a20_hummingbird: mmc3_vdd_pin@0 {
pins = "PH9";
function = "gpio_out";
};
gmac_vdd_pin_a20_hummingbird: gmac_vdd_pin@0 {
pins = "PH16";
function = "gpio_out";
};
};
&pwm { &pwm {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwm0_pins_a>; pinctrl-0 = <&pwm0_pins_a>;
...@@ -213,13 +187,11 @@ &pwm { ...@@ -213,13 +187,11 @@ &pwm {
}; };
&reg_ahci_5v { &reg_ahci_5v {
pinctrl-0 = <&ahci_pwr_pin_a20_hummingbird>;
gpio = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */ gpio = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */
status = "okay"; status = "okay";
}; };
&reg_usb1_vbus { &reg_usb1_vbus {
pinctrl-0 = <&usb1_vbus_pin_a20_hummingbird>;
gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */ gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
status = "okay"; status = "okay";
}; };
......
...@@ -61,8 +61,6 @@ chosen { ...@@ -61,8 +61,6 @@ chosen {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_i12_tvbox>;
red { red {
label = "i12_tvbox:red:usr"; label = "i12_tvbox:red:usr";
...@@ -77,8 +75,6 @@ blue { ...@@ -77,8 +75,6 @@ blue {
reg_vmmc3: vmmc3 { reg_vmmc3: vmmc3 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&vmmc3_pin_i12_tvbox>;
regulator-name = "vmmc3"; regulator-name = "vmmc3";
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
...@@ -88,8 +84,6 @@ reg_vmmc3: vmmc3 { ...@@ -88,8 +84,6 @@ reg_vmmc3: vmmc3 {
reg_vmmc3_io: vmmc3-io { reg_vmmc3_io: vmmc3-io {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&vmmc3_io_pin_i12_tvbox>;
regulator-name = "vmmc3-io"; regulator-name = "vmmc3-io";
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
...@@ -101,8 +95,6 @@ reg_vmmc3_io: vmmc3-io { ...@@ -101,8 +95,6 @@ reg_vmmc3_io: vmmc3-io {
reg_gmac_3v3: gmac-3v3 { reg_gmac_3v3: gmac-3v3 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&gmac_power_pin_i12_tvbox>;
regulator-name = "gmac-3v3"; regulator-name = "gmac-3v3";
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
...@@ -194,28 +186,6 @@ &ohci1 { ...@@ -194,28 +186,6 @@ &ohci1 {
status = "okay"; status = "okay";
}; };
&pio {
vmmc3_pin_i12_tvbox: vmmc3_pin@0 {
pins = "PH2";
function = "gpio_out";
};
vmmc3_io_pin_i12_tvbox: vmmc3_io_pin@0 {
pins = "PH12";
function = "gpio_out";
};
gmac_power_pin_i12_tvbox: gmac_power_pin@0 {
pins = "PH21";
function = "gpio_out";
};
led_pins_i12_tvbox: led_pins@0 {
pins = "PH9", "PH20";
function = "gpio_out";
};
};
&reg_usb1_vbus { &reg_usb1_vbus {
status = "okay"; status = "okay";
}; };
......
...@@ -74,8 +74,6 @@ hdmi_con_in: endpoint { ...@@ -74,8 +74,6 @@ hdmi_con_in: endpoint {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_lamobo_r1>;
green { green {
label = "lamobo_r1:green:usr"; label = "lamobo_r1:green:usr";
...@@ -85,8 +83,6 @@ green { ...@@ -85,8 +83,6 @@ green {
reg_gmac_3v3: gmac-3v3 { reg_gmac_3v3: gmac-3v3 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&gmac_power_pin_lamobo_r1>;
regulator-name = "gmac-3v3"; regulator-name = "gmac-3v3";
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
...@@ -251,16 +247,6 @@ mmc0_cd_pin_lamobo_r1: mmc0_cd_pin@0 { ...@@ -251,16 +247,6 @@ mmc0_cd_pin_lamobo_r1: mmc0_cd_pin@0 {
function = "gpio_in"; function = "gpio_in";
bias-pull-up; bias-pull-up;
}; };
gmac_power_pin_lamobo_r1: gmac_power_pin@0 {
pins = "PH23";
function = "gpio_out";
};
led_pins_lamobo_r1: led_pins@0 {
pins = "PH24";
function = "gpio_out";
};
}; };
#include "axp209.dtsi" #include "axp209.dtsi"
......
...@@ -63,8 +63,6 @@ chosen { ...@@ -63,8 +63,6 @@ chosen {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_m3>;
blue { blue {
label = "m3:blue:usr"; label = "m3:blue:usr";
...@@ -141,13 +139,6 @@ &ohci1 { ...@@ -141,13 +139,6 @@ &ohci1 {
status = "okay"; status = "okay";
}; };
&pio {
led_pins_m3: led_pins@0 {
pins = "PH20";
function = "gpio_out";
};
};
&reg_usb1_vbus { &reg_usb1_vbus {
status = "okay"; status = "okay";
}; };
......
...@@ -153,18 +153,6 @@ &otg_sram { ...@@ -153,18 +153,6 @@ &otg_sram {
status = "okay"; status = "okay";
}; };
&pio {
usb0_id_detect_pin: usb0_id_detect_pin@0 {
pins = "PH4";
function = "gpio_in";
};
usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
pins = "PH5";
function = "gpio_in";
};
};
&reg_usb0_vbus { &reg_usb0_vbus {
status = "okay"; status = "okay";
}; };
...@@ -195,8 +183,6 @@ &usb_otg { ...@@ -195,8 +183,6 @@ &usb_otg {
}; };
&usbphy { &usbphy {
pinctrl-names = "default";
pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
usb0_vbus-supply = <&reg_usb0_vbus>; usb0_vbus-supply = <&reg_usb0_vbus>;
......
...@@ -74,8 +74,6 @@ hdmi_con_in: endpoint { ...@@ -74,8 +74,6 @@ hdmi_con_in: endpoint {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_olimex_som_evb>;
green { green {
label = "a20-olimex-som-evb:green:usr"; label = "a20-olimex-som-evb:green:usr";
...@@ -241,11 +239,6 @@ &otg_sram { ...@@ -241,11 +239,6 @@ &otg_sram {
}; };
&pio { &pio {
ahci_pwr_pin_olimex_som_evb: ahci_pwr_pin@1 {
pins = "PC3";
function = "gpio_out";
};
led_pins_olimex_som_evb: led_pins@0 { led_pins_olimex_som_evb: led_pins@0 {
pins = "PH2"; pins = "PH2";
function = "gpio_out"; function = "gpio_out";
...@@ -257,20 +250,9 @@ mmc3_cd_pin_olimex_som_evb: mmc3_cd_pin@0 { ...@@ -257,20 +250,9 @@ mmc3_cd_pin_olimex_som_evb: mmc3_cd_pin@0 {
function = "gpio_in"; function = "gpio_in";
bias-pull-up; bias-pull-up;
}; };
usb0_id_detect_pin: usb0_id_detect_pin@0 {
pins = "PH4";
function = "gpio_in";
};
usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
pins = "PH5";
function = "gpio_in";
};
}; };
&reg_ahci_5v { &reg_ahci_5v {
pinctrl-0 = <&ahci_pwr_pin_olimex_som_evb>;
gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>; gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
...@@ -352,8 +334,6 @@ &usb_otg { ...@@ -352,8 +334,6 @@ &usb_otg {
}; };
&usbphy { &usbphy {
pinctrl-names = "default";
pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH04 */ usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH04 */
usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH05 */ usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH05 */
usb0_vbus-supply = <&reg_usb0_vbus>; usb0_vbus-supply = <&reg_usb0_vbus>;
......
...@@ -175,11 +175,6 @@ &otg_sram { ...@@ -175,11 +175,6 @@ &otg_sram {
}; };
&pio { &pio {
ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 {
pins = "PC3";
function = "gpio_out";
};
led_pins_olinuxinolime: led_pins@0 { led_pins_olinuxinolime: led_pins@0 {
pins = "PH2"; pins = "PH2";
function = "gpio_out"; function = "gpio_out";
...@@ -200,7 +195,6 @@ usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { ...@@ -200,7 +195,6 @@ usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
}; };
&reg_ahci_5v { &reg_ahci_5v {
pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>; gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
......
...@@ -48,20 +48,11 @@ / { ...@@ -48,20 +48,11 @@ / {
compatible = "olimex,a20-olinuxino-lime2-emmc", "allwinner,sun7i-a20"; compatible = "olimex,a20-olinuxino-lime2-emmc", "allwinner,sun7i-a20";
mmc2_pwrseq: pwrseq { mmc2_pwrseq: pwrseq {
pinctrl-0 = <&mmc2_pins_nrst>;
pinctrl-names = "default";
compatible = "mmc-pwrseq-emmc"; compatible = "mmc-pwrseq-emmc";
reset-gpios = <&pio 2 16 GPIO_ACTIVE_LOW>; reset-gpios = <&pio 2 16 GPIO_ACTIVE_LOW>;
}; };
}; };
&pio {
mmc2_pins_nrst: mmc2-rst-pin {
pins = "PC16";
function = "gpio_out";
};
};
&mmc2 { &mmc2 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mmc2_pins_a>; pinctrl-0 = <&mmc2_pins_a>;
......
...@@ -180,11 +180,6 @@ &otg_sram { ...@@ -180,11 +180,6 @@ &otg_sram {
}; };
&pio { &pio {
ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 {
pins = "PC3";
function = "gpio_out";
};
led_pins_olinuxinolime: led_pins@0 { led_pins_olinuxinolime: led_pins@0 {
pins = "PH2"; pins = "PH2";
function = "gpio_out"; function = "gpio_out";
...@@ -202,15 +197,9 @@ usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { ...@@ -202,15 +197,9 @@ usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
function = "gpio_in"; function = "gpio_in";
bias-pull-down; bias-pull-down;
}; };
usb0_vbus_pin_lime2: usb0_vbus_pin@0 {
pins = "PC17";
function = "gpio_out";
};
}; };
&reg_ahci_5v { &reg_ahci_5v {
pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>; gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
...@@ -258,7 +247,6 @@ &reg_ldo4 { ...@@ -258,7 +247,6 @@ &reg_ldo4 {
}; };
&reg_usb0_vbus { &reg_usb0_vbus {
pinctrl-0 = <&usb0_vbus_pin_lime2>;
gpio = <&pio 2 17 GPIO_ACTIVE_HIGH>; gpio = <&pio 2 17 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
......
...@@ -74,8 +74,6 @@ hdmi_con_in: endpoint { ...@@ -74,8 +74,6 @@ hdmi_con_in: endpoint {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_orangepi>;
green { green {
label = "orangepi:green:usr"; label = "orangepi:green:usr";
...@@ -90,8 +88,6 @@ blue { ...@@ -90,8 +88,6 @@ blue {
reg_gmac_3v3: gmac-3v3 { reg_gmac_3v3: gmac-3v3 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&gmac_power_pin_orangepi>;
regulator-name = "gmac-3v3"; regulator-name = "gmac-3v3";
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
...@@ -204,26 +200,6 @@ mmc3_cd_pin_orangepi: mmc3_cd_pin@0 { ...@@ -204,26 +200,6 @@ mmc3_cd_pin_orangepi: mmc3_cd_pin@0 {
function = "gpio_in"; function = "gpio_in";
bias-pull-up; bias-pull-up;
}; };
usb2_vbus_pin_bananapro: usb2_vbus_pin@0 {
pins = "PH22";
function = "gpio_out";
};
gmac_power_pin_orangepi: gmac_power_pin@0 {
pins = "PH23";
function = "gpio_out";
};
led_pins_orangepi: led_pins@0 {
pins = "PH24", "PH25";
function = "gpio_out";
};
usb1_vbus_pin_bananapro: usb1_vbus_pin@0 {
pins = "PH26";
function = "gpio_out";
};
}; };
&reg_dcdc2 { &reg_dcdc2 {
...@@ -256,13 +232,11 @@ &reg_usb0_vbus { ...@@ -256,13 +232,11 @@ &reg_usb0_vbus {
}; };
&reg_usb1_vbus { &reg_usb1_vbus {
pinctrl-0 = <&usb1_vbus_pin_bananapro>;
gpio = <&pio 7 26 GPIO_ACTIVE_HIGH>; /* PH26 */ gpio = <&pio 7 26 GPIO_ACTIVE_HIGH>; /* PH26 */
status = "okay"; status = "okay";
}; };
&reg_usb2_vbus { &reg_usb2_vbus {
pinctrl-0 = <&usb2_vbus_pin_bananapro>;
gpio = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */ gpio = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */
status = "okay"; status = "okay";
}; };
......
...@@ -63,8 +63,6 @@ chosen { ...@@ -63,8 +63,6 @@ chosen {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_orangepi>;
green { green {
label = "orangepi:green:usr"; label = "orangepi:green:usr";
...@@ -74,8 +72,6 @@ green { ...@@ -74,8 +72,6 @@ green {
reg_gmac_3v3: gmac-3v3 { reg_gmac_3v3: gmac-3v3 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&gmac_power_pin_orangepi>;
regulator-name = "gmac-3v3"; regulator-name = "gmac-3v3";
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
...@@ -155,26 +151,6 @@ mmc0_cd_pin_orangepi: mmc0_cd_pin@0 { ...@@ -155,26 +151,6 @@ mmc0_cd_pin_orangepi: mmc0_cd_pin@0 {
function = "gpio_in"; function = "gpio_in";
bias-pull-up; bias-pull-up;
}; };
usb2_vbus_pin_bananapro: usb2_vbus_pin@0 {
pins = "PH22";
function = "gpio_out";
};
gmac_power_pin_orangepi: gmac_power_pin@0 {
pins = "PH23";
function = "gpio_out";
};
led_pins_orangepi: led_pins@0 {
pins = "PH24";
function = "gpio_out";
};
usb1_vbus_pin_bananapro: usb1_vbus_pin@0 {
pins = "PH26";
function = "gpio_out";
};
}; };
&reg_dcdc2 { &reg_dcdc2 {
...@@ -207,13 +183,11 @@ &reg_usb0_vbus { ...@@ -207,13 +183,11 @@ &reg_usb0_vbus {
}; };
&reg_usb1_vbus { &reg_usb1_vbus {
pinctrl-0 = <&usb1_vbus_pin_bananapro>;
gpio = <&pio 7 26 GPIO_ACTIVE_HIGH>; /* PH26 */ gpio = <&pio 7 26 GPIO_ACTIVE_HIGH>; /* PH26 */
status = "okay"; status = "okay";
}; };
&reg_usb2_vbus { &reg_usb2_vbus {
pinctrl-0 = <&usb2_vbus_pin_bananapro>;
gpio = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */ gpio = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */
status = "okay"; status = "okay";
}; };
......
...@@ -71,8 +71,6 @@ hdmi_con_in: endpoint { ...@@ -71,8 +71,6 @@ hdmi_con_in: endpoint {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_pcduino3_nano>;
/* Marked "LED3" on the PCB. */ /* Marked "LED3" on the PCB. */
usr1 { usr1 {
...@@ -175,30 +173,14 @@ &otg_sram { ...@@ -175,30 +173,14 @@ &otg_sram {
}; };
&pio { &pio {
ahci_pwr_pin_pcduino3_nano: ahci_pwr_pin@0 {
pins = "PH2";
function = "gpio_out";
};
led_pins_pcduino3_nano: led_pins@0 {
pins = "PH16", "PH15";
function = "gpio_out";
};
usb0_id_detect_pin: usb0_id_detect_pin@0 { usb0_id_detect_pin: usb0_id_detect_pin@0 {
pins = "PH4"; pins = "PH4";
function = "gpio_in"; function = "gpio_in";
bias-pull-up; bias-pull-up;
}; };
usb1_vbus_pin_pcduino3_nano: usb1_vbus_pin@0 {
pins = "PD2";
function = "gpio_out";
};
}; };
&reg_ahci_5v { &reg_ahci_5v {
pinctrl-0 = <&ahci_pwr_pin_pcduino3_nano>;
gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */ gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
status = "okay"; status = "okay";
}; };
...@@ -232,7 +214,6 @@ &reg_ldo2 { ...@@ -232,7 +214,6 @@ &reg_ldo2 {
/* A single regulator (U24) powers both USB host ports. */ /* A single regulator (U24) powers both USB host ports. */
&reg_usb1_vbus { &reg_usb1_vbus {
pinctrl-0 = <&usb1_vbus_pin_pcduino3_nano>;
gpio = <&pio 3 2 GPIO_ACTIVE_HIGH>; /* PD2 */ gpio = <&pio 3 2 GPIO_ACTIVE_HIGH>; /* PD2 */
status = "okay"; status = "okay";
}; };
......
...@@ -63,8 +63,6 @@ chosen { ...@@ -63,8 +63,6 @@ chosen {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_pcduino3>;
tx { tx {
label = "pcduino3:green:tx"; label = "pcduino3:green:tx";
...@@ -79,8 +77,6 @@ rx { ...@@ -79,8 +77,6 @@ rx {
gpio_keys { gpio_keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&key_pins_pcduino3>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
button@0 { button@0 {
...@@ -176,16 +172,6 @@ &otg_sram { ...@@ -176,16 +172,6 @@ &otg_sram {
}; };
&pio { &pio {
led_pins_pcduino3: led_pins@0 {
pins = "PH15", "PH16";
function = "gpio_out";
};
key_pins_pcduino3: key_pins@0 {
pins = "PH17", "PH18", "PH19";
function = "gpio_in";
};
usb0_id_detect_pin: usb0_id_detect_pin@0 { usb0_id_detect_pin: usb0_id_detect_pin@0 {
pins = "PH4"; pins = "PH4";
function = "gpio_in"; function = "gpio_in";
......
...@@ -63,8 +63,6 @@ backlight { ...@@ -63,8 +63,6 @@ backlight {
pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
default-brightness-level = <8>; default-brightness-level = <8>;
pinctrl-names = "default";
pinctrl-0 = <&bl_enable_pin>;
enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
}; };
...@@ -74,8 +72,6 @@ chosen { ...@@ -74,8 +72,6 @@ chosen {
}; };
&codec { &codec {
pinctrl-names = "default";
pinctrl-0 = <&codec_pa_pin>;
allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */ allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */
status = "okay"; status = "okay";
}; };
...@@ -122,8 +118,6 @@ gt911: touchscreen@5d { ...@@ -122,8 +118,6 @@ gt911: touchscreen@5d {
reg = <0x5d>; reg = <0x5d>;
interrupt-parent = <&pio>; interrupt-parent = <&pio>;
interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>; /* EINT21 (PH21) */ interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>; /* EINT21 (PH21) */
pinctrl-names = "default";
pinctrl-0 = <&ts_reset_pin>;
irq-gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* INT (PH21) */ irq-gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* INT (PH21) */
reset-gpios = <&pio 1 13 GPIO_ACTIVE_HIGH>; /* RST (PB13) */ reset-gpios = <&pio 1 13 GPIO_ACTIVE_HIGH>; /* RST (PB13) */
touchscreen-swapped-x-y; touchscreen-swapped-x-y;
...@@ -171,21 +165,6 @@ &otg_sram { ...@@ -171,21 +165,6 @@ &otg_sram {
}; };
&pio { &pio {
bl_enable_pin: bl_enable_pin@0 {
pins = "PH7";
function = "gpio_out";
};
codec_pa_pin: codec_pa_pin@0 {
pins = "PH15";
function = "gpio_out";
};
ts_reset_pin: ts_reset_pin@0 {
pins = "PB13";
function = "gpio_out";
};
usb0_id_detect_pin: usb0_id_detect_pin@0 { usb0_id_detect_pin: usb0_id_detect_pin@0 {
pins = "PH4"; pins = "PH4";
function = "gpio_in"; function = "gpio_in";
......
...@@ -62,8 +62,6 @@ chosen { ...@@ -62,8 +62,6 @@ chosen {
mmc3_pwrseq: mmc3_pwrseq { mmc3_pwrseq: mmc3_pwrseq {
compatible = "mmc-pwrseq-simple"; compatible = "mmc-pwrseq-simple";
pinctrl-names = "default";
pinctrl-0 = <&vmmc3_pin_ap6xxx_wl_regon>;
reset-gpios = <&pio 7 9 GPIO_ACTIVE_LOW>; /* PH9 WIFI_EN */ reset-gpios = <&pio 7 9 GPIO_ACTIVE_LOW>; /* PH9 WIFI_EN */
}; };
}; };
...@@ -158,11 +156,6 @@ &otg_sram { ...@@ -158,11 +156,6 @@ &otg_sram {
}; };
&pio { &pio {
vmmc3_pin_ap6xxx_wl_regon: vmmc3_pin@0 {
pins = "PH9";
function = "gpio_out";
};
usb0_id_detect_pin: usb0_id_detect_pin@0 { usb0_id_detect_pin: usb0_id_detect_pin@0 {
pins = "PH4"; pins = "PH4";
function = "gpio_in"; function = "gpio_in";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment