Message ID | 20231018061714.3553817-22-s.hauer@pengutronix.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add perf support to the rockchip-dfi driver | expand |
> -----Original Message----- > From: Sascha Hauer <s.hauer@pengutronix.de> > Sent: Wednesday, October 18, 2023 3:17 PM > To: linux-rockchip@lists.infradead.org > Cc: linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org; > linux-pm@vger.kernel.org; Heiko Stuebner <heiko@sntech.de>; Chanwoo Choi > <chanwoo@kernel.org>; Kyungmin Park <kyungmin.park@samsung.com>; MyungJoo > Ham <myungjoo.ham@samsung.com>; Will Deacon <will@kernel.org>; Mark > Rutland <mark.rutland@arm.com>; kernel@pengutronix.de; Michael Riesch > <michael.riesch@wolfvision.net>; Robin Murphy <robin.murphy@arm.com>; > Vincent Legoll <vincent.legoll@gmail.com>; Rob Herring > <robh+dt@kernel.org>; Krzysztof Kozlowski > <krzysztof.kozlowski+dt@linaro.org>; Conor Dooley <conor+dt@kernel.org>; > devicetree@vger.kernel.org; Sebastian Reichel > <sebastian.reichel@collabora.com>; Sascha Hauer <s.hauer@pengutronix.de>; > Conor Dooley <conor.dooley@microchip.com>; Chanwoo Choi > <cw00.choi@samsung.com> > Subject: [PATCH v8 21/26] dt-bindings: devfreq: event: rockchip,dfi: Add > rk3568 support > > This adds the rockchip,rk3568-dfi compatible to the binding. Make clocks > optional for this SoC as the RK3568 doesn't have a kernel controllable > PCLK. > > Reviewed-by: Conor Dooley <conor.dooley@microchip.com> > Acked-by: Chanwoo Choi <cw00.choi@samsung.com> > Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> > --- > .../bindings/devfreq/event/rockchip,dfi.yaml | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-) > > diff --git > a/Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml > b/Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml > index 7a82f6ae0701e..e8b64494ee8bd 100644 > --- a/Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml > +++ b/Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml > @@ -13,6 +13,7 @@ properties: > compatible: > enum: > - rockchip,rk3399-dfi > + - rockchip,rk3568-dfi > > clocks: > maxItems: 1 > @@ -34,11 +35,21 @@ properties: > > required: > - compatible > - - clocks > - - clock-names > - interrupts > - reg > > +if: > + properties: > + compatible: > + contains: > + enum: > + - rockchip,rk3399-dfi > + > +then: > + required: > + - clocks > + - clock-names > + > additionalProperties: false > > examples: > -- > 2.39.2 Applied it. Thanks Best Regards, Chanwoo Choi
diff --git a/Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml b/Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml index 7a82f6ae0701e..e8b64494ee8bd 100644 --- a/Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml +++ b/Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml @@ -13,6 +13,7 @@ properties: compatible: enum: - rockchip,rk3399-dfi + - rockchip,rk3568-dfi clocks: maxItems: 1 @@ -34,11 +35,21 @@ properties: required: - compatible - - clocks - - clock-names - interrupts - reg +if: + properties: + compatible: + contains: + enum: + - rockchip,rk3399-dfi + +then: + required: + - clocks + - clock-names + additionalProperties: false examples: