2024-02-09 18:18:57

by Sebastian Reichel

[permalink] [raw]
Subject: [PATCH v1 01/10] dt-bindings: soc: rockchip: add clock to RK3588 VO grf

The RK3588 VO GRF needs a clock. This adds the clock to the allowed
properties, makes it mandatory for the RK3588 VO grf and disallows it
for any other Rockchip grf.

Signed-off-by: Sebastian Reichel <[email protected]>
---
.../devicetree/bindings/soc/rockchip/grf.yaml | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)

diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
index 9793ea6f0fe6..20bc1f46384c 100644
--- a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
+++ b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
@@ -66,6 +66,9 @@ properties:
reg:
maxItems: 1

+ clocks:
+ maxItems: 1
+
"#address-cells":
const: 1

@@ -248,6 +251,22 @@ allOf:

unevaluatedProperties: false

+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - rockchip,rk3588-vo-grf
+
+ then:
+ required:
+ - clocks
+
+ else:
+ properties:
+ clocks: false
+
+
examples:
- |
#include <dt-bindings/clock/rk3399-cru.h>
--
2.43.0



2024-02-11 17:28:10

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH v1 01/10] dt-bindings: soc: rockchip: add clock to RK3588 VO grf

On Fri, Feb 09, 2024 at 07:17:17PM +0100, Sebastian Reichel wrote:
> The RK3588 VO GRF needs a clock. This adds the clock to the allowed
> properties, makes it mandatory for the RK3588 VO grf and disallows it
> for any other Rockchip grf.
>
> Signed-off-by: Sebastian Reichel <[email protected]>

Acked-by: Conor Dooley <[email protected]>

Cheers,
Conor.


Attachments:
(No filename) (391.00 B)
signature.asc (235.00 B)
Download all attachments