Skip to contentSkip to conversation

Tegra30: add support for LG tegra based phones

PATCH Superseded Svyatoslav Ryhel 4 participants 15 messages Jan 31, 2024 – Feb 1, 2024

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

cover Tegra30: add support for LG tegra based phones

Bring up Tegra 3 based LG phones Optimus 4X HD and Optimus Vu based on LG X3 board.

Maxim Schwalm (1):
dt-bindings: arm: tegra: Add LG Optimus Vu P895 and Optimus 4X P880

Svyatoslav Ryhel (3):
dt-bindings: vendor-prefixes: add LG Electronics, Inc. prefix
ARM: tegra: Add device-tree for LG Optimus Vu (P895)
ARM: tegra: Add device-tree for LG Optimus 4X HD (P880)

 .../devicetree/bindings/arm/tegra.yaml        |    8 +
 .../devicetree/bindings/vendor-prefixes.yaml  |    2 +
 arch/arm/boot/dts/nvidia/Makefile             |    2 +
 arch/arm/boot/dts/nvidia/tegra30-lg-p880.dts  |  489 +++++
 arch/arm/boot/dts/nvidia/tegra30-lg-p895.dts  |  496 +++++
 arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi   | 1821 +++++++++++++++++
 6 files changed, 2818 insertions(+)
 create mode 100644 arch/arm/boot/dts/nvidia/tegra30-lg-p880.dts
 create mode 100644 arch/arm/boot/dts/nvidia/tegra30-lg-p895.dts
 create mode 100644 arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi
Signature · 1 line
2.40.1
#1 lore raw

PATCH 1/4 dt-bindings: vendor-prefixes: add LG Electronics, Inc. prefix

Add missing LG Electronics, Inc. prefix used by some older devices.

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 309b94c328c8..b94ac977acb5 100644
@@ -767,6 +767,8 @@ patternProperties:
     description: LG Corporation
   "^lgphilips,.*":
     description: LG Display
+  "^lge,.*":
+    description: LG Electronics, Inc.
   "^libretech,.*":
     description: Shenzhen Libre Technology Co., Ltd
   "^licheepi,.*":
Signature · 1 line
2.40.1
#2 lore raw

Re: [PATCH v1 1/4] dt-bindings: vendor-prefixes: add LG Electronics, Inc. prefix

Quoted 1 line · Svyatoslav Ryhel

Add missing LG Electronics, Inc. prefix used by some older devices.

Is it? You're only adding these devices now as far as I can see.

Quoted 22 lines
---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 309b94c328c8..b94ac977acb5 100644
@@ -767,6 +767,8 @@ patternProperties:
     description: LG Corporation
   "^lgphilips,.*":
     description: LG Display
+  "^lge,.*":
+    description: LG Electronics, Inc.
   "^libretech,.*":
     description: Shenzhen Libre Technology Co., Ltd
   "^licheepi,.*":
Signature · 1 line
2.40.1
author
#3 lore raw

Re: [PATCH v1 1/4] dt-bindings: vendor-prefixes: add LG Electronics, Inc. prefix

31 січня 2024 р. 17:28:49 GMT+02:00, Conor Dooley <[email protected]> написав(-ла):

Quoted 5 lines · Svyatoslav Ryhel
Quoted 1 line

Add missing LG Electronics, Inc. prefix used by some older devices.

Is it? You're only adding these devices now as far as I can see.

Hammerhead (LG Nexus 5)

Quoted 22 lines
Quoted 22 lines
---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 309b94c328c8..b94ac977acb5 100644
@@ -767,6 +767,8 @@ patternProperties:
     description: LG Corporation
   "^lgphilips,.*":
     description: LG Display
+  "^lge,.*":
+    description: LG Electronics, Inc.
   "^libretech,.*":
     description: Shenzhen Libre Technology Co., Ltd
   "^licheepi,.*":
Signature · 1 line
2.40.1
#4 lore raw

Re: [PATCH v1 1/4] dt-bindings: vendor-prefixes: add LG Electronics, Inc. prefix

Quoted 10 lines · Svyatoslav

31 січня 2024 р. 17:28:49 GMT+02:00, Conor Dooley <[email protected]> написав(-ла):

