Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1412849 > unrolled thread

[PATCH v3 0/2] ARM: dts: sun9i: drop sunxi-common-regulators.dtsi

Started byChen-Yu Tsai <wens@csie.org>
First post2016-06-03 09:00 +0200
Last post2016-06-07 23:00 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v3 0/2] ARM: dts: sun9i: drop sunxi-common-regulators.dtsi Chen-Yu Tsai <wens@csie.org> - 2016-06-03 09:00 +0200
    [PATCH v3 1/2] ARM: dts: sun9i: a80-optimus: Drop sunxi-common-regulators.dtsi Chen-Yu Tsai <wens@csie.org> - 2016-06-03 09:00 +0200
    Re: [PATCH v3 0/2] ARM: dts: sun9i: drop sunxi-common-regulators.dtsi Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-06-07 23:00 +0200

#1412849 — [PATCH v3 0/2] ARM: dts: sun9i: drop sunxi-common-regulators.dtsi

FromChen-Yu Tsai <wens@csie.org>
Date2016-06-03 09:00 +0200
Subject[PATCH v3 0/2] ARM: dts: sun9i: drop sunxi-common-regulators.dtsi
Message-ID<rFRfj-8ef-5@gated-at.bofh.it>
Hi Maxime,

These are the remaining 2 patches from the AXP809 series.

Changes since v2:

  - Drop sunxi-common-regulators.dtsi instead of disabling dummy regulators.


Regards
ChenYu

Chen-Yu Tsai (2):
  ARM: dts: sun9i: a80-optimus: Drop sunxi-common-regulators.dtsi
  ARM: dts: sun9i: cubieboard4: Drop sunxi-common-regulators.dtsi

 arch/arm/boot/dts/sun9i-a80-cubieboard4.dts |  1 -
 arch/arm/boot/dts/sun9i-a80-optimus.dts     | 18 +++++++++++-------
 2 files changed, 11 insertions(+), 8 deletions(-)

-- 
2.8.1

[toc] | [next] | [standalone]


#1412850 — [PATCH v3 1/2] ARM: dts: sun9i: a80-optimus: Drop sunxi-common-regulators.dtsi

FromChen-Yu Tsai <wens@csie.org>
Date2016-06-03 09:00 +0200
Subject[PATCH v3 1/2] ARM: dts: sun9i: a80-optimus: Drop sunxi-common-regulators.dtsi
Message-ID<rFRfj-8ef-9@gated-at.bofh.it>
In reply to#1412849
sunxi-common-regulators.dtsi provided dummy regulators vcc3v0, vcc3v3,
vcc5v0. 3.0V/3.3V and 5.0V are commonly used voltages in Allwinner
devices. These dummy regulators provide a stand-in when bindings that
require one, but the real regulator is not supported yet.

Since these are no longer needed, we can drop the include file by
copying over reg_usb1_vbus.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
 arch/arm/boot/dts/sun9i-a80-optimus.dts | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/arch/arm/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun9i-a80-optimus.dts
index 6cfc02194035..78fddd9152a5 100644
--- a/arch/arm/boot/dts/sun9i-a80-optimus.dts
+++ b/arch/arm/boot/dts/sun9i-a80-optimus.dts
@@ -44,7 +44,6 @@
 
 /dts-v1/;
 #include "sun9i-a80.dtsi"
-#include "sunxi-common-regulators.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/pinctrl/sun4i-a10.h>
@@ -85,6 +84,17 @@
 		};
 	};
 
+	reg_usb1_vbus: usb1-vbus {
+		compatible = "regulator-fixed";
+		pinctrl-names = "default";
+		pinctrl-0 = <&usb1_vbus_pin_optimus>;
+		regulator-name = "usb1-vbus";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		enable-active-high;
+		gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
+	};
+
 	reg_usb3_vbus: usb3-vbus {
 		compatible = "regulator-fixed";
 		pinctrl-names = "default";
@@ -172,12 +182,6 @@
 	allwinner,drive = <SUN4I_PINCTRL_40_MA>;
 };
 
-&reg_usb1_vbus {
-	pinctrl-0 = <&usb1_vbus_pin_optimus>;
-	gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
-	status = "okay";
-};
-
 &r_ir {
 	status = "okay";
 };
-- 
2.8.1

[toc] | [prev] | [next] | [standalone]


#1416630

FromMaxime Ripard <maxime.ripard@free-electrons.com>
Date2016-06-07 23:00 +0200
Message-ID<rHwgq-7sM-9@gated-at.bofh.it>
In reply to#1412849

[Multipart message — attachments visible in raw view] — view raw

On Fri, Jun 03, 2016 at 02:50:49PM +0800, Chen-Yu Tsai wrote:
> Hi Maxime,
> 
> These are the remaining 2 patches from the AXP809 series.
> 
> Changes since v2:
> 
>   - Drop sunxi-common-regulators.dtsi instead of disabling dummy regulators.

Applied both, thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web