2023-08-14 07:33:57

by Martin Botka

[permalink] [raw]
Subject: [PATCH v2 0/2] Enable Security ID for H616

Hello,

This patch series enables Security ID (SID) support for AllWinner H616.

SID support is an requirement for few things:
- Thermal sensors
- CPU Binning ID (cpufreq will use this)
- EPhy

This patch series doesn't add support for the consumers.
Those will come in the future via their own series.

Cheers,
Martin

Signed-off-by: Martin Botka <[email protected]>
---
Changes in v2:
- Drop driver changes
- Use fallback compatible in DT
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Martin Botka (2):
dt-bindings: nvmem: SID: Add binding for H616 SID controller
arm64: dts: allwinner: h616: Add SID controller node

.../devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml | 1 +
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 7 +++++++
2 files changed, 8 insertions(+)
---
base-commit: 52a93d39b17dc7eb98b6aa3edb93943248e03b2f
change-id: 20230811-sid-h616-37b773e59571

Best regards,
--
Martin Botka <[email protected]>



2023-08-14 08:10:00

by Martin Botka

[permalink] [raw]
Subject: [PATCH v2 1/2] dt-bindings: nvmem: SID: Add binding for H616 SID controller

Add binding for the SID controller found in H616 SoC

Signed-off-by: Martin Botka <[email protected]>
---
Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
index 296001e7f498..2ec0a1b8f803 100644
--- a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
+++ b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
@@ -27,6 +27,7 @@ properties:
- const: allwinner,sun50i-a64-sid
- const: allwinner,sun50i-h5-sid
- const: allwinner,sun50i-h6-sid
+ - const: allwinner,sun50i-h616-sid

reg:
maxItems: 1

--
2.41.0


2023-08-14 08:50:24

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v2 1/2] dt-bindings: nvmem: SID: Add binding for H616 SID controller

On 14/08/2023 08:38, Martin Botka wrote:
> Add binding for the SID controller found in H616 SoC
>
> Signed-off-by: Martin Botka <[email protected]>
> ---
> Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
> index 296001e7f498..2ec0a1b8f803 100644
> --- a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
> +++ b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
> @@ -27,6 +27,7 @@ properties:
> - const: allwinner,sun50i-a64-sid
> - const: allwinner,sun50i-h5-sid
> - const: allwinner,sun50i-h6-sid
> + - const: allwinner,sun50i-h616-sid

It does not look like you tested the DTS against bindings. Please run
`make dtbs_check` (see
Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).

Best regards,
Krzysztof


2023-08-14 08:50:41

by Martin Botka

[permalink] [raw]
Subject: Re: [PATCH v2 1/2] dt-bindings: nvmem: SID: Add binding for H616 SID controller



On Mon, Aug 14 2023 at 10:08:38 AM +02:00:00, Krzysztof Kozlowski
<[email protected]> wrote:
> On 14/08/2023 08:38, Martin Botka wrote:
>> Add binding for the SID controller found in H616 SoC
>>
>> Signed-off-by: Martin Botka <[email protected]>
>> ---
>>
>> Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
>> | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git
>> a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
>> b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
>> index 296001e7f498..2ec0a1b8f803 100644
>> ---
>> a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
>> +++
>> b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
>> @@ -27,6 +27,7 @@ properties:
>> - const: allwinner,sun50i-a64-sid
>> - const: allwinner,sun50i-h5-sid
>> - const: allwinner,sun50i-h6-sid
>> + - const: allwinner,sun50i-h616-sid
>
> It does not look like you tested the DTS against bindings. Please run
> `make dtbs_check` (see
> Documentation/devicetree/bindings/writing-schema.rst or
> https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
> for instructions).
>
> Best regards,
> Krzysztof
>
Yea completely forgot. Sorry for that.

Will send v3 tomorrow with proper binding patch using items with enums



2023-08-14 10:57:16

by Jernej Škrabec

[permalink] [raw]
Subject: Re: [PATCH v2 1/2] dt-bindings: nvmem: SID: Add binding for H616 SID controller

