[v1,5/6] ARM: dts: nuvoton: nuvoton-npcm750-runbmc: define gpios inside Module

Message ID 20190201084027.19501-5-Samuel.Jiang@quantatw.com
State New
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 gpios define on dtsi, define gpio lists which inside RunBMC Module

Signed-off-by: Samuel Jiang <Samuel.Jiang@quantatw.com>
---
 arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi  | 35 ++++++++++++++++++++
 arch/arm/boot/dts/nuvoton-npcm750-runbmc.dts | 35 +++++++++++++++++++-
 2 files changed, 69 insertions(+), 1 deletion(-)

Patch

diff --git a/arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi b/arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi
index a912910bc7ec..68cd3d817cec 100644
--- a/arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi
+++ b/arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi
@@ -8,11 +8,21 @@ 
 			bias-disable;
 			output-high;
 		};
+		gpio0ol_pins: gpio0ol-pins {
+			pins = "GPIO0/IOX1DI";
+			bias-disable;
+			output-low;
+		};
 		gpio1_pins: gpio1-pins {
 			pins = "GPIO1/IOX1LD";
 			bias-disable;
 			input-enable;
 		};
+		gpio1ol_pins: gpio1ol-pins {
+			pins = "GPIO1/IOX1LD";
+			bias-disable;
+			output-low;
+		};
 		gpio2_pins: gpio2-pins {
 			pins = "GPIO2/IOX1CK";
 			bias-disable;
@@ -23,6 +33,11 @@ 
 			bias-disable;
 			output_high;
 		};
+		gpio2ol_pins: gpio2ol-pins {
+			pins = "GPIO2/IOX1CK";
+			bias-disable;
+			output-low;
+		};
 		gpio3_pins: gpio3-pins {
 			pins = "GPIO3/IOX1D0";
 			bias-disable;
@@ -33,6 +48,11 @@ 
 			bias-disable;
 			output-high;
 		};
+		gpio3ol_pins: gpio3ol-pins {
+			pins = "GPIO3/IOX1D0";
+			bias-disable;
+			output-low;
+		};
 		gpio4_pins: gpio4-pins {
 			pins = "GPIO4/IOX2DI/SMB1DSDA";
 			bias-disable;
@@ -78,6 +98,11 @@ 
 			bias-disable;
 			input-enable;
 		};
+		gpio8o_pins: gpio8o-pins {
+			pins = "GPIO8/LKGPO1";
+			bias-disable;
+			output-high;
+		};
 		gpio8ol_pins: gpio8ol-pins {
 			pins = "GPIO8/LKGPO1";
 			bias-disable;
@@ -168,6 +193,11 @@ 
 			bias-disable;
 			output-high;
 		};
+		gpio15ol_pins: gpio15ol-pins {
+			pins = "GPIO15/GSPICS/SMB5CSDA";
+			bias-disable;
+			output-low;
+		};
 		gpio16_pins: gpio16-pins {
 			pins = "GPIO16/LKGPO0";
 			bias-disable;
@@ -842,6 +872,11 @@ 
 			bias-disable;
 			output-high;
 		};
+		gpio94ol_pins: gpio94ol-pins {
+			pins = "GPIO94/nKBRST/SMB5DSDA";
+			bias-disable;
+			output-low;
+		};
 		gpio95_pins: gpio95-pins {
 			pins = "GPIO95/nLRESET/nESPIRST";
 			bias-disable;
diff --git a/arch/arm/boot/dts/nuvoton-npcm750-runbmc.dts b/arch/arm/boot/dts/nuvoton-npcm750-runbmc.dts
index a90c66ea2e17..b589e3982584 100644
--- a/arch/arm/boot/dts/nuvoton-npcm750-runbmc.dts
+++ b/arch/arm/boot/dts/nuvoton-npcm750-runbmc.dts
@@ -38,6 +38,7 @@ 
     i2c11 = &i2c11;
     i2c12 = &i2c12;
 		i2c13 = &i2c13;
+		gpio0o_pins = &gpio0o_pins;
 		spi0 = &spi0;
 		spi1 = &spi1;
 		fiu0 = &fiu0;
@@ -944,7 +945,39 @@ 
 
 	pinctrl: pinctrl@f0800000 {
 		pinctrl-names = "default";
-
+		pinctrl-0 = <
+				&gpio0o_pins        /* Note Used */        /******* RunBMC inside Module pins *******/
+				&gpio1ol_pins        /* Note Used */
+				&gpio2ol_pins        /* Note Used */
+				&gpio3ol_pins        /* Note Used */
+				&gpio8o_pins
+				&gpio9ol_pins        /* Note Used */
+				&gpio12ol_pins       /* Note Used */
+				&gpio13ol_pins       /* Note Used */
+				&gpio14ol_pins       /* Note Used */
+				&gpio15ol_pins       /* Note Used */
+				&gpio37ol_pins
+				&gpio38_pins
+				&gpio39_pins
+				&hgpio7_pins
+				&gpio94ol_pins
+			    /*&lpc_pins*/         /* Handled by BB */
+				&gpio108ol_pins       /* Note Used */
+				&gpio109ol_pins       /* Note Used */
+				&gpio111ol_pins
+				&gpio112ol_pins
+				&gpio113ol_pins
+				&gpio208_pins
+				&gpio209ol_pins       /* Note Used */
+				&gpio210ol_pins       /* Note Used */
+				&gpio211ol_pins       /* Note Used */
+				&gpio212ol_pins       /* Note Used */
+				&gpio213ol_pins       /* Note Used */
+				&gpio214ol_pins       /* Note Used */
+				&gpio215ol_pins       /* Note Used */
+				&gpio216ol_pins       /* Note Used */
+				&gpio217ol_pins       /* Note Used */
+				>;
 	};
 	
 	jtag {