linux-amlogic.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ARM: dts: meson: add the APB/APB2 busses
@ 2018-12-08 16:45 Martin Blumenstingl
  2018-12-08 16:45 ` [PATCH 1/3] ARM: dts: meson6: add the ABP2 bus Martin Blumenstingl
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Martin Blumenstingl @ 2018-12-08 16:45 UTC (permalink / raw)
  To: linux-amlogic, khilman
  Cc: Martin Blumenstingl, devicetree, linux-kernel, linux-arm-kernel

This adds the APB bus on Meson8 and Meson8b as well as the APB2 bus on
Meson6. This is preparation work for adding the Mali GPU which is
located on theses busses.

Meson6 seems to have it's APB at 0xc8000000 instead of 0xd0000000. The
region at 0xd0000000 is called APB2 or A9_APB and it has a different
size (256k) compared to Meson8 and Meson8b (2M).

Addresses and sizes are taken from the Amlogic 3.10 kernel sources:
- Meson6: [0]
- Meson8: [1]
- Meson8b: [2]


[0] https://github.com/endlessm/linux-meson/blob/cd4096c3ff4eb5b8a8a5581bb46508601c5470dc/arch/arm/mach-meson6/include/mach/io.h#L61
[1] https://github.com/endlessm/linux-meson/blob/cd4096c3ff4eb5b8a8a5581bb46508601c5470dc/arch/arm/mach-meson8/include/mach/io.h#L53
[2] https://github.com/endlessm/linux-meson/blob/cd4096c3ff4eb5b8a8a5581bb46508601c5470dc/arch/arm/mach-meson8b/include/mach/io.h#L53


Martin Blumenstingl (3):
  ARM: dts: meson6: add the APB2 bus
  ARM: dts: meson8: add the APB bus
  ARM: dts: meson8b: add the APB bus

 arch/arm/boot/dts/meson6.dtsi  | 8 ++++++++
 arch/arm/boot/dts/meson8.dtsi  | 8 ++++++++
 arch/arm/boot/dts/meson8b.dtsi | 8 ++++++++
 3 files changed, 24 insertions(+)

-- 
2.19.2


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/3] ARM: dts: meson6: add the ABP2 bus
  2018-12-08 16:45 [PATCH 0/3] ARM: dts: meson: add the APB/APB2 busses Martin Blumenstingl
@ 2018-12-08 16:45 ` Martin Blumenstingl
  2018-12-08 16:45 ` [PATCH 1/3] ARM: dts: meson6: add the APB2 bus Martin Blumenstingl
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Martin Blumenstingl @ 2018-12-08 16:45 UTC (permalink / raw)
  To: linux-amlogic, khilman
  Cc: Martin Blumenstingl, devicetree, linux-kernel, linux-arm-kernel

The Mali GPU and the DVB demulator are located in the ABP2 bus. Describe
this bus so we can add devices to it.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm/boot/dts/meson6.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/meson6.dtsi b/arch/arm/boot/dts/meson6.dtsi
index ca978ab952cd..65585255910a 100644
--- a/arch/arm/boot/dts/meson6.dtsi
+++ b/arch/arm/boot/dts/meson6.dtsi
@@ -70,6 +70,14 @@
 		};
 	};
 
+	apb2: bus@d0000000 {
+		compatible = "simple-bus";
+		reg = <0xd0000000 0x40000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0x0 0xd0000000 0x40000>;
+	};
+
 	xtal: xtal-clk {
 		compatible = "fixed-clock";
 		clock-frequency = <24000000>;
-- 
2.19.2


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 1/3] ARM: dts: meson6: add the APB2 bus
  2018-12-08 16:45 [PATCH 0/3] ARM: dts: meson: add the APB/APB2 busses Martin Blumenstingl
  2018-12-08 16:45 ` [PATCH 1/3] ARM: dts: meson6: add the ABP2 bus Martin Blumenstingl
@ 2018-12-08 16:45 ` Martin Blumenstingl
  2018-12-08 16:45 ` [PATCH 2/3] ARM: dts: meson8: add the ABP bus Martin Blumenstingl
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Martin Blumenstingl @ 2018-12-08 16:45 UTC (permalink / raw)
  To: linux-amlogic, khilman
  Cc: Martin Blumenstingl, devicetree, linux-kernel, linux-arm-kernel

The Mali GPU and the DVB demulator are located in the APB2 bus. Describe
this bus so we can add devices to it.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm/boot/dts/meson6.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/meson6.dtsi b/arch/arm/boot/dts/meson6.dtsi
index ca978ab952cd..65585255910a 100644
--- a/arch/arm/boot/dts/meson6.dtsi
+++ b/arch/arm/boot/dts/meson6.dtsi
@@ -70,6 +70,14 @@
 		};
 	};
 
