All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sourav Poddar <sourav.poddar@ti.com>
To: zbr@ioremap.net, tony@atomide.com,
	michael.opdenacker@free-electrons.com, wsa@the-dreams.de,
	paul@pwsan.com, bcousson@baylibre.com
Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	nsekhar@ti.com, balbi@ti.com,
	Sourav Poddar <sourav.poddar@ti.com>
Subject: [PATCHv2 4/5] arm: dts: am4372: Add hdq device tree data.
Date: Thu, 8 May 2014 11:30:07 +0530	[thread overview]
Message-ID: <1399528808-6920-5-git-send-email-sourav.poddar@ti.com> (raw)
In-Reply-To: <1399528808-6920-1-git-send-email-sourav.poddar@ti.com>

Add device tree nodes and pinmux for hdq/1wire on
am43x epos evm.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
---
 arch/arm/boot/dts/am4372.dtsi        |   10 ++++++++++
 arch/arm/boot/dts/am43x-epos-evm.dts |   12 ++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
index 36d523a..5f7c167 100644
--- a/arch/arm/boot/dts/am4372.dtsi
+++ b/arch/arm/boot/dts/am4372.dtsi
@@ -735,6 +735,16 @@
 			#size-cells = <1>;
 			status = "disabled";
 		};
+
+		hdq: hdq@48347000 {
+			compatible = "ti,am43xx-hdq";
+			reg = <0x48347000 0x1000>;
+			interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&func_12m_clk>;
+			clock-names = "fck";
+			ti,hwmods = "hdq1w";
+			status = "disabled";
+		};
 	};
 };
 
diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts
index 167dbc8..e71ef1c 100644
--- a/arch/arm/boot/dts/am43x-epos-evm.dts
+++ b/arch/arm/boot/dts/am43x-epos-evm.dts
@@ -138,6 +138,12 @@
 				0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
 			>;
 		};
+
+		hdq_pins: pinmux_hdq_pins {
+			pinctrl-single,pins = <
+				0x234 (PIN_INPUT_PULLUP | MUX_MODE1)    /* cam1_wen.hdq_gpio */
+			>;
+		};
 	};
 
 	matrix_keypad: matrix_keypad@0 {
@@ -367,3 +373,9 @@
 	pinctrl-0 = <&spi1_pins>;
 	status = "okay";
 };
+
+&hdq {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&hdq_pins>;
+};
-- 
1.7.9.5


WARNING: multiple messages have this Message-ID (diff)
From: sourav.poddar@ti.com (Sourav Poddar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2 4/5] arm: dts: am4372: Add hdq device tree data.
Date: Thu, 8 May 2014 11:30:07 +0530	[thread overview]
Message-ID: <1399528808-6920-5-git-send-email-sourav.poddar@ti.com> (raw)
In-Reply-To: <1399528808-6920-1-git-send-email-sourav.poddar@ti.com>

Add device tree nodes and pinmux for hdq/1wire on
am43x epos evm.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
---
 arch/arm/boot/dts/am4372.dtsi        |   10 ++++++++++
 arch/arm/boot/dts/am43x-epos-evm.dts |   12 ++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
index 36d523a..5f7c167 100644
--- a/arch/arm/boot/dts/am4372.dtsi
+++ b/arch/arm/boot/dts/am4372.dtsi
@@ -735,6 +735,16 @@
 			#size-cells = <1>;
 			status = "disabled";
 		};
+
+		hdq: hdq at 48347000 {
+			compatible = "ti,am43xx-hdq";
+			reg = <0x48347000 0x1000>;
+			interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&func_12m_clk>;
+			clock-names = "fck";
+			ti,hwmods = "hdq1w";
+			status = "disabled";
+		};
 	};
 };
 
diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts
index 167dbc8..e71ef1c 100644
--- a/arch/arm/boot/dts/am43x-epos-evm.dts
+++ b/arch/arm/boot/dts/am43x-epos-evm.dts
@@ -138,6 +138,12 @@
 				0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
 			>;
 		};
+
+		hdq_pins: pinmux_hdq_pins {
+			pinctrl-single,pins = <
+				0x234 (PIN_INPUT_PULLUP | MUX_MODE1)    /* cam1_wen.hdq_gpio */
+			>;
+		};
 	};
 
 	matrix_keypad: matrix_keypad at 0 {
@@ -367,3 +373,9 @@
 	pinctrl-0 = <&spi1_pins>;
 	status = "okay";
 };
+
+&hdq {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&hdq_pins>;
+};
-- 
1.7.9.5

  parent reply	other threads:[~2014-05-08  6:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-08  6:00 [PATCHv2 0/5] AM437x: HDQ/1wire protocol Sourav Poddar
2014-05-08  6:00 ` Sourav Poddar
2014-05-08  6:00 ` [PATCHv2 1/5] drivers: w1: omap_hdq: cleanup and bug fixes Sourav Poddar
2014-05-08  6:00   ` Sourav Poddar
2014-05-08  6:00 ` [PATCHv2 2/5] w1: omap_hdq: Add compatible property for omap hdq driver Sourav Poddar
2014-05-08  6:00   ` Sourav Poddar
2014-05-08  6:00 ` [PATCHv2 3/5] arm: omap2: skip device build from platform code for dt Sourav Poddar
2014-05-08  6:00   ` Sourav Poddar
2014-05-14 21:43   ` Tony Lindgren
2014-05-14 21:43     ` Tony Lindgren
2014-05-08  6:00 ` Sourav Poddar [this message]
2014-05-08  6:00   ` [PATCHv2 4/5] arm: dts: am4372: Add hdq device tree data Sourav Poddar
2014-05-14 21:43   ` Tony Lindgren
2014-05-14 21:43     ` Tony Lindgren
2014-05-08  6:00 ` [PATCHv2 5/5] arm: hwmod: am437x: Add hwmod data for hdq1w Sourav Poddar
2014-05-08  6:00   ` Sourav Poddar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1399528808-6920-5-git-send-email-sourav.poddar@ti.com \
    --to=sourav.poddar@ti.com \
    --cc=balbi@ti.com \
    --cc=bcousson@baylibre.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=michael.opdenacker@free-electrons.com \
    --cc=nsekhar@ti.com \
    --cc=paul@pwsan.com \
    --cc=tony@atomide.com \
    --cc=wsa@the-dreams.de \
    --cc=zbr@ioremap.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.