* [PATCH 1/2] soc: sunxi: Add the A13, A23 and H3 system control compatibles
@ 2018-07-11 9:25 Maxime Ripard
2018-07-11 9:25 ` [PATCH 2/2] ARM: dts: sun5i: Fix the SRAM A3-A4 declaration Maxime Ripard
2018-07-19 14:40 ` [PATCH 1/2] soc: sunxi: Add the A13, A23 and H3 system control compatibles Maxime Ripard
0 siblings, 2 replies; 3+ messages in thread
From: Maxime Ripard @ 2018-07-11 9:25 UTC (permalink / raw)
To: linux-arm-kernel
The A13, A23 and H3 have variations of the system controls, in part due to
the SRAM that are available (and can be mapped) in the SoC.
In order to make it future proof, let's add compatibles for these SoCs in
the driver.
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
---
drivers/soc/sunxi/sunxi_sram.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c
index b19fa2cc67c2..b4b0f3480bd3 100644
--- a/drivers/soc/sunxi/sunxi_sram.c
+++ b/drivers/soc/sunxi/sunxi_sram.c
@@ -369,6 +369,18 @@ static const struct of_device_id sunxi_sram_dt_match[] = {
.compatible = "allwinner,sun4i-a10-system-control",
.data = &sun4i_a10_sramc_variant,
},
+ {
+ .compatible = "allwinner,sun5i-a13-system-control",
+ .data = &sun4i_a10_sramc_variant,
+ },
+ {
+ .compatible = "allwinner,sun8i-a23-system-control",
+ .data = &sun4i_a10_sramc_variant,
+ },
+ {
+ .compatible = "allwinner,sun8i-h3-system-control",
+ .data = &sun4i_a10_sramc_variant,
+ },
{
.compatible = "allwinner,sun50i-a64-sram-controller",
.data = &sun50i_a64_sramc_variant,
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] ARM: dts: sun5i: Fix the SRAM A3-A4 declaration
2018-07-11 9:25 [PATCH 1/2] soc: sunxi: Add the A13, A23 and H3 system control compatibles Maxime Ripard
@ 2018-07-11 9:25 ` Maxime Ripard
2018-07-19 14:40 ` [PATCH 1/2] soc: sunxi: Add the A13, A23 and H3 system control compatibles Maxime Ripard
1 sibling, 0 replies; 3+ messages in thread
From: Maxime Ripard @ 2018-07-11 9:25 UTC (permalink / raw)
To: linux-arm-kernel
According to the system control bindings, the A3-A4 SRAM node should be
a child node of the SRAM it belongs to. However, it was introduced at the
same level, therefore breaking the binding. Fix this.
Fixes: 85870196258f ("ARM: sun5i: a13: Merge common controllers into the common DTSI")
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
---
arch/arm/boot/dts/sun5i.dtsi | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/arm/boot/dts/sun5i.dtsi b/arch/arm/boot/dts/sun5i.dtsi
index 4a089a64c2c7..e7a786a677d5 100644
--- a/arch/arm/boot/dts/sun5i.dtsi
+++ b/arch/arm/boot/dts/sun5i.dtsi
@@ -127,13 +127,13 @@
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0x00000000 0xc000>;
- };
- emac_sram: sram-section at 8000 {
- compatible = "allwinner,sun5i-a13-sram-a3-a4",
- "allwinner,sun4i-a10-sram-a3-a4";
- reg = <0x8000 0x4000>;
- status = "disabled";
+ emac_sram: sram-section at 8000 {
+ compatible = "allwinner,sun5i-a13-sram-a3-a4",
+ "allwinner,sun4i-a10-sram-a3-a4";
+ reg = <0x8000 0x4000>;
+ status = "disabled";
+ };
};
sram_c: sram at 1d00000 {
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 1/2] soc: sunxi: Add the A13, A23 and H3 system control compatibles
2018-07-11 9:25 [PATCH 1/2] soc: sunxi: Add the A13, A23 and H3 system control compatibles Maxime Ripard
2018-07-11 9:25 ` [PATCH 2/2] ARM: dts: sun5i: Fix the SRAM A3-A4 declaration Maxime Ripard
@ 2018-07-19 14:40 ` Maxime Ripard
1 sibling, 0 replies; 3+ messages in thread
From: Maxime Ripard @ 2018-07-19 14:40 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jul 11, 2018 at 11:25:07AM +0200, Maxime Ripard wrote:
> The A13, A23 and H3 have variations of the system controls, in part due to
> the SRAM that are available (and can be mapped) in the SoC.
>
> In order to make it future proof, let's add compatibles for these SoCs in
> the driver.
>
> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Applied both.
Maxime
--
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/20180719/4b2fde97/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-19 14:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-11 9:25 [PATCH 1/2] soc: sunxi: Add the A13, A23 and H3 system control compatibles Maxime Ripard
2018-07-11 9:25 ` [PATCH 2/2] ARM: dts: sun5i: Fix the SRAM A3-A4 declaration Maxime Ripard
2018-07-19 14:40 ` [PATCH 1/2] soc: sunxi: Add the A13, A23 and H3 system control compatibles 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).