dt-bindings: arm: fix Rockchip Kylin board bindings
Subsystems (2)
PATCH 1/4 dt-bindings: arm: fix Rockchip Kylin board bindings
A test with the command below gives this error:
arch/arm/boot/dts/rk3036-kylin.dt.yaml: /: compatible:
['rockchip,rk3036-kylin', 'rockchip,rk3036'] is not valid under any of the given schemas
Fix this error by changing 'rockchip,kylin-rk3036' to 'rockchip,rk3036-kylin' in rockchip.yaml.
make ARCH=arm dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/arm/rockchip.yaml
--- Documentation/devicetree/bindings/arm/rockchip.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/arm/rockchip.yaml +1 -1
@@ -443,7 +443,7 @@ properties: - description: Rockchip Kylin items: - - const: rockchip,kylin-rk3036 + - const: rockchip,rk3036-kylin - const: rockchip,rk3036 - description: Rockchip PX3 Evaluation board
Signature · 1 line
2.11.0
PATCH 2/4 dt-bindings: arm: add Rockchip rk3036-evb board
A test with the command below gives this error:
arch/arm/boot/dts/rk3036-evb.dt.yaml: /: compatible:
['rockchip,rk3036-evb', 'rockchip,rk3036'] is not valid under any of the given schemas
This board was somehow never added to the documentation. Fix this error by adding the rk3036-evb board to rockchip.yaml.
make ARCH=arm dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/arm/rockchip.yaml
--- Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +5 -0
@@ -468,6 +468,11 @@ properties: - const: rockchip,r88 - const: rockchip,rk3368 + - description: Rockchip RK3036 Evaluation board + items: + - const: rockchip,rk3036-evb + - const: rockchip,rk3036 + - description: Rockchip RK3228 Evaluation board items: - const: rockchip,rk3228-evb
Signature · 1 line
2.11.0
PATCH 3/4 dt-bindings: arm: fix Rockchip rk3399-evb bindings
In reply to Johan JonkerA test with the command below gives this error:
arch/arm64/boot/dts/rockchip/rk3399-evb.dt.yaml: /: compatible:
['rockchip,rk3399-evb', 'rockchip,rk3399', 'google,rk3399evb-rev2'] is not valid under any of the given schemas
Fix this error by adding 'google,rk3399evb-rev2' to the compatible property in rockchip.yaml
make ARCH=arm64 dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/arm/rockchip.yaml
--- Documentation/devicetree/bindings/arm/rockchip.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +1 -0
@@ -509,6 +509,7 @@ properties: items: - const: rockchip,rk3399-evb - const: rockchip,rk3399 + - const: google,rk3399evb-rev2 - description: Rockchip RK3399 Sapphire standalone items:
Signature · 1 line
2.11.0
Re: [PATCH 3/4] dt-bindings: arm: fix Rockchip rk3399-evb bindings
Quoted 22 lines · Johan Jonker
A test with the command below gives this error:
arch/arm64/boot/dts/rockchip/rk3399-evb.dt.yaml: /: compatible:
['rockchip,rk3399-evb', 'rockchip,rk3399', 'google,rk3399evb-rev2'] is not valid under any of the given schemasFix this error by adding 'google,rk3399evb-rev2' to the compatible property in
rockchip.yamlmake ARCH=arm64
dtbs_checkDT_SCHEMA_FILES=Documentation/devicetree/bindings/arm/rockchip.yamlSigned-off-by Johan Jonker <[email protected]>--- Documentation/devicetree/bindings/arm/rockchip.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/arm/rockchip.yaml +0
-0
Documentation/devicetree/bindings/arm/rockchip.yaml properties: · line 512
Quoted 4 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +1
-0@@ -509,6 +509,7 @@ properties: items: - const: rockchip,rk3399-evb - const: rockchip,rk3399 + - const: google,rk3399evb-rev2
This looks wrong - the board can't reasonably be a *more* general match than the SoC. If this is supposed to represent a specific variant of the basic EVB design then it should come before "rockchip,rk3399-evb" (and possibly be optional if other variants also exist).
Robin.
Quoted 4 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +0
-0- description: Rockchip RK3399 Sapphire standalone items:
Re: [PATCH 3/4] dt-bindings: arm: fix Rockchip rk3399-evb bindings
Hi Robin,
When I look at the review process of rk3399-evb.dts it is mentioned here:
https://lore.kernel.org/patchwork/patch/672327/
Quoted 7 lines
Review
Quoted 4 lines
(quoted diff) +4
-0+ model = "Rockchip RK3399 Evaluation Board"; + compatible = "rockchip,rk3399-evb", "rockchip,rk3399", + "google,rk3399evb-rev2", google,rk3399evb-rev1", + "google,rk3399evb-rev0" ;can you check against which compatibles that coreboot really matches?
Quoted 7 lines
As we said that the evb changed between rev1 and rev2, I would expect the compatible to be something like
compatible = "rockchip,rk3399-evb", "google,rk3399evb-rev2", "rockchip,rk3399";leaving out the rev1 and rev0
The consensus in version 4 ends in what is shown in the dts file, so I changed it in rockchip.yaml. Things from the past maybe can better be explained by Heiko. Please advise if this patch needs to change and in what file.
Kind regards,
Johan
Quoted 39 lines · Robin Murphy
Quoted 23 lines · Johan Jonker
A test with the command below gives this error:
arch/arm64/boot/dts/rockchip/rk3399-evb.dt.yaml: /: compatible:
['rockchip,rk3399-evb', 'rockchip,rk3399', 'google,rk3399evb-rev2'] is not valid under any of the given schemasFix this error by adding 'google,rk3399evb-rev2' to the compatible property in
rockchip.yamlmake ARCH=arm64
dtbs_checkDT_SCHEMA_FILES=Documentation/devicetree/bindings/arm/rockchip.yamlSigned-off-by Johan Jonker <[email protected]>---
Documentation/devicetree/bindings/arm/rockchip.yaml| 1 +1 file changed, 1 insertion(+)Documentation/devicetree/bindings/arm/rockchip.yaml +0
-0@@ -509,6 +509,7 @@ properties:Quoted 4 lines
items:
- const: rockchip,rk3399-evb
- const: rockchip,rk3399
+ - const: google,rk3399evb-rev2This looks wrong - the board can't reasonably be a *more* general match than the SoC. If this is supposed to represent a specific variant of the basic EVB design then it should come before "rockchip,rk3399-evb" (and possibly be optional if other variants also exist).
Robin.
Quoted 3 lines
- description: Rockchip RK3399 Sapphire standalone items:
Heiko Stuebner
maintainerRe: [PATCH 3/4] dt-bindings: arm: fix Rockchip rk3399-evb bindings
Hi Johan,
Am Freitag, 28. Februar 2020, 14:28:36 CET schrieb Johan Jonker:
Quoted 20 lines
Hi Robin,
When I look at the review process of
rk3399-evb.dtsit is mentioned here:https://lore.kernel.org/patchwork/patch/672327/
Quoted 13 lines
Review
Quoted 4 lines
(quoted diff) +4
-0+ model = "Rockchip RK3399 Evaluation Board"; + compatible = "rockchip,rk3399-evb", "rockchip,rk3399", + "google,rk3399evb-rev2", google,rk3399evb-rev1", + "google,rk3399evb-rev0" ;can you check against which compatibles that coreboot really matches?
As we said that the evb changed between rev1 and rev2, I would expect the compatible to be something like
compatible = "rockchip,rk3399-evb", "google,rk3399evb-rev2", "rockchip,rk3399";
Quoted 6 lines
Quoted 1 line
leaving out the rev1 and rev0
The consensus in version 4 ends in what is shown in the dts file, so I changed it in
rockchip.yaml. Things from the past maybe can better be explained by Heiko. Please advise if this patch needs to change and in what file.
Just get rid of the "google,rk3399evb-rev2" from the .dts please :-) .
(1) "rockchip,rk3399-evb", "rockchip,rk3399", "google,rk3399evb-rev2"; is just wrong for the reasons Robin explained, I guess that slipped through review at the time.
(2) "google,rk3399evb-rev2" was a specific variant for Google I'm pretty sure they'll have scraped all these boards directly after they had the first actual rk3399-gru development devices
So I'm pretty sure the only rk3399-evbs in existence are the general ones.
Heiko
PATCH 4/4 arm64: dts: rockchip: fix compatible property for Radxa ROCK Pi N10
In reply to Johan JonkerA test with the command below gives this error:
arch/arm64/boot/dts/rockchip/rk3399pro-rock-pi-n10.dt.yaml: /: compatible:
['radxa,rockpi-n10', 'rockchip,rk3399pro']
is not valid under any of the given schemas
During the review process the binding was changed, but the dts file was somehow not updated.
Fix this error by adding 'vamrs,rk3399pro-vmarc-som' to the compatible property.
make ARCH=arm64 dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/arm/rockchip.yaml
--- arch/arm64/boot/dts/rockchip/rk3399pro-rock-pi-n10.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3399pro-rock-pi-n10.dts +2 -1
@@ -13,5 +13,6 @@ / { model = "Radxa ROCK Pi N10"; - compatible = "radxa,rockpi-n10", "rockchip,rk3399pro"; + compatible = "radxa,rockpi-n10", "vamrs,rk3399pro-vmarc-som", + "rockchip,rk3399pro"; };
Signature · 1 line
2.11.0
Heiko Stuebner
maintainerRe: [PATCH 4/4] arm64: dts: rockchip: fix compatible property for Radxa ROCK Pi N10
Am Freitag, 28. Februar 2020, 07:14:36 CET schrieb Johan Jonker:
Quoted 11 lines
A test with the command below gives this error:
arch/arm64/boot/dts/rockchip/rk3399pro-rock-pi-n10.dt.yaml: /: compatible:
['radxa,rockpi-n10', 'rockchip,rk3399pro']
is not valid under any of the given schemasDuring the review process the binding was changed, but the dts file was somehow not updated.
Fix this error by adding 'vamrs,rk3399pro-vmarc-som' to the compatible property.
Quoted 4 lines
make ARCH=arm64
dtbs_checkDT_SCHEMA_FILES=Documentation/devicetree/bindings/arm/rockchip.yamlSigned-off-by Johan Jonker <[email protected]>
applied for 5.7
Thanks
Heiko
Quoted 8 lines · Johan Jonker
A test with the command below gives this error:
arch/arm/boot/dts/rk3036-kylin.dt.yaml: /: compatible:
['rockchip,rk3036-kylin', 'rockchip,rk3036'] is not valid under any of the given schemasFix this error by changing 'rockchip,kylin-rk3036' to 'rockchip,rk3036-kylin' in
rockchip.yaml.
Although I can guess, it might be worth a note to explain why it's the binding rather than the DTS that gets changed here.
Robin.
Quoted 22 lines
make ARCH=arm
dtbs_checkDT_SCHEMA_FILES=Documentation/devicetree/bindings/arm/rockchip.yamlSigned-off-by Johan Jonker <[email protected]>--- Documentation/devicetree/bindings/arm/rockchip.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/devicetree/bindings/arm/rockchip.yaml +1
-1@@ -443,7 +443,7 @@ properties: - description: Rockchip Kylin items: - - const: rockchip,kylin-rk3036 + - const: rockchip,rk3036-kylin - const: rockchip,rk3036 - description: Rockchip PX3 Evaluation board
Quoted 7 lines · Robin Murphy
Quoted 6 lines · Johan Jonker
A test with the command below gives this error:
arch/arm/boot/dts/rk3036-kylin.dt.yaml: /: compatible:
['rockchip,rk3036-kylin', 'rockchip,rk3036'] is not valid under any of the given schemas
Quoted 7 lines
Quoted 2 lines
Fix this error by changing 'rockchip,kylin-rk3036' to 'rockchip,rk3036-kylin' in
rockchip.yaml.Although I can guess, it might be worth a note to explain why it's the binding rather than the DTS that gets changed here.
Hi Robin,
My guess is that given a look at the other boards the processor name comes first and then the board name, so I changed it in rockchip.yaml. But maybe Heiko can better explain what the naming consensus in the past was.
Kind regards,
Johan
Quoted 24 lines
Robin.
Quoted 21 lines
make ARCH=arm
dtbs_checkDT_SCHEMA_FILES=Documentation/devicetree/bindings/arm/rockchip.yamlSigned-off-by Johan Jonker <[email protected]>---
Documentation/devicetree/bindings/arm/rockchip.yaml| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)Documentation/devicetree/bindings/arm/rockchip.yaml +0
-0@@ -443,7 +443,7 @@ properties:- description: Rockchip Kylin items:
- - const: rockchip,kylin-rk3036
+ - const: rockchip,rk3036-kylin
- const: rockchip,rk3036
- description: Rockchip PX3 Evaluation board
Heiko Stuebner
maintainerHi Johan,
Am Freitag, 28. Februar 2020, 13:50:11 CET schrieb Johan Jonker:
Quoted 16 lines · Robin Murphy
Quoted 7 lines · Johan Jonker
Quoted 6 lines
A test with the command below gives this error:
arch/arm/boot/dts/rk3036-kylin.dt.yaml: /: compatible:
['rockchip,rk3036-kylin', 'rockchip,rk3036'] is not valid under any of the given schemasQuoted 7 lines
Quoted 2 lines
Fix this error by changing 'rockchip,kylin-rk3036' to 'rockchip,rk3036-kylin' in
rockchip.yaml.Although I can guess, it might be worth a note to explain why it's the binding rather than the DTS that gets changed here.
Quoted 6 lines
Hi Robin,
My guess is that given a look at the other boards the processor name comes first and then the board name, so I changed it in
rockchip.yaml. But maybe Heiko can better explain what the naming consensus in the past was.
I think what Robin meant was that there should be an explanation in the commit message on why you change the binding and not the board.
Normally the dt-binding is the authoritative part, so boards should follow the binding, but in the kylin-case the compatible from the .dts is used fr years in the field now, so you're correct to fix the binding, as otherwise we would break old users.
So just add a paragraph to the commit message with the above ;-)
Heiko