Quoted 5 lines · Svyatoslav Ryhel
Quoted 1 line

Add missing LG Electronics, Inc. prefix used by some older devices.

Is it? You're only adding these devices now as far as I can see.

Hammerhead (LG Nexus 5)

I have absolutely no idea what this means. Please link me the in-tree devicetree of the user (or the patchset adding it).

Thanks,
Conor

Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 309b94c328c8..b94ac977acb5 100644
@@ -767,6 +767,8 @@ patternProperties:
     description: LG Corporation
   "^lgphilips,.*":
     description: LG Display
+  "^lge,.*":
+    description: LG Electronics, Inc.
   "^libretech,.*":
     description: Shenzhen Libre Technology Co., Ltd
   "^licheepi,.*":
Signature · 1 line
2.40.1
author
#5 lore raw

Re: [PATCH v1 1/4] dt-bindings: vendor-prefixes: add LG Electronics, Inc. prefix

31 січня 2024 р. 18:02:31 GMT+02:00, Conor Dooley <[email protected]> написав(-ла):

Quoted 10 lines · Svyatoslav
Quoted 9 lines

31 січня 2024 р. 17:28:49 GMT+02:00, Conor Dooley <[email protected]> написав(-ла):

Quoted 5 lines · Svyatoslav Ryhel
Quoted 1 line

Add missing LG Electronics, Inc. prefix used by some older devices.

Is it? You're only adding these devices now as far as I can see.

Quoted 8 lines
Quoted 1 line

Hammerhead (LG Nexus 5)

I have absolutely no idea what this means. Please link me the in-tree devicetree of the user (or the patchset adding it).

Thanks,
Conor

Sure, here you go
<https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts?h=linux-6.4.y#n11>

So devices I have sent are not the first.

Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 309b94c328c8..b94ac977acb5 100644
@@ -767,6 +767,8 @@ patternProperties:
     description: LG Corporation
   "^lgphilips,.*":
     description: LG Display
+  "^lge,.*":
+    description: LG Electronics, Inc.
   "^libretech,.*":
     description: Shenzhen Libre Technology Co., Ltd
   "^licheepi,.*":
Signature · 1 line
2.40.1
Acked-by
#6 lore raw

Re: [PATCH v1 1/4] dt-bindings: vendor-prefixes: add LG Electronics, Inc. prefix

Quoted 18 lines · Svyatoslav

31 січня 2024 р. 18:02:31 GMT+02:00, Conor Dooley <[email protected]> написав(-ла):

Quoted 15 lines · Svyatoslav
Quoted 10 lines

31 січня 2024 р. 17:28:49 GMT+02:00, Conor Dooley <[email protected]> написав(-ла):

Quoted 5 lines · Svyatoslav Ryhel
Quoted 1 line

Add missing LG Electronics, Inc. prefix used by some older devices.

Is it? You're only adding these devices now as far as I can see.

Hammerhead (LG Nexus 5)

I have absolutely no idea what this means. Please link me the in-tree devicetree of the user (or the patchset adding it).

Quoted 8 lines
Quoted 3 lines

Thanks,
Conor

Sure, here you go
<https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts?h=linux-6.4.y#n11>

So devices I have sent are not the first.

Thanks.

Cheers,
Conor.

#7 lore raw

Re: [PATCH v1 1/4] dt-bindings: vendor-prefixes: add LG Electronics, Inc. prefix

In reply to Svyatoslav
Quoted 18 lines · Svyatoslav

31 січня 2024 р. 18:02:31 GMT+02:00, Conor Dooley <[email protected]> написав(-ла):

Quoted 15 lines · Svyatoslav
Quoted 10 lines

31 січня 2024 р. 17:28:49 GMT+02:00, Conor Dooley <[email protected]> написав(-ла):

Quoted 5 lines · Svyatoslav Ryhel
Quoted 1 line

Add missing LG Electronics, Inc. prefix used by some older devices.

Is it? You're only adding these devices now as far as I can see.

Hammerhead (LG Nexus 5)

I have absolutely no idea what this means. Please link me the in-tree devicetree of the user (or the patchset adding it).

Quoted 8 lines
Quoted 3 lines

Thanks,
Conor

