mbox series

[v3,0/2] Enable Security ID for H616

Message ID 20230912-sid-h616-v3-0-ee18e1c5bbb5@somainline.org
Headers show
Series Enable Security ID for H616 | expand

Message

Martin Botka Sept. 12, 2023, 12:25 p.m. UTC
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 <martin.botka@somainline.org>
---
Changes in v3:
- bindings: Make H616 compatible fallback for a64 using items and enum
- Link to v2: https://lore.kernel.org/r/20230814-sid-h616-v2-0-0267749b4471@somainline.org

Changes in v2:
- Drop driver changes
- Use fallback compatible in DT
- Link to v1: https://lore.kernel.org/r/20230811-sid-h616-v1-0-d1dfc9f47b19@somainline.org

---
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         | 4 +++-
 arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi                     | 7 +++++++
 2 files changed, 10 insertions(+), 1 deletion(-)
---
base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d
change-id: 20230811-sid-h616-37b773e59571

Best regards,

Comments

Jernej Škrabec Sept. 12, 2023, 3:54 p.m. UTC | #1
Dne torek, 12. september 2023 ob 14:25:13 CEST je Martin Botka napisal(a):
> Add node for the H616 SID controller
> 
> Signed-off-by: Martin Botka <martin.botka@somainline.org>

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej

> ---
>  arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
> b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi index
> 74aed0d232a9..d549d277d972 100644
> --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
> @@ -133,6 +133,13 @@ ccu: clock@3001000 {
>  			#reset-cells = <1>;
>  		};
> 
> +		sid: efuse@3006000 {
> +			compatible = "allwinner,sun50i-h616-sid", 
"allwinner,sun50i-a64-sid";
> +			reg = <0x03006000 0x1000>;
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +		};
> +
>  		watchdog: watchdog@30090a0 {
>  			compatible = "allwinner,sun50i-h616-wdt",
>  				     "allwinner,sun6i-a31-wdt";
Jernej Škrabec Sept. 24, 2023, 7:57 p.m. UTC | #2
Dne torek, 12. september 2023 ob 14:25:11 CEST je Martin Botka napisal(a):
> 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.

Applied, thanks!

Best regards,
Jernej

> 
> Cheers,
> Martin
> 
> Signed-off-by: Martin Botka <martin.botka@somainline.org>
> ---
> Changes in v3:
> - bindings: Make H616 compatible fallback for a64 using items and enum
> - Link to v2: https://lore.kernel.org/r/20230814-sid-h616-v2-0-0267749b4471@somainline.org
> 
> Changes in v2:
> - Drop driver changes
> - Use fallback compatible in DT
> - Link to v1: https://lore.kernel.org/r/20230811-sid-h616-v1-0-d1dfc9f47b19@somainline.org
> 
> ---
> 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         | 4 +++-
>  arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi                     | 7 +++++++
>  2 files changed, 10 insertions(+), 1 deletion(-)
> ---
> base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d
> change-id: 20230811-sid-h616-37b773e59571
> 
> Best regards,
>