Dne ponedeljek, 14. avgust 2023 ob 10:21:49 CEST je Martin Botka napisal(a):
> On Mon, Aug 14 2023 at 10:08:38 AM +02:00:00, Krzysztof Kozlowski
>
> <[email protected]> wrote:
> > On 14/08/2023 08:38, Martin Botka wrote:
> >> Add binding for the SID controller found in H616 SoC
> >>
> >> Signed-off-by: Martin Botka <[email protected]>
> >> ---
> >>
> >> Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
> >>
> >> | 1 +
> >> |
> >> 1 file changed, 1 insertion(+)
> >>
> >> diff --git
> >>
> >> a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
> >> b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
> >>
> >> index 296001e7f498..2ec0a1b8f803 100644
> >> ---
> >>
> >> a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
> >>
> >> +++
> >>
> >> b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
> >>
> >> @@ -27,6 +27,7 @@ properties:
> >> - const: allwinner,sun50i-a64-sid
> >>
> >> - const: allwinner,sun50i-h5-sid
> >> - const: allwinner,sun50i-h6-sid
> >>
> >> + - const: allwinner,sun50i-h616-sid
> >
> > It does not look like you tested the DTS against bindings. Please run
> > `make dtbs_check` (see
> > Documentation/devicetree/bindings/writing-schema.rst or
> > https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sour
> > ces-with-the-devicetree-schema/ for instructions).
> >
> > Best regards,
> > Krzysztof
>
> Yea completely forgot. Sorry for that.
>
> Will send v3 tomorrow with proper binding patch using items with enums

Don't. You have cca. 1 month time now, since you missed at least window for DT
changes for 6.6.

Best regards,
Jernej




2023-08-14 13:05:40

by Andre Przywara

[permalink] [raw]
Subject: Re: [PATCH v2 1/2] dt-bindings: nvmem: SID: Add binding for H616 SID controller

On Mon, 14 Aug 2023 12:28:36 +0200
Jernej Škrabec <[email protected]> wrote:

> Dne ponedeljek, 14. avgust 2023 ob 10:21:49 CEST je Martin Botka napisal(a):
> > On Mon, Aug 14 2023 at 10:08:38 AM +02:00:00, Krzysztof Kozlowski
> >
> > <[email protected]> wrote:
> > > On 14/08/2023 08:38, Martin Botka wrote:
> > >> Add binding for the SID controller found in H616 SoC
> > >>
> > >> Signed-off-by: Martin Botka <[email protected]>
> > >> ---
> > >>
> > >> Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
> > >>
> > >> | 1 +
> > >> |
> > >> 1 file changed, 1 insertion(+)
> > >>
> > >> diff --git
> > >>
> > >> a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
> > >> b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
> > >>
> > >> index 296001e7f498..2ec0a1b8f803 100644
> > >> ---
> > >>
> > >> a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
> > >>
> > >> +++
> > >>
> > >> b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
> > >>
> > >> @@ -27,6 +27,7 @@ properties:
> > >> - const: allwinner,sun50i-a64-sid
> > >>
> > >> - const: allwinner,sun50i-h5-sid
> > >> - const: allwinner,sun50i-h6-sid
> > >>
> > >> + - const: allwinner,sun50i-h616-sid
> > >
> > > It does not look like you tested the DTS against bindings. Please run
> > > `make dtbs_check` (see
> > > Documentation/devicetree/bindings/writing-schema.rst or
> > > https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sour
> > > ces-with-the-devicetree-schema/ for instructions).
> > >
> > > Best regards,
> > > Krzysztof
> >
> > Yea completely forgot. Sorry for that.
> >
> > Will send v3 tomorrow with proper binding patch using items with enums
>
> Don't. You have cca. 1 month time now, since you missed at least window for DT
> changes for 6.6.

Plus we need to figure out if my comment about using a fallback compatible
was actually correct, as asked here:
https://lore.kernel.org/linux-arm-kernel/[email protected]/

Cheers,
Andre