dt-bindings: display: Convert etnaviv to json-schema
PATCH v2 1/1 dt-bindings: display: Convert etnaviv to json-schema
Convert etnaviv bindings to yaml format.
--- .../bindings/display/etnaviv/etnaviv-drm.txt | 36 ----------- .../devicetree/bindings/gpu/vivante,gc.yaml | 72 ++++++++++++++++++++++ 2 files changed, 72 insertions(+), 36 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt create mode 100644 Documentation/devicetree/bindings/gpu/vivante,gc.yaml
Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt deleted +0 -36
@@ -1,36 +0,0 @@ -Vivante GPU core devices -======================== - -Required properties: -- compatible: Should be "vivante,gc" - A more specific compatible is not needed, as the cores contain chip - identification registers at fixed locations, which provide all the - necessary information to the driver. -- reg: should be register base and length as documented in the - datasheet -- interrupts: Should contain the cores interrupt line -- clocks: should contain one clock for entry in clock-names - see Documentation/devicetree/bindings/clock/clock-bindings.txt -- clock-names: - - "bus": AXI/master interface clock - - "reg": AHB/slave interface clock - (only required if GPU can gate slave interface independently) - - "core": GPU core clock - - "shader": Shader clock (only required if GPU has feature PIPE_3D) - -Optional properties: -- power-domains: a power domain consumer specifier according to - Documentation/devicetree/bindings/power/power_domain.txt - -example: - -gpu_3d: gpu@130000 { - compatible = "vivante,gc"; - reg = <0x00130000 0x4000>; - interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&clks IMX6QDL_CLK_GPU3D_AXI>, - <&clks IMX6QDL_CLK_GPU3D_CORE>, - <&clks IMX6QDL_CLK_GPU3D_SHADER>; - clock-names = "bus", "core", "shader"; - power-domains = <&gpc 1>; -};
Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +72 -0
72 lines not on this page · raw message
Signature · 1 line
2.15.0
Hi Benjamin,
Quoted 77 lines · Benjamin Gaignard
Convert etnaviv bindings to yaml format.
Signed-off-by Benjamin Gaignard <[email protected]>--- .../bindings/display/etnaviv/etnaviv-drm.txt | 36 ----------- .../devicetree/bindings/gpu/vivante,gc.yaml | 72 ++++++++++++++++++++++ 2 files changed, 72 insertions(+), 36 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt create mode 100644 Documentation/devicetree/bindings/gpu/vivante,gc.yamlDocumentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt deleted +0
-36@@ -1,36 +0,0 @@ -Vivante GPU core devices -======================== - -Required properties: -- compatible: Should be "vivante,gc" - A more specific compatible is not needed, as the cores contain chip - identification registers at fixed locations, which provide all the - necessary information to the driver. -- reg: should be register base and length as documented in the - datasheet -- interrupts: Should contain the cores interrupt line -- clocks: should contain one clock for entry in clock-names - see Documentation/devicetree/bindings/clock/clock-bindings.txt -- clock-names: - - "bus": AXI/master interface clock - - "reg": AHB/slave interface clock - (only required if GPU can gate slave interface independently) - - "core": GPU core clock - - "shader": Shader clock (only required if GPU has feature PIPE_3D) - -Optional properties: -- power-domains: a power domain consumer specifier according to - Documentation/devicetree/bindings/power/power_domain.txt - -example: - -gpu_3d: gpu@130000 { - compatible = "vivante,gc"; - reg = <0x00130000 0x4000>; - interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&clks IMX6QDL_CLK_GPU3D_AXI>, - <&clks IMX6QDL_CLK_GPU3D_CORE>, - <&clks IMX6QDL_CLK_GPU3D_SHADER>; - clock-names = "bus", "core", "shader"; - power-domains = <&gpc 1>; -};Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +19
-0@@ -0,0 +1,72 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpu/vivante,gc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Vivante GPU Bindings + +description: Vivante GPU core devices + +maintainers: + - Lucas Stach <[email protected]> + +properties: + compatible: + const: vivante,gc + + reg: + maxItems: 1
Documentation/devicetree/bindings/gpu/vivante,gc.yaml line 29
Quoted 10 lines
Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +10
-0+ + interrupts: + maxItems: 1 + + clocks: + items: + - description: AXI/master interface clock + - description: GPU core clock + - description: Shader clock (only required if GPU has feature PIPE_3D) + - description: AHB/slave interface clock (only required if GPU can gate slave interface independently)
Can you have an AHB slave interface clock without a shader clock?
Documentation/devicetree/bindings/gpu/vivante,gc.yaml line 40
Quoted 11 lines
Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +11
-0+ minItems: 2 + maxItems: 4 + + clock-names: + items: + - const: bus + - const: core + - const: shader + - const: reg + minItems: 2 + maxItems: 4
If so, that check will fail, since it would expect a clock named shader on the 3rd item.
It looks good otherwise, thanks!
Maxime
Quoted 83 lines · Maxime Ripard
Hi Benjamin,
Quoted 80 lines · Benjamin Gaignard
Convert etnaviv bindings to yaml format.
Signed-off-by Benjamin Gaignard <[email protected]>--- .../bindings/display/etnaviv/etnaviv-drm.txt | 36 ----------- .../devicetree/bindings/gpu/vivante,gc.yaml | 72 ++++++++++++++++++++++ 2 files changed, 72 insertions(+), 36 deletions(-)delete mode 100644
Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txtcreate mode 100644Documentation/devicetree/bindings/gpu/vivante,gc.yamlDocumentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt deleted +0
-36@@ -1,36 +0,0 @@ -Vivante GPU core devices -======================== - -Required properties: -- compatible: Should be "vivante,gc" - A more specific compatible is not needed, as the cores contain chip - identification registers at fixed locations, which provide all the - necessary information to the driver. -- reg: should be register base and length as documented in the - datasheet -- interrupts: Should contain the cores interrupt line -- clocks: should contain one clock for entry in clock-names - see Documentation/devicetree/bindings/clock/clock-bindings.txt -- clock-names: - - "bus": AXI/master interface clock - - "reg": AHB/slave interface clock - (only required if GPU can gate slave interface independently) - - "core": GPU core clock - - "shader": Shader clock (only required if GPU has feature PIPE_3D) - -Optional properties: -- power-domains: a power domain consumer specifier according to - Documentation/devicetree/bindings/power/power_domain.txt - -example: - -gpu_3d: gpu@130000 { - compatible = "vivante,gc"; - reg = <0x00130000 0x4000>; - interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&clks IMX6QDL_CLK_GPU3D_AXI>, - <&clks IMX6QDL_CLK_GPU3D_CORE>, - <&clks IMX6QDL_CLK_GPU3D_SHADER>; - clock-names = "bus", "core", "shader"; - power-domains = <&gpc 1>; -};Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +22
-0@@ -0,0 +1,72 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpu/vivante,gc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Vivante GPU Bindings + +description: Vivante GPU core devices + +maintainers: + - Lucas Stach <[email protected]> + +properties: + compatible: + const: vivante,gc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1
Quoted 8 lines
Documentation/devicetree/bindings/gpu/vivante,gc.yaml line 29
Quoted 7 lines
Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +7
-0+ + clocks: + items: + - description: AXI/master interface clock + - description: GPU core clock + - description: Shader clock (only required if GPU has feature PIPE_3D) + - description: AHB/slave interface clock (only required if GPU can gate slave interface independently)Can you have an AHB slave interface clock without a shader clock?
No because the items in the list are ordered so you need to have, in
order: "bus", "core", "shader", "reg"
If it is needed to allow any number of clock in any order I could write it like this:
clocks:
minItems: 1
maxItems: 4
clock-names:
items:
enum: [ bus, core, shader, reg]
minItems: 1
maxItems: 4
Benjamin
Quoted 17 lines
Documentation/devicetree/bindings/gpu/vivante,gc.yaml line 40
Quoted 12 lines
Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +11
-0+ minItems: 2 + maxItems: 4 + + clock-names: + items: + - const: bus + - const: core + - const: shader + - const: reg + minItems: 2 + maxItems: 4If so, that check will fail, since it would expect a clock named shader on the 3rd item.
It looks good otherwise, thanks!
Maxime
Philippe CORNU
Reviewed-byHi Benjamin,
Quoted 110 lines · Benjamin GAIGNARD
Quoted 83 lines · Maxime Ripard
Hi Benjamin,
Quoted 80 lines · Benjamin Gaignard
Convert etnaviv bindings to yaml format.
Signed-off-by Benjamin Gaignard <[email protected]>--- .../bindings/display/etnaviv/etnaviv-drm.txt | 36 ----------- .../devicetree/bindings/gpu/vivante,gc.yaml | 72 ++++++++++++++++++++++ 2 files changed, 72 insertions(+), 36 deletions(-)delete mode 100644
Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txtcreate mode 100644Documentation/devicetree/bindings/gpu/vivante,gc.yamlDocumentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt deleted +0
-36@@ -1,36 +0,0 @@ -Vivante GPU core devices -======================== - -Required properties: -- compatible: Should be "vivante,gc" - A more specific compatible is not needed, as the cores contain chip - identification registers at fixed locations, which provide all the - necessary information to the driver. -- reg: should be register base and length as documented in the - datasheet -- interrupts: Should contain the cores interrupt line -- clocks: should contain one clock for entry in clock-names - see Documentation/devicetree/bindings/clock/clock-bindings.txt -- clock-names: - - "bus": AXI/master interface clock - - "reg": AHB/slave interface clock - (only required if GPU can gate slave interface independently) - - "core": GPU core clock - - "shader": Shader clock (only required if GPU has feature PIPE_3D) - -Optional properties: -- power-domains: a power domain consumer specifier according to - Documentation/devicetree/bindings/power/power_domain.txt - -example: - -gpu_3d: gpu@130000 { - compatible = "vivante,gc"; - reg = <0x00130000 0x4000>; - interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&clks IMX6QDL_CLK_GPU3D_AXI>, - <&clks IMX6QDL_CLK_GPU3D_CORE>, - <&clks IMX6QDL_CLK_GPU3D_SHADER>; - clock-names = "bus", "core", "shader"; - power-domains = <&gpc 1>; -};Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +22
-0@@ -0,0 +1,72 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpu/vivante,gc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Vivante GPU Bindings + +description: Vivante GPU core devices + +maintainers: + - Lucas Stach <[email protected]> + +properties: + compatible: + const: vivante,gc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1Quoted 8 lines
Documentation/devicetree/bindings/gpu/vivante,gc.yaml line 29
Quoted 7 lines
Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +7
-0+ + clocks: + items: + - description: AXI/master interface clock + - description: GPU core clock + - description: Shader clock (only required if GPU has feature PIPE_3D) + - description: AHB/slave interface clock (only required if GPU can gate slave interface independently)Can you have an AHB slave interface clock without a shader clock?
No because the items in the list are ordered so you need to have, in
order: "bus", "core", "shader", "reg"If it is needed to allow any number of clock in any order I could write it like this:
clocks:
minItems: 1
maxItems: 4
clock-names:
items:
Quoted 7 lines
enum: [ bus, core, shader, reg]
minItems: 1
maxItems: 4
Benjamin
Thank you for your patch,
I confirm that your last proposal with enum would be better.
With that,
Philippe :-)
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +11
-0+ minItems: 2 + maxItems: 4 + + clock-names: + items: + - const: bus + - const: core + - const: shader + - const: reg + minItems: 2 + maxItems: 4
Quoted 5 lines
Quoted 5 lines
If so, that check will fail, since it would expect a clock named shader on the 3rd item.
It looks good otherwise, thanks!
Maxime
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 95 lines · Benjamin GAIGNARD
Quoted 83 lines · Maxime Ripard
Hi Benjamin,
Quoted 80 lines · Benjamin Gaignard
Convert etnaviv bindings to yaml format.
Signed-off-by Benjamin Gaignard <[email protected]>--- .../bindings/display/etnaviv/etnaviv-drm.txt | 36 ----------- .../devicetree/bindings/gpu/vivante,gc.yaml | 72 ++++++++++++++++++++++ 2 files changed, 72 insertions(+), 36 deletions(-)delete mode 100644
Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txtcreate mode 100644Documentation/devicetree/bindings/gpu/vivante,gc.yamlDocumentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt deleted +0
-36@@ -1,36 +0,0 @@ -Vivante GPU core devices -======================== - -Required properties: -- compatible: Should be "vivante,gc" - A more specific compatible is not needed, as the cores contain chip - identification registers at fixed locations, which provide all the - necessary information to the driver. -- reg: should be register base and length as documented in the - datasheet -- interrupts: Should contain the cores interrupt line -- clocks: should contain one clock for entry in clock-names - see Documentation/devicetree/bindings/clock/clock-bindings.txt -- clock-names: - - "bus": AXI/master interface clock - - "reg": AHB/slave interface clock - (only required if GPU can gate slave interface independently) - - "core": GPU core clock - - "shader": Shader clock (only required if GPU has feature PIPE_3D) - -Optional properties: -- power-domains: a power domain consumer specifier according to - Documentation/devicetree/bindings/power/power_domain.txt - -example: - -gpu_3d: gpu@130000 { - compatible = "vivante,gc"; - reg = <0x00130000 0x4000>; - interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&clks IMX6QDL_CLK_GPU3D_AXI>, - <&clks IMX6QDL_CLK_GPU3D_CORE>, - <&clks IMX6QDL_CLK_GPU3D_SHADER>; - clock-names = "bus", "core", "shader"; - power-domains = <&gpc 1>; -};Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +22
-0@@ -0,0 +1,72 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpu/vivante,gc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Vivante GPU Bindings + +description: Vivante GPU core devices + +maintainers: + - Lucas Stach <[email protected]> + +properties: + compatible: + const: vivante,gc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1Quoted 8 lines
Documentation/devicetree/bindings/gpu/vivante,gc.yaml line 29
Quoted 7 lines
Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +7
-0+ + clocks: + items: + - description: AXI/master interface clock + - description: GPU core clock + - description: Shader clock (only required if GPU has feature PIPE_3D) + - description: AHB/slave interface clock (only required if GPU can gate slave interface independently)Can you have an AHB slave interface clock without a shader clock?
Quoted 5 lines
No because the items in the list are ordered so you need to have, in
order: "bus", "core", "shader", "reg"If it is needed to allow any number of clock in any order I could write it like this:
Yes, but I prefer we don't allow any order if we don't have to. Did you run this schema against dtbs_check or just audit the dts files with vivante?
Rob
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 95 lines · Rob Herring
Quoted 93 lines · Benjamin GAIGNARD
Quoted 91 lines · Maxime Ripard
Hi Benjamin,
Quoted 77 lines · Benjamin Gaignard
Convert etnaviv bindings to yaml format.
Signed-off-by Benjamin Gaignard <[email protected]>--- .../bindings/display/etnaviv/etnaviv-drm.txt | 36 ----------- .../devicetree/bindings/gpu/vivante,gc.yaml | 72 ++++++++++++++++++++++ 2 files changed, 72 insertions(+), 36 deletions(-)delete mode 100644
Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txtcreate mode 100644Documentation/devicetree/bindings/gpu/vivante,gc.yamlDocumentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt deleted +0
-36@@ -1,36 +0,0 @@ -Vivante GPU core devices -======================== - -Required properties: -- compatible: Should be "vivante,gc" - A more specific compatible is not needed, as the cores contain chip - identification registers at fixed locations, which provide all the - necessary information to the driver. -- reg: should be register base and length as documented in the - datasheet -- interrupts: Should contain the cores interrupt line -- clocks: should contain one clock for entry in clock-names - see Documentation/devicetree/bindings/clock/clock-bindings.txt -- clock-names: - - "bus": AXI/master interface clock - - "reg": AHB/slave interface clock - (only required if GPU can gate slave interface independently) - - "core": GPU core clock - - "shader": Shader clock (only required if GPU has feature PIPE_3D) - -Optional properties: -- power-domains: a power domain consumer specifier according to - Documentation/devicetree/bindings/power/power_domain.txt - -example: - -gpu_3d: gpu@130000 { - compatible = "vivante,gc"; - reg = <0x00130000 0x4000>; - interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&clks IMX6QDL_CLK_GPU3D_AXI>, - <&clks IMX6QDL_CLK_GPU3D_CORE>, - <&clks IMX6QDL_CLK_GPU3D_SHADER>; - clock-names = "bus", "core", "shader"; - power-domains = <&gpc 1>; -};Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +19
-0@@ -0,0 +1,72 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpu/vivante,gc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Vivante GPU Bindings + +description: Vivante GPU core devices + +maintainers: + - Lucas Stach <[email protected]> + +properties: + compatible: + const: vivante,gc + + reg: + maxItems: 1Documentation/devicetree/bindings/gpu/vivante,gc.yaml line 29
Quoted 10 lines
Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +10
-0+ + interrupts: + maxItems: 1 + + clocks: + items: + - description: AXI/master interface clock + - description: GPU core clock + - description: Shader clock (only required if GPU has feature PIPE_3D) + - description: AHB/slave interface clock (only required if GPU can gate slave interface independently)Can you have an AHB slave interface clock without a shader clock?
Quoted 8 lines
Quoted 5 lines
No because the items in the list are ordered so you need to have, in
order: "bus", "core", "shader", "reg"If it is needed to allow any number of clock in any order I could write it like this:
Yes, but I prefer we don't allow any order if we don't have to. Did you run this schema against
dtbs_checkor just audit the dts files with vivante?
Both, I found these mix of reg-names:
"core"
"bus","core"
"bus","core","shader"
That not really match with original bindings description...
Quoted 2 lines
Rob
Quoted 107 lines · Benjamin GAIGNARD
Quoted 95 lines · Rob Herring
Quoted 93 lines · Benjamin GAIGNARD
Quoted 91 lines · Maxime Ripard
Hi Benjamin,
Quoted 77 lines · Benjamin Gaignard
Convert etnaviv bindings to yaml format.
Signed-off-by Benjamin Gaignard <[email protected]>--- .../bindings/display/etnaviv/etnaviv-drm.txt | 36 ----------- .../devicetree/bindings/gpu/vivante,gc.yaml | 72 ++++++++++++++++++++++ 2 files changed, 72 insertions(+), 36 deletions(-)delete mode 100644
Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txtcreate mode 100644Documentation/devicetree/bindings/gpu/vivante,gc.yamlDocumentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt deleted +0
-36@@ -1,36 +0,0 @@ -Vivante GPU core devices -======================== - -Required properties: -- compatible: Should be "vivante,gc" - A more specific compatible is not needed, as the cores contain chip - identification registers at fixed locations, which provide all the - necessary information to the driver. -- reg: should be register base and length as documented in the - datasheet -- interrupts: Should contain the cores interrupt line -- clocks: should contain one clock for entry in clock-names - see Documentation/devicetree/bindings/clock/clock-bindings.txt -- clock-names: - - "bus": AXI/master interface clock - - "reg": AHB/slave interface clock - (only required if GPU can gate slave interface independently) - - "core": GPU core clock - - "shader": Shader clock (only required if GPU has feature PIPE_3D) - -Optional properties: -- power-domains: a power domain consumer specifier according to - Documentation/devicetree/bindings/power/power_domain.txt - -example: - -gpu_3d: gpu@130000 { - compatible = "vivante,gc"; - reg = <0x00130000 0x4000>; - interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&clks IMX6QDL_CLK_GPU3D_AXI>, - <&clks IMX6QDL_CLK_GPU3D_CORE>, - <&clks IMX6QDL_CLK_GPU3D_SHADER>; - clock-names = "bus", "core", "shader"; - power-domains = <&gpc 1>; -};Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +19
-0@@ -0,0 +1,72 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpu/vivante,gc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Vivante GPU Bindings + +description: Vivante GPU core devices + +maintainers: + - Lucas Stach <[email protected]> + +properties: + compatible: + const: vivante,gc + + reg: + maxItems: 1Documentation/devicetree/bindings/gpu/vivante,gc.yaml line 29
Quoted 10 lines
Documentation/devicetree/bindings/gpu/vivante,gc.yaml new file +10
-0+ + interrupts: + maxItems: 1 + + clocks: + items: + - description: AXI/master interface clock + - description: GPU core clock + - description: Shader clock (only required if GPU has feature PIPE_3D) + - description: AHB/slave interface clock (only required if GPU can gate slave interface independently)Can you have an AHB slave interface clock without a shader clock?
Quoted 8 lines
Quoted 5 lines
No because the items in the list are ordered so you need to have, in
order: "bus", "core", "shader", "reg"If it is needed to allow any number of clock in any order I could write it like this:
Yes, but I prefer we don't allow any order if we don't have to. Did you run this schema against
dtbs_checkor just audit the dts files with vivante?
Quoted 7 lines
Both, I found these mix of reg-names:
"core"
"bus","core"
"bus","core","shader"
You missed a couple:
arch/arc/boot/dts/hsdk.dts- clock-names = "bus",
"reg", "core", "shader";arch/arm/boot/dts/dove.dtsi- clock-names = "core";arch/arm/boot/dts/imx6q.dtsi- clock-names = "bus", "core";arch/arm/boot/dts/imx6qdl.dtsi- clock-names = "bus",
"core", "shader";
arch/arm/boot/dts/imx6qdl.dtsi- clock-names = "bus", "core"; arch/arm/boot/dts/imx6sl.dtsi- clock-names = "bus", "core"; arch/arm/boot/dts/imx6sl.dtsi- clock-names = "bus", "core"; arch/arm/boot/dts/imx6sx.dtsi- clock-names = "bus",
"core", "shader";arch/arm/boot/dts/stm32mp157c.dtsi- clock-names =
"bus" ,"core";arch/arm64/boot/dts/freescale/imx8mq.dtsi-
clock-names = "core", "shader", "bus", "reg";
imx8mq is probably new enough to change if we wanted to.
I guess just do an enum...
Rob