[v1,2/6] ARM: dts: nuvoton: nuvoton-npcm750-runbmc: add jtag and led nodes

Message ID 20190201084027.19501-2-Samuel.Jiang@quantatw.com
State Not Applicable, archived
Headers show
Series
  • [v1,1/6] Add device tree for Nuvoton RunBMC Module board
Related show

Commit Message

Samuel.Jiang@quantatw.com Feb. 1, 2019, 8:40 a.m.
From: Samuel Jiang <Samuel.Jiang@quantatw.com>

Add leds setting which on RunBMC Module and add jtag node

Signed-off-by: Samuel Jiang <Samuel.Jiang@quantatw.com>
---
 arch/arm/boot/dts/nuvoton-npcm750-runbmc.dts | 40 ++++++++++++++++++++
 1 file changed, 40 insertions(+)

Patch

diff --git a/arch/arm/boot/dts/nuvoton-npcm750-runbmc.dts b/arch/arm/boot/dts/nuvoton-npcm750-runbmc.dts
index 7ab03add7f9c..5a56181af25c 100644
--- a/arch/arm/boot/dts/nuvoton-npcm750-runbmc.dts
+++ b/arch/arm/boot/dts/nuvoton-npcm750-runbmc.dts
@@ -329,7 +329,47 @@ 
 		pinctrl-names = "default";
 
 	};
+	
+	jtag {
+		compatible = "nuvoton,npcm750-jtag";
+		enable_pspi_jtag = <1>;
+		pspi-index = <2>;
+		tck {
+			label = "tck";
+			gpios = <&gpio0 19 0>;
+			regbase = <0xf0010000 0x1000>;
+		};
+
+		tdi {
+			label = "tdi";
+			gpios = <&gpio0 18 0>;
+			regbase = <0xf0010000 0x1000>;
+		};
+
+		tdo {
+			label = "tdo";
+			gpios = <&gpio0 17 0>;
+			regbase = <0xf0010000 0x1000>;
+		};
+
+		tms {
+			label = "tms";
+			gpios = <&gpio0 16 0>;
+			regbase = <0xf0010000 0x1000>;
+		};
+	};
+
+	leds {
+		compatible = "gpio-leds";
+		pinctrl-names = "default";
+		pinctrl-0 = <&gpio110ol_pins>;
 
+		led {
+		label = "led-green-arm";
+			gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "heartbeat";
+		};
+	};
 };
 
 &gcr {