nvmem: sunxi-sid: add SID controller support for H6
cover nvmem: sunxi-sid: add SID controller support for H6
Add SID's support for H6.
Yangtao Li (2):
nvmem: sunxi_sid: Support SID on H6
arm64: dts: sunxi: h6: Add device node for SID
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 5 +++++ drivers/nvmem/sunxi_sid.c | 6 ++++++ 2 files changed, 11 insertions(+)
Signature · 1 line
2.17.0
PATCH RESEND 1/2 nvmem: sunxi_sid: Support SID on H6
Add support for H6's SID controller. It supports 4K-bit EFUSE, bigger than before.
Signed-off-by Yangtao Li <[email protected]>
--- drivers/nvmem/sunxi_sid.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/nvmem/sunxi_sid.c +6 -0
@@ -188,6 +188,11 @@ static const struct sunxi_sid_cfg sun50i_a64_cfg = { .size = 0x100, }; +static const struct sunxi_sid_cfg sun50i_h6_cfg = { + .value_offset =0x200 , + .size =0x200 , +}; +static const struct of_device_id sunxi_sid_of_match[] = { { .compatible ="allwinner,sun4i-a10-sid" , .data = &sun4i_a10_cfg }, { .compatible ="allwinner,sun7i-a20-sid" , .data = &sun7i_a20_cfg },
@@ -195,6 +200,7 @@ static const struct of_device_id sunxi_sid_of_match[] = { { .compatible = "allwinner,sun8i-h3-sid", .data = &sun8i_h3_cfg }, { .compatible = "allwinner,sun50i-a64-sid", .data = &sun50i_a64_cfg }, { .compatible = "allwinner,sun50i-h5-sid", .data = &sun50i_a64_cfg }, + { .compatible = "allwinner,sun50i-h6-sid", .data = &sun50i_h6_cfg }, {/* sentinel */}, };MODULE_DEVICE_TABLE (of, sunxi_sid_of_match);
Signature · 1 line
2.17.0
PATCH RESEND 2/2 arm64: dts: sunxi: h6: Add device node for SID
In reply to Yangtao LiThe device tree binding already lists compatible strings for H6 SoCs, so add a device node for iy.
Signed-off-by Yangtao Li <[email protected]>
--- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +5 -0
@@ -192,6 +192,11 @@ #reset-cells = <1>; }; + sid: sid@3006000 { + compatible = "allwinner,sun50i-h6-sid"; + reg = <0x3006000 0x400>; + }; + pio: pinctrl@300b000 { compatible = "allwinner,sun50i-h6-pinctrl"; reg = <0x0300b000 0x400>;
Signature · 1 line
2.17.0
Re: [RESEND 1/2] nvmem: sunxi_sid: Support SID on H6
In reply to Yangtao LiQuoted 4 lines · Yangtao Li
Add support for H6's SID controller. It supports 4K-bit EFUSE, bigger than before.
Signed-off-by Yangtao Li <[email protected]>
Acked-by Maxime Ripard <[email protected]>
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com