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


Groups > linux.kernel > #1531438 > unrolled thread

[PATCH v2 0/3] TI DA850/OMAP-L138/AM18x pinconf

Started byDavid Lechner <david@lechnology.com>
First post2016-11-28 17:50 +0100
Last post2016-11-30 14:00 +0100
Articles 6 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 0/3] TI DA850/OMAP-L138/AM18x pinconf David Lechner <david@lechnology.com> - 2016-11-28 17:50 +0100
    [PATCH v2 3/3] ARM: dts: da850: Add node for pullup/pulldown pinconf David Lechner <david@lechnology.com> - 2016-11-28 17:50 +0100
      Re: [PATCH v2 3/3] ARM: dts: da850: Add node for pullup/pulldown pinconf Linus Walleij <linus.walleij@linaro.org> - 2016-11-30 14:10 +0100
        Re: [PATCH v2 3/3] ARM: dts: da850: Add node for pullup/pulldown  pinconf Sekhar Nori <nsekhar@ti.com> - 2016-12-01 15:10 +0100
    [PATCH v2 1/3] devicetree: bindings: pinctrl: Add binding for ti,da850-pupd David Lechner <david@lechnology.com> - 2016-11-28 17:50 +0100
      Re: [PATCH v2 1/3] devicetree: bindings: pinctrl: Add binding for ti,da850-pupd Linus Walleij <linus.walleij@linaro.org> - 2016-11-30 14:00 +0100

#1531438 — [PATCH v2 0/3] TI DA850/OMAP-L138/AM18x pinconf

FromDavid Lechner <david@lechnology.com>
Date2016-11-28 17:50 +0100
Subject[PATCH v2 0/3] TI DA850/OMAP-L138/AM18x pinconf
Message-ID<sIxhT-4uD-5@gated-at.bofh.it>
This series adds a new driver and DT bindings for TI DA850/OMAP-L138/AM18x
pinconf (bias pullup/pulldown).

The motivation for this series is LEGO MINDSTORMS EV3 support. It needs most,
if not all, internal pullup/down resistors disabled in order to work correctly.

v2 changes:
* s/DA8XX/DA850/ in the commit messages
* Fix `get_get` typo in pinctrl-da850-pupd.c
* Moved pin-controller@22c00c device node in da850.dtsi

David Lechner (3):
  devicetree: bindings: pinctrl: Add binding for ti,da850-pupd
  pinctrl: New driver for TI DA850/OMAP-L138/AM18XX pinconf
  ARM: dts: da850: Add node for pullup/pulldown pinconf

 .../devicetree/bindings/pinctrl/ti,da850-pupd.txt  |  55 ++++++
 arch/arm/boot/dts/da850.dtsi                       |   5 +
 drivers/pinctrl/Kconfig                            |   9 +
 drivers/pinctrl/Makefile                           |   1 +
 drivers/pinctrl/pinctrl-da850-pupd.c               | 210 +++++++++++++++++++++
 5 files changed, 280 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/ti,da850-pupd.txt
 create mode 100644 drivers/pinctrl/pinctrl-da850-pupd.c

-- 
2.7.4

[toc] | [next] | [standalone]


#1531439 — [PATCH v2 3/3] ARM: dts: da850: Add node for pullup/pulldown pinconf

FromDavid Lechner <david@lechnology.com>
Date2016-11-28 17:50 +0100
Subject[PATCH v2 3/3] ARM: dts: da850: Add node for pullup/pulldown pinconf
Message-ID<sIxhU-4uD-11@gated-at.bofh.it>
In reply to#1531438
This SoC has a separate pin controller for configuring pullup/pulldown
bias on groups of pins.

Signed-off-by: David Lechner <david@lechnology.com>
---

v2 changes:
* Moved pin-controller@22c00c device node after gpio@226000 (there seem to be
  more nodes in proper order here compared to the i2c@228000 node suggested by
  Sekhar)

 arch/arm/boot/dts/da850.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi
index 8945815..7a8d38e 100644
--- a/arch/arm/boot/dts/da850.dtsi
+++ b/arch/arm/boot/dts/da850.dtsi
@@ -442,6 +442,11 @@
 			ti,davinci-gpio-unbanked = <0>;
 			status = "disabled";
 		};
