devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] 66AK2G: Add DT entry for UART1 and UART2
@ 2017-12-05  6:48 Vignesh R
  2017-12-05  6:48 ` [PATCH 1/2] ARM: dts: keystone-k2g: Add UART 1 and 2 instances Vignesh R
       [not found] ` <20171205064812.15758-1-vigneshr-l0cyMroinI0@public.gmane.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Vignesh R @ 2017-12-05  6:48 UTC (permalink / raw)
  To: Santosh Shilimkar
  Cc: devicetree, Vignesh R, linux-kernel, Rob Herring,
	linux-arm-kernel, Franklin S Cooper Jr

This series adds DT entry for the remaining two UART instances on 66AK2G
SoC.

Based on linux-next.

Franklin S Cooper Jr (2):
  ARM: dts: keystone-k2g: Add UART 1 and 2 instances
  ARM: dts: keystone-k2g-evm: Enable UART 2

 arch/arm/boot/dts/keystone-k2g-evm.dts | 13 +++++++++++++
 arch/arm/boot/dts/keystone-k2g.dtsi    | 29 ++++++++++++++++++++++++++++-
 2 files changed, 41 insertions(+), 1 deletion(-)

-- 
2.15.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] ARM: dts: keystone-k2g: Add UART 1 and 2 instances
  2017-12-05  6:48 [PATCH 0/2] 66AK2G: Add DT entry for UART1 and UART2 Vignesh R
@ 2017-12-05  6:48 ` Vignesh R
       [not found] ` <20171205064812.15758-1-vigneshr-l0cyMroinI0@public.gmane.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Vignesh R @ 2017-12-05  6:48 UTC (permalink / raw)
  To: Santosh Shilimkar
  Cc: devicetree, Vignesh R, linux-kernel, Rob Herring,
	linux-arm-kernel, Franklin S Cooper Jr

From: Franklin S Cooper Jr <fcooper@ti.com>

Add DT nodes for two other UART instances of 66AK2G SoC.

Also add power domain and clock domain nodes to UART 0

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Vignesh R <vigneshr@ti.com>
---
 arch/arm/boot/dts/keystone-k2g.dtsi | 29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/keystone-k2g.dtsi b/arch/arm/boot/dts/keystone-k2g.dtsi
index ef82c0a6e607..3c48a9f5c882 100644
--- a/arch/arm/boot/dts/keystone-k2g.dtsi
+++ b/arch/arm/boot/dts/keystone-k2g.dtsi
@@ -28,6 +28,8 @@
 
 	aliases {
 		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
 		i2c0 = &i2c0;
 		i2c1 = &i2c1;
 		i2c2 = &i2c2;
@@ -114,7 +116,32 @@
 			reg-io-width = <4>;
 			reg = <0x02530c00 0x100>;
 			interrupts = <GIC_SPI 164 IRQ_TYPE_EDGE_RISING>;
-			clock-frequency = <200000000>;
+			clocks = <&k2g_clks 0x2c 0>;
+			power-domains = <&k2g_pds 0x2c>;
+			status = "disabled";
+		};
+
+		uart1: serial@02531000 {
+			compatible = "ti,da830-uart", "ns16550a";
+			current-speed = <115200>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			reg = <0x02531000 0x100>;
+			interrupts = <GIC_SPI 165 IRQ_TYPE_EDGE_RISING>;
+			clocks = <&k2g_clks 0x2d 0>;
+			power-domains = <&k2g_pds 0x2d>;
+			status = "disabled";
+		};
+
+		uart2: serial@02531400 {
+			compatible = "ti,da830-uart", "ns16550a";
+			current-speed = <115200>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			reg = <0x02531400 0x100>;
+			interrupts = <GIC_SPI 166 IRQ_TYPE_EDGE_RISING>;
+			clocks = <&k2g_clks 0x2e 0>;
+			power-domains = <&k2g_pds 0x2e>;
 			status = "disabled";
 		};
 