Sure, here you go
<https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts?h=linux-6.4.y#n11>

So devices I have sent are not the first.

Please look for existing work doing the same...

Best regards,
Krzysztof

maintainer
#8 lore raw

Re: [PATCH v1 1/4] dt-bindings: vendor-prefixes: add LG Electronics, Inc. prefix

Quoted 23 lines · Krzysztof Kozlowski
Quoted 22 lines · Svyatoslav

31 січня 2024 р. 18:02:31 GMT+02:00, Conor Dooley <[email protected]> написав(-ла):

Quoted 18 lines · Svyatoslav
Quoted 10 lines

31 січня 2024 р. 17:28:49 GMT+02:00, Conor Dooley <[email protected]> написав(-ла):

Quoted 5 lines · Svyatoslav Ryhel
Quoted 1 line

Add missing LG Electronics, Inc. prefix used by some older devices.

Is it? You're only adding these devices now as far as I can see.

Hammerhead (LG Nexus 5)

I have absolutely no idea what this means. Please link me the in-tree devicetree of the user (or the patchset adding it).

Thanks,
Conor

Quoted 6 lines
Quoted 4 lines

Sure, here you go
<https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts?h=linux-6.4.y#n11>

So devices I have sent are not the first.

Please look for existing work doing the same...

Took me a minute to parse this.

I believe what Krzysztof means is look at the link he posted and follow the suggestion there. Fix the one case, lge,hammerhead, to use 'lg'.

Rob

#10 lore raw

PATCH 2/4 dt-bindings: arm: tegra: Add LG Optimus Vu P895 and Optimus 4X P880

In reply to Svyatoslav Ryhel

From: Maxim Schwalm <[email protected]>

Add a compatible for the LG Optimus Vu P895 and Optimus 4X P880.

---
 Documentation/devicetree/bindings/arm/tegra.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)
Documentation/devicetree/bindings/arm/tegra.yaml +8 -0
index fcf956406168..9b3c565b21c4 100644
@@ -64,6 +64,14 @@ properties:
       - items:
           - const: asus,tf700t
           - const: nvidia,tegra30
+      - description: LG Optimus 4X P880
+        items:
+          - const: lge,p880
+          - const: nvidia,tegra30
+      - description: LG Optimus Vu P895
+        items:
+          - const: lge,p895
+          - const: nvidia,tegra30
       - items:
           - const: toradex,apalis_t30-eval
           - const: toradex,apalis_t30
Signature · 1 line
2.40.1
#11 lore raw

Re: [PATCH v1 2/4] dt-bindings: arm: tegra: Add LG Optimus Vu P895 and Optimus 4X P880

Quoted 14 lines · Svyatoslav Ryhel

From: Maxim Schwalm <[email protected]>

Add a compatible for the LG Optimus Vu P895 and Optimus 4X P880.

---
 Documentation/devicetree/bindings/arm/tegra.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)
Documentation/devicetree/bindings/arm/tegra.yaml +0 -0
index fcf956406168..9b3c565b21c4 100644

Documentation/devicetree/bindings/arm/tegra.yaml properties: · line 69

Quoted 6 lines
Documentation/devicetree/bindings/arm/tegra.yaml +3 -0
@@ -64,6 +64,14 @@ properties:
       - items:
           - const: asus,tf700t
           - const: nvidia,tegra30
+      - description: LG Optimus 4X P880
+        items:
+          - const: lge,p880

NAK, it is not lge, but lg.

Best regards,
Krzysztof

#12 lore raw

PATCH 3/4 ARM: tegra: Add device-tree for LG Optimus Vu (P895)

In reply to Svyatoslav Ryhel

Add device-tree for LG Optimus Vu P895, which is a NVIDIA Tegra30-based smartphone, orignally running Android.

---
 arch/arm/boot/dts/nvidia/Makefile            |    1 +
 arch/arm/boot/dts/nvidia/tegra30-lg-p895.dts |  496 +++++
 arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi  | 1821 ++++++++++++++++++
 3 files changed, 2318 insertions(+)
 create mode 100644 arch/arm/boot/dts/nvidia/tegra30-lg-p895.dts
 create mode 100644 arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi
