* [PATCH v2 1/2] dt-bindings: sram: sunxi-sram: Add A100 compatible
2024-12-18 13:01 [PATCH v2 0/2] sunxi: Add A100 syscon nodes Cody Eksal
@ 2024-12-18 13:01 ` Cody Eksal
2024-12-18 13:01 ` [PATCH v2 2/2] arm64: dts: allwinner: a100: Add syscon nodes Cody Eksal
2024-12-20 18:43 ` [PATCH v2 0/2] sunxi: Add A100 " Chen-Yu Tsai
2 siblings, 0 replies; 4+ messages in thread
From: Cody Eksal @ 2024-12-18 13:01 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
Jernej Skrabec, Samuel Holland, Maxime Ripard
Cc: devicetree, linux-arm-kernel, linux-sunxi, linux-kernel,
Parthiban Nallathambi, Andre Przywara, Cody Eksal,
Krzysztof Kozlowski
The Allwinner A100 has a system configuration block similar to that of
the A64 and H6. Add a compatible for it.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Cody Eksal <masterr3c0rd@epochal.quest>
---
.../devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml
index d9322704f3588e036280d08deaf59972f1dfeb7f..a7236f7db4ec34d44c4e2268f76281ef8ed83189 100644
--- a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml
+++ b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml
@@ -47,7 +47,9 @@ properties:
- const: allwinner,sun8i-v3s-system-control
- const: allwinner,sun8i-h3-system-control
- items:
- - const: allwinner,sun50i-h6-system-control
+ - enum:
+ - allwinner,sun50i-a100-system-control
+ - allwinner,sun50i-h6-system-control
- const: allwinner,sun50i-a64-system-control
reg:
--
2.47.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH v2 2/2] arm64: dts: allwinner: a100: Add syscon nodes
2024-12-18 13:01 [PATCH v2 0/2] sunxi: Add A100 syscon nodes Cody Eksal
2024-12-18 13:01 ` [PATCH v2 1/2] dt-bindings: sram: sunxi-sram: Add A100 compatible Cody Eksal
@ 2024-12-18 13:01 ` Cody Eksal
2024-12-20 18:43 ` [PATCH v2 0/2] sunxi: Add A100 " Chen-Yu Tsai
2 siblings, 0 replies; 4+ messages in thread
From: Cody Eksal @ 2024-12-18 13:01 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
Jernej Skrabec, Samuel Holland, Maxime Ripard
Cc: devicetree, linux-arm-kernel, linux-sunxi, linux-kernel,
Parthiban Nallathambi, Andre Przywara, Cody Eksal
The Allwinner A100 has a system configuration block, denoted as SYS_CFG
in the user manual's memory map. It is undocumented in the manual, but
a glance at the vendor tree shows this block is similar to its
predecessors in the A64 and H6. The A100 also has 3 SRAM blocks: A1, A2,
and C. Add all of these to the SoC's device tree.
Reviewed-by: Parthiban Nallathambi <parthiban@linumiz.com>
Signed-off-by: Cody Eksal <masterr3c0rd@epochal.quest>
---
arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi | 33 ++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi
index 29ac7716c7a5284ccf8af675db9c7d016785f0ff..a24adba201af29a3a117222c67da5d269629fa47 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi
@@ -101,6 +101,39 @@ soc {
#size-cells = <1>;
ranges = <0 0 0 0x3fffffff>;
+ syscon: syscon@3000000 {
+ compatible = "allwinner,sun50i-a100-system-control",
+ "allwinner,sun50i-a64-system-control";
+ reg = <0x03000000 0x1000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ sram_a1: sram@20000 {
+ compatible = "mmio-sram";
+ reg = <0x00020000 0x4000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x00020000 0x4000>;
+ };
+
+ sram_c: sram@24000 {
+ compatible = "mmio-sram";
+ reg = <0x024000 0x21000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x024000 0x21000>;
+ };
+
+ sram_a2: sram@100000 {
+ compatible = "mmio-sram";
+ reg = <0x0100000 0x14000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x0100000 0x14000>;
+ };
+ };
+
ccu: clock@3001000 {
compatible = "allwinner,sun50i-a100-ccu";
reg = <0x03001000 0x1000>;
--
2.47.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH v2 0/2] sunxi: Add A100 syscon nodes
2024-12-18 13:01 [PATCH v2 0/2] sunxi: Add A100 syscon nodes Cody Eksal
2024-12-18 13:01 ` [PATCH v2 1/2] dt-bindings: sram: sunxi-sram: Add A100 compatible Cody Eksal
2024-12-18 13:01 ` [PATCH v2 2/2] arm64: dts: allwinner: a100: Add syscon nodes Cody Eksal
@ 2024-12-20 18:43 ` Chen-Yu Tsai
2 siblings, 0 replies; 4+ messages in thread
From: Chen-Yu Tsai @ 2024-12-20 18:43 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jernej Skrabec,
Samuel Holland, Maxime Ripard, Cody Eksal
Cc: devicetree, linux-arm-kernel, linux-sunxi, linux-kernel,
Parthiban Nallathambi, Andre Przywara, Krzysztof Kozlowski
On Wed, 18 Dec 2024 09:01:17 -0400, Cody Eksal wrote:
> https://msgid.link/20241202-a100-syscon-v1-0-86c6524f24d7@epochal.quest.
> Only changes here are fixing missing newlines between child nodes and
> rebasing on 6.13-rc3.
>
> ***
>
> Here are some very small patches to add syscon nodes to the A100's
> device tree. These had not been added yet, as they hadn't been needed up
> to this point. However, Parthiban and I have been working on patch
> series in parallel that require either the syscon or the SRAM nodes it
> is responsible for; specifically my patches add support for the A100's
> ethernet controller, while Parthiban has been working hard on bringing
> up the Display Engine.
>
> [...]
Applied to dt-for-6.14 in git@github.com:linux-sunxi/linux-sunxi.git, thanks!
[1/2] dt-bindings: sram: sunxi-sram: Add A100 compatible
commit: 168b2b355f886db4230f10d24bc109b0b34c4708
[2/2] arm64: dts: allwinner: a100: Add syscon nodes
commit: 53c54d9b9379e2a3eaec015556a51e47957a8d92
Best regards,
--
Chen-Yu Tsai <wens@csie.org>
^ permalink raw reply [flat|nested] 4+ messages in thread