+		pinconf: pin-controller@22c00c {
+			compatible = "ti,da850-pupd";
+			reg = <0x22c00c 0x8>;
+			status = "disabled";
+		};
 
 		mcasp0: mcasp@100000 {
 			compatible = "ti,da830-mcasp-audio";
-- 
2.7.4

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


#1533280 — Re: [PATCH v2 3/3] ARM: dts: da850: Add node for pullup/pulldown pinconf

FromLinus Walleij <linus.walleij@linaro.org>
Date2016-11-30 14:10 +0100
SubjectRe: [PATCH v2 3/3] ARM: dts: da850: Add node for pullup/pulldown pinconf
Message-ID<sJcO5-6wi-1@gated-at.bofh.it>
In reply to#1531439
On Mon, Nov 28, 2016 at 5:40 PM, David Lechner <david@lechnology.com> wrote:

> This SoC has a separate pin controller for configuring pullup/pulldown
> bias on groups of pins.
>
> Signed-off-by: David Lechner <david@lechnology.com>
> ---
>
> v2 changes:
> * Moved pin-controller@22c00c device node after gpio@226000 (there seem to be
>   more nodes in proper order here compared to the i2c@228000 node suggested by
>   Sekhar)

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Take this through the ARM SoC tree.

Yours,
Linus Walleij

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


#1534125 — Re: [PATCH v2 3/3] ARM: dts: da850: Add node for pullup/pulldown pinconf

FromSekhar Nori <nsekhar@ti.com>
Date2016-12-01 15:10 +0100
SubjectRe: [PATCH v2 3/3] ARM: dts: da850: Add node for pullup/pulldown pinconf
Message-ID<sJAdI-4Rh-21@gated-at.bofh.it>
In reply to#1533280
On Wednesday 30 November 2016 06:31 PM, Linus Walleij wrote:
> On Mon, Nov 28, 2016 at 5:40 PM, David Lechner <david@lechnology.com> wrote:
> 
>> This SoC has a separate pin controller for configuring pullup/pulldown
>> bias on groups of pins.
>>
>> Signed-off-by: David Lechner <david@lechnology.com>
>> ---
>>
>> v2 changes:
>> * Moved pin-controller@22c00c device node after gpio@226000 (there seem to be
>>   more nodes in proper order here compared to the i2c@228000 node suggested by
>>   Sekhar)
> 
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
> 
> Take this through the ARM SoC tree.

Thanks Linus! Applied to v4.10/dt

Thanks,
Sekhar

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


#1531440 — [PATCH v2 1/3] devicetree: bindings: pinctrl: Add binding for ti,da850-pupd

FromDavid Lechner <david@lechnology.com>
Date2016-11-28 17:50 +0100
Subject[PATCH v2 1/3] devicetree: bindings: pinctrl: Add binding for ti,da850-pupd
Message-ID<sIxhU-4uD-23@gated-at.bofh.it>
In reply to#1531438
Device-tree bindings for TI DA850/OMAP-L138/AM18XX pullup/pulldown
pinconf controller.

Signed-off-by: David Lechner <david@lechnology.com>
Reviewed-by: Sekhar Nori <nsekhar@ti.com>
---

v2 changes:
* s/DA8XX/DA850/ in the commit message

 .../devicetree/bindings/pinctrl/ti,da850-pupd.txt  | 55 ++++++++++++++++++++++
 1 file changed, 55 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/ti,da850-pupd.txt

diff --git a/Documentation/devicetree/bindings/pinctrl/ti,da850-pupd.txt b/Documentation/devicetree/bindings/pinctrl/ti,da850-pupd.txt
new file mode 100644
index 0000000..7f29805
--- /dev/null
+++ b/Documentation/devicetree/bindings/pinctrl/ti,da850-pupd.txt
@@ -0,0 +1,55 @@
+* Pin configuration for TI DA850/OMAP-L138/AM18x
+
+These SoCs have a separate controller for setting bias (internal pullup/down).
+Bias can only be selected for groups rather than individual pins.
+
+Required Properties:
+
+  - compatible: Must be "ti,da850-pupd"
+  - reg: Base address and length of the memory resource used by the pullup/down
+    controller hardware module.
+
+The controller node also acts as a container for pin group configuration nodes.
+The names of these groups are ignored.
+
+Pin Group Node Properties:
+
+- groups: An array of strings, each string containing the name of a pin group.
+          Valid names are "cp0".."cp31".
+
+The pin configuration parameters use the generic pinconf bindings defined in
+pinctrl-bindings.txt in this directory. The supported parameters are
+bias-disable, bias-pull-up, bias-pull-down.
+
+
+Example
+-------
+
+In common dtsi file:
+
+	pinconf: pin-controller@22c00c {
+		compatible = "ti,da850-pupd";
+		reg = <0x22c00c 0x8>;
+	};
+
+In board-specific file:
+
+	&pinconf {
+		pinctrl-0 = <&pinconf_bias_groups>;
+		pinctrl-names = "default";
+
+		pinconf_bias_groups: bias-groups {
+			pull-up {
+				groups = "cp30", "cp31";
+				bias-pull-up;
+			};
+			pull-down {
+				groups = "cp29", "cp28";
+				bias-pull-down;
+			};
+			disable {
+				groups = "cp27", "cp26";
+				bias-disable;
+			};
+		};
+	};
-- 
2.7.4

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


#1533278 — Re: [PATCH v2 1/3] devicetree: bindings: pinctrl: Add binding for ti,da850-pupd

FromLinus Walleij <linus.walleij@linaro.org>
Date2016-11-30 14:00 +0100
SubjectRe: [PATCH v2 1/3] devicetree: bindings: pinctrl: Add binding for ti,da850-pupd
Message-ID<sJcEp-6e9-9@gated-at.bofh.it>
In reply to#1531440
On Mon, Nov 28, 2016 at 5:40 PM, David Lechner <david@lechnology.com> wrote:

> Device-tree bindings for TI DA850/OMAP-L138/AM18XX pullup/pulldown
> pinconf controller.
>
> Signed-off-by: David Lechner <david@lechnology.com>
> Reviewed-by: Sekhar Nori <nsekhar@ti.com>

Totally uncontroversial standard bindings so patch applied.

Yours,
Linus Walleij

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web