* [PATCH 0/3] Pinctrl support for msm8660
@ 2015-06-05 22:52 Bjorn Andersson
2015-06-05 22:52 ` [PATCH 2/3] pinctrl: dt-binding: Add DT binding documentation for MSM8660 Bjorn Andersson
2015-06-10 8:22 ` [PATCH 0/3] Pinctrl support for msm8660 Linus Walleij
0 siblings, 2 replies; 4+ messages in thread
From: Bjorn Andersson @ 2015-06-05 22:52 UTC (permalink / raw
To: Linus Walleij, Andy Gross
Cc: Ian Campbell, Kumar Gala, Mark Rutland, Pawel Moll, Rob Herring,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-arm-msm-u79uwXL29TY76Z2rM5mHXA,
linux-gpio-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
Per your request Linus, happy birthday!
Regards,
Bjorn
Bjorn Andersson (3):
pinctrl: qcom: Add MSM8660 pinctrl definitions
pinctrl: dt-binding: Add DT binding documentation for MSM8660
ARM: dts: qcom: Replace gpio node with pinctrl node
.../bindings/pinctrl/qcom,msm8660-pinctrl.txt | 90 ++
arch/arm/boot/dts/qcom-msm8660.dtsi | 11 +-
drivers/pinctrl/qcom/Kconfig | 8 +
drivers/pinctrl/qcom/Makefile | 1 +
drivers/pinctrl/qcom/pinctrl-msm8660.c | 984 +++++++++++++++++++++
5 files changed, 1089 insertions(+), 5 deletions(-)
create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,msm8660-pinctrl.txt
create mode 100644 drivers/pinctrl/qcom/pinctrl-msm8660.c
--
1.8.2.2
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/3] pinctrl: dt-binding: Add DT binding documentation for MSM8660
2015-06-05 22:52 [PATCH 0/3] Pinctrl support for msm8660 Bjorn Andersson
@ 2015-06-05 22:52 ` Bjorn Andersson
2015-06-10 8:21 ` Linus Walleij
2015-06-10 8:22 ` [PATCH 0/3] Pinctrl support for msm8660 Linus Walleij
1 sibling, 1 reply; 4+ messages in thread
From: Bjorn Andersson @ 2015-06-05 22:52 UTC (permalink / raw
To: Linus Walleij
Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
Andy Gross, linux-arm-msm, devicetree, linux-kernel
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
---
.../bindings/pinctrl/qcom,msm8660-pinctrl.txt | 90 ++++++++++++++++++++++
1 file changed, 90 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,msm8660-pinctrl.txt
diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,msm8660-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/qcom,msm8660-pinctrl.txt
new file mode 100644
index 000000000000..77aa11790163
--- /dev/null
+++ b/Documentation/devicetree/bindings/pinctrl/qcom,msm8660-pinctrl.txt
@@ -0,0 +1,90 @@
+Qualcomm MSM8660 TLMM block
+
+Required properties:
+- compatible: "qcom,msm8660-pinctrl"
+- reg: Should be the base address and length of the TLMM block.
+- interrupts: Should be the parent IRQ of the TLMM block.
+- interrupt-controller: Marks the device node as an interrupt controller.
+- #interrupt-cells: Should be two.
+- gpio-controller: Marks the device node as a GPIO controller.
+- #gpio-cells : Should be two.
+ The first cell is the gpio pin number and the
+ second cell is used for optional parameters.
+
+Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
+a general description of GPIO and interrupt bindings.
+
+Please refer to pinctrl-bindings.txt in this directory for details of the
+common pinctrl bindings used by client devices, including the meaning of the
+phrase "pin configuration node".
+
+Qualcomm's pin configuration nodes act as a container for an arbitrary number of
+subnodes. Each of these subnodes represents some desired configuration for a
+pin, a group, or a list of pins or groups. This configuration can include the
+mux function to select on those pin(s)/group(s), and various pin configuration
+parameters, such as pull-up, drive strength, etc.
+
+The name of each subnode is not important; all subnodes should be enumerated
+and processed purely based on their content.
+
+Each subnode only affects those parameters that are explicitly listed. In
+other words, a subnode that lists a mux function but no pin configuration
+parameters implies no information about any pin configuration parameters.
+Similarly, a pin subnode that describes a pullup parameter implies no
+information about e.g. the mux function.
+
+
+The following generic properties as defined in pinctrl-bindings.txt are valid
+to specify in a pin configuration subnode:
+
+ pins, function, bias-disable, bias-pull-down, bias-pull,up, drive-strength,
+ output-low, output-high.
+
+Non-empty subnodes must specify the 'pins' property.
+
+Valid values for pins are:
+ gpio0-gpio172, sdc3_clk, sdc3_cmd, sdc3_data sdc4_clk, sdc4_cmd, sdc4_data
+
+Valid values for function are:
+ gpio, cam_mclk, dsub, ext_gps, gp_clk_0a, gp_clk_0b, gp_clk_1a, gp_clk_1b,
+ gp_clk_2a, gp_clk_2b, gp_mn, gsbi1, gsbi1_spi_cs1_n, gsbi1_spi_cs2a_n,
+ gsbi1_spi_cs2b_n, gsbi1_spi_cs3_n, gsbi2, gsbi2_spi_cs1_n, gsbi2_spi_cs2_n,
+ gsbi2_spi_cs3_n, gsbi3, gsbi3_spi_cs1_n, gsbi3_spi_cs2_n, gsbi3_spi_cs3_n,
+ gsbi4, gsbi5, gsbi6, gsbi7, gsbi8, gsbi9, gsbi10, gsbi11, gsbi12, hdmi, i2s,
+ lcdc, mdp_vsync, mi2s, pcm, ps_hold, sdc1, sdc2, sdc5, tsif1, tsif2, usb_fs1,
+ usb_fs1_oe_n, usb_fs2, usb_fs2_oe_n, vfe, vsens_alarm,
+
+Example:
+
+ msmgpio: pinctrl@800000 {
+ compatible = "qcom,msm8660-pinctrl";
+ reg = <0x800000 0x4000>;
+
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ interrupts = <0 16 0x4>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&gsbi12_uart>;
+
+ gsbi12_uart: gsbi12-uart {
+ mux {
+ pins = "gpio117", "gpio118";
+ function = "gsbi12";
+ };
+
+ tx {
+ pins = "gpio118";
+ drive-strength = <8>;
+ bias-disable;
+ };
+
+ rx {
+ pins = "gpio117";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+ };
+ };
--
1.8.2.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/3] pinctrl: dt-binding: Add DT binding documentation for MSM8660
2015-06-05 22:52 ` [PATCH 2/3] pinctrl: dt-binding: Add DT binding documentation for MSM8660 Bjorn Andersson
@ 2015-06-10 8:21 ` Linus Walleij
0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2015-06-10 8:21 UTC (permalink / raw
To: Bjorn Andersson
Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
Andy Gross, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
On Sat, Jun 6, 2015 at 12:52 AM, Bjorn Andersson
<bjorn.andersson@sonymobile.com> wrote:
> Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Patch applied!
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/3] Pinctrl support for msm8660
2015-06-05 22:52 [PATCH 0/3] Pinctrl support for msm8660 Bjorn Andersson
2015-06-05 22:52 ` [PATCH 2/3] pinctrl: dt-binding: Add DT binding documentation for MSM8660 Bjorn Andersson
@ 2015-06-10 8:22 ` Linus Walleij
1 sibling, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2015-06-10 8:22 UTC (permalink / raw
To: Bjorn Andersson
Cc: Andy Gross, Ian Campbell, Kumar Gala, Mark Rutland, Pawel Moll,
Rob Herring, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org,
linux-kernel@vger.kernel.org
On Sat, Jun 6, 2015 at 12:52 AM, Bjorn Andersson
<bjorn.andersson@sonymobile.com> wrote:
> Per your request Linus, happy birthday!
Awwww opening this present 4 days late it still makes my day like
it was my birthday again!
Will boot my Dragon with these patches on, prompto!
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-10 8:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-05 22:52 [PATCH 0/3] Pinctrl support for msm8660 Bjorn Andersson
2015-06-05 22:52 ` [PATCH 2/3] pinctrl: dt-binding: Add DT binding documentation for MSM8660 Bjorn Andersson
2015-06-10 8:21 ` Linus Walleij
2015-06-10 8:22 ` [PATCH 0/3] Pinctrl support for msm8660 Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).