* [RESEND 0/2] nvmem: sunxi-sid: add SID controller support for H6
@ 2019-04-04 16:57 Yangtao Li
2019-04-04 16:57 ` [RESEND 1/2] nvmem: sunxi_sid: Support SID on H6 Yangtao Li
2019-04-04 16:57 ` [RESEND 2/2] arm64: dts: sunxi: h6: Add device node for SID Yangtao Li
0 siblings, 2 replies; 6+ messages in thread
From: Yangtao Li @ 2019-04-04 16:57 UTC (permalink / raw)
To: maxime.ripard, wens, robh+dt, mark.rutland, srinivas.kandagatla
Cc: linux-arm-kernel, devicetree, linux-kernel, Yangtao Li
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(+)
--
2.17.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [RESEND 1/2] nvmem: sunxi_sid: Support SID on H6
2019-04-04 16:57 [RESEND 0/2] nvmem: sunxi-sid: add SID controller support for H6 Yangtao Li
@ 2019-04-04 16:57 ` Yangtao Li
2019-04-05 7:23 ` Maxime Ripard
2019-04-04 16:57 ` [RESEND 2/2] arm64: dts: sunxi: h6: Add device node for SID Yangtao Li
1 sibling, 1 reply; 6+ messages in thread
From: Yangtao Li @ 2019-04-04 16:57 UTC (permalink / raw)
To: maxime.ripard, wens, robh+dt, mark.rutland, srinivas.kandagatla
Cc: linux-arm-kernel, devicetree, linux-kernel, Yangtao Li
Add support for H6's SID controller. It supports 4K-bit
EFUSE, bigger than before.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
drivers/nvmem/sunxi_sid.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c
index 7013f9cc43c7..a079a80ddf2c 100644
--- a/drivers/nvmem/sunxi_sid.c
+++ b/drivers/nvmem/sunxi_sid.c
@@ -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);
--
2.17.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [RESEND 2/2] arm64: dts: sunxi: h6: Add device node for SID
2019-04-04 16:57 [RESEND 0/2] nvmem: sunxi-sid: add SID controller support for H6 Yangtao Li
2019-04-04 16:57 ` [RESEND 1/2] nvmem: sunxi_sid: Support SID on H6 Yangtao Li
@ 2019-04-04 16:57 ` Yangtao Li
1 sibling, 0 replies; 6+ messages in thread
From: Yangtao Li @ 2019-04-04 16:57 UTC (permalink / raw)
To: maxime.ripard, wens, robh+dt, mark.rutland, srinivas.kandagatla
Cc: linux-arm-kernel, devicetree, linux-kernel, Yangtao Li
The device tree binding already lists compatible strings for H6
SoCs, so add a device node for iy.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
index c9e861a50a63..cbeb587d2eed 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
@@ -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>;
--
2.17.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [RESEND 1/2] nvmem: sunxi_sid: Support SID on H6
2019-04-04 16:57 ` [RESEND 1/2] nvmem: sunxi_sid: Support SID on H6 Yangtao Li
@ 2019-04-05 7:23 ` Maxime Ripard
0 siblings, 0 replies; 6+ messages in thread
From: Maxime Ripard @ 2019-04-05 7:23 UTC (permalink / raw)
To: Yangtao Li
Cc: wens, robh+dt, mark.rutland, srinivas.kandagatla,
linux-arm-kernel, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 347 bytes --]
On Thu, Apr 04, 2019 at 12:57:25PM -0400, Yangtao Li wrote:
> Add support for H6's SID controller. It supports 4K-bit
> EFUSE, bigger than before.
>
> Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RESEND 2/2] arm64: dts: sunxi: h6: Add device node for SID
2019-04-04 17:01 Yangtao Li
@ 2019-04-05 8:56 ` Maxime Ripard
0 siblings, 0 replies; 6+ messages in thread
From: Maxime Ripard @ 2019-04-05 8:56 UTC (permalink / raw)
To: Yangtao Li
Cc: wens, robh+dt, mark.rutland, srinivas.kandagatla,
linux-arm-kernel, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 326 bytes --]
On Thu, Apr 04, 2019 at 01:01:46PM -0400, Yangtao Li wrote:
> The device tree binding already lists compatible strings for H6
> SoC, so add a device node for it.
>
> Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Applied, thanks!
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [RESEND 2/2] arm64: dts: sunxi: h6: Add device node for SID
@ 2019-04-04 17:01 Yangtao Li
2019-04-05 8:56 ` Maxime Ripard
0 siblings, 1 reply; 6+ messages in thread
From: Yangtao Li @ 2019-04-04 17:01 UTC (permalink / raw)
To: maxime.ripard, wens, robh+dt, mark.rutland, srinivas.kandagatla
Cc: linux-arm-kernel, devicetree, linux-kernel, Yangtao Li
The device tree binding already lists compatible strings for H6
SoC, so add a device node for it.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
fix typo:
iy->it
0x3006000->0x03006000
---
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
index c9e861a50a63..cbeb587d2eed 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
@@ -192,6 +192,11 @@
#reset-cells = <1>;
};
+ sid: sid@3006000 {
+ compatible = "allwinner,sun50i-h6-sid";
+ reg = <0x03006000 0x400>;
+ };
+
pio: pinctrl@300b000 {
compatible = "allwinner,sun50i-h6-pinctrl";
reg = <0x0300b000 0x400>;
--
2.17.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-04-05 8:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-04 16:57 [RESEND 0/2] nvmem: sunxi-sid: add SID controller support for H6 Yangtao Li
2019-04-04 16:57 ` [RESEND 1/2] nvmem: sunxi_sid: Support SID on H6 Yangtao Li
2019-04-05 7:23 ` Maxime Ripard
2019-04-04 16:57 ` [RESEND 2/2] arm64: dts: sunxi: h6: Add device node for SID Yangtao Li
2019-04-04 17:01 Yangtao Li
2019-04-05 8:56 ` Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).