arm64: dts: allwinner: a64: Add SID node
PATCH v2 1/5 arm64: dts: allwinner: a64: Add SID node
The A64 have a SID controller which consist on EFUSE (starting at 0x200) and three registers to read/write the efuses.
--- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +5 -0
@@ -227,6 +227,11 @@ #size-cells = <0>; }; + sid: eeprom at 1c14000 { + compatible = "allwinner,sun50i-a64-sid"; + reg = <0x1c14000 0x400>; + }; + usb_otg: usb at 1c19000 { compatible = "allwinner,sun8i-a33-musb"; reg = <0x01c19000 0x0400>;
Signature · 1 line
2.17.0
PATCH v2 2/5 ARM: dts: sunxi: h3/h5: Add SID node
Both H3 and H5 and a SID controller at the same address. They are know to be different, the H5 one is the same as the A64 so add a node in the common dtsi and we will override the compatible string in the SoC dts.
--- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/sunxi-h3-h5.dtsi +4 -0
@@ -644,6 +644,10 @@ status = "disabled"; }; + sid: eeprom at 1c14000 { + reg = <0x1c14000 0x400>; + }; + uart0: serial at 1c28000 { compatible = "snps,dw-apb-uart"; reg = <0x01c28000 0x400>;
Signature · 1 line
2.17.0
PATCH v2 3/5 ARM: dts: sun8i: h3: Add SID compatible string
In reply to Emmanuel VadotThe SID controller on H3 is one of it's kind (at least from what we know).
Add a compatible string for it in the SoC dtsi.
--- arch/arm/boot/dts/sun8i-h3.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/sun8i-h3.dtsi +4 -0
@@ -185,3 +185,7 @@ &pio { compatible = "allwinner,sun8i-h3-pinctrl"; }; + +&sid { + compatible = "allwinner,sun8i-h3-sid"; +};
Signature · 1 line
2.17.0
PATCH v2 4/5 nvmem: sunxi-sid: add support for H5's SID controller
In reply to Emmanuel VadotThe H5 SoC have a SID controller that looks like the one in A64, but in case we find some difference in the futur at a binding for it.
--- Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt +1 -0
@@ -7,6 +7,7 @@ Required properties: "allwinner,sun8i-a83t-sid" "allwinner,sun8i-h3-sid" "allwinner,sun50i-a64-sid" + "allwinner,sun50i-h5-sid" - reg: Should contain registers location and length
Signature · 1 line
2.17.0
PATCH v2 5/5 arm64: dts: allwinner: h5: Add SID for H5
In reply to Emmanuel VadotThe SID controller on H5 look the same as the one present in the A64. But in case we find some difference one day at a compatible string of it's own and a fallback to the A64 one.
--- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +5 -0
@@ -129,3 +129,8 @@ <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; compatible = "allwinner,sun50i-h5-pinctrl"; }; + +&sid { + compatible = "allwinner,sun50i-h5-sid", + "allwinner,sun50i-a64-sid"; +};
Signature · 1 line
2.17.0
Re: [PATCH v2 5/5] arm64: dts: allwinner: h5: Add SID for H5
Quoted 14 lines · Emmanuel Vadot
The SID controller on H5 look the same as the one present in the A64. But in case we find some difference one day at a compatible string of it's own and a fallback to the A64 one.
Signed-off-by Emmanuel Vadot <[email protected]>--- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 5 +++++ 1 file changed, 5 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +0
-0
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi line 136
Quoted 8 lines
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +5
-0@@ -129,3 +129,8 @@ <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; compatible = "allwinner,sun50i-h5-pinctrl"; }; + +&sid { + compatible = "allwinner,sun50i-h5-sid", + "allwinner,sun50i-a64-sid"; +};
This is still a bit pointless, please remove the common node.
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180724/b4713889/attachment.sig>
Re: [PATCH v2 4/5] nvmem: sunxi-sid: add support for H5's SID controller
In reply to Emmanuel VadotQuoted 4 lines · Emmanuel Vadot
The H5 SoC have a SID controller that looks like the one in A64, but in case we find some difference in the futur at a binding for it.
Signed-off-by Emmanuel Vadot <[email protected]>
The prefix in your commit title should start with dt-bindings: ...
Thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180724/8b6f6fc4/attachment.sig>
Re: [PATCH v2 5/5] arm64: dts: allwinner: h5: Add SID for H5
In reply to Maxime RipardQuoted 10 lines · On Tue, 24 Jul 2018 15:00:04 +0200 Maxime Ripard <[email protected]>…
Quoted 9 lines · Emmanuel Vadot
The SID controller on H5 look the same as the one present in the A64. But in case we find some difference one day at a compatible string of it's own and a fallback to the A64 one.
Signed-off-by Emmanuel Vadot <[email protected]>--- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
Quoted 15 lines
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi line 136
Quoted 13 lines
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +5
-0@@ -129,3 +129,8 @@ <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; compatible = "allwinner,sun50i-h5-pinctrl"; }; + +&sid { + compatible = "allwinner,sun50i-h5-sid", + "allwinner,sun50i-a64-sid"; +};This is still a bit pointless, please remove the common node.
You mean directly declare sid controller in the SoC dtsi and not have
a common node in sunxi-h3-h5.dtsi ?
Quoted 6 lines
Maxime
Signature · 3 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
Signature · 1 line
Emmanuel Vadot <[email protected]> <[email protected]>
Re: [PATCH v2 5/5] arm64: dts: allwinner: h5: Add SID for H5
Quoted 29 lines · Emmanuel Vadot
Quoted 10 lines · On Tue, 24 Jul 2018 15:00:04 +0200 Maxime Ripard <[email protected]>…
Quoted 9 lines · Emmanuel Vadot
The SID controller on H5 look the same as the one present in the A64. But in case we find some difference one day at a compatible string of it's own and a fallback to the A64 one.
Signed-off-by Emmanuel Vadot <[email protected]>--- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 5 +++++ 1 file changed, 5 insertions(+)Quoted 15 lines
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi line 136
Quoted 13 lines
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +5
-0@@ -129,3 +129,8 @@ <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; compatible = "allwinner,sun50i-h5-pinctrl"; }; + +&sid { + compatible = "allwinner,sun50i-h5-sid", + "allwinner,sun50i-a64-sid"; +};This is still a bit pointless, please remove the common node.
Quoted 2 lines
You mean directly declare sid controller in the SoC dtsi and not
have a common node insunxi-h3-h5.dtsi?
Yep
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180724/ef92eeff/attachment.sig>
Re: [PATCH v2 5/5] arm64: dts: allwinner: h5: Add SID for H5
Quoted 30 lines · On Tue, 24 Jul 2018 16:42:18 +0200 Maxime Ripard <[email protected]>…
Quoted 29 lines · Emmanuel Vadot
Quoted 25 lines · On Tue, 24 Jul 2018 15:00:04 +0200 Maxime Ripard <[email protected]>…
Quoted 14 lines · Emmanuel Vadot
The SID controller on H5 look the same as the one present in the A64. But in case we find some difference one day at a compatible string of it's own and a fallback to the A64 one.
Signed-off-by Emmanuel Vadot <[email protected]>--- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 5 +++++ 1 file changed, 5 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +0
-0arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi line 136
Quoted 8 lines
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +5
-0@@ -129,3 +129,8 @@ <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; compatible = "allwinner,sun50i-h5-pinctrl"; }; + +&sid { + compatible = "allwinner,sun50i-h5-sid", + "allwinner,sun50i-a64-sid"; +};This is still a bit pointless, please remove the common node.
Quoted 9 lines
Quoted 2 lines
You mean directly declare sid controller in the SoC dtsi and not
have a common node insunxi-h3-h5.dtsi?Yep
Signature · 3 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
The reason I've put it in the common file is because I'll send patches
for the nvmem-cells needed for thermal, and those are common between the two. Other nvmem-cells are also common (like the chipid and probably other).
Signature · 1 line
Emmanuel Vadot <[email protected]> <[email protected]>
Re: [PATCH v2 5/5] arm64: dts: allwinner: h5: Add SID for H5
Quoted 36 lines · Emmanuel Vadot
Quoted 33 lines · On Tue, 24 Jul 2018 16:42:18 +0200 Maxime Ripard <[email protected]>…
Quoted 31 lines · Emmanuel Vadot
Quoted 10 lines · On Tue, 24 Jul 2018 15:00:04 +0200 Maxime Ripard <[email protected]>…
Quoted 9 lines · Emmanuel Vadot
The SID controller on H5 look the same as the one present in the A64. But in case we find some difference one day at a compatible string of it's own and a fallback to the A64 one.
Signed-off-by Emmanuel Vadot <[email protected]>--- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 5 +++++ 1 file changed, 5 insertions(+)Quoted 15 lines
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi line 136
Quoted 13 lines
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +5
-0@@ -129,3 +129,8 @@ <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; compatible = "allwinner,sun50i-h5-pinctrl"; }; + +&sid { + compatible = "allwinner,sun50i-h5-sid", + "allwinner,sun50i-a64-sid"; +};This is still a bit pointless, please remove the common node.
You mean directly declare sid controller in the SoC dtsi and not
have a common node insunxi-h3-h5.dtsi?
Quoted 6 lines
Quoted 1 line
Yep
The reason I've put it in the common file is because I'll send patches
for the nvmem-cells needed for thermal, and those are common between the two. Other nvmem-cells are also common (like the chipid and probably other).
Then we'll see what we can have in common and what not when we'll have something in common?
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180726/94f8de9c/attachment.sig>
Re: [PATCH v2 5/5] arm64: dts: allwinner: h5: Add SID for H5
Quoted 39 lines · On Thu, 26 Jul 2018 13:54:09 +0200 Maxime Ripard <[email protected]>…
Quoted 38 lines · Emmanuel Vadot
Quoted 34 lines · On Tue, 24 Jul 2018 16:42:18 +0200 Maxime Ripard <[email protected]>…
Quoted 29 lines · Emmanuel Vadot
Quoted 10 lines · On Tue, 24 Jul 2018 15:00:04 +0200 Maxime Ripard <[email protected]>…
Quoted 9 lines · Emmanuel Vadot
The SID controller on H5 look the same as the one present in the A64. But in case we find some difference one day at a compatible string of it's own and a fallback to the A64 one.
Signed-off-by Emmanuel Vadot <[email protected]>--- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 5 +++++ 1 file changed, 5 insertions(+)Quoted 15 lines
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi line 136
Quoted 13 lines
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +5
-0@@ -129,3 +129,8 @@ <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; compatible = "allwinner,sun50i-h5-pinctrl"; }; + +&sid { + compatible = "allwinner,sun50i-h5-sid", + "allwinner,sun50i-a64-sid"; +};This is still a bit pointless, please remove the common node.
Quoted 2 lines
You mean directly declare sid controller in the SoC dtsi and not
have a common node insunxi-h3-h5.dtsi?Yep
Quoted 7 lines
Quoted 4 lines
The reason I've put it in the common file is because I'll send patches
for the nvmem-cells needed for thermal, and those are common between the two. Other nvmem-cells are also common (like the chipid and probably other).Then we'll see what we can have in common and what not when we'll have something in common?
Will it make more sense that I just send a new series with nvmem-cells
now along with thermal bindings ?
Quoted 6 lines
Maxime
Signature · 3 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
Signature · 1 line
Emmanuel Vadot <[email protected]> <[email protected]>
Re: [PATCH v2 5/5] arm64: dts: allwinner: h5: Add SID for H5
Quoted 47 lines · On Fri, 27 Jul 2018 12:56:54 +0200 Emmanuel Vadot <[email protected]> wrote:
Quoted 44 lines · On Thu, 26 Jul 2018 13:54:09 +0200 Maxime Ripard <[email protected]>…
Quoted 42 lines · Emmanuel Vadot
Quoted 30 lines · On Tue, 24 Jul 2018 16:42:18 +0200 Maxime Ripard <[email protected]>…
Quoted 29 lines · Emmanuel Vadot
Quoted 25 lines · On Tue, 24 Jul 2018 15:00:04 +0200 Maxime Ripard <[email protected]>…
Quoted 14 lines · Emmanuel Vadot
The SID controller on H5 look the same as the one present in the A64. But in case we find some difference one day at a compatible string of it's own and a fallback to the A64 one.
Signed-off-by Emmanuel Vadot <[email protected]>--- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 5 +++++ 1 file changed, 5 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +0
-0arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi line 136
Quoted 8 lines
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +5
-0@@ -129,3 +129,8 @@ <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; compatible = "allwinner,sun50i-h5-pinctrl"; }; + +&sid { + compatible = "allwinner,sun50i-h5-sid", + "allwinner,sun50i-a64-sid"; +};This is still a bit pointless, please remove the common node.
Quoted 4 lines
Quoted 2 lines
You mean directly declare sid controller in the SoC dtsi and not
have a common node insunxi-h3-h5.dtsi?Yep
The reason I've put it in the common file is because I'll send patches
for the nvmem-cells needed for thermal, and those are common between the two. Other nvmem-cells are also common (like the chipid and probably other).
Quoted 5 lines
Quoted 2 lines
Then we'll see what we can have in common and what not when we'll have something in common?
Will it make more sense that I just send a new series with nvmem-cells
now along with thermal bindings ?
My bad, I remembered H5 thermal sensor being the same as H3 but I was
wrong.
I'll send a v3 with your changes suggestion and we'll see later for
thermal sensor.
Quoted 15 lines
Quoted 6 lines
Maxime
Signature · 3 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.comSignature · 6 lines
Emmanuel Vadot <[email protected]> <[email protected]> _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 1 line
Emmanuel Vadot <[email protected]> <[email protected]>