arch/arm/boot/dts/nvidia/Makefile +1 -0
index 60091bf7e48b..f66337e5d188 100644
@@ -39,5 +39,6 @@ dtb-$(CONFIG_ARCH_TEGRA_3x_SOC) += \
 	tegra30-cardhu-a02.dtb \
 	tegra30-cardhu-a04.dtb \
 	tegra30-colibri-eval-v3.dtb \
+	tegra30-lg-p895.dtb \
 	tegra30-ouya.dtb \
 	tegra30-pegatron-chagall.dtb
arch/arm/boot/dts/nvidia/tegra30-lg-p895.dts new file +496 -0

496 lines not on this page · raw message

arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi new file +1821 -0

1,821 lines not on this page · raw message

Signature · 1 line
2.40.1
#13 lore raw

Re: [PATCH v1 3/4] ARM: tegra: Add device-tree for LG Optimus Vu (P895)

Quoted 29 lines · Svyatoslav Ryhel

Add device-tree for LG Optimus Vu P895, which is a NVIDIA Tegra30-based smartphone, orignally running Android.

---
 arch/arm/boot/dts/nvidia/Makefile            |    1 +
 arch/arm/boot/dts/nvidia/tegra30-lg-p895.dts |  496 +++++
 arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi  | 1821 ++++++++++++++++++
 3 files changed, 2318 insertions(+)
 create mode 100644 arch/arm/boot/dts/nvidia/tegra30-lg-p895.dts
 create mode 100644 arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi
arch/arm/boot/dts/nvidia/Makefile +1 -0
index 60091bf7e48b..f66337e5d188 100644
@@ -39,5 +39,6 @@ dtb-$(CONFIG_ARCH_TEGRA_3x_SOC) += \
 	tegra30-cardhu-a02.dtb \
 	tegra30-cardhu-a04.dtb \
 	tegra30-colibri-eval-v3.dtb \
+	tegra30-lg-p895.dtb \
 	tegra30-ouya.dtb \
 	tegra30-pegatron-chagall.dtb
arch/arm/boot/dts/nvidia/tegra30-lg-p895.dts new file +0 -0
new file mode 100644
index 000000000000..7e7cfaabe56e

arch/arm/boot/dts/nvidia/tegra30-lg-p895.dts line 8

Quoted 8 lines
arch/arm/boot/dts/nvidia/tegra30-lg-p895.dts new file +8 -0
@@ -0,0 +1,496 @@
+// SPDX-License-Identifier: GPL-2.0
+/dts-v1/;
+
+#include "tegra30-lg-x3.dtsi"
+
+/ {
+	model = "LG Optimus Vu P895";
+	compatible = "lge,p895", "nvidia,tegra30";

This is lg, not lge.

Also, all over the file you have underscores in node names. They are not allowed. Please consult DTS coding style document.

Best regards,
Krzysztof

#14 lore raw

PATCH 4/4 ARM: tegra: Add device-tree for LG Optimus 4X HD (P880)

In reply to Svyatoslav Ryhel

Add device-tree for LG Optimus 4X HD P880, which is a NVIDIA Tegra30-based smartphone, orignally running Android.

---
 arch/arm/boot/dts/nvidia/Makefile            |   1 +
 arch/arm/boot/dts/nvidia/tegra30-lg-p880.dts | 489 +++++++++++++++++++
 2 files changed, 490 insertions(+)
 create mode 100644 arch/arm/boot/dts/nvidia/tegra30-lg-p880.dts
arch/arm/boot/dts/nvidia/Makefile +1 -0
index f66337e5d188..96972559253c 100644
@@ -39,6 +39,7 @@ dtb-$(CONFIG_ARCH_TEGRA_3x_SOC) += \
 	tegra30-cardhu-a02.dtb \
 	tegra30-cardhu-a04.dtb \
 	tegra30-colibri-eval-v3.dtb \
+	tegra30-lg-p880.dtb \
 	tegra30-lg-p895.dtb \
 	tegra30-ouya.dtb \
 	tegra30-pegatron-chagall.dtb
arch/arm/boot/dts/nvidia/tegra30-lg-p880.dts new file +489 -0

489 lines not on this page · raw message

Signature · 1 line
2.40.1