Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75539f68 authored by Maxime Ripard's avatar Maxime Ripard
Browse files

ARM: dts: sun4i: 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.

Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 124d19dc
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -62,8 +62,6 @@

	leds {
		compatible = "gpio-leds";
		pinctrl-names = "default";
		pinctrl-0 = <&led_pins_a1000>;

		red {
			label = "a1000:red:usr";
@@ -79,8 +77,6 @@

	reg_emac_3v3: emac-3v3 {
		compatible = "regulator-fixed";
		pinctrl-names = "default";
		pinctrl-0 = <&emac_power_pin_a1000>;
		regulator-name = "emac-3v3";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
@@ -187,18 +183,6 @@
	status = "okay";
};

&pio {
	emac_power_pin_a1000: emac_power_pin@0 {
		pins = "PH15";
		function = "gpio_out";
	};

	led_pins_a1000: led_pins@0 {
		pins = "PH10", "PH20";
		function = "gpio_out";
	};
};

#include "axp209.dtsi"

&reg_dcdc2 {
+0 −6
Original line number Diff line number Diff line
@@ -125,12 +125,6 @@
	status = "okay";
};

&pio {
	usb2_vbus_pin_a: usb2_vbus_pin@0 {
		pins = "PH12";
	};
};

&reg_usb0_vbus {
	regulator-boot-on;
	status = "okay";
+0 −28
Original line number Diff line number Diff line
@@ -58,8 +58,6 @@

	backlight: backlight {
		compatible = "pwm-backlight";
		pinctrl-names = "default";
		pinctrl-0 = <&bl_en_pin_dsrv9703c>;
		pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
		brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
		default-brightness-level = <8>;
@@ -79,8 +77,6 @@

	reg_motor: reg_motor {
		compatible = "regulator-fixed";
		pinctrl-names = "default";
		pinctrl-0 = <&motor_pins>;
		regulator-name = "vcc-motor";
		regulator-min-microvolt = <3000000>;
		regulator-max-microvolt = <3000000>;
@@ -90,8 +86,6 @@
};

&codec {
	pinctrl-names = "default";
	pinctrl-0 = <&codec_pa_pin>;
	allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */
	status = "okay";
};
@@ -134,8 +128,6 @@
		reg = <0x38>;
		interrupt-parent = <&pio>;
		interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>;
		pinctrl-names = "default";
		pinctrl-0 = <&touchscreen_pins>;
		reset-gpios = <&pio 1 13 GPIO_ACTIVE_LOW>;
		touchscreen-size-x = <1024>;
		touchscreen-size-y = <768>;
@@ -176,26 +168,6 @@
};

&pio {
	bl_en_pin_dsrv9703c: bl_en_pin@0 {
		pins = "PH7";
		function = "gpio_out";
	};

	codec_pa_pin: codec_pa_pin@0 {
		pins = "PH15";
		function = "gpio_out";
	};

	motor_pins: motor_pins@0 {
		pins = "PB3";
		function = "gpio_out";
	};

	touchscreen_pins: touchscreen_pins@0 {
		pins = "PB13";
		function = "gpio_out";
	};

	usb0_id_detect_pin: usb0_id_detect_pin@0 {
		pins = "PH4";
		function = "gpio_in";
+0 −9
Original line number Diff line number Diff line
@@ -72,8 +72,6 @@
 */
&codec {
	/* PH15 controls power to external amplifier (ft2012q) */
	pinctrl-names = "default";
	pinctrl-0 = <&codec_pa_pin>;
	allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>;
	status = "okay";
};
@@ -154,13 +152,6 @@
	status = "okay";
};

&pio {
	codec_pa_pin: codec_pa_pin@0 {
		pins = "PH15";
		function = "gpio_out";
	};
};

&reg_dcdc2 {
	regulator-always-on;
	regulator-min-microvolt = <1000000>;
+0 −16
Original line number Diff line number Diff line
@@ -123,27 +123,11 @@
	status = "okay";
};

&pio {
	pinctrl-names = "default";
	pinctrl-0 = <&hackberry_hogs>;

	hackberry_hogs: hogs@0 {
		pins = "PH19";
		function = "gpio_out";
	};

	usb2_vbus_pin_hackberry: usb2_vbus_pin@0 {
		pins = "PH12";
		function = "gpio_out";
	};
};

&reg_usb1_vbus {
	status = "okay";
};

&reg_usb2_vbus {
	pinctrl-0 = <&usb2_vbus_pin_hackberry>;
	gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>;
	status = "okay";
};
Loading