ARM: Exynos: Add DT based I/O mapping for Chip-ID controller
cover ARM: Exynos: Add DT based I/O mapping for Chip-ID controller
This patch series allows device tree enabled platforms to setup a runtime I/O mapping for the chip-id controller. This helps to remove statically defined I/O mapping for the Chip-ID controller.
Thomas Abraham (2):
ARM: Exynos: Create virtual I/O mapping for Chip-ID controller using device tree
ARM: dts: Add chip-id controller node on Exynos4/5 SoC
.../arm/samsung/samsung,exynos4210-chipid.txt | 15 ++++++ arch/arm/boot/dts/exynos4.dtsi | 5 ++ arch/arm/boot/dts/exynos5250.dtsi | 5 ++ arch/arm/mach-exynos/common.c | 53 +++++++++++--------- arch/arm/mach-exynos/include/mach/map.h | 1 - 5 files changed, 55 insertions(+), 24 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/samsung/samsung,exynos4210-chipid.txt
Signature · 1 line
1.7.5.4
PATCH 1/2 ARM: Exynos: Create virtual I/O mapping for Chip-ID controller using device tree
On device tree enabled exynos platforms, retrieve the physical base address of the chip-id controller from device tree and create a virtual I/O mapping for the chip-id controller. This helps to remove the chip-id controller entry from the statically defined I/O mapping tables.
--- .../arm/samsung/samsung,exynos4210-chipid.txt | 15 ++++++ arch/arm/mach-exynos/common.c | 53 +++++++++++--------- arch/arm/mach-exynos/include/mach/map.h | 1 - 3 files changed, 45 insertions(+), 24 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/samsung/samsung,exynos4210-chipid.txt
Documentation/devicetree/bindings/arm/samsung/samsung,exynos4210-chipid.txt new file +15 -0
@@ -0,0 +1,15 @@ +* Samsung Exynos4/5 Chip-ID controller + +Samsung's Exynos4/5 architectures include a chipid controller which can be used +to determine the product id and revision. + +Required properties: +- compatible: should be "samsung,exynos4210-chipid". +- reg: Base address and size of the chip-id controller registers. + +Example: + + chipid at 10000000 { + compatible = "samsung,exynos4210-chipid"; + reg = <0x10000000 0x100>; + };
arch/arm/mach-exynos/common.c +30 -23
72 lines not on this page · raw message
arch/arm/mach-exynos/include/mach/map.h +0 -1
@@ -56,7 +56,6 @@#define EXYNOS4_PA_ONENAND_DMA 0x0C600000#define EXYNOS_PA_CHIPID 0x10000000 -#define EXYNOS5440_PA_CHIPID 0x00160000#define EXYNOS4_PA_SYSCON 0x10010000#define EXYNOS5_PA_SYSCON 0x10050100
Signature · 1 line
1.7.5.4
PATCH 2/2 ARM: dts: Add chip-id controller node on Exynos4/5 SoC
In reply to Thomas AbrahamAdd chip-id controller nodes for Exynos4 and Exynos5 SoCs.
--- arch/arm/boot/dts/exynos4.dtsi | 5 +++++ arch/arm/boot/dts/exynos5250.dtsi | 5 +++++ 2 files changed, 10 insertions(+), 0 deletions(-)
arch/arm/boot/dts/exynos4.dtsi +5 -0
@@ -38,6 +38,11 @@ i2c7 = &i2c_7; }; + chipid at 10000000 { + compatible = "samsung,exynos4210-chipid"; + reg = <0x10000000 0x100>; + }; + pd_mfc: mfc-power-domain at 10023C40 { compatible = "samsung,exynos4210-pd"; reg = <0x10023C40 0x20>;
arch/arm/boot/dts/exynos5250.dtsi +5 -0
@@ -46,6 +46,11 @@ i2c8 = &i2c_8; }; + chipid at 10000000 { + compatible = "samsung,exynos4210-chipid"; + reg = <0x10000000 0x100>; + }; + pd_gsc: gsc-power-domain at 0x10044000 { compatible = "samsung,exynos4210-pd"; reg = <0x10044000 0x20>;
Signature · 1 line
1.7.5.4
cover ARM: Exynos: Add DT based I/O mapping for Chip-ID controller
In reply to Thomas AbrahamQuoted 10 lines · Thomas Abraham
This patch series allows device tree enabled platforms to setup a runtime I/O mapping for the chip-id controller. This helps to remove statically defined I/O mapping for the Chip-ID controller.
Thomas Abraham (2):
ARM: Exynos: Create virtual I/O mapping for Chip-ID controller using
device tree
ARM: dts: Add chip-id controller node on Exynos4/5 SoC
Quoted 4 lines
.../arm/samsung/samsung,exynos4210-chipid.txt | 15 ++++++ arch/arm/boot/dts/exynos4.dtsi | 5 ++ arch/arm/boot/dts/exynos5250.dtsi | 5 ++ arch/arm/mach-exynos/common.c | 53
+++++++++++---------
Quoted 8 lines
arch/arm/mach-exynos/include/mach/map.h | 1 - 5 files changed, 55 insertions(+), 24 deletions(-) create mode 100644
Documentation/devicetree/bindings/arm/samsung/samsung,exynos4210-chipid.txt--
1.7.5.4
Thomas,
Can you update this series can support exynos5440 as well? It should be done together.
- Kukjin
cover ARM: Exynos: Add DT based I/O mapping for Chip-ID controller
Quoted 22 lines · Kukjin Kim
Quoted 10 lines · Thomas Abraham
This patch series allows device tree enabled platforms to setup a runtime I/O mapping for the chip-id controller. This helps to remove statically defined I/O mapping for the Chip-ID controller.
Thomas Abraham (2):
ARM: Exynos: Create virtual I/O mapping for Chip-ID controller using
device tree
ARM: dts: Add chip-id controller node on Exynos4/5 SoCQuoted 4 lines
.../arm/samsung/samsung,exynos4210-chipid.txt | 15 ++++++ arch/arm/boot/dts/exynos4.dtsi | 5 ++ arch/arm/boot/dts/exynos5250.dtsi | 5 ++ arch/arm/mach-exynos/common.c | 53+++++++++++---------
Quoted 6 lines
arch/arm/mach-exynos/include/mach/map.h | 1 - 5 files changed, 55 insertions(+), 24 deletions(-) create mode 100644
Documentation/devicetree/bindings/arm/samsung/samsung,exynos4210-chipid.txt
Quoted 7 lines
Quoted 2 lines
--
1.7.5.4Thomas,
Can you update this series can support exynos5440 as well? It should be done together.
Hi Mr. Kim,
Sorry for the delayed reply. This patch series is supported for Exynos5440 as well. The v2 version of this patch series has been submitted.
Thanks,
Thomas.
Quoted 3 lines
- Kukjin
cover ARM: Exynos: Add DT based I/O mapping for Chip-ID controller
Quoted 28 lines · Thomas Abraham
Quoted 27 lines · Kukjin Kim
Quoted 10 lines · Thomas Abraham
This patch series allows device tree enabled platforms to setup a runtime I/O mapping for the chip-id controller. This helps to remove statically defined I/O mapping for the Chip-ID controller.
Thomas Abraham (2):
ARM: Exynos: Create virtual I/O mapping for Chip-ID controller using
device tree
ARM: dts: Add chip-id controller node on Exynos4/5 SoCQuoted 4 lines
.../arm/samsung/samsung,exynos4210-chipid.txt | 15 ++++++ arch/arm/boot/dts/exynos4.dtsi | 5 ++ arch/arm/boot/dts/exynos5250.dtsi | 5 ++ arch/arm/mach-exynos/common.c | 53+++++++++++---------
Quoted 8 lines
arch/arm/mach-exynos/include/mach/map.h | 1 - 5 files changed, 55 insertions(+), 24 deletions(-)create mode 100644
Documentation/devicetree/bindings/arm/samsung/samsung,exynos4210-chipid.txt--
1.7.5.4Thomas,
Quoted 9 lines
Quoted 2 lines
Can you update this series can support exynos5440 as well? It should be done together.
Hi Mr. Kim,
Sorry for the delayed reply. This patch series is supported for Exynos5440 as well. The v2 version of this patch series has been submitted.
OK, thanks.
- Kukjin