ARM: dts: nuvoton: Add Quanta GBS BMC Device Tree
PATCH 1/1 ARM: dts: nuvoton: Add Quanta GBS BMC Device Tree
Add initial version of device tree for Quanta GBS
BMC (NPCM730 SoC)
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/nuvoton-npcm730-gbs.dts | 1233 +++++++++++++++++++++ 2 files changed, 1234 insertions(+) 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 +1233 -0
1,233 lines not on this page · raw message
Signature · 1 line
2.21.0
Quoted 29 lines · George Hung
Add initial version of device tree for Quanta GBS
BMC (NPCM730 SoC)Signed-off-by George Hung <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/nuvoton-npcm730-gbs.dts | 1233 +++++++++++++++++++++ 2 files changed, 1234 insertions(+) create mode 100644 arch/arm/boot/dts/nuvoton-npcm730-gbs.dtsarch/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.dtbarch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +0
-0
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts line 10
Quoted 10 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +10
-0@@ -0,0 +1,1233 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2020 Quanta Computer Inc. [email protected] + +/dts-v1/; +#include "nuvoton-npcm730.dtsi" +#include <dt-bindings/gpio/gpio.h> + +/ { + model = "Quanta GBS Board (Device Tree)"; + compatible = "nuvoton,npcm750";
Give your machine a compatible string too. eg:
compatible = "qanta,gbs-bmc", "nuvoton,npcm750";
Quoted 20 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +20
-0+ + ahb { + fiu0: spi@fb000000 { + pinctrl-names = "default"; + pinctrl-0 = <&spi0cs1_pins>; + status = "okay"; + spi-nor@0 { + compatible = "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0>; + spi-max-frequency = <19000000>; + spi-rx-bus-width = <2>; + label = "bmc"; + partitions@80000000 { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + u-boot@0 { + label = "u-boot";
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts line 407
Quoted 10 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +10
-0+ reg = <0x0000000 0xf0000>; + }; + image-descriptor@f0000 { + label = "image-descriptor"; + reg = <0xf0000 0x10000>; + }; + hoth-update@100000 { + label = "hoth-update"; + reg = <0x100000 0x100000>; + };
Is this layout common for all nuvoton openbmc machines?
Quoted 12 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +12
-0+ kernel@200000 { + label = "kernel"; + reg = <0x200000 0x500000>; + }; + rofs@700000 { + label = "rofs"; + reg = <0x700000 0x35f0000>; + }; + rwfs@3cf0000 { + label = "rwfs"; + reg = <0x3cf0000 0x300000>; + };
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts line 453
Quoted 10 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +9
-0+ hoth-mailbox@3ff0000 { + label = "hoth-mailbox"; + reg = <0x3ff0000 0x10000>; + }; + }; + }; + }; + + gmac0: eth@f0802000 {
Please take a look at the latest version of the other nuvoton device trees. They now follow the convention of using phandles to enable devices. eg:
&gmac {
status = "okay";
phy-mode = "rgmii-id";
snps,eee-force-disable;
};
Please update all of the nodes to use this style.
Quoted 6 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +5
-0+ status = "okay"; + phy-mode = "rgmii-id"; + snps,eee-force-disable; + }; +
Quoted 58 lines
-----Original Message-----
From: openbmc <[email protected]> On Behalf Of Joel Stanley
Sent: Friday, March 12, 2021 9:21 AM
To: George Hung <[email protected]>
Cc: CS20 KWLiu <[email protected]>; CS20 YSChu <[email protected]>; Benjamin Fair <[email protected]>; OpenBMC Maillist <[email protected]>; [email protected]; Tomer Maimon <[email protected]>
Subject: Re: [PATCH dev-5.10 v1] ARM: dts: nuvoton: Add Quanta GBS BMC Device TreeQuoted 30 lines · George Hung
Add initial version of device tree for Quanta GBS BMC (NPCM730 SoC)
Signed-off-by George Hung <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/nuvoton-npcm730-gbs.dts | 1233 +++++++++++++++++++++ 2 files changed, 1234 insertions(+) create mode 100644 arch/arm/boot/dts/nuvoton-npcm730-gbs.dtsarch/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.dtbarch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +0
-0arch/arm/boot/dts/nuvoton-npcm730-gbs.dts line 10
Quoted 10 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +10
-0@@ -0,0 +1,1233 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2020 Quanta Computer Inc. [email protected] + +/dts-v1/; +#include "nuvoton-npcm730.dtsi" +#include <dt-bindings/gpio/gpio.h> + +/ { + model = "Quanta GBS Board (Device Tree)"; + compatible = "nuvoton,npcm750";Give your machine a compatible string too. eg:
Quoted 2 lines
compatible = "qanta,gbs-bmc", "nuvoton,npcm750";
Thanks, I'll update it to next patch soon.
Quoted 32 lines
Quoted 6 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +6
-0+ + ahb { + fiu0: spi@fb000000 { + pinctrl-names = "default"; + pinctrl-0 = <&spi0cs1_pins>; + status = "okay";arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
Quoted 10 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +10
-0+ spi-nor@0 { + compatible = "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0>; + spi-max-frequency = <19000000>; + spi-rx-bus-width = <2>; + label = "bmc"; + partitions@80000000 { + compatible ="fixed-partitions";
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
Quoted 5 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +5
-0+ #address-cells = <1>; + #size-cells = <1>; + u-boot@0 { + label = "u-boot"; + reg = <0x0000000
0xf0000>;arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
Quoted 3 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +3
-0+ }; + image-descriptor@f0000 { + label ="image-descriptor";
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts line 35
Quoted 1 line
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +1
-0+ reg = <0xf0000
0x10000>;arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
Quoted 3 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +3
-0+ }; + hoth-update@100000 { + label =
Quoted 6 lines
"hoth-update";
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts line 39
Quoted 1 line
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +1
-0+ reg = <0x100000
0x100000>;arch/arm/boot/dts/nuvoton-npcm730-gbs.dts line 40
Quoted 1 line
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +1
-0+ };Is this layout common for all nuvoton openbmc machines?
It's not the common layout for all nuvoton openbmc, and it's the specific design for quanta's client machines
Quoted 32 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
Quoted 4 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +3
-0+ kernel@200000 { + label = "kernel"; + reg = <0x200000
0x500000>;arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
Quoted 4 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +4
-0+ }; + rofs@700000 { + label = "rofs"; + reg = <0x700000
0x35f0000>;arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
Quoted 4 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +4
-0+ }; + rwfs@3cf0000 { + label = "rwfs"; + reg = <0x3cf0000
0x300000>;arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
Quoted 3 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +3
-0+ }; + hoth-mailbox@3ff0000 { + label ="hoth-mailbox";
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts line 55
Quoted 1 line
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +1
-0+ reg = <0x3ff0000
0x10000>;arch/arm/boot/dts/nuvoton-npcm730-gbs.dts line 453
Quoted 7 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +6
-0+ }; + }; + }; + }; + + gmac0: eth@f0802000 {Please take a look at the latest version of the other nuvoton device trees. They now follow the convention of using phandles to enable devices. eg:
Quoted 8 lines
&gmac { status = "okay"; phy-mode = "rgmii-id"; snps,eee-force-disable; };Please update all of the nodes to use this style.
Thanks, I'll update them to next patch soon.
Quoted 6 lines
Quoted 6 lines
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts new file +5
-0+ status = "okay"; + phy-mode = "rgmii-id"; + snps,eee-force-disable; + }; +