Skip to contentSkip to conversation

ARM64:SoC add a new platform, LG Electronics's lg1k

PATCH Applied Chanho Min 2 participants 9 messages Apr 11, 2016 – Apr 13, 2016

Subsystems (4)
lore
Share & tools
lore

Chanho Min

author maintainer
#0 lore raw

v3 cover ARM64:SoC add a new platform, LG Electronics's lg1k

This is an initial series for supporting LG Electronics's lg1k SoCs, based on ARM Cortex-A53, mainly used for digital TVs.

Chanho Min (4):
arm64: add Kconfig entry for LG1K SoC family
arm64: defconfig: enable ARCH_LG1K
arm64: dts: Add dts files for LG Electronics's lg1312 SoC
MAINTAINERS: add myself as ARM/LG1K maintainer

 MAINTAINERS                           |    6 +
 arch/arm64/Kconfig.platforms          |    4 +
 arch/arm64/boot/dts/Makefile          |    1 +
 arch/arm64/boot/dts/lg/Makefile       |    5 +
 arch/arm64/boot/dts/lg/lg1312-ref.dts |   36 ++++
 arch/arm64/boot/dts/lg/lg1312.dtsi    |  351 +++++++++++++++++++++++++++++++++
 arch/arm64/configs/defconfig          |    1 +
 7 files changed, 404 insertions(+)
 create mode 100644 arch/arm64/boot/dts/lg/Makefile
 create mode 100644 arch/arm64/boot/dts/lg/lg1312-ref.dts
 create mode 100644 arch/arm64/boot/dts/lg/lg1312.dtsi
Signature · 1 line
1.7.9.5
author maintainer
#1 lore raw

PATCH v3 1/4 arm64: add Kconfig entry for LG1K SoC family

This patch introduces ARCH_LG1K to enable LG Electronics's LG1K SoC family in Kconfig.

---
Changes for v2:
- None
Changes for v3:
- None

---
 arch/arm64/Kconfig.platforms |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/Kconfig.platforms +4 -0
index 21074f6..b002bba 100644
@@ -141,4 +141,8 @@ config ARCH_ZYNQMP
 	help
 	  This enables support for Xilinx ZynqMP Family
 
+config ARCH_LG1K
+	bool "LG Electronics LG1K SoC Family"
+	help
+	  This enables support for LG Electronics LG1K SoC Family
 endmenu
Signature · 1 line
1.7.9.5
#2 lore raw

Re: [PATCH v3 1/4] arm64: add Kconfig entry for LG1K SoC family

Quoted 18 lines · Chanho Min

This patch introduces ARCH_LG1K to enable LG Electronics's LG1K SoC family in Kconfig.

---
Changes for v2:
- None
Changes for v3:
- None

---
 arch/arm64/Kconfig.platforms |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/Kconfig.platforms +0 -0
index 21074f6..b002bba 100644

arch/arm64/Kconfig.platforms config ARCH_ZYNQMP · line 148

Quoted 8 lines
arch/arm64/Kconfig.platforms +4 -0
@@ -141,4 +141,8 @@ config ARCH_ZYNQMP
 	help
 	  This enables support for Xilinx ZynqMP Family
 
+config ARCH_LG1K
+	bool "LG Electronics LG1K SoC Family"
+	help
+	  This enables support for LG Electronics LG1K SoC Family
 endmenu

Did you see that the list of machine entries here are listed alphabetically? They are, and you're appending out of order here. I've moved it for you but please pay attention to these kind of things.

-Olof

author maintainer
#3 lore raw

PATCH v3 2/4 arm64: defconfig: enable ARCH_LG1K

In reply to Chanho Min

Enable building LG1K support in the defconfig.

---
Changes for v2:
- None
Changes for v3:
- None

---
 arch/arm64/configs/defconfig |    1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index 86581f7..14dbe27 100644
@@ -49,6 +49,7 @@ CONFIG_ARCH_UNIPHIER=y
 CONFIG_ARCH_VEXPRESS=y
 CONFIG_ARCH_XGENE=y
 CONFIG_ARCH_ZYNQMP=y
+CONFIG_ARCH_LG1K=y
 CONFIG_PCI=y
 CONFIG_PCI_MSI=y
 CONFIG_PCI_IOV=y
Signature · 1 line
1.7.9.5
#4 lore raw

Re: [PATCH v3 2/4] arm64: defconfig: enable ARCH_LG1K

Quoted 17 lines · Chanho Min

Enable building LG1K support in the defconfig.

---
Changes for v2:
- None
Changes for v3:
- None

---
 arch/arm64/configs/defconfig |    1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +0 -0
index 86581f7..14dbe27 100644

arch/arm64/configs/defconfig CONFIG_ARCH_UNIPHIER=y · line 55

Quoted 7 lines
arch/arm64/configs/defconfig +1 -0
@@ -49,6 +49,7 @@ CONFIG_ARCH_UNIPHIER=y
 CONFIG_ARCH_VEXPRESS=y
 CONFIG_ARCH_XGENE=y
 CONFIG_ARCH_ZYNQMP=y
+CONFIG_ARCH_LG1K=y
 CONFIG_PCI=y
 CONFIG_PCI_MSI=y
 CONFIG_PCI_IOV=y

Applied, again with inserting it in the right place (since it moves when the Kconfig entry moves).

