Add initial support for MA35D1 SoC
Subsystems (6)
Jacky Huang
maintainerv3 cover Add initial support for MA35D1 SoC
This patch series adds initial support for Nuvoton MA35D1 SoC, include initial dts and clock controller binding.
v3:
- added patch 4/5 and 5/5
- introduce CONFIG_ARCH_NUVOTON option
- add initial bindings for Nuvoton Platform boards
- fixed coding style problem of nuvoton,ma35d1-clk.h
- added CAPLL to clock-controller node
- modify the chosen node of ma35d1-evb.dts
- modify clock yaml "clk-pll-mode" to "nuvoton,clk-pll-mode"
v2:
- fixed dt_binding_check failed of nuvoton,ma35d1-clk.yaml
Jacky Huang (5):
dt-bindings: clock: add binding for MA35D1 clock controller
dt-bindings: clock: Document MA35D1 clock controller bindings
arm64: dts: nuvoton: Add initial support for MA35D1
arm64: Kconfig: nuvoton: Introduce CONFIG_ARCH_NUVOTON
dt-bindings: arm: Add initial bindings for Nuvoton Platform
.../devicetree/bindings/arm/nuvoton.yaml | 27 ++ .../bindings/clock/nuvoton,ma35d1-clk.yaml | 63 +++++ arch/arm64/Kconfig.platforms | 10 + arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/nuvoton/Makefile | 2 + arch/arm64/boot/dts/nuvoton/ma35d1-evb.dts | 24 ++ arch/arm64/boot/dts/nuvoton/ma35d1.dtsi | 111 ++++++++ .../dt-bindings/clock/nuvoton,ma35d1-clk.h | 260 ++++++++++++++++++ 8 files changed, 498 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/nuvoton.yaml create mode 100644 Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml create mode 100644 arch/arm64/boot/dts/nuvoton/Makefile create mode 100644 arch/arm64/boot/dts/nuvoton/ma35d1-evb.dts create mode 100644 arch/arm64/boot/dts/nuvoton/ma35d1.dtsi create mode 100644 include/dt-bindings/clock/nuvoton,ma35d1-clk.h
Signature · 1 line
2.17.1
Jacky Huang
maintainerPATCH v3 1/5 dt-bindings: clock: add binding for MA35D1 clock controller
Add the dt-bindings header for Nuvoton MA35D1, that gets shared between the clock controller and clock references in the dts.
--- .../dt-bindings/clock/nuvoton,ma35d1-clk.h | 260 ++++++++++++++++++ 1 file changed, 260 insertions(+) create mode 100644 include/dt-bindings/clock/nuvoton,ma35d1-clk.h
include/dt-bindings/clock/nuvoton,ma35d1-clk.h new file +260 -0
@@ -0,0 +1,260 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ +/* +* Copyright (c) 2022 Nuvoton Technology Corporation. +*/ + +#ifndef __DT_BINDINGS_CLOCK_NUVOTON_MA35D1_CLK_H +#define __DT_BINDINGS_CLOCK_NUVOTON_MA35D1_CLK_H + +/* Clock Sources */ +/* External and Internal oscillator clocks */ +#define HXT 0 +#define HXT_GATE 1 +#define LXT 2 +#define LXT_GATE 3 +#define HIRC 4 +#define HIRC_GATE 5 +#define LIRC 6 +#define LIRC_GATE 7 + +/* PLLs */ +#define CAPLL 8 +#define SYSPLL 9 +#define DDRPLL 10 +#define APLL 11 +#define EPLL 12 +#define VPLL 13 + +/* EPLL Divider */ +#define EPLL_DIV2 14 +#define EPLL_DIV4 15 +#define EPLL_DIV8 16 + +/* CA35 CPU Clock, System Clock, AXI, HCLK and PCLK */ +#define CA35CLK_MUX 17 +#define AXICLK_DIV2 18 +#define AXICLK_DIV4 19 +#define AXICLK_MUX 20 +#define SYSCLK0_MUX 21 +#define SYSCLK1_MUX 22 +#define SYSCLK1_DIV2 23 +#define HCLK0 24 +#define HCLK1 25 +#define HCLK2 26 +#define PCLK0 27 +#define PCLK1 28 +#define PCLK2 29 +#define HCLK3 30 +#define PCLK3 31 +#define PCLK4 32 + +/* Peripheral clocks */ +/* AXI and AHB Clocks */ +#define USBPHY0 33 +#define USBPHY1 34 +#define DDR0_GATE 35 +#define DDR6_GATE 36 +#define CAN0_MUX 37 +#define CAN0_DIV 38 +#define CAN0_GATE 39 +#define CAN1_MUX 40 +#define CAN1_DIV 41 +#define CAN1_GATE 42 +#define CAN2_MUX 43 +#define CAN2_DIV 44 +#define CAN2_GATE 45 +#define CAN3_MUX 46 +#define CAN3_DIV 47 +#define CAN3_GATE 48 +#define SDH0_MUX 49 +#define SDH0_GATE 50 +#define SDH1_MUX 51 +#define SDH1_GATE 52 +#define NAND_GATE 53 +#define USBD_GATE 54 +#define USBH_GATE 55 +#define HUSBH0_GATE 56 +#define HUSBH1_GATE 57 +#define GFX_MUX 58 +#define GFX_GATE 59 +#define VC8K_GATE 60 +#define DCU_MUX 61 +#define DCU_GATE 62 +#define DCUP_DIV 63 +#define EMAC0_GATE 64 +#define EMAC1_GATE 65 +#define CCAP0_MUX 66 +#define CCAP0_DIV 67 +#define CCAP0_GATE 68 +#define CCAP1_MUX 69 +#define CCAP1_DIV 70 +#define CCAP1_GATE 71 +#define PDMA0_GATE 72 +#define PDMA1_GATE 73 +#define PDMA2_GATE 74 +#define PDMA3_GATE 75 +#define WH0_GATE 76 +#define WH1_GATE 77 +#define HWS_GATE 78 +#define EBI_GATE 79 +#define SRAM0_GATE 80 +#define SRAM1_GATE 81 +#define ROM_GATE 82 +#define TRA_GATE 83 +#define DBG_MUX 84 +#define DBG_GATE 85 +#define CKO_MUX 86 +#define CKO_DIV 87 +#define CKO_GATE 88 +#define GTMR_GATE 89 +#define GPA_GATE 90 +#define GPB_GATE 91 +#define GPC_GATE 92 +#define GPD_GATE 93 +#define GPE_GATE 94 +#define GPF_GATE 95 +#define GPG_GATE 96 +#define GPH_GATE 97 +#define GPI_GATE 98 +#define GPJ_GATE 99 +#define GPK_GATE 100 +#define GPL_GATE 101 +#define GPM_GATE 102 +#define GPN_GATE 103 + +/* APB Clocks */ +#define TMR0_MUX 104 +#define TMR0_GATE 105 +#define TMR1_MUX 106 +#define TMR1_GATE 107 +#define TMR2_MUX 108 +#define TMR2_GATE 109 +#define TMR3_MUX 110 +#define TMR3_GATE 111 +#define TMR4_MUX 112 +#define TMR4_GATE 113 +#define TMR5_MUX 114 +#define TMR5_GATE 115 +#define TMR6_MUX 116 +#define TMR6_GATE 117 +#define TMR7_MUX 118 +#define TMR7_GATE 119 +#define TMR8_MUX 120 +#define TMR8_GATE 121 +#define TMR9_MUX 122 +#define TMR9_GATE 123 +#define TMR10_MUX 124 +#define TMR10_GATE 125 +#define TMR11_MUX 126 +#define TMR11_GATE 127 +#define UART0_MUX 128 +#define UART0_DIV 129 +#define UART0_GATE 130 +#define UART1_MUX 131 +#define UART1_DIV 132 +#define UART1_GATE 133 +#define UART2_MUX 134 +#define UART2_DIV 135 +#define UART2_GATE 136 +#define UART3_MUX 137 +#define UART3_DIV 138 +#define UART3_GATE 139 +#define UART4_MUX 140 +#define UART4_DIV 141 +#define UART4_GATE 142 +#define UART5_MUX 143 +#define UART5_DIV 144 +#define UART5_GATE 145 +#define UART6_MUX 146 +#define UART6_DIV 147 +#define UART6_GATE 148 +#define UART7_MUX 149 +#define UART7_DIV 150 +#define UART7_GATE 151 +#define UART8_MUX 152 +#define UART8_DIV 153 +#define UART8_GATE 154 +#define UART9_MUX 155 +#define UART9_DIV 156 +#define UART9_GATE 157 +#define UART10_MUX 158 +#define UART10_DIV 159 +#define UART10_GATE 160 +#define UART11_MUX 161 +#define UART11_DIV 162 +#define UART11_GATE 163 +#define UART12_MUX 164 +#define UART12_DIV 165 +#define UART12_GATE 166 +#define UART13_MUX 167 +#define UART13_DIV 168 +#define UART13_GATE 169 +#define UART14_MUX 170 +#define UART14_DIV 171 +#define UART14_GATE 172 +#define UART15_MUX 173 +#define UART15_DIV 174 +#define UART15_GATE 175 +#define UART16_MUX 176 +#define UART16_DIV 177 +#define UART16_GATE 178 +#define RTC_GATE 179 +#define DDR_GATE 180 +#define KPI_MUX 181 +#define KPI_DIV 182 +#define KPI_GATE 183 +#define I2C0_GATE 184 +#define I2C1_GATE 185 +#define I2C2_GATE 186 +#define I2C3_GATE 187 +#define I2C4_GATE 188 +#define I2C5_GATE 189 +#define QSPI0_MUX 190 +#define QSPI0_GATE 191 +#define QSPI1_MUX 192 +#define QSPI1_GATE 193 +#define SMC0_MUX 194 +#define SMC0_DIV 195 +#define SMC0_GATE 196 +#define SMC1_MUX 197 +#define SMC1_DIV 198 +#define SMC1_GATE 199 +#define WDT0_MUX 200 +#define WDT0_GATE 201 +#define WDT1_MUX 202 +#define WDT1_GATE 203 +#define WDT2_MUX 204 +#define WDT2_GATE 205 +#define WWDT0_MUX 206 +#define WWDT1_MUX 207 +#define WWDT2_MUX 208 +#define EPWM0_GATE 209 +#define EPWM1_GATE 210 +#define EPWM2_GATE 211 +#define I2S0_MUX 212 +#define I2S0_GATE 213 +#define I2S1_MUX 214 +#define I2S1_GATE 215 +#define SSMCC_GATE 216 +#define SSPCC_GATE 217 +#define SPI0_MUX 218 +#define SPI0_GATE 219 +#define SPI1_MUX 220 +#define SPI1_GATE 221 +#define SPI2_MUX 222 +#define SPI2_GATE 223 +#define SPI3_MUX 224 +#define SPI3_GATE 225 +#define ECAP0_GATE 226 +#define ECAP1_GATE 227 +#define ECAP2_GATE 228 +#define QEI0_GATE 229 +#define QEI1_GATE 230 +#define QEI2_GATE 231 +#define ADC_DIV 232 +#define ADC_GATE 233 +#define EADC_DIV 234 +#define EADC_GATE 235 +#define CLK_MAX_IDX 236 + +#endif /* __DT_BINDINGS_CLOCK_NUVOTON_MA35D1_CLK_H */
Signature · 1 line
2.17.1
Re: [PATCH v3 1/5] dt-bindings: clock: add binding for MA35D1 clock controller
Quoted 4 lines · Jacky Huang
Add the dt-bindings header for Nuvoton MA35D1, that gets shared between the clock controller and clock references in the dts.
Signed-off-by Jacky Huang <[email protected]>
Best regards,
Krzysztof
Jacky Huang
maintainerPATCH v3 2/5 dt-bindings: clock: Document MA35D1 clock controller bindings
In reply to Jacky HuangAdd documentation to describe Nuvoton MA35D1 clock driver bindings.
--- .../bindings/clock/nuvoton,ma35d1-clk.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +63 -0
@@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/nuvoton,ma35d1-clk.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton MA35D1 Clock Control Module Binding + +maintainers: + - Chi-Fang Li <[email protected]> + - Jacky Huang <[email protected]> + +description: | + The MA35D1 clock controller generates clocks for the whole chip, + including system clocks and all peripheral clocks. + + See also: + include/dt-bindings/clock/ma35d1-clk.h + +properties: + compatible: + const: nuvoton,ma35d1-clk + + reg: + maxItems: 1 + + "#clock-cells": + const: 1 + + assigned-clocks: + minItems: 5 + maxItems: 5 + + assigned-clock-rates: + minItems: 5 + maxItems: 5 + + nuvoton,clk-pll-mode: + A list of PLL operation mode corresponding to DDRPLL, APLL, EPLL, + and VPLL in sequential. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 5 + maxItems: 5 + items: + enum: [ 0, 1, 2 ] + +required: + - compatible + - reg + - "#clock-cells" + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/nuvoton,ma35d1-clk.h> + + clk: clock-controller@40460200 { + compatible = "nuvoton,ma35d1-clk"; + reg = <0x0 0x40460200 0x0 0x100>; + #clock-cells = <1>; + }; +...
Signature · 1 line
2.17.1
Re: [PATCH v3 2/5] dt-bindings: clock: Document MA35D1 clock controller bindings
Quoted 2 lines · Jacky Huang
Add documentation to describe Nuvoton MA35D1 clock driver bindings.
You skipped the review tag, so I assume because of amount of changes. Usually it is nice to mention it...
Quoted 32 lines
Signed-off-by Jacky Huang <[email protected]>--- .../bindings/clock/nuvoton,ma35d1-clk.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yamlDocumentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +20
-0@@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/nuvoton,ma35d1-clk.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton MA35D1 Clock Control Module Binding + +maintainers: + - Chi-Fang Li <[email protected]> + - Jacky Huang <[email protected]> + +description: | + The MA35D1 clock controller generates clocks for the whole chip, + including system clocks and all peripheral clocks. + + See also: + include/dt-bindings/clock/ma35d1-clk.h + +properties:
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml line 30
Quoted 10 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +10
-0+ compatible: + const: nuvoton,ma35d1-clk + + reg: + maxItems: 1 + + "#clock-cells": + const: 1 + + assigned-clocks:
What about clocks? This depends on clocks. What clocks do you want to assign if they are not an input to the device?
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml line 32
Quoted 2 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +2
-0+ minItems: 5 + maxItems: 5
This is different than before. minItems should not be here.
Why do you need assigned-clocks in the binding at all?
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml line 40
Quoted 8 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +8
-0+ + assigned-clock-rates: + minItems: 5 + maxItems: 5 + + nuvoton,clk-pll-mode: + A list of PLL operation mode corresponding to DDRPLL, APLL, EPLL, + and VPLL in sequential.
This does not look like a binding which was tested. Read "writing-schema" and test your bindings.
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml line 42
Quoted 2 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +2
-0+ $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 5
No need for minItems.
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml line 45
Quoted 3 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +3
-0+ maxItems: 5 + items: + enum: [ 0, 1, 2 ]
You need to describe the values in description, what's their meaning.
Quoted 8 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +8
-0+ +required: + - compatible + - reg + - "#clock-cells" + +additionalProperties: false +
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml line 63
Quoted 10 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +10
-0+examples: + - | + #include <dt-bindings/clock/nuvoton,ma35d1-clk.h> + + clk: clock-controller@40460200 { + compatible = "nuvoton,ma35d1-clk"; + reg = <0x0 0x40460200 0x0 0x100>; + #clock-cells = <1>; + }; +...
Best regards,
Krzysztof
Jacky Huang
maintainerRe: [PATCH v3 2/5] dt-bindings: clock: Document MA35D1 clock controller bindings
Quoted 5 lines · Krzysztof Kozlowski
Quoted 2 lines · Jacky Huang
Add documentation to describe Nuvoton MA35D1 clock driver bindings.
You skipped the review tag, so I assume because of amount of changes. Usually it is nice to mention it...
I search the mail loop and find the "Reviewed-by" tag. Now I know I should add the review tag to my patch. Thanks for your reminding.
Quoted 36 lines
Quoted 36 lines
Signed-off-by Jacky Huang <[email protected]>--- .../bindings/clock/nuvoton,ma35d1-clk.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+)create mode 100644
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yamlDocumentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +24
-0@@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdevicetree.org%2Fschemas%2Fclock%2Fnuvoton%2Cma35d1-clk.yaml%23&data=05%7C01%7Cychuang3%40nuvoton.com%7C345b237bf1254018654b08da213588f9%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C637858811062058468%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=gCnLGCaMeUI4kdu23m0T9g6eGPd37z8%2BatQQb%2Ftnxb4%3D&reserved=0 +$schema: https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdevicetree.org%2Fmeta-schemas%2Fcore.yaml%23&data=05%7C01%7Cychuang3%40nuvoton.com%7C345b237bf1254018654b08da213588f9%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C637858811062058468%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dj6FannQd0GxVJ%2BGlAjqs08SbNzPKi6ibdyLxLfR4q4%3D&reserved=0 + +title: Nuvoton MA35D1 Clock Control Module Binding + +maintainers: + - Chi-Fang Li <[email protected]> + - Jacky Huang <[email protected]> + +description: | + The MA35D1 clock controller generates clocks for the whole chip, + including system clocks and all peripheral clocks. + + See also: + include/dt-bindings/clock/ma35d1-clk.h + +properties: + compatible: + const: nuvoton,ma35d1-clk + + reg:
Quoted 8 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml line 30
Quoted 6 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +6
-0+ maxItems: 1 + + "#clock-cells": + const: 1 + + assigned-clocks:What about clocks? This depends on clocks. What clocks do you want to assign if they are not an input to the device?
The clock source of all PLLs are from external 24 MHz crystal. Yes, I should add clocks such as
clocks = <&hxt_24m>
and add a node
hxt_24m: hxt_24m {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <24000000>;
clock-output-names = "hxt_24m";
};
Quoted 5 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml line 32
Quoted 2 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +2
-0+ minItems: 5 + maxItems: 5This is different than before. minItems should not be here.
Why do you need assigned-clocks in the binding at all?
The clock controller is equipped with 5 PLLs, which generated clocks for CPU, DDR, and various peripheral bus. The assigned-clocks describe these PLL output clocks.
I will remove the minItems.
Quoted 10 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml line 40
Quoted 8 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +8
-0+ + assigned-clock-rates: + minItems: 5 + maxItems: 5 + + nuvoton,clk-pll-mode: + A list of PLL operation mode corresponding to DDRPLL, APLL, EPLL, + and VPLL in sequential.This does not look like a binding which was tested. Read "writing-schema" and test your bindings.
"nuvoton,clk-pll-mode" is a nonstandard property used to describe the operation mode of corresponding PLLs.
(According to Device tree Specification section "2.2.4 Properties"
Nonstandard property names should specify a unique string prefix, such as a stock ticker symbol, identifying the name of the company or organization that defined the property. Examples:
fsl,channel-fifo-len
ibm,ppc-interrupt-server#s
linux,network-index)
Quoted 3 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml line 42
Quoted 2 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +2
-0+ $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 5No need for minItems.
Yes, I will remove it.
Quoted 4 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml line 45
Quoted 3 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +3
-0+ maxItems: 5 + items: + enum: [ 0, 1, 2 ]You need to describe the values in description, what's their meaning.
OK, I will add description about the values represented for PLL operation modes.
Quoted 13 lines
Quoted 13 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +13
-0+ +required: + - compatible + - reg + - "#clock-cells" + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/nuvoton,ma35d1-clk.h> + + clk: clock-controller@40460200 {
Quoted 8 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml line 63
Quoted 5 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +5
-0+ compatible = "nuvoton,ma35d1-clk"; + reg = <0x0 0x40460200 0x0 0x100>; + #clock-cells = <1>; + }; +...Best regards,
Krzysztof
Thanks for your review.
Sincerely,
Jacky Huang
Re: [PATCH v3 2/5] dt-bindings: clock: Document MA35D1 clock controller bindings
Quoted 11 lines · Jacky Huang
Quoted 10 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml line 40
Quoted 8 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +8
-0+ + assigned-clock-rates: + minItems: 5 + maxItems: 5 + + nuvoton,clk-pll-mode: + A list of PLL operation mode corresponding to DDRPLL, APLL, EPLL, + and VPLL in sequential.This does not look like a binding which was tested. Read "writing-schema" and test your bindings.
Quoted 8 lines
"nuvoton,clk-pll-mode" is a nonstandard property used to describe the operation mode of
corresponding PLLs.(According to Device tree Specification section "2.2.4 Properties" Nonstandard property names should specify a unique string prefix, such as a stock ticker symbol, identifying the name of
the company or organization that defined the property. Examples:
I am not saying about property name. I replied under some description below which fails to build.
Instead please test your bindings.
Best regards,
Krzysztof
Jacky Huang
maintainerRe: [PATCH v3 2/5] dt-bindings: clock: Document MA35D1 clock controller bindings
Quoted 19 lines · Krzysztof Kozlowski
Quoted 10 lines · Jacky Huang
Quoted 10 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml line 40
Quoted 8 lines
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml new file +8
-0+ + assigned-clock-rates: + minItems: 5 + maxItems: 5 + + nuvoton,clk-pll-mode: + A list of PLL operation mode corresponding to DDRPLL, APLL, EPLL, + and VPLL in sequential.This does not look like a binding which was tested. Read "writing-schema" and test your bindings.
Quoted 8 lines
"nuvoton,clk-pll-mode" is a nonstandard property used to describe the operation mode of
corresponding PLLs.(According to Device tree Specification section "2.2.4 Properties" Nonstandard property names should specify a unique string prefix, such as a stock ticker symbol, identifying the name of
the company or organization that defined the property. Examples:
Quoted 7 lines
I am not saying about property name. I replied under some description below which fails to build.
Instead please test your bindings.
Best regards,
Krzysztof
OK, I got it. I found the error by dt_binding_check. I will fix them in the next version.
Thank you very much.
Jacky Huang
Rob Herring
maintainerRe: [PATCH v3 2/5] dt-bindings: clock: Document MA35D1 clock controller bindings
In reply to Jacky HuangQuoted 8 lines · Jacky Huang
Add documentation to describe Nuvoton MA35D1 clock driver bindings.
Signed-off-by Jacky Huang <[email protected]>--- .../bindings/clock/nuvoton,ma35d1-clk.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:./Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml:41:9: [error] syntax error: mapping values are not allowed here (syntax)
dtschema/dtc warnings/errors:
make[1]: *** Deleting file 'Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.example.dts'
Traceback (most recent call last):
File "/usr/local/bin/dt-extract-example", line 52, in <module>
binding = yaml.load(open(args.yamlfile, encoding='utf-8').read())
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/main.py", line 434, in load
return constructor.get_single_data()
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 119, in get_single_data
node = self.composer.get_single_node()
File "_ruamel_yaml.pyx", line 706, in _ruamel_yaml.CParser.get_single_node
File "_ruamel_yaml.pyx", line 724, in _ruamel_yaml.CParser._compose_document
File "_ruamel_yaml.pyx", line 775, in _ruamel_yaml.CParser._compose_node
File "_ruamel_yaml.pyx", line 889, in _ruamel_yaml.CParser._compose_mapping_node
File "_ruamel_yaml.pyx", line 775, in _ruamel_yaml.CParser._compose_node
File "_ruamel_yaml.pyx", line 891, in _ruamel_yaml.CParser._compose_mapping_node
File "_ruamel_yaml.pyx", line 904, in _ruamel_yaml.CParser._parse_next_event
ruamel.yaml.scanner.ScannerError: mapping values are not allowed in this context
in "<unicode string>", line 41, column 9
make[1]: *** [Documentation/devicetree/bindings/Makefile:26: Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.example.dts] Error 1 make[1]: *** Waiting for unfinished jobs...../Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml: mapping values are not allowed in this context
in "<unicode string>", line 41, column 9
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml: ignoring, error parsing file
make: *** [Makefile:1401: dt_binding_check] Error 2
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/
This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit.
Jacky Huang
maintainerRe: [PATCH v3 2/5] dt-bindings: clock: Document MA35D1 clock controller bindings
Quoted 47 lines · Rob Herring
Quoted 8 lines · Jacky Huang
Add documentation to describe Nuvoton MA35D1 clock driver bindings.
Signed-off-by Jacky Huang <[email protected]>--- .../bindings/clock/nuvoton,ma35d1-clk.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+)create mode 100644
Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yamlMy bot found errors running 'make DT_CHECKER_FLAGS=-m
dt_binding_check' on your patch (DT_CHECKER_FLAGSis new in v5.13):yamllint warnings/errors:
./Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml:41:9: [error] syntax error: mapping values are not allowed here (syntax)dtschema/dtc warnings/errors:
make[1]: *** Deleting file 'Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.example.dts'
Traceback (most recent call last):
File "/usr/local/bin/dt-extract-example", line 52, in <module>
binding =yaml.load(open(args.yamlfile, encoding='utf-8').read())
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/main.py", line 434, in load
returnconstructor.get_single_data()
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 119, inget_single_data
node =self.composer.get_single_node()
File "_ruamel_yaml.pyx", line 706, in _ruamel_yaml.CParser.get_single_node
File "_ruamel_yaml.pyx", line 724, in _ruamel_yaml.CParser._compose_document
File "_ruamel_yaml.pyx", line 775, in _ruamel_yaml.CParser._compose_node
File "_ruamel_yaml.pyx", line 889, in _ruamel_yaml.CParser._compose_mapping_node
File "_ruamel_yaml.pyx", line 775, in _ruamel_yaml.CParser._compose_node
File "_ruamel_yaml.pyx", line 891, in _ruamel_yaml.CParser._compose_mapping_node
File "_ruamel_yaml.pyx", line 904, in _ruamel_yaml.CParser._parse_next_event
ruamel.yaml.scanner.ScannerError: mapping values are not allowed in this context
in "<unicode string>", line 41, column 9
make[1]: *** [Documentation/devicetree/bindings/Makefile:26:Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.example.dts] Error 1 make[1]: *** Waiting for unfinished jobs...../Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml: mapping values are not allowed in this context
in "<unicode string>", line 41, column 9
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/clock/nuvoton,ma35d1-clk.yaml: ignoring, error parsing file
make: *** [Makefile:1401:dt_binding_check] Error 2doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/
This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.
Quoted 8 lines
If you already ran 'make
dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:pip3 install dtschema --upgrade
Please check and re-submit.
Thanks for your review.
I see this error and know where the problem is. I will fix it in the next version.
Sincerely,
Jacky Huang
Jacky Huang
maintainerPATCH v3 3/5 arm64: dts: nuvoton: Add initial support for MA35D1
In reply to Jacky HuangAdd the initial device tree files for Nuvoton MA35D1 Soc.
--- arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/nuvoton/Makefile | 2 + arch/arm64/boot/dts/nuvoton/ma35d1-evb.dts | 24 +++++ arch/arm64/boot/dts/nuvoton/ma35d1.dtsi | 111 +++++++++++++++++++++ 4 files changed, 138 insertions(+) create mode 100644 arch/arm64/boot/dts/nuvoton/Makefile create mode 100644 arch/arm64/boot/dts/nuvoton/ma35d1-evb.dts create mode 100644 arch/arm64/boot/dts/nuvoton/ma35d1.dtsi
arch/arm64/boot/dts/Makefile +1 -0
@@ -19,6 +19,7 @@ subdir-y += lg subdir-y += marvell subdir-y += mediatek subdir-y += microchip +subdir-y += nuvoton subdir-y += nvidia subdir-y += qcom subdir-y += realtek
arch/arm64/boot/dts/nuvoton/Makefile new file +2 -0
@@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +dtb-$(CONFIG_ARCH_NUVOTON) += ma35d1-evb.dtb
arch/arm64/boot/dts/nuvoton/ma35d1-evb.dts new file +24 -0
@@ -0,0 +1,24 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +/* + * Device Tree Source for MA35D1 Evaluation Board (EVB) + * + * Copyright (C) 2022 Nuvoton Technology Corp. + */ + +/dts-v1/; +#include "ma35d1.dtsi" + +/ { + model = "Nuvoton MA35D1-EVB"; + compatible = "nuvoton,ma35d1-evb", "nuvoton,ma35d1"; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x0 0x80000000 0x0 0x10000000>; + }; +}; +
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi new file +111 -0
111 lines not on this page · raw message
Signature · 1 line
2.17.1
Re: [PATCH v3 3/5] arm64: dts: nuvoton: Add initial support for MA35D1
Quoted 2 lines · Jacky Huang
Add the initial device tree files for Nuvoton MA35D1 Soc.
(...)
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi line 99
Quoted 1 line
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi new file +1
-0+ gic: interrupt-controller@50800000 {
The unit address does not match first reg property. Don't you have warnings with this?
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi line 111
Quoted 12 lines
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi new file +12
-0+ compatible = "arm,gic-400"; + #interrupt-cells = <3>; + interrupt-parent = <&gic>; + interrupt-controller; + reg = <0x0 0x50801000 0x0 0x1000>, + <0x0 0x50802000 0x0 0x2000>, + <0x0 0x50804000 0x0 0x2000>, + <0x0 0x50806000 0x0 0x2000>; + interrupts = <GIC_PPI 9 (GIC_CPU_MASK_RAW(0x13) | + IRQ_TYPE_LEVEL_HIGH)>; + }; +};
Best regards,
Krzysztof
Jacky Huang
maintainerRe: [PATCH v3 3/5] arm64: dts: nuvoton: Add initial support for MA35D1
Quoted 8 lines · Krzysztof Kozlowski
Quoted 2 lines · Jacky Huang
Add the initial device tree files for Nuvoton MA35D1 Soc.
(...)
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi line 99
Quoted 1 line
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi new file +1
-0+ gic: interrupt-controller@50800000 {The unit address does not match first reg property. Don't you have warnings with this?
Yes, I will modify it as
gic: interrupt-controller@50801000
Quoted 15 lines
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi line 111
Quoted 13 lines
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi new file +12
-0+ compatible = "arm,gic-400"; + #interrupt-cells = <3>; + interrupt-parent = <&gic>; + interrupt-controller; + reg = <0x0 0x50801000 0x0 0x1000>, + <0x0 0x50802000 0x0 0x2000>, + <0x0 0x50804000 0x0 0x2000>, + <0x0 0x50806000 0x0 0x2000>; + interrupts = <GIC_PPI 9 (GIC_CPU_MASK_RAW(0x13) | + IRQ_TYPE_LEVEL_HIGH)>; + }; +};Best regards,
Krzysztof
Thanks for your review.
Jacky Huang
Jacky Huang
maintainerPATCH v3 4/5 arm64: Kconfig: nuvoton: Introduce CONFIG_ARCH_NUVOTON
In reply to Jacky HuangThis adds a Kconfig option to toggle support for ARMv8 based Nuvoton SoCs.
--- arch/arm64/Kconfig.platforms | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/Kconfig.platforms +10 -0
@@ -203,6 +203,16 @@ config ARCH_MXC This enables support for the ARMv8 based SoCs in the NXP i.MX family. +config ARCH_NUVOTON + bool "Nuvoton Platforms" + select PINCTRL + select PM + select GPIOLIB + select SOC_BUS + help + This enables support for the ARMv8 based Nuvoton SoCs such + as MA35D1. + config ARCH_QCOM bool "Qualcomm Platforms" select GPIOLIB
Signature · 1 line
2.17.1
Jacky Huang
maintainerPATCH v3 5/5 dt-bindings: arm: Add initial bindings for Nuvoton Platform
In reply to Jacky HuangAdd binding for ARMv8 based Nuvotn SoCs and platform boards. Add initial bindings for MA35D1 series development boards.
--- .../devicetree/bindings/arm/nuvoton.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/nuvoton.yaml
Documentation/devicetree/bindings/arm/nuvoton.yaml new file +27 -0
@@ -0,0 +1,27 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/nuvoton.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton Platforms Device Tree Bindings + +maintainers: + - Jacky Huang <[email protected]> + +description: |+ + Bindings for Nuvoton ARMv8 based platform boards. + +properties: + $nodename: + const: '/' + compatible: + items: + - enum: + - nuvoton,ma35d1 + - nuvoton,ma35d1-evb + - nuvoton,ma35d1-iot + - nuvoton,ma35d1-som512 + - nuvoton,ma35d1-som1g + +additionalProperties: true
Signature · 1 line
2.17.1
Re: [PATCH v3 5/5] dt-bindings: arm: Add initial bindings for Nuvoton Platform
Documentation/devicetree/bindings/arm/nuvoton.yaml line 25
Quoted 11 lines · Jacky Huang
Documentation/devicetree/bindings/arm/nuvoton.yaml new file +11
-0+properties: + $nodename: + const: '/' + compatible: + items: + - enum: + - nuvoton,ma35d1 + - nuvoton,ma35d1-evb + - nuvoton,ma35d1-iot + - nuvoton,ma35d1-som512 + - nuvoton,ma35d1-som1g
This does not match your DTS and does not look reasonable (SoC compatible should not be part of this enum). Check some other board bindings for examples.
Best regards,
Krzysztof
Jacky Huang
maintainerRe: [PATCH v3 5/5] dt-bindings: arm: Add initial bindings for Nuvoton Platform
Quoted 12 lines · Krzysztof Kozlowski
Documentation/devicetree/bindings/arm/nuvoton.yaml line 25
Quoted 11 lines · Jacky Huang
Documentation/devicetree/bindings/arm/nuvoton.yaml new file +11
-0+properties: + $nodename: + const: '/' + compatible: + items: + - enum: + - nuvoton,ma35d1 + - nuvoton,ma35d1-evb + - nuvoton,ma35d1-iot + - nuvoton,ma35d1-som512 + - nuvoton,ma35d1-som1g
Quoted 7 lines
This does not match your DTS and does not look reasonable (SoC compatible should not be part of this enum). Check some other board bindings for examples.
Best regards,
Krzysztof
I would like to modify it as follows:
description: |
Boards with an ARMv8 based Nuvoton SoC shall have the following properties.
properties:
$nodename:
const: '/'
compatible:
oneOf:
- description: MA35D1 evaluation board
items:
- const: nuvoton,ma35d1-evb
- const: nuvoton,ma35d1
- description: MA35D1 IoT board
items:
- const: nuvoton,ma35d1-iot
- const: nuvoton,ma35d1
- description: MA35D1 SOM board with 512MB DDR items:
- const: nuvoton,ma35d1-som512
- const: nuvoton,ma35d1
- description: MA35D1 SOM board with 1GB DDR items:
- const: nuvoton,ma35d1-som1g
- const: nuvoton,ma35d1
additionalProperties: true
Thank you very much.
Jacky Huang
Re: [PATCH v3 5/5] dt-bindings: arm: Add initial bindings for Nuvoton Platform
Quoted 35 lines · Jacky Huang
Quoted 12 lines · Krzysztof Kozlowski
Documentation/devicetree/bindings/arm/nuvoton.yaml line 25
Quoted 11 lines · Jacky Huang
Documentation/devicetree/bindings/arm/nuvoton.yaml new file +11
-0+properties: + $nodename: + const: '/' + compatible: + items: + - enum: + - nuvoton,ma35d1 + - nuvoton,ma35d1-evb + - nuvoton,ma35d1-iot + - nuvoton,ma35d1-som512 + - nuvoton,ma35d1-som1gQuoted 7 lines
This does not match your DTS and does not look reasonable (SoC compatible should not be part of this enum). Check some other board bindings for examples.
Best regards,
KrzysztofI would like to modify it as follows:
description: |
Boards with an ARMv8 based Nuvoton SoC shall have the following properties.properties:
$nodename:
const: '/'
compatible:
oneOf:
Quoted 8 lines
- description: MA35D1 evaluation board
items:
- const: nuvoton,ma35d1-evb
- const: nuvoton,ma35d1- description: MA35D1 IoT board
items:
- const: nuvoton,ma35d1-iot
Instead just enum with all board compatibles.
Quoted 4 lines
Thank you very much.
Jacky Huang
Best regards,
Krzysztof
Jacky Huang
maintainerRe: [PATCH v3 5/5] dt-bindings: arm: Add initial bindings for Nuvoton Platform
Quoted 39 lines · Krzysztof Kozlowski
Quoted 38 lines · Jacky Huang
Quoted 12 lines · Krzysztof Kozlowski
Documentation/devicetree/bindings/arm/nuvoton.yaml line 25
Quoted 11 lines · Jacky Huang
Documentation/devicetree/bindings/arm/nuvoton.yaml new file +11
-0+properties: + $nodename: + const: '/' + compatible: + items: + - enum: + - nuvoton,ma35d1 + - nuvoton,ma35d1-evb + - nuvoton,ma35d1-iot + - nuvoton,ma35d1-som512 + - nuvoton,ma35d1-som1gQuoted 7 lines
This does not match your DTS and does not look reasonable (SoC compatible should not be part of this enum). Check some other board bindings for examples.
Best regards,
KrzysztofI would like to modify it as follows:
description: |
Boards with an ARMv8 based Nuvoton SoC shall have the following properties.properties:
$nodename:
const: '/'
compatible:
oneOf:- description: MA35D1 evaluation board
items:
- const: nuvoton,ma35d1-evb
- const: nuvoton,ma35d1
Quoted 4 lines
Quoted 3 lines
- description: MA35D1 IoT board
items:
- const: nuvoton,ma35d1-iotInstead just enum with all board compatibles.
How about to modify it as the follows:
compatible:
oneOf:
- description: MA35D1 evaluation board
items:
- enum:
- nuvoton,ma35d1-evb
- const: nuvoton,ma35d1
- description: MA35D1 IoT board
items:
- enum:
- nuvoton,ma35d1-iot
- const: nuvoton,ma35d1
- description: MA35D1 SOM board
items:
- enum:
- nuvoton,ma35d1-som512
- nuvoton,ma35d1-som1g
- const: nuvoton,ma35d1
Quoted 6 lines
Quoted 3 lines
Thank you very much.
Jacky HuangBest regards,
Krzysztof
Sincerely,
Jacky Huang
Re: [PATCH v3 5/5] dt-bindings: arm: Add initial bindings for Nuvoton Platform
Quoted 64 lines · Jacky Huang
Quoted 39 lines · Krzysztof Kozlowski
Quoted 38 lines · Jacky Huang
Quoted 12 lines · Krzysztof Kozlowski
Documentation/devicetree/bindings/arm/nuvoton.yaml line 25
Quoted 11 lines · Jacky Huang
Documentation/devicetree/bindings/arm/nuvoton.yaml new file +11
-0+properties: + $nodename: + const: '/' + compatible: + items: + - enum: + - nuvoton,ma35d1 + - nuvoton,ma35d1-evb + - nuvoton,ma35d1-iot + - nuvoton,ma35d1-som512 + - nuvoton,ma35d1-som1gQuoted 7 lines
This does not match your DTS and does not look reasonable (SoC compatible should not be part of this enum). Check some other board bindings for examples.
Best regards,
KrzysztofI would like to modify it as follows:
description: |
Boards with an ARMv8 based Nuvoton SoC shall have the following properties.properties:
$nodename:
const: '/'
compatible:
oneOf:- description: MA35D1 evaluation board
items:
- const: nuvoton,ma35d1-evb
- const: nuvoton,ma35d1Quoted 4 lines
Quoted 3 lines
- description: MA35D1 IoT board
items:
- const: nuvoton,ma35d1-iotInstead just enum with all board compatibles.
How about to modify it as the follows:
compatible:
oneOf:- description: MA35D1 evaluation board
items:
- enum:
- nuvoton,ma35d1-evb
- const: nuvoton,ma35d1- description: MA35D1 IoT board
items:
- enum:
- nuvoton,ma35d1-iot
- const: nuvoton,ma35d1
Quoted 7 lines
- description: MA35D1 SOM board
items:
- enum:
- nuvoton,ma35d1-som512
- nuvoton,ma35d1-som1g
- const: nuvoton,ma35d1
It's still almost the same. All boards together. You can add a comment next to the compatible if you want some user-friendly name.
Best regards,
Krzysztof
Jacky Huang
maintainerRe: [PATCH v3 5/5] dt-bindings: arm: Add initial bindings for Nuvoton Platform
Quoted 69 lines · Krzysztof Kozlowski
Quoted 61 lines · Jacky Huang
Quoted 38 lines · Krzysztof Kozlowski
Quoted 37 lines · Jacky Huang
Quoted 12 lines · Krzysztof Kozlowski
Documentation/devicetree/bindings/arm/nuvoton.yaml line 25
Quoted 11 lines · Jacky Huang
Documentation/devicetree/bindings/arm/nuvoton.yaml new file +11
-0+properties: + $nodename: + const: '/' + compatible: + items: + - enum: + - nuvoton,ma35d1 + - nuvoton,ma35d1-evb + - nuvoton,ma35d1-iot + - nuvoton,ma35d1-som512 + - nuvoton,ma35d1-som1gQuoted 7 lines
This does not match your DTS and does not look reasonable (SoC compatible should not be part of this enum). Check some other board bindings for examples.
Best regards,
KrzysztofI would like to modify it as follows:
description: |
Boards with an ARMv8 based Nuvoton SoC shall have the following properties.properties:
$nodename:
const: '/'
compatible:
oneOf:- description: MA35D1 evaluation board
items:
- const: nuvoton,ma35d1-evb
- const: nuvoton,ma35d1Quoted 4 lines
Quoted 3 lines
- description: MA35D1 IoT board
items:
- const: nuvoton,ma35d1-iotInstead just enum with all board compatibles.
How about to modify it as the follows:
compatible:
oneOf:- description: MA35D1 evaluation board
items:
- enum:
- nuvoton,ma35d1-evb
- const: nuvoton,ma35d1- description: MA35D1 IoT board
items:
- enum:
- nuvoton,ma35d1-iot
- const: nuvoton,ma35d1Quoted 7 lines
- description: MA35D1 SOM board
items:
- enum:
- nuvoton,ma35d1-som512
- nuvoton,ma35d1-som1g
- const: nuvoton,ma35d1
Quoted 6 lines
It's still almost the same. All boards together. You can add a comment next to the compatible if you want some user-friendly name.
Best regards,
Krzysztof
OK, I got it. Like this,
compatible:
oneOf:
- description: MA35D1 based boards
items:
- enum:
- nuvoton,ma35d1-evb
- nuvoton,ma35d1-iot
- nuvoton,ma35d1-som512
- nuvoton,ma35d1-som1g
- const: nuvoton,ma35d1
Sincerely,
Jacky Huang
Re: [PATCH v3 5/5] dt-bindings: arm: Add initial bindings for Nuvoton Platform
Quoted 5 lines · Jacky Huang
OK, I got it. Like this,
compatible:
oneOf:
Quoted 8 lines
- description: MA35D1 based boards
items:
- enum:
- nuvoton,ma35d1-evb
- nuvoton,ma35d1-iot
- nuvoton,ma35d1-som512
- nuvoton,ma35d1-som1g
- const: nuvoton,ma35d1
Yes, exactly. Thank you.
Best regards,
Krzysztof
Rob Herring
maintainerRe: [PATCH v3 5/5] dt-bindings: arm: Add initial bindings for Nuvoton Platform
In reply to Jacky HuangQuoted 84 lines · Jacky Huang
Quoted 69 lines · Krzysztof Kozlowski
Quoted 61 lines · Jacky Huang
Quoted 38 lines · Krzysztof Kozlowski
Quoted 37 lines · Jacky Huang
Quoted 12 lines · Krzysztof Kozlowski
Review
Quoted 11 lines · Jacky Huang
(quoted diff) +11
-0+properties: + $nodename: + const: '/' + compatible: + items: + - enum: + - nuvoton,ma35d1 + - nuvoton,ma35d1-evb + - nuvoton,ma35d1-iot + - nuvoton,ma35d1-som512 + - nuvoton,ma35d1-som1gQuoted 7 lines
This does not match your DTS and does not look reasonable (SoC compatible should not be part of this enum). Check some other board bindings for examples.
Best regards,
KrzysztofI would like to modify it as follows:
description: |
Boards with an ARMv8 based Nuvoton SoC shall have the following properties.properties:
$nodename:
const: '/'
compatible:
oneOf:- description: MA35D1 evaluation board
items:
- const: nuvoton,ma35d1-evb
- const: nuvoton,ma35d1Quoted 4 lines
Quoted 3 lines
- description: MA35D1 IoT board
items:
- const: nuvoton,ma35d1-iotInstead just enum with all board compatibles.
How about to modify it as the follows:
compatible:
oneOf:- description: MA35D1 evaluation board
items:
- enum:
- nuvoton,ma35d1-evb
- const: nuvoton,ma35d1- description: MA35D1 IoT board
items:
- enum:
- nuvoton,ma35d1-iot
- const: nuvoton,ma35d1Quoted 7 lines
- description: MA35D1 SOM board
items:
- enum:
- nuvoton,ma35d1-som512
- nuvoton,ma35d1-som1g
- const: nuvoton,ma35d1Quoted 6 lines
It's still almost the same. All boards together. You can add a comment next to the compatible if you want some user-friendly name.
Best regards,
KrzysztofOK, I got it. Like this,
compatible:
oneOf:
Quoted 8 lines
- description: MA35D1 based boards
items:
- enum:
- nuvoton,ma35d1-evb
- nuvoton,ma35d1-iot- nuvoton,ma35d1-som512
- nuvoton,ma35d1-som1g
The memory node distinguishes how much memory. Is the board different for the SoM? If not, combine these to 1.
Quoted 7 lines
- const: nuvoton,ma35d1
Sincerely,
Jacky Huang
Jacky Huang
maintainerRe: [PATCH v3 5/5] dt-bindings: arm: Add initial bindings for Nuvoton Platform
Quoted 89 lines · Rob Herring
Quoted 81 lines · Jacky Huang
Quoted 68 lines · Krzysztof Kozlowski
Quoted 60 lines · Jacky Huang
Quoted 38 lines · Krzysztof Kozlowski
Quoted 37 lines · Jacky Huang
Quoted 12 lines · Krzysztof Kozlowski
Review
Quoted 11 lines · Jacky Huang
(quoted diff) +11
-0+properties: + $nodename: + const: '/' + compatible: + items: + - enum: + - nuvoton,ma35d1 + - nuvoton,ma35d1-evb + - nuvoton,ma35d1-iot + - nuvoton,ma35d1-som512 + - nuvoton,ma35d1-som1gQuoted 7 lines
This does not match your DTS and does not look reasonable (SoC compatible should not be part of this enum). Check some other board bindings for examples.
Best regards,
KrzysztofI would like to modify it as follows:
description: |
Boards with an ARMv8 based Nuvoton SoC shall have the following properties.properties:
$nodename:
const: '/'
compatible:
oneOf:- description: MA35D1 evaluation board
items:
- const: nuvoton,ma35d1-evb
- const: nuvoton,ma35d1Quoted 4 lines
Quoted 3 lines
- description: MA35D1 IoT board
items:
- const: nuvoton,ma35d1-iotInstead just enum with all board compatibles.
How about to modify it as the follows:
compatible:
oneOf:- description: MA35D1 evaluation board
items:
- enum:
- nuvoton,ma35d1-evb
- const: nuvoton,ma35d1- description: MA35D1 IoT board
items:
- enum:
- nuvoton,ma35d1-iot
- const: nuvoton,ma35d1Quoted 7 lines
- description: MA35D1 SOM board
items:
- enum:
- nuvoton,ma35d1-som512
- nuvoton,ma35d1-som1g
- const: nuvoton,ma35d1Quoted 6 lines
It's still almost the same. All boards together. You can add a comment next to the compatible if you want some user-friendly name.
Best regards,
KrzysztofOK, I got it. Like this,
compatible:
oneOf:Quoted 7 lines
- description: MA35D1 based boards
items:
- enum:
- nuvoton,ma35d1-evb
- nuvoton,ma35d1-iot
- nuvoton,ma35d1-som512
- nuvoton,ma35d1-som1g
Quoted 2 lines
The memory node distinguishes how much memory. Is the board different for the SoM? If not, combine these to 1.
Yes, I can make two dts files (som512 and som1g) with binding to the same som board. I will modify it as a single nuvoton,ma35d1-som board.
Thank you.
Quoted 7 lines
Quoted 7 lines
- const: nuvoton,ma35d1
Sincerely,
Jacky Huang
Sincerely,
Jacky Huang