-- 
2.15.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] ARM: dts: keystone-k2g-evm: Enable UART 2
       [not found] ` <20171205064812.15758-1-vigneshr-l0cyMroinI0@public.gmane.org>
@ 2017-12-05  6:48   ` Vignesh R
  2017-12-06 17:54   ` [PATCH 0/2] 66AK2G: Add DT entry for UART1 and UART2 santosh.shilimkar-QHcLZuEGTsvQT0dZR+AlfA
  1 sibling, 0 replies; 4+ messages in thread
From: Vignesh R @ 2017-12-05  6:48 UTC (permalink / raw)
  To: Santosh Shilimkar
  Cc: Rob Herring, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Vignesh R,
	Franklin S Cooper Jr

From: Franklin S Cooper Jr <fcooper-l0cyMroinI0@public.gmane.org>

66AK2G GP EVM has a Baseboard Management Controller (BMC) on board.
This controller handles things like setting the SoCs boot mode along
with controlling the on board character LCD display module.

Enable UART2 which communicates with the BMC. This enables userspace
applications to display something on the onboard LCD controlled by the
BMC.

Signed-off-by: Franklin S Cooper Jr <fcooper-l0cyMroinI0@public.gmane.org>
Signed-off-by: Vignesh R <vigneshr-l0cyMroinI0@public.gmane.org>
---
 arch/arm/boot/dts/keystone-k2g-evm.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm/boot/dts/keystone-k2g-evm.dts b/arch/arm/boot/dts/keystone-k2g-evm.dts
index 8d100217e38f..9737730ddc21 100644
--- a/arch/arm/boot/dts/keystone-k2g-evm.dts
+++ b/arch/arm/boot/dts/keystone-k2g-evm.dts
@@ -115,6 +115,13 @@
 			K2G_CORE_IOPAD(0x121c) (BUFFER_CLASS_B | PULL_DISABLE | MUX_MODE0) /* qspi_csn0.qspi_csn0 */
 		>;
 	};
+
+	uart2_pins: pinmux_uart2_pins {
+		pinctrl-single,pins = <
+			K2G_CORE_IOPAD(0x11ec) (BUFFER_CLASS_B | PULL_DISABLE | MUX_MODE0)      /* uart2_rxd.uart2_rxd */
+			K2G_CORE_IOPAD(0x11f0) (BUFFER_CLASS_B | PIN_PULLDOWN | MUX_MODE0)      /* uart2_txd.uart2_txd */
+		>;
+	};
 };
 
 &uart0 {
@@ -263,3 +270,9 @@
 		};
 	};
 };
+
+&uart2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart2_pins>;
+	status = "okay";
+};
-- 
2.15.0

--
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 related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] 66AK2G: Add DT entry for UART1 and UART2
       [not found] ` <20171205064812.15758-1-vigneshr-l0cyMroinI0@public.gmane.org>
  2017-12-05  6:48   ` [PATCH 2/2] ARM: dts: keystone-k2g-evm: Enable UART 2 Vignesh R
@ 2017-12-06 17:54   ` santosh.shilimkar-QHcLZuEGTsvQT0dZR+AlfA
  1 sibling, 0 replies; 4+ messages in thread
From: santosh.shilimkar-QHcLZuEGTsvQT0dZR+AlfA @ 2017-12-06 17:54 UTC (permalink / raw)
  To: Vignesh R, Santosh Shilimkar
  Cc: Rob Herring, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Franklin S Cooper Jr

On 12/4/17 10:48 PM, Vignesh R wrote:
> This series adds DT entry for the remaining two UART instances on 66AK2G
> SoC.
> 
> Based on linux-next.
> 
> Franklin S Cooper Jr (2):
>    ARM: dts: keystone-k2g: Add UART 1 and 2 instances
>    ARM: dts: keystone-k2g-evm: Enable UART 2
> 
Applied !!
--
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

end of thread, other threads:[~2017-12-06 17:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-05  6:48 [PATCH 0/2] 66AK2G: Add DT entry for UART1 and UART2 Vignesh R
2017-12-05  6:48 ` [PATCH 1/2] ARM: dts: keystone-k2g: Add UART 1 and 2 instances Vignesh R
     [not found] ` <20171205064812.15758-1-vigneshr-l0cyMroinI0@public.gmane.org>
2017-12-05  6:48   ` [PATCH 2/2] ARM: dts: keystone-k2g-evm: Enable UART 2 Vignesh R
2017-12-06 17:54   ` [PATCH 0/2] 66AK2G: Add DT entry for UART1 and UART2 santosh.shilimkar-QHcLZuEGTsvQT0dZR+AlfA

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 NNTP newsgroup(s).