[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPLW+4mY_n21iFbS_jLf9xY4E0f3iB8o6mwV_GyYSPRPn1WA5A@mail.gmail.com>
Date: Mon, 22 Jul 2024 16:26:47 -0500
From: Sam Protsenko <semen.protsenko@...aro.org>
To: Mateusz Majewski <m.majewski2@...sung.com>
Cc: linux-pm@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, Bartlomiej Zolnierkiewicz <bzolnier@...il.com>,
Krzysztof Kozlowski <krzk@...nel.org>, "Rafael J. Wysocki" <rafael@...nel.org>,
Daniel Lezcano <daniel.lezcano@...aro.org>, Zhang Rui <rui.zhang@...el.com>,
Lukasz Luba <lukasz.luba@....com>, Rob Herring <robh@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Alim Akhtar <alim.akhtar@...sung.com>
Subject: Re: [PATCH 4/6] dt-bindings: thermal: samsung,exynos: add
exynos850-tmu string
On Fri, Jul 19, 2024 at 7:10 AM Mateusz Majewski
<m.majewski2@...sung.com> wrote:
>
> Note that unlike others, Exynos 850 does not require clocks, hence we
>From the TRM and from the downstream kernel [1] I can see that there
exists at least this clock:
GOUT_BLK_PERI_UID_BUSIF_TMU_IPCLKPORT_PCLK
Isn't that the TMU bus clock (needed to interface the TMU registers)?
Of course, it's not present in the clock driver right now, but it can
be added.
[1] https://gitlab.com/Linaro/96boards/e850-96/kernel/-/blob/android-exynos-5.10-linaro/drivers/soc/samsung/cal-if/s5e3830/cmucal-node.c?ref_type=heads#L1196
> have to be a little be more specific about when the related properties
> are required.
>
> Signed-off-by: Mateusz Majewski <m.majewski2@...sung.com>
> ---
> .../thermal/samsung,exynos-thermal.yaml | 26 +++++++++++++++++--
> 1 file changed, 24 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/thermal/samsung,exynos-thermal.yaml b/Documentation/devicetree/bindings/thermal/samsung,exynos-thermal.yaml
> index 29a08b0729ee..4363ee625339 100644
> --- a/Documentation/devicetree/bindings/thermal/samsung,exynos-thermal.yaml
> +++ b/Documentation/devicetree/bindings/thermal/samsung,exynos-thermal.yaml
> @@ -27,6 +27,7 @@ properties:
> - samsung,exynos5420-tmu-ext-triminfo
> - samsung,exynos5433-tmu
> - samsung,exynos7-tmu
> + - samsung,exynos850-tmu
>
> clocks:
> minItems: 1
> @@ -69,8 +70,6 @@ properties:
>
> required:
> - compatible
> - - clocks
> - - clock-names
> - interrupts
> - reg
>
> @@ -82,6 +81,9 @@ allOf:
> contains:
> const: samsung,exynos5420-tmu-ext-triminfo
> then:
> + required:
> + - clocks
> + - clock-names
> properties:
> clocks:
> items:
> @@ -105,6 +107,9 @@ allOf:
> - samsung,exynos5433-tmu
> - samsung,exynos7-tmu
> then:
> + required:
> + - clocks
> + - clock-names
> properties:
> clocks:
> items:
> @@ -132,6 +137,9 @@ allOf:
> - samsung,exynos5260-tmu
> - samsung,exynos5420-tmu
> then:
> + required:
> + - clocks
> + - clock-names
> properties:
> clocks:
> minItems: 1
> @@ -140,6 +148,20 @@ allOf:
> minItems: 1
> maxItems: 1
>
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - samsung,exynos850-tmu
> + then:
> + properties:
> + clocks: false
> + clock-names: false
> + reg:
> + minItems: 1
> + maxItems: 1
> +
> additionalProperties: false
>
> examples:
> --
> 2.45.1
>
>
Powered by blists - more mailing lists