dts: nuvoton: Add initial yosemitev4 device
Subsystems (2)
cover dts: nuvoton: Add initial yosemitev4 device
v1 - Add initial yosemitev4 device for Nuvoton chip
Delphine CC Chiu (2):
dt-bindings: arm: nuvoton: add Facebook Yosemite 4 board
ARM64: dts: nuvoton: Add initial yosemitev4 device tree
.../bindings/arm/nuvoton/nuvoton,npcm.yaml | 1 + arch/arm64/boot/dts/nuvoton/Makefile | 1 + .../dts/nuvoton/nuvoton-npcm845-yosemite4.dts | 1493 +++++++++++++++++ 3 files changed, 1495 insertions(+) create mode 100644 arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts
Signature · 1 line
2.25.1
PATCH 1/2 dt-bindings: arm: nuvoton: add Facebook Yosemite 4 board
Document the new compatibles used on Facebook Yosemite 4.
--- Documentation/devicetree/bindings/arm/nuvoton/nuvoton,npcm.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/nuvoton/nuvoton,npcm.yaml +1 -0
@@ -30,6 +30,7 @@ properties: - description: NPCM845 based boards items: - enum: + - facebook,yosemite4-n-bmc - nuvoton,npcm845-evb # NPCM845 evaluation board - const: nuvoton,npcm845
Signature · 1 line
2.25.1
Re: [PATCH v1 1/2] dt-bindings: arm: nuvoton: add Facebook Yosemite 4 board
Quoted 1 line · Delphine CC Chiu
Document the new compatibles used on Facebook Yosemite 4.
There is Yosemite4 board already supported. What is this for?
https://lore.kernel.org/all/[email protected]/
Best regards,
Krzysztof
Re: [PATCH v1 1/2] dt-bindings: arm: nuvoton: add Facebook Yosemite 4 board
Quoted 5 lines · Krzysztof Kozlowski
Quoted 1 line · Delphine CC Chiu
Document the new compatibles used on Facebook Yosemite 4.
There is Yosemite4 board already supported. What is this for?
https://lore.kernel.org/all/[email protected]/
Yosemite4 is a server chassis which is managed by a BMC. The BMC is on a pluggable module card. Typically we've used Aspeed chips for this, but we are building an alternative BMC module using Nuvoton BMC chips.
We will end up with two different BMC chips / images that could be managing the same server hardware. Since the Aspeed and Nuvoton chips are different there are unfortunately 2 device trees (one for each chip).
Please let us know if there is a better way to document this.
Signature · 1 line
Patrick Williams
Re: [PATCH v1 1/2] dt-bindings: arm: nuvoton: add Facebook Yosemite 4 board
Quoted 10 lines · Patrick Williams
Quoted 5 lines · Krzysztof Kozlowski
Quoted 1 line · Delphine CC Chiu
Document the new compatibles used on Facebook Yosemite 4.
There is Yosemite4 board already supported. What is this for?
https://lore.kernel.org/all/[email protected]/Yosemite4 is a server chassis which is managed by a BMC. The BMC is on a pluggable module card. Typically we've used Aspeed chips for this, but we are building an alternative BMC module using Nuvoton BMC chips.
There are few ways to solve this, like having different compatibles or having some shared compatibles to note common part of hardware. However usually the final compatible represents the final device, which here you use for two entirely different products. This works only for the cases of carrier boards, where that compatible indeed represents the same hardware.
Not your case. This needs fixing.
Best regards,
Krzysztof
Re: [PATCH v1 1/2] dt-bindings: arm: nuvoton: add Facebook Yosemite 4 board
Quoted 12 lines · Krzysztof Kozlowski
Quoted 10 lines · Patrick Williams
Quoted 5 lines · Krzysztof Kozlowski
Quoted 1 line · Delphine CC Chiu
Document the new compatibles used on Facebook Yosemite 4.
There is Yosemite4 board already supported. What is this for?
https://lore.kernel.org/all/[email protected]/Yosemite4 is a server chassis which is managed by a BMC. The BMC is on a pluggable module card. Typically we've used Aspeed chips for this, but we are building an alternative BMC module using Nuvoton BMC chips.
Quoted 8 lines
There are few ways to solve this, like having different compatibles or having some shared compatibles to note common part of hardware. However usually the final compatible represents the final device, which here you use for two entirely different products. This works only for the cases of carrier boards, where that compatible indeed represents the same hardware.
Not your case. This needs fixing.
This patch:
+ model = "Facebook Yosemite 4 BMC";
+ compatible = "facebook,yosemite4-n-bmc", "nuvoton,npcm845";
Aspeed patch:
+ model = "Facebook Yosemite 4 BMC";
+ compatible = "facebook,yosemite4-bmc", "aspeed,ast2600";
These have different compatibles already ('-n' for Nuvoton). Do we just need the model to be clearly different also? Maybe there is something else I'm not understanding.
Signature · 1 line
Patrick Williams
Re: [PATCH v1 1/2] dt-bindings: arm: nuvoton: add Facebook Yosemite 4 board
Quoted 30 lines · Patrick Williams
Quoted 12 lines · Krzysztof Kozlowski
Quoted 10 lines · Patrick Williams
Quoted 5 lines · Krzysztof Kozlowski
Quoted 1 line · Delphine CC Chiu
Document the new compatibles used on Facebook Yosemite 4.
There is Yosemite4 board already supported. What is this for?
https://lore.kernel.org/all/[email protected]/Yosemite4 is a server chassis which is managed by a BMC. The BMC is on a pluggable module card. Typically we've used Aspeed chips for this, but we are building an alternative BMC module using Nuvoton BMC chips.
Quoted 8 lines
There are few ways to solve this, like having different compatibles or having some shared compatibles to note common part of hardware. However usually the final compatible represents the final device, which here you use for two entirely different products. This works only for the cases of carrier boards, where that compatible indeed represents the same hardware.
Not your case. This needs fixing.
This patch:
(quoted diff) +2
-0+ model = "Facebook Yosemite 4 BMC"; + compatible = "facebook,yosemite4-n-bmc", "nuvoton,npcm845";Aspeed patch:
(quoted diff) +2
-0+ model = "Facebook Yosemite 4 BMC"; + compatible = "facebook,yosemite4-bmc", "aspeed,ast2600";
Quoted 3 lines
These have different compatibles already ('-n' for Nuvoton). Do we just need the model to be clearly different also? Maybe there is something else I'm not understanding.
Ah, no, it's fine. It is just a bit confusing.
However commit msg for sure misses a lot of this explanation. Please write something useful to avoid such discussions...
Best regards,
Krzysztof
PATCH 2/2 ARM64: dts: nuvoton: Add initial yosemitev4 device tree
In reply to Delphine CC ChiuAdd linux device tree entry related to
Yosemite 4 specific devices connected to BMC SoC.
--- arch/arm64/boot/dts/nuvoton/Makefile | 1 + .../dts/nuvoton/nuvoton-npcm845-yosemite4.dts | 1493 +++++++++++++++++ 2 files changed, 1494 insertions(+) create mode 100644 arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts
arch/arm64/boot/dts/nuvoton/Makefile +1 -0
@@ -2,3 +2,4 @@ dtb-$(CONFIG_ARCH_MA35) += ma35d1-iot-512m.dtb dtb-$(CONFIG_ARCH_MA35) += ma35d1-som-256m.dtb dtb-$(CONFIG_ARCH_NPCM) += nuvoton-npcm845-evb.dtb +dtb-$(CONFIG_ARCH_NPCM) += nuvoton-npcm845-yosemite4.dtb
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts new file +1493 -0
1,493 lines not on this page · raw message
Signature · 1 line
2.25.1
Re: [PATCH v1 2/2] ARM64: dts: nuvoton: Add initial yosemitev4 device tree
Quoted 3 lines · Delphine CC Chiu
Add linux device tree entry related to
Yosemite 4 specific devices connected to BMC SoC.
Prefix is arm64, not ARM64.
Quoted 103 lines
Signed-off-by Delphine CC Chiu <[email protected]>--- arch/arm64/boot/dts/nuvoton/Makefile | 1 + .../dts/nuvoton/nuvoton-npcm845-yosemite4.dts | 1493 +++++++++++++++++ 2 files changed, 1494 insertions(+) create mode 100644 arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dtsarch/arm64/boot/dts/nuvoton/Makefile +1
-0@@ -2,3 +2,4 @@ dtb-$(CONFIG_ARCH_MA35) += ma35d1-iot-512m.dtb dtb-$(CONFIG_ARCH_MA35) += ma35d1-som-256m.dtb dtb-$(CONFIG_ARCH_NPCM) += nuvoton-npcm845-evb.dtb +dtb-$(CONFIG_ARCH_NPCM) += nuvoton-npcm845-yosemite4.dtbarch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts new file +81
-0@@ -0,0 +1,1493 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +// Copyright 2023 Facebook Inc. + +/dts-v1/; +#include "nuvoton-npcm845.dtsi" +#include "nuvoton-npcm845-pincfg-evb.dtsi" +#include <dt-bindings/i2c/i2c.h> + +/ { + model = "Facebook Yosemite 4 BMC"; + compatible = "facebook,yosemite4-n-bmc", "nuvoton,npcm845"; + + aliases { + serial4 = &serial0; + serial0 = &serial1; + serial1 = &serial3; + serial2 = &serial4; + serial3 = &serial5; + serial5 = &cpld_serial0; + serial6 = &cpld_serial1; + serial7 = &cpld_serial2; + serial8 = &cpld_serial3; + fiu0 = &fiu0; + + i2c16 = &imux16; + i2c17 = &imux17; + i2c18 = &imux18; + i2c19 = &imux19; + i2c20 = &imux20; + i2c21 = &imux21; + i2c22 = &imux22; + i2c23 = &imux23; + i2c24 = &imux24; + i2c25 = &imux25; + i2c26 = &imux26; + i2c27 = &imux27; + i2c28 = &imux28; + i2c29 = &imux29; + i2c30 = &imux30; + i2c31 = &imux31; + i2c32 = &imux32; + i2c33 = &imux33; + i2c34 = &imux34; + i2c35 = &imux35; + i2c36 = &imux36; + i2c37 = &imux37; + }; + + chosen { + stdout-path = &serial0; + }; + + memory { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x40000000>; + }; + + iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, + <&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>; + }; + + firmware { + optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + tip_reserved: tip@0x0 { + reg = <0x0 0x0 0x0 0x6200000>; + }; + }; + + spi_gpio: spi-gpio {
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts line 91
Quoted 10 lines
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts new file +10
-0+ compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + gpio-sck = <&gpio0 19 GPIO_ACTIVE_HIGH>; // GPIO19 + gpio-mosi = <&gpio0 18 GPIO_ACTIVE_HIGH>; // GPIO18 + gpio-miso = <&gpio0 17 GPIO_ACTIVE_HIGH>; // GPIO17 + num-chipselects = <1>; + cs-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>; // GPIO203 + + tpmdev@0 {
Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts line 92
Quoted 1 line
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts new file +1
-0+ compatible = "tcg,tpm_tis-spi";
Please base on ongoing work adding specific compatibles.
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts line 94
Quoted 2 lines
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts new file +2
-0+ spi-max-frequency = <33000000>; + reg = <0>;
reg is always after compatible.
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts line 98
Quoted 4 lines
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts new file +4
-0+ }; + }; + + cpld_serial0: cpld_uart@f8000800 {
Eh... so again you make the same mistakes and send the same downstream poor code with the same bad patterns we asked to fix.
Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts line 99
Quoted 1 line
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts new file +1
-0+ device_type = "serial";
compatible is always first, reg is second. Why do you need this property anyway?
Quoted 76 lines
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts new file +76
-0+ compatible = "ns16450"; + reg = <0x0 0xf8000800 0x0 0x200>; + reg-shift = <0>; + clocks = <&clk NPCM8XX_CLK_UART>; + interrupt-parent = <&gpio1>; + interrupts = <15 IRQ_TYPE_EDGE_FALLING>; + }; + + cpld_serial1: cpld_uart@f8000a00 { + device_type = "serial"; + compatible = "ns16450"; + reg = <0x0 0xf8000a00 0x0 0x200>; + reg-shift = <0>; + clocks = <&clk NPCM8XX_CLK_UART>; + interrupt-parent = <&gpio1>; + interrupts = <15 IRQ_TYPE_EDGE_FALLING>; + }; + + cpld_serial2: cpld_uart@f8000c00 { + device_type = "serial"; + compatible = "ns16450"; + reg = <0x0 0xf8000c00 0x0 0x200>; + reg-shift = <0>; + clocks = <&clk NPCM8XX_CLK_UART>; + interrupt-parent = <&gpio1>; + interrupts = <15 IRQ_TYPE_EDGE_FALLING>; + }; + + cpld_serial3: cpld_uart@f8000e00 { + device_type = "serial"; + compatible = "ns16450"; + reg = <0x0 0xf8000e00 0x0 0x200>; + reg-shift = <0>; + clocks = <&clk NPCM8XX_CLK_UART>; + interrupt-parent = <&gpio1>; + interrupts = <15 IRQ_TYPE_EDGE_FALLING>; + }; +}; + +&serial0 { + status = "okay"; +}; + +&serial1 { + status = "okay"; +}; + +&serial3 { + status = "okay"; +}; + +&serial4 { + status = "okay"; +}; + +&serial5 { + status = "okay"; +}; + +&watchdog1 { + status = "okay"; +}; + +&watchdog2 { + status = "okay"; +}; + +&gmac2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&r1_pins + &r1oen_pins>; + use-ncsi; +}; + +&gmac3 {
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts line 185
Quoted 10 lines
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts new file +10
-0+ status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&r2_pins + &r2oen_pins>; + use-ncsi; +}; + +&fiu0 { + status = "okay"; + spi-nor@0 {
NAK
I am not going review further. You keep repeating the same mistakes.
Best regards,
Krzysztof
kernel test robot
build botRe: [PATCH v1 2/2] ARM64: dts: nuvoton: Add initial yosemitev4 device tree
In reply to Delphine CC Chiukernel test robot noticed the following build errors:
Hi Delphine,
kernel test robot noticed the following build errors:
[auto build test ERROR on robh/for-next]
[also build test ERROR on linus/master v6.7 next-20240112] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Delphine-CC-Chiu/dt-bindings-arm-nuvoton-add-Facebook-Yosemite-4-board/20240112-094033 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/20240112013654.1424451-3-Delphine_CC_Chiu%40wiwynn.com patch subject: [PATCH v1 2/2] ARM64: dts: nuvoton: Add initial yosemitev4 device tree config: arm64-defconfig (https://download.01.org/0day-ci/archive/20240113/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240113/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts:6:10: fatal error: nuvoton-npcm845-pincfg-evb.dtsi: No such file or directory
6 | #include "nuvoton-npcm845-pincfg-evb.dtsi"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~compilation terminated.
vim +6 arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts
3
4 /dts-v1/;
5 #include "nuvoton-npcm845.dtsi"
> 6 #include "nuvoton-npcm845-pincfg-evb.dtsi"
7 #include <dt-bindings/i2c/i2c.h>
8 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
kernel test robot
build botRe: [PATCH v1 2/2] ARM64: dts: nuvoton: Add initial yosemitev4 device tree
In reply to Delphine CC Chiukernel test robot noticed the following build errors:
Hi Delphine,
kernel test robot noticed the following build errors:
[auto build test ERROR on robh/for-next]
[also build test ERROR on linus/master v6.7 next-20240112] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Delphine-CC-Chiu/dt-bindings-arm-nuvoton-add-Facebook-Yosemite-4-board/20240112-094033 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/20240112013654.1424451-3-Delphine_CC_Chiu%40wiwynn.com patch subject: [PATCH v1 2/2] ARM64: dts: nuvoton: Add initial yosemitev4 device tree config: arm64-randconfig-003-20240112 (https://download.01.org/0day-ci/archive/20240113/[email protected]/config) compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project 9bde5becb44ea071f5e1fa1f5d4071dc8788b18c) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240113/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts:6:10: fatal error: 'nuvoton-npcm845-pincfg-evb.dtsi' file not found
6 | #include "nuvoton-npcm845-pincfg-evb.dtsi"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~1 error generated.
vim +6 arch/arm64/boot/dts/nuvoton/nuvoton-npcm845-yosemite4.dts
3
4 /dts-v1/;
5 #include "nuvoton-npcm845.dtsi"
> 6 #include "nuvoton-npcm845-pincfg-evb.dtsi"
7 #include <dt-bindings/i2c/i2c.h>
8 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki