* [PATCH dev-5.10 v1 0/3] ARM: dts: nuvoton: gbs: minior fix and update
@ 2021-05-26 11:30 George Hung
2021-05-26 11:30 ` [PATCH dev-5.10 v1 1/3] ARM: dts: nuvoton: gbs: fix pca9535 and GPIO node naming George Hung
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: George Hung @ 2021-05-26 11:30 UTC (permalink / raw)
To: Joel Stanley
Cc: kwliu, yschu, Fran.Hsu, benjaminfair, openbmc, brandonkim,
Avi.Fishman, tomer.maimon
Minior fix and update for NPCM730 GBS kernel dts
George Hung (3):
ARM: dts: nuvoton: gbs: fix pca9535 and GPIO node naming
ARM: dts: nuvoton: gbs: add fans-efuse GPIO to gpio-keys
ARM: dts: nuvoton: gbs: add page size to all eeprom configs
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts | 191 ++++++++++++----------
1 file changed, 103 insertions(+), 88 deletions(-)
--
2.21.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH dev-5.10 v1 1/3] ARM: dts: nuvoton: gbs: fix pca9535 and GPIO node naming
2021-05-26 11:30 [PATCH dev-5.10 v1 0/3] ARM: dts: nuvoton: gbs: minior fix and update George Hung
@ 2021-05-26 11:30 ` George Hung
2021-05-26 11:31 ` [PATCH dev-5.10 v1 2/3] ARM: dts: nuvoton: gbs: add fans-efuse GPIO to gpio-keys George Hung
2021-05-26 11:31 ` [PATCH dev-5.10 v1 3/3] ARM: dts: nuvoton: gbs: add page size to all eeprom configs George Hung
2 siblings, 0 replies; 4+ messages in thread
From: George Hung @ 2021-05-26 11:30 UTC (permalink / raw)
To: Joel Stanley
Cc: kwliu, yschu, Fran.Hsu, benjaminfair, openbmc, brandonkim,
Avi.Fishman, tomer.maimon
- use the same node name for all the pca9535 nodes
- convert the gpio nodes to phandle
Signed-off-by: George Hung <george.hung@quantatw.com>
---
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts | 182 +++++++++++-----------
1 file changed, 94 insertions(+), 88 deletions(-)
diff --git a/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts b/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
index 24fae0e4f454..fe2836d220b9 100644
--- a/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
+++ b/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
@@ -623,14 +623,14 @@
clock-frequency = <100000>;
status = "okay";
- pca9535_ifdet: pca9535-ifdet@24 {
+ pca9535_ifdet: pca9535@24 {
compatible = "nxp,pca9535";
reg = <0x24>;
gpio-controller;
#gpio-cells = <2>;
};
- pca9535_pwren: pca9535-pwren@20 {
+ pca9535_pwren: pca9535@20 {
compatible = "nxp,pca9535";
reg = <0x20>;
gpio-controller;
@@ -647,14 +647,14 @@
"pwr_u2_13_en","pwr_u2_12_en";
};
- pca9535_pwrgd: pca9535-pwrgd@21 {
+ pca9535_pwrgd: pca9535@21 {
compatible = "nxp,pca9535";
reg = <0x21>;
gpio-controller;
#gpio-cells = <2>;
};
- pca9535_ledlocate: pca9535-ledlocate@22 {
+ pca9535_ledlocate: pca9535@22 {
compatible = "nxp,pca9535";
reg = <0x22>;
gpio-controller;
@@ -662,7 +662,7 @@
};
- pca9535_ledfault: pca9535-ledfault@23 {
+ pca9535_ledfault: pca9535@23 {
compatible = "nxp,pca9535";
reg = <0x23>;
gpio-controller;
@@ -670,7 +670,7 @@
};
- pca9535_pwrdisable: pca9535-pwrdisable@25 {
+ pca9535_pwrdisable: pca9535@25 {
compatible = "nxp,pca9535";
reg = <0x25>;
gpio-controller;
@@ -687,7 +687,7 @@
"u2_13_pwr_dis","u2_12_pwr_dis";
};
- pca9535_perst: pca9535-perst@26 {
+ pca9535_perst: pca9535@26 {
compatible = "nxp,pca9535";
reg = <0x26>;
gpio-controller;
@@ -1086,94 +1086,100 @@
};
};
-&pinctrl {
- pinctrl-names = "default";
+&gpio0 {
+ /* POWER_OUT=gpio07, RESET_OUT=gpio06, PS_PWROK=gpio13 */
+ gpio-line-names =
+ /*0-31*/
+ "","","","","","","RESET_OUT","POWER_OUT",
+ "","","","","","PS_PWROK","","",
+ "","","","","","","","",
+ "","","","","","","","";
+};
- gpio0: gpio@f0010000 {
- /* POWER_OUT=gpio07, RESET_OUT=gpio06, PS_PWROK=gpio13 */
- gpio-line-names =
- /*0-31*/
- "","","","","","","RESET_OUT","POWER_OUT",
- "","","","","","PS_PWROK","","",
- "","","","","","","","",
- "","","","","","","","";
- };
- gpio1: gpio@f0011000 {
- /* SIO_POWER_GOOD=gpio59 */
- gpio-line-names =
- /*32-63*/
- "","","","","","","","",
- "","","","","","","","",
- "","","","","","","","",
- "","","","SIO_POWER_GOOD","","","","";
+&gpio1 {
+ /* SIO_POWER_GOOD=gpio59 */
+ gpio-line-names =
+ /*32-63*/
+ "","","","","","","","",
+ "","","","","","","","",
+ "","","","","","","","",
+ "","","","SIO_POWER_GOOD","","","","";
+};
+
+&gpio2 {
+ bmc_usb_mux_oe_n {
+ gpio-hog;
+ gpios = <25 GPIO_ACTIVE_HIGH>;
+ output-low;
+ line-name = "bmc-usb-mux-oe-n";
};
- gpio2: gpio@f0012000 {
- bmc_usb_mux_oe_n {
- gpio-hog;
- gpios = <25 GPIO_ACTIVE_HIGH>;
- output-low;
- line-name = "bmc-usb-mux-oe-n";
- };
- bmc_usb_mux_sel {
- gpio-hog;
- gpios = <26 GPIO_ACTIVE_HIGH>;
- output-low;
- line-name = "bmc-usb-mux-sel";
- };
- bmc_usb2517_reset_n {
- gpio-hog;
- gpios = <27 GPIO_ACTIVE_LOW>;
- output-low;
- line-name = "bmc-usb2517-reset-n";
- };
+ bmc_usb_mux_sel {
+ gpio-hog;
+ gpios = <26 GPIO_ACTIVE_HIGH>;
+ output-low;
+ line-name = "bmc-usb-mux-sel";
};
- gpio3: gpio@f0013000 {
- assert_cpu0_reset {
- gpio-hog;
- gpios = <14 GPIO_ACTIVE_HIGH>;
- output-low;
- line-name = "assert-cpu0-reset";
- };
- assert_pwrok_cpu0_n {
- gpio-hog;
- gpios = <15 GPIO_ACTIVE_HIGH>;
- output-low;
- line-name = "assert-pwrok-cpu0-n";
- };
- assert_cpu0_prochot {
- gpio-hog;
- gpios = <16 GPIO_ACTIVE_HIGH>;
- output-low;
- line-name = "assert-cpu0-prochot";
- };
+ bmc_usb2517_reset_n {
+ gpio-hog;
+ gpios = <27 GPIO_ACTIVE_LOW>;
+ output-low;
+ line-name = "bmc-usb2517-reset-n";
};
- gpio4: gpio@f0014000 {
- /* POST_COMPLETE=gpio143 */
- gpio-line-names =
- /*128-159*/
- "","","","","","","","",
- "","","","","","","","POST_COMPLETE",
- "","","","","","","","",
- "","","","","","","","";
+};
+
+&gpio3 {
+ assert_cpu0_reset {
+ gpio-hog;
+ gpios = <14 GPIO_ACTIVE_HIGH>;
+ output-low;
+ line-name = "assert-cpu0-reset";
};
- gpio5: gpio@f0015000 {
- /* POWER_BUTTON=gpio177 */
- gpio-line-names =
- /*160-191*/
- "","","","","","","","",
- "","","","","","","","",
- "","POWER_BUTTON","","","","","","",
- "","","","","","","","";
+ assert_pwrok_cpu0_n {
+ gpio-hog;
+ gpios = <15 GPIO_ACTIVE_HIGH>;
+ output-low;
+ line-name = "assert-pwrok-cpu0-n";
};
- gpio6: gpio@f0016000 {
- /* SIO_S5=gpio199, RESET_BUTTON=gpio203 */
- gpio-line-names =
- /*192-223*/
- "","","","","","","","SIO_S5",
- "","","","RESET_BUTTON","","","","",
- "","","","","","","","",
- "","","","","","","","";
+ assert_cpu0_prochot {
+ gpio-hog;
+ gpios = <16 GPIO_ACTIVE_HIGH>;
+ output-low;
+ line-name = "assert-cpu0-prochot";
};
+};
+
+&gpio4 {
+ /* POST_COMPLETE=gpio143 */
+ gpio-line-names =
+ /*128-159*/
+ "","","","","","","","",
+ "","","","","","","","POST_COMPLETE",
+ "","","","","","","","",
+ "","","","","","","","";
+};
+
+&gpio5 {
+ /* POWER_BUTTON=gpio177 */
+ gpio-line-names =
+ /*160-191*/
+ "","","","","","","","",
+ "","","","","","","","",
+ "","POWER_BUTTON","","","","","","",
+ "","","","","","","","";
+};
+
+&gpio6 {
+ /* SIO_S5=gpio199, RESET_BUTTON=gpio203 */
+ gpio-line-names =
+ /*192-223*/
+ "","","","","","","","SIO_S5",
+ "","","","RESET_BUTTON","","","","",
+ "","","","","","","","",
+ "","","","","","","","";
+};
+
+&pinctrl {
+ pinctrl-names = "default";
gpio224ol_pins: gpio224ol-pins {
pins = "GPIO224/SPIXCK";
--
2.21.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH dev-5.10 v1 2/3] ARM: dts: nuvoton: gbs: add fans-efuse GPIO to gpio-keys
2021-05-26 11:30 [PATCH dev-5.10 v1 0/3] ARM: dts: nuvoton: gbs: minior fix and update George Hung
2021-05-26 11:30 ` [PATCH dev-5.10 v1 1/3] ARM: dts: nuvoton: gbs: fix pca9535 and GPIO node naming George Hung
@ 2021-05-26 11:31 ` George Hung
2021-05-26 11:31 ` [PATCH dev-5.10 v1 3/3] ARM: dts: nuvoton: gbs: add page size to all eeprom configs George Hung
2 siblings, 0 replies; 4+ messages in thread
From: George Hung @ 2021-05-26 11:31 UTC (permalink / raw)
To: Joel Stanley
Cc: kwliu, yschu, Fran.Hsu, benjaminfair, openbmc, brandonkim,
Avi.Fishman, tomer.maimon
Signed-off-by: George Hung <george.hung@quantatw.com>
---
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts b/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
index fe2836d220b9..3d53fbe54055 100644
--- a/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
+++ b/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
@@ -141,6 +141,12 @@
gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
linux,code = <121>;
};
+
+ fans-efuse {
+ label = "fans-efuse";
+ gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>;
+ linux,code = <146>;
+ };
};
iio-hwmon {
--
2.21.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH dev-5.10 v1 3/3] ARM: dts: nuvoton: gbs: add page size to all eeprom configs
2021-05-26 11:30 [PATCH dev-5.10 v1 0/3] ARM: dts: nuvoton: gbs: minior fix and update George Hung
2021-05-26 11:30 ` [PATCH dev-5.10 v1 1/3] ARM: dts: nuvoton: gbs: fix pca9535 and GPIO node naming George Hung
2021-05-26 11:31 ` [PATCH dev-5.10 v1 2/3] ARM: dts: nuvoton: gbs: add fans-efuse GPIO to gpio-keys George Hung
@ 2021-05-26 11:31 ` George Hung
2 siblings, 0 replies; 4+ messages in thread
From: George Hung @ 2021-05-26 11:31 UTC (permalink / raw)
To: Joel Stanley
Cc: kwliu, yschu, Fran.Hsu, benjaminfair, openbmc, brandonkim,
Avi.Fishman, tomer.maimon
Add page size 32 bytes for atmel 24c64 device
Signed-off-by: George Hung <george.hung@quantatw.com>
---
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts b/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
index 3d53fbe54055..2102761e8890 100644
--- a/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
+++ b/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
@@ -728,6 +728,7 @@
mb_fru@50 {
compatible = "atmel,24c64";
reg = <0x50>;
+ pagesize = <32>;
};
i2c-switch@71 {
@@ -771,6 +772,7 @@
fan_fru@51 {
compatible = "atmel,24c64";
reg = <0x51>;
+ pagesize = <32>;
};
};
@@ -781,6 +783,7 @@
hsbp_fru@52 {
compatible = "atmel,24c64";
reg = <0x52>;
+ pagesize = <32>;
status = "okay";
};
};
--
2.21.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-05-26 11:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 11:30 [PATCH dev-5.10 v1 0/3] ARM: dts: nuvoton: gbs: minior fix and update George Hung
2021-05-26 11:30 ` [PATCH dev-5.10 v1 1/3] ARM: dts: nuvoton: gbs: fix pca9535 and GPIO node naming George Hung
2021-05-26 11:31 ` [PATCH dev-5.10 v1 2/3] ARM: dts: nuvoton: gbs: add fans-efuse GPIO to gpio-keys George Hung
2021-05-26 11:31 ` [PATCH dev-5.10 v1 3/3] ARM: dts: nuvoton: gbs: add page size to all eeprom configs George Hung
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.