+	apb2: bus@d0000000 {
+		compatible = "simple-bus";
+		reg = <0xd0000000 0x40000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0x0 0xd0000000 0x40000>;
+	};
+
 	xtal: xtal-clk {
 		compatible = "fixed-clock";
 		clock-frequency = <24000000>;
-- 
2.19.2


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/3] ARM: dts: meson8: add the ABP bus
  2018-12-08 16:45 [PATCH 0/3] ARM: dts: meson: add the APB/APB2 busses Martin Blumenstingl
  2018-12-08 16:45 ` [PATCH 1/3] ARM: dts: meson6: add the ABP2 bus Martin Blumenstingl
  2018-12-08 16:45 ` [PATCH 1/3] ARM: dts: meson6: add the APB2 bus Martin Blumenstingl
@ 2018-12-08 16:45 ` Martin Blumenstingl
  2018-12-08 16:45 ` [PATCH 2/3] ARM: dts: meson8: add the APB bus Martin Blumenstingl
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Martin Blumenstingl @ 2018-12-08 16:45 UTC (permalink / raw)
  To: linux-amlogic, khilman
  Cc: Martin Blumenstingl, devicetree, linux-kernel, linux-arm-kernel

Various peripherals (Mali GPU, NAND controller, VPU, etc.) are located
in the ABP bus. Describe this bus so we can add devices to it.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm/boot/dts/meson8.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi
index e5cd325d7ea8..3fd8260eba92 100644
--- a/arch/arm/boot/dts/meson8.dtsi
+++ b/arch/arm/boot/dts/meson8.dtsi
@@ -201,6 +201,14 @@
 			no-map;
 		};
 	};
+
+	apb: bus@d0000000 {
+		compatible = "simple-bus";
+		reg = <0xd0000000 0x200000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0x0 0xd0000000 0x200000>;
+	};
 }; /* end of / */
 
 &aobus {
-- 
2.19.2


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/3] ARM: dts: meson8: add the APB bus
  2018-12-08 16:45 [PATCH 0/3] ARM: dts: meson: add the APB/APB2 busses Martin Blumenstingl
                   ` (2 preceding siblings ...)
  2018-12-08 16:45 ` [PATCH 2/3] ARM: dts: meson8: add the ABP bus Martin Blumenstingl
@ 2018-12-08 16:45 ` Martin Blumenstingl
  2018-12-08 16:45 ` [PATCH 3/3] ARM: dts: meson8b: add the ABP bus Martin Blumenstingl
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Martin Blumenstingl @ 2018-12-08 16:45 UTC (permalink / raw)
  To: linux-amlogic, khilman
  Cc: Martin Blumenstingl, devicetree, linux-kernel, linux-arm-kernel

Various peripherals (Mali GPU, NAND controller, VPU, etc.) are located
in the APB bus. Describe this bus so we can add devices to it.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm/boot/dts/meson8.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi
index e5cd325d7ea8..3fd8260eba92 100644
--- a/arch/arm/boot/dts/meson8.dtsi
+++ b/arch/arm/boot/dts/meson8.dtsi
@@ -201,6 +201,14 @@
 			no-map;
 		};
 	};
+
+	apb: bus@d0000000 {
+		compatible = "simple-bus";
+		reg = <0xd0000000 0x200000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0x0 0xd0000000 0x200000>;
+	};
 }; /* end of / */
 
 &aobus {
-- 
2.19.2


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/3] ARM: dts: meson8b: add the ABP bus
  2018-12-08 16:45 [PATCH 0/3] ARM: dts: meson: add the APB/APB2 busses Martin Blumenstingl
                   ` (3 preceding siblings ...)
  2018-12-08 16:45 ` [PATCH 2/3] ARM: dts: meson8: add the APB bus Martin Blumenstingl
