dt-bindings: media: convert rockchip rga bindings to yaml
Subsystems (4)
PATCH v2 1/2 dt-bindings: media: convert rockchip rga bindings to yaml
Current dts files for Rockchip with 'rga' nodes are manually verified. In order to automate this process rockchip-rga.txt has to be converted to yaml.
Changed:
Add missing reg property
---
Changes v2:
Change MAINTAINERS
--- .../devicetree/bindings/media/rockchip-rga.txt | 34 ---------- .../devicetree/bindings/media/rockchip-rga.yaml | 78 ++++++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 79 insertions(+), 35 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/rockchip-rga.txt create mode 100644 Documentation/devicetree/bindings/media/rockchip-rga.yaml
Documentation/devicetree/bindings/media/rockchip-rga.txt deleted +0 -34
@@ -1,34 +0,0 @@ -device-tree bindings for rockchip 2D raster graphic acceleration controller (RGA) - -RGA is a standalone 2D raster graphic acceleration unit. It accelerates 2D -graphics operations, such as point/line drawing, image scaling, rotation, -BitBLT, alpha blending and image blur/sharpness. - -Required properties: -- compatible: value should be one of the following - "rockchip,rk3228-rga", "rockchip,rk3288-rga": for Rockchip RK3228 - "rockchip,rk3288-rga": for Rockchip RK3288 - "rockchip,rk3399-rga": for Rockchip RK3399 - -- interrupts: RGA interrupt specifier. - -- clocks: phandle to RGA sclk/hclk/aclk clocks - -- clock-names: should be "aclk", "hclk" and "sclk" - -- resets: Must contain an entry for each entry in reset-names. - See ../reset/reset.txt for details. -- reset-names: should be "core", "axi" and "ahb" - -Example: -SoC-specific DT entry: - rga: rga@ff680000 { - compatible = "rockchip,rk3399-rga"; - reg = <0xff680000 0x10000>; - interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>; - clock-names = "aclk", "hclk", "sclk"; - - resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>; - reset-names = "core, "axi", "ahb"; - };
Documentation/devicetree/bindings/media/rockchip-rga.yaml new file +78 -0
78 lines not on this page · raw message
MAINTAINERS +1 -1
@@ -14367,7 +14367,7 @@ M: Ezequiel Garcia <ezequiel-ZGY8ohtN/[email protected]> L: [email protected] S: Maintained F: drivers/media/platform/rockchip/rga/ -F: Documentation/devicetree/bindings/media/rockchip-rga.txt +F: Documentation/devicetree/bindings/media/rockchip-rga.yaml HANTRO VPU CODEC DRIVER M: Ezequiel Garcia <ezequiel-ZGY8ohtN/[email protected]>
Signature · 1 line
2.11.0
PATCH v2 2/2 dt-bindings: media: rockchip-rga: add power-domains property
In the old txt situation we add/describe only properties that are used by the driver/hardware itself. With yaml it also filters things in a node that are used by other drivers like 'power-domains' for rk3399, so add it to 'rockchip-rga.yaml'.
--- Documentation/devicetree/bindings/media/rockchip-rga.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/media/rockchip-rga.yaml +5 -0
@@ -39,6 +39,9 @@ properties: - const: hclk - const: sclk + power-domains: + maxItems: 1 + resets: maxItems: 3
@@ -63,6 +66,7 @@ examples: - | #include <dt-bindings/clock/rk3399-cru.h> #include <dt-bindings/interrupt-controller/arm-gic.h> + #include <dt-bindings/power/rk3399-power.h> rga: rga@ff680000 { compatible = "rockchip,rk3399-rga"; reg = <0xff680000 0x10000>;
@@ -71,6 +75,7 @@ examples: <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>; clock-names = "aclk", "hclk", "sclk"; + power-domains = <&power RK3399_PD_RGA>; resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>;
Signature · 1 line
2.11.0
Re: [PATCH v2 2/2] dt-bindings: media: rockchip-rga: add power-domains property
Quoted 10 lines · Johan Jonker
In the old txt situation we add/describe only properties that are used by the driver/hardware itself. With yaml it also filters things in a node that are used by other drivers like 'power-domains' for rk3399, so add it to '
rockchip-rga.yaml'.Signed-off-by Johan Jonker <[email protected]>--- Documentation/devicetree/bindings/media/rockchip-rga.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Quoted 11 lines · Johan Jonker
Current dts files for Rockchip with 'rga' nodes are manually verified. In order to automate this process rockchip-rga.txt has to be converted to yaml.
Changed:
Add missing reg propertySigned-off-by Johan Jonker <[email protected]>---
Changes v2:
ChangeMAINTAINERS
Quoted 8 lines
--- .../devicetree/bindings/media/rockchip-rga.txt | 34 ---------- .../devicetree/bindings/media/rockchip-rga.yaml | 78 ++++++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 79 insertions(+), 35 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/rockchip-rga.txt create mode 100644 Documentation/devicetree/bindings/media/rockchip-rga.yaml