ARM: dts: nuvoton: Add Quanta GBS BMC Device Tree
PATCH v5 1/1 ARM: dts: nuvoton: Add Quanta GBS BMC Device Tree
Add the device tree for the Quanta GBS BMC and it's based on NPCM730 SoC
---
v2:
- add the machine name to compatible string
- follow the convention of using phandles to enable devices
---
v3:
- add udc5~9 device nodes to nuvoton-npcm730.dtsi
- modify to include nuvoton-npcm730.dtsi
---
v4:
- simplify the mc config in nuvoton-npcm730-gbs.dts
---
v5:
- modify FIU0 spi-max-frequency as 20MHz
- work-round to exchange fan3/4 pwm/tach
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/nuvoton-npcm730-gbs.dts | 1193 +++++++++++++++++++++ arch/arm/boot/dts/nuvoton-npcm730.dtsi | 45 +- 3 files changed, 1237 insertions(+), 2 deletions(-) create mode 100644 arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -340,6 +340,7 @@ dtb-$(CONFIG_ARCH_LPC32XX) += \ lpc3250-phy3250.dtb dtb-$(CONFIG_ARCH_NPCM7XX) += \ nuvoton-npcm730-gsj.dtb \ + nuvoton-npcm730-gbs.dtb \ nuvoton-npcm730-kudo.dtb \ nuvoton-npcm750-evb.dtb \ nuvoton-npcm750-runbmc-olympus.dtb
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +1193 -0
1,193 lines not on this page · raw message
arch/arm/boot/dts/nuvoton-npcm730.dtsi +43 -2
59 lines not on this page · raw message
Signature · 1 line
2.21.0
Quoted 5 lines · George Hung
Add the device tree for the Quanta GBS BMC and it's based on NPCM730 SoC
Signed-off-by George Hung <[email protected]>
Thanks for the patch. I'll apply it as-is, but if you have time to send a follow up to fix the suggestions below.
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts line 626
Quoted 5 lines
+&i2c1 {
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +4
-0+ clock-frequency = <100000>; + status = "okay"; + + pca9535_ifdet: pca9535-ifdet@24 {
I think this should be:
pca9535_ifdet: pca9535@24 {The node name is the generic thing, and the phandle is the unique name you use to refer to it. Same for all the pca9535 nodes.
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
Quoted 11 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +10
-0+ compatible = "nxp,pca9535"; + reg = <0x24>; + gpio-controller; + #gpio-cells = <2>; + }; + +&pinctrl { + pinctrl-names = "default"; + + gpio0: gpio@f0010000 {
These were missed in converting to phandle; you can pull them out to the top level and do
&gpio0 {
...
}
Quoted 41 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +8
-0+ /* POWER_OUT=gpio07, RESET_OUT=gpio06, PS_PWROK=gpio13 */ + gpio-line-names = + /*0-31*/ + "","","","","","","RESET_OUT","POWER_OUT", + "","","","","","PS_PWROK","","", + "","","","","","","","", + "","","","","","","",""; + };arch/arm/boot/dts/nuvoton-npcm730.dtsi +15
-1@@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 // Copyright (c) 2018 Nuvoton Technology [email protected] // Copyright 2018 Google, Inc. +// Copyright (c) 2020 Quanta Computer Inc. [email protected] #include "nuvoton-common-npcm7xx.dtsi"@@ -44,10 +45,50 @@ }; ahb { - udc9:udc@f0839000 { + udc5: udc@f0835000 { + compatible = "nuvoton,npcm750-udc"; + reg = <0xf0835000 0x1000 + 0xfffd2800 0x800>; + interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + clocks = <&clk NPCM7XX_CLK_SU>; + clock-names = "clk_usb_bridge"; + }; + udc8: udc@f0838000 { + compatible = "nuvoton,npcm750-udc"; + reg = <0xf0838000 0x1000 + 0xfffd4000 0x800>; + interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
arch/arm/boot/dts/nuvoton-npcm730.dtsi line 71
Quoted 10 lines
arch/arm/boot/dts/nuvoton-npcm730.dtsi +7
-1+ status = "disabled"; + clocks = <&clk NPCM7XX_CLK_SU>; + clock-names = "clk_usb_bridge"; + }; + + udc9: udc@f0839000 { compatible = "nuvoton,npcm750-udc"; reg = <0xf0839000 0x1000 - 0xfffd0000 0x800>; + 0xfffd4800 0x800>;
I assume this is correcting a mistake?
Cheers,
Joel