-Olof

author maintainer
#5 lore raw

PATCH v3 3/4 arm64: dts: Add dts files for LG Electronics's lg1312 SoC

In reply to Chanho Min

Add initial dtsi file to support lg1312 SoC which based on Cortex-A53. Also add dts file to support lg1312 reference board which based on lg1312 SoC.

---
Changes for v2:
- remove self-defined macro.
- change root node's #size-cells to <2>.
- remove bootargs property.
- update psci support to the arm,psci-0.2.
- put fixed-clock property under the root node.
- add stdout-path property.
- update the GICC reg length to 0x2000
- add the GICH and GICV interface.
- change pmu compatible property to arm,coretex-a53-pmu.
- remove clock-frequency property from timer.

Changes for v3:
- change the order of arm,psci-0.2 and arm,psci

---
 arch/arm64/boot/dts/Makefile          |    1 +
 arch/arm64/boot/dts/lg/Makefile       |    5 +
 arch/arm64/boot/dts/lg/lg1312-ref.dts |   36 ++++
 arch/arm64/boot/dts/lg/lg1312.dtsi    |  351 +++++++++++++++++++++++++++++++++
 4 files changed, 393 insertions(+)
 create mode 100644 arch/arm64/boot/dts/lg/Makefile
 create mode 100644 arch/arm64/boot/dts/lg/lg1312-ref.dts
 create mode 100644 arch/arm64/boot/dts/lg/lg1312.dtsi
arch/arm64/boot/dts/Makefile +1 -0
index f832b8a..90ce525 100644
@@ -16,6 +16,7 @@ dts-dirs += rockchip
 dts-dirs += socionext
 dts-dirs += sprd
 dts-dirs += xilinx
+dts-dirs += lg
 
 subdir-y	:= $(dts-dirs)
 
arch/arm64/boot/dts/lg/Makefile new file +5 -0
new file mode 100644
index 0000000..b0cc649
@@ -0,0 +1,5 @@
+dtb-$(CONFIG_ARCH_LG1K) += lg1312-ref.dtb
+
+always		:= $(dtb-y)
+subdir-y	:= $(dts-dirs)
+clean-files	:= *.dtb
arch/arm64/boot/dts/lg/lg1312-ref.dts new file +36 -0
new file mode 100644
index 0000000..6d78d6b
@@ -0,0 +1,36 @@
+/*
+ * dts file for lg1312 Reference Board.
+ *
+ * Copyright (C) 2016, LG Electronics
+ */
+
+/dts-v1/;
+
+#include "lg1312.dtsi"
+
+/ {
+	#address-cells = <2>;
+	#size-cells = <1>;
+
+	model = "LG Electronics, DTV SoC LG1312 Reference Board";
+	compatible = "lge,lg1312-ref", "lge,lg1312";
+
+	aliases {
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+	};
+
+	memory {
+		device_type = "memory";
+		reg = <0x0 0x00000000 0x20000000>;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
arch/arm64/boot/dts/lg/lg1312.dtsi new file +351 -0

351 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#6 lore raw

Re: [PATCH v3 3/4] arm64: dts: Add dts files for LG Electronics's lg1312 SoC

Quoted 18 lines · Chanho Min

Add initial dtsi file to support lg1312 SoC which based on Cortex-A53. Also add dts file to support lg1312 reference board which based on lg1312 SoC.

---
Changes for v2:
- remove self-defined macro.
- change root node's #size-cells to <2>.
- remove bootargs property.
- update psci support to the arm,psci-0.2.
- put fixed-clock property under the root node.
- add stdout-path property.
- update the GICC reg length to 0x2000
- add the GICH and GICV interface.
- change pmu compatible property to arm,coretex-a53-pmu.
- remove clock-frequency property from timer.

Quoted 2 lines

Changes for v3:
- change the order of arm,psci-0.2 and arm,psci

Applied.

-Olof

author maintainer
#7 lore raw

PATCH v3 4/4 MAINTAINERS: add myself as ARM/LG1K maintainer

In reply to Chanho Min

---
Changes for v2:
- None
Changes for v3:
- None

---
 MAINTAINERS |    6 ++++++
 1 file changed, 6 insertions(+)
MAINTAINERS +6 -0
index 4f55edf..20ca61a 100644
@@ -1245,6 +1245,12 @@ L:	linux-kernel at vger.kernel.org
 S:	Maintained
 F:	drivers/memory/*emif*
 
+ARM/LG1K ARCHITECTURE
+M:	Chanho Min <[email protected]>
+L:	linux-arm-kernel at lists.infradead.org (moderated for non-subscribers)
+S:	Maintained
+F:	arch/arm64/boot/dts/lg/
+
 ARM/LOGICPD PXA270 MACHINE SUPPORT
 M:	Lennert Buytenhek <[email protected]>
 L:	linux-arm-kernel at lists.infradead.org (moderated for non-subscribers)
Signature · 1 line
1.7.9.5
#8 lore raw

Re: [PATCH v3 4/4] MAINTAINERS: add myself as ARM/LG1K maintainer

Quoted 9 lines · Chanho Min

---
Changes for v2:
- None
Changes for v3:
- None

---
 MAINTAINERS |    6 ++++++
 1 file changed, 6 insertions(+)

Applied with reworded subject.

-Olof