@ 2018-12-08 16:45 ` Martin Blumenstingl
  2018-12-08 16:45 ` [PATCH 3/3] ARM: dts: meson8b: add the APB bus Martin Blumenstingl
  2018-12-08 16:49 ` [PATCH 0/3] ARM: dts: meson: add the APB/APB2 busses Martin Blumenstingl
  6 siblings, 0 replies; 8+ messages in thread
From: Martin Blumenstingl @ 2018-12-08 16:45 UTC (permalink / raw)
  To: linux-amlogic, khilman
  Cc: Martin Blumenstingl, devicetree, linux-kernel, linux-arm-kernel

Various peripherals (Mali GPU, NAND controller, VPU; etc.) are located
in the ABP bus. Describe this bus so we can add devices to it.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm/boot/dts/meson8b.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi
index 22d775460767..5d036842c355 100644
--- a/arch/arm/boot/dts/meson8b.dtsi
+++ b/arch/arm/boot/dts/meson8b.dtsi
@@ -178,6 +178,14 @@
 			no-map;
 		};
 	};
+
+	apb: bus@d0000000 {
+		compatible = "simple-bus";
+		reg = <0xd0000000 0x200000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0x0 0xd0000000 0x200000>;
+	};
 }; /* end of / */
 
 &aobus {
-- 
2.19.2


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/3] ARM: dts: meson8b: add the APB bus
  2018-12-08 16:45 [PATCH 0/3] ARM: dts: meson: add the APB/APB2 busses Martin Blumenstingl
                   ` (4 preceding siblings ...)
  2018-12-08 16:45 ` [PATCH 3/3] ARM: dts: meson8b: add the ABP bus Martin Blumenstingl
@ 2018-12-08 16:45 ` Martin Blumenstingl
  2018-12-08 16:49 ` [PATCH 0/3] ARM: dts: meson: add the APB/APB2 busses Martin Blumenstingl
  6 siblings, 0 replies; 8+ messages in thread
From: Martin Blumenstingl @ 2018-12-08 16:45 UTC (permalink / raw)
  To: linux-amlogic, khilman
  Cc: Martin Blumenstingl, devicetree, linux-kernel, linux-arm-kernel

Various peripherals (Mali GPU, NAND controller, VPU; etc.) are located
in the APB bus. Describe this bus so we can add devices to it.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm/boot/dts/meson8b.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi
index 22d775460767..5d036842c355 100644
--- a/arch/arm/boot/dts/meson8b.dtsi
+++ b/arch/arm/boot/dts/meson8b.dtsi
@@ -178,6 +178,14 @@
 			no-map;
 		};
 	};
+
+	apb: bus@d0000000 {
+		compatible = "simple-bus";
+		reg = <0xd0000000 0x200000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0x0 0xd0000000 0x200000>;
+	};
 }; /* end of / */
 
 &aobus {
-- 
2.19.2


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/3] ARM: dts: meson: add the APB/APB2 busses
  2018-12-08 16:45 [PATCH 0/3] ARM: dts: meson: add the APB/APB2 busses Martin Blumenstingl
                   ` (5 preceding siblings ...)
  2018-12-08 16:45 ` [PATCH 3/3] ARM: dts: meson8b: add the APB bus Martin Blumenstingl
@ 2018-12-08 16:49 ` Martin Blumenstingl
  6 siblings, 0 replies; 8+ messages in thread
From: Martin Blumenstingl @ 2018-12-08 16:49 UTC (permalink / raw)
  To: linux-amlogic, khilman; +Cc: devicetree, linux-kernel, linux-arm-kernel

On Sat, Dec 8, 2018 at 5:46 PM Martin Blumenstingl
<martin.blumenstingl@googlemail.com> wrote:
>
> This adds the APB bus on Meson8 and Meson8b as well as the APB2 bus on
> Meson6. This is preparation work for adding the Mali GPU which is
> located on theses busses.
>
> Meson6 seems to have it's APB at 0xc8000000 instead of 0xd0000000. The
> region at 0xd0000000 is called APB2 or A9_APB and it has a different
> size (256k) compared to Meson8 and Meson8b (2M).
>
> Addresses and sizes are taken from the Amlogic 3.10 kernel sources:
> - Meson6: [0]
> - Meson8: [1]
> - Meson8b: [2]
>
>
> [0] https://github.com/endlessm/linux-meson/blob/cd4096c3ff4eb5b8a8a5581bb46508601c5470dc/arch/arm/mach-meson6/include/mach/io.h#L61
> [1] https://github.com/endlessm/linux-meson/blob/cd4096c3ff4eb5b8a8a5581bb46508601c5470dc/arch/arm/mach-meson8/include/mach/io.h#L53
> [2] https://github.com/endlessm/linux-meson/blob/cd4096c3ff4eb5b8a8a5581bb46508601c5470dc/arch/arm/mach-meson8b/include/mach/io.h#L53
>
>
> Martin Blumenstingl (3):
>   ARM: dts: meson6: add the APB2 bus
>   ARM: dts: meson8: add the APB bus
>   ARM: dts: meson8b: add the APB bus
I incorrectly sent this series with the patches twice (once with a
typo in APB and once without the typo).
I'll re-send a fixed v2 - sorry for the noise


Regards
Martin

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-12-08 16:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-08 16:45 [PATCH 0/3] ARM: dts: meson: add the APB/APB2 busses Martin Blumenstingl
2018-12-08 16:45 ` [PATCH 1/3] ARM: dts: meson6: add the ABP2 bus Martin Blumenstingl
2018-12-08 16:45 ` [PATCH 1/3] ARM: dts: meson6: add the APB2 bus Martin Blumenstingl
2018-12-08 16:45 ` [PATCH 2/3] ARM: dts: meson8: add the ABP bus Martin Blumenstingl
2018-12-08 16:45 ` [PATCH 2/3] ARM: dts: meson8: add the APB bus Martin Blumenstingl
2018-12-08 16:45 ` [PATCH 3/3] ARM: dts: meson8b: add the ABP bus Martin Blumenstingl
2018-12-08 16:45 ` [PATCH 3/3] ARM: dts: meson8b: add the APB bus Martin Blumenstingl
2018-12-08 16:49 ` [PATCH 0/3] ARM: dts: meson: add the APB/APB2 busses Martin Blumenstingl

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).