Skip to contentSkip to conversation

nvmem: sunxi-sid: add SID controller support for H6

PATCH RESEND In review Yangtao Li 2 participants 4 messages Apr 4, 2019 – Apr 5, 2019

Subsystems (3)

v1 of 2 In review Latest is v2 →

lore
Share & tools
lore

Yangtao Li

author
#0 lore raw

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
author
#1 lore raw

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.

---
 drivers/nvmem/sunxi_sid.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/nvmem/sunxi_sid.c +6 -0
index 7013f9cc43c7..a079a80ddf2c 100644
@@ -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
author
#3 lore raw

PATCH RESEND 2/2 arm64: dts: sunxi: h6: Add device node for SID

In reply to Yangtao Li

The device tree binding already lists compatible strings for H6 SoCs, so add a device node for iy.

---
 arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +5 -0
index c9e861a50a63..cbeb587d2eed 100644
@@ -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