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


Groups > linux.kernel > #1743170

[PATCH v3 12/12] ARM: dtsi: axp81x: set pinmux for GPIO0/1 when used as LDOs

From Quentin Schulz <quentin.schulz@free-electrons.com>
Newsgroups linux.kernel
Subject [PATCH v3 12/12] ARM: dtsi: axp81x: set pinmux for GPIO0/1 when used as LDOs
Date 2017-10-02 14:20 +0200
Message-ID <uw7Rx-7b4-45@gated-at.bofh.it> (permalink)
References <uw7Rv-7b4-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On AXP813/818, GPIO0 and GPIO1 can be used as LDO as (respectively)
ldo_io0 and ldo_io1.

Let's add the pinctrl properties to the said regulators.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
---
 arch/arm/boot/dts/axp81x.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi
index f90f257130d5..099b0ddc1bbb 100644
--- a/arch/arm/boot/dts/axp81x.dtsi
+++ b/arch/arm/boot/dts/axp81x.dtsi
@@ -52,6 +52,16 @@
 		compatible = "x-powers,axp813-gpio";
 		gpio-controller;
 		#gpio-cells = <2>;
+
+		gpio0_ldo: gpio0_ldo {
+			pins = "GPIO0";
+			function = "ldo";
+		};
+
+		gpio1_ldo: gpio1_ldo {
+			pins = "GPIO1";
+			function = "ldo";
+		};
 	};
 
 	regulators {
@@ -119,11 +129,15 @@
 		};
 
 		reg_ldo_io0: ldo-io0 {
+			pinctrl-names = "default";
+			pinctrl-0 = <&gpio0_ldo>;
 			/* Disable by default to avoid conflicts with GPIO */
 			status = "disabled";
 		};
 
 		reg_ldo_io1: ldo-io1 {
+			pinctrl-names = "default";
+			pinctrl-0 = <&gpio1_ldo>;
 			/* Disable by default to avoid conflicts with GPIO */
 			status = "disabled";
 		};
-- 
2.11.0

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v3 00/12] add pinmuxing support for pins in AXP209 and AXP813 PMICs Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-10-02 14:20 +0200
  [PATCH v3 03/12] pinctrl: axp209: rename everything from gpio to pctl Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-10-02 14:20 +0200
  [PATCH v3 04/12] pinctrl: axp209: add programmable gpio_status_offset Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-10-02 14:20 +0200
  [PATCH v3 05/12] pinctrl: axp209: add support for AXP813 GPIOs Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-10-02 14:20 +0200
  [PATCH v3 01/12] pinctrl: move gpio-axp209 to pinctrl Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-10-02 14:20 +0200
  [PATCH v3 11/12] ARM: dtsi: axp81x: add GPIO DT node Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-10-02 14:20 +0200
  [PATCH v3 06/12] mfd: axp20x: add pinctrl cell for AXP813 Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-10-02 14:20 +0200
  [PATCH v3 07/12] ARM: dts: sun8i: a711: include axp81x dtsi Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-10-02 14:20 +0200
  [PATCH v3 08/12] ARM: dts: sun8i: bananapi-m3: include axp81x dtsi Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-10-02 14:20 +0200
  [PATCH v3 12/12] ARM: dtsi: axp81x: set pinmux for GPIO0/1 when used as LDOs Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-10-02 14:20 +0200

csiph-web