* [PATCH v3 0/2] arm64: Add basic support for LG H815
@ 2024-07-27 20:04 Alexander Reimelt
2024-07-27 20:04 ` [PATCH v3 1/2] dt-bindings: arm: qcom: Add LG G4 (h815) Alexander Reimelt
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Alexander Reimelt @ 2024-07-27 20:04 UTC (permalink / raw)
To: andersson, petr.vorel, konrad.dybcio, robh+dt,
krzysztof.kozlowski+dt, conor+dt
Cc: linux-arm-msm, devicetree, linux-kernel
Hello,
Changes in v3:
- use 0x0 consistently
- pad to 8 digits
- drop compatible = "framebuffer" because it's unused
- drop chosen
Thanks again for your time.
v2: https://lore.kernel.org/linux-devicetree/20240530135922.23326-1-alexander.reimelt@posteo.de/
Alexander Reimelt (2):
dt-bindings: arm: qcom: Add LG G4 (h815)
arm64: dts: qcom: msm8992-lg-h815: Initial support for LG G4 (H815)
.../devicetree/bindings/arm/qcom.yaml | 1 +
arch/arm64/boot/dts/qcom/Makefile | 1 +
arch/arm64/boot/dts/qcom/msm8992-lg-h815.dts | 231 ++++++++++++++++++
3 files changed, 233 insertions(+)
create mode 100644 arch/arm64/boot/dts/qcom/msm8992-lg-h815.dts
--
2.45.2
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v3 1/2] dt-bindings: arm: qcom: Add LG G4 (h815)
2024-07-27 20:04 [PATCH v3 0/2] arm64: Add basic support for LG H815 Alexander Reimelt
@ 2024-07-27 20:04 ` Alexander Reimelt
2024-07-28 8:42 ` Krzysztof Kozlowski
2024-07-28 15:13 ` Petr Vorel
2024-07-27 20:04 ` [PATCH v3 2/2] arm64: dts: qcom: msm8992-lg-h815: Initial support for LG G4 (H815) Alexander Reimelt
` (2 subsequent siblings)
3 siblings, 2 replies; 8+ messages in thread
From: Alexander Reimelt @ 2024-07-27 20:04 UTC (permalink / raw)
To: andersson, petr.vorel, konrad.dybcio, robh+dt,
krzysztof.kozlowski+dt, conor+dt
Cc: linux-arm-msm, devicetree, linux-kernel
International variant of the LG G4 from 2015.
Signed-off-by: Alexander Reimelt <alexander.reimelt@posteo.de>
---
Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml
index f08e13b61172..f79730d02eb7 100644
--- a/Documentation/devicetree/bindings/arm/qcom.yaml
+++ b/Documentation/devicetree/bindings/arm/qcom.yaml
@@ -250,6 +250,7 @@ properties:
- items:
- enum:
- lg,bullhead
+ - lg,h815
- microsoft,talkman
- xiaomi,libra
- const: qcom,msm8992
--
2.45.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v3 2/2] arm64: dts: qcom: msm8992-lg-h815: Initial support for LG G4 (H815)
2024-07-27 20:04 [PATCH v3 0/2] arm64: Add basic support for LG H815 Alexander Reimelt
2024-07-27 20:04 ` [PATCH v3 1/2] dt-bindings: arm: qcom: Add LG G4 (h815) Alexander Reimelt
@ 2024-07-27 20:04 ` Alexander Reimelt
2024-07-29 18:52 ` [PATCH v3 0/2] arm64: Add basic support for LG H815 Rob Herring (Arm)
2024-08-01 3:19 ` Bjorn Andersson
3 siblings, 0 replies; 8+ messages in thread
From: Alexander Reimelt @ 2024-07-27 20:04 UTC (permalink / raw)
To: andersson, petr.vorel, konrad.dybcio, robh+dt,
krzysztof.kozlowski+dt, conor+dt
Cc: linux-arm-msm, devicetree, linux-kernel
To make it easier for downstream projects and avoid duplication of work.
Makes the device bootable and enables all buttons, hall sensor, eMMC and SD-Card.
Signed-off-by: Alexander Reimelt <alexander.reimelt@posteo.de>
---
arch/arm64/boot/dts/qcom/Makefile | 1 +
arch/arm64/boot/dts/qcom/msm8992-lg-h815.dts | 231 +++++++++++++++++++
2 files changed, 232 insertions(+)
create mode 100644 arch/arm64/boot/dts/qcom/msm8992-lg-h815.dts
diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index 0e5c810304fb..597481e3eeeb 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -69,6 +69,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-kugo.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-suzu.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-10.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-101.dtb
+dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-h815.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8992-msft-lumia-octagon-talkman.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8992-xiaomi-libra.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8994-huawei-angler-rev-101.dtb
diff --git a/arch/arm64/boot/dts/qcom/msm8992-lg-h815.dts b/arch/arm64/boot/dts/qcom/msm8992-lg-h815.dts
new file mode 100644
index 000000000000..38b305816d2f
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/msm8992-lg-h815.dts
@@ -0,0 +1,231 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/*
+ * MSM8992 LG G4 (h815) device tree.
+ *
+ * Copyright (c) 2024, Alexander Reimelt <alexander.reimelt@posteo.de>
+ */
+
+/dts-v1/;
+
+#include "msm8992.dtsi"
+#include "pm8994.dtsi"
+#include "pmi8994.dtsi"
+#include <dt-bindings/leds/common.h>
+
+/* different mapping */
+/delete-node/ &cont_splash_mem;
+
+/* disabled downstream */
+/delete-node/ &dfps_data_mem;
+
+/ {
+ model = "LG G4 (H815)";
+ compatible = "lg,h815", "qcom,msm8992";
+ chassis-type = "handset";
+
+ qcom,msm-id = <0xfb 0x0>;
+ qcom,pmic-id = <0x10009 0x1000a 0x0 0x0>;
+ qcom,board-id = <0xb64 0x0>;
+
+ /* psci is broken */
+ /delete-node/ psci;
+
+ reserved-memory {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges;
+
+ spin-table@6000000 {
+ reg = <0x0 0x06000000 0x0 0x00001000>;
+ no-map;
+ };
+
+ ramoops@ff00000 {
+ compatible = "ramoops";
+ reg = <0x0 0x0ff00000 0x0 0x00100000>;
+ console-size = <0x20000>;
+ pmsg-size = <0x20000>;
+ record-size = <0x10000>;
+ ecc-size = <0x10>;
+ };
+
+ cont_splash_mem: fb@3400000 {
+ reg = <0x0 0x03400000 0x0 0x00c00000>;
+ no-map;
+ };
+
+ crash_fb_mem: crash-fb@4000000 {
+ reg = <0x0 0x04000000 0x0 0x00c00000>;
+ no-map;
+ };
+ };
+
+ gpio-hall-sensor {
+ compatible = "gpio-keys";
+
+ pinctrl-0 = <&hall_sensor_default>;
+ pinctrl-names = "default";
+
+ label = "Hall Effect Sensor";
+
+ event-hall-sensor {
+ gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
+ label = "hall effect sensor";
+ linux,input-type = <EV_SW>;
+ linux,code = <SW_LID>;
+ linux,can-disable;
+ wakeup-source;
+ };
+ };
+
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ key-vol-up {
+ label = "volume up";
+ gpios = <&pm8994_gpios 3 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_VOLUMEUP>;
+ wakeup-source;
+ debounce-interval = <15>;
+ };
+ };
+};
+
+&CPU0 {
+ enable-method = "spin-table";
+};
+
+&CPU1 {
+ enable-method = "spin-table";
+};
+
+&CPU2 {
+ enable-method = "spin-table";
+};
+
+&CPU3 {
+ enable-method = "spin-table";
+};
+
+&CPU4 {
+ enable-method = "spin-table";
+};
+
+&CPU5 {
+ enable-method = "spin-table";
+};
+
+&pm8994_resin {
+ linux,code = <KEY_VOLUMEDOWN>;
+ status = "okay";
+};
+
+&rpm_requests {
+ regulators-0 {
+ compatible = "qcom,rpm-pm8994-regulators";
+
+ vdd_s3-supply = <&vph_pwr>;
+ vdd_s4-supply = <&vph_pwr>;
+ vdd_s5-supply = <&vph_pwr>;
+ vdd_s7-supply = <&vph_pwr>;
+ vdd_l1-supply = <&pmi8994_s1>;
+ vdd_l2_26_28-supply = <&pm8994_s3>;
+ vdd_l3_11-supply = <&pm8994_s3>;
+ vdd_l4_27_31-supply = <&pm8994_s3>;
+ vdd_l5_7-supply = <&pm8994_s5>;
+ vdd_l6_12_32-supply = <&pm8994_s5>;
+ vdd_l8_16_30-supply = <&vph_pwr>;
+ vdd_l9_10_18_22-supply = <&pmi8994_bby>;
+ vdd_l13_19_23_24-supply = <&pmi8994_bby>;
+ vdd_l14_15-supply = <&pm8994_s5>;
+ vdd_l17_29-supply = <&pmi8994_bby>;
+ vdd_l20_21-supply = <&pmi8994_bby>;
+ vdd_l25-supply = <&pm8994_s5>;
+ vdd_lvs1_2-supply = <&pm8994_s4>;
+
+ pm8994_s3: s3 {
+ regulator-min-microvolt = <1300000>;
+ regulator-max-microvolt = <1300000>;
+ };
+
+ /* sdhc1 vqmmc and bcm */
+ pm8994_s4: s4 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-system-load = <325000>;
+ regulator-allow-set-load;
+ };
+
+ pm8994_s5: s5 {
+ regulator-min-microvolt = <2150000>;
+ regulator-max-microvolt = <2150000>;
+ };
+
+ /* sdhc2 vqmmc */
+ pm8994_l13: l13 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <2950000>;
+ regulator-system-load = <22000>;
+ regulator-allow-set-load;
+ };
+
+ /* sdhc1 vmmc */
+ pm8994_l20: l20 {
+ regulator-min-microvolt = <2950000>;
+ regulator-max-microvolt = <2950000>;
+ regulator-system-load = <570000>;
+ regulator-allow-set-load;
+ };
+
+ /* sdhc2 vmmc */
+ pm8994_l21: l21 {
+ regulator-min-microvolt = <2950000>;
+ regulator-max-microvolt = <2950000>;
+ regulator-system-load = <800000>;
+ regulator-allow-set-load;
+ };
+ };
+
+ regulators-1 {
+ compatible = "qcom,rpm-pmi8994-regulators";
+
+ vdd_s1-supply = <&vph_pwr>;
+ vdd_bst_byp-supply = <&vph_pwr>;
+
+ pmi8994_s1: s1 {
+ regulator-min-microvolt = <1025000>;
+ regulator-max-microvolt = <1025000>;
+ };
+
+ /* S2 & S3 - VDD_GFX */
+
+ pmi8994_bby: boost-bypass {
+ regulator-min-microvolt = <3150000>;
+ regulator-max-microvolt = <3600000>;
+ };
+ };
+};
+
+&sdhc1 {
+ mmc-hs400-1_8v;
+ vmmc-supply = <&pm8994_l20>;
+ vqmmc-supply = <&pm8994_s4>;
+ non-removable;
+ status = "okay";
+};
+
+&sdhc2 {
+ vmmc-supply = <&pm8994_l21>;
+ vqmmc-supply = <&pm8994_l13>;
+ cd-gpios = <&pm8994_gpios 8 GPIO_ACTIVE_LOW>;
+ status = "okay";
+};
+
+&tlmm {
+ hall_sensor_default: hall-sensor-default-state {
+ pins = "gpio75";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+};
--
2.45.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: arm: qcom: Add LG G4 (h815)
2024-07-27 20:04 ` [PATCH v3 1/2] dt-bindings: arm: qcom: Add LG G4 (h815) Alexander Reimelt
@ 2024-07-28 8:42 ` Krzysztof Kozlowski
2024-07-28 15:13 ` Petr Vorel
1 sibling, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-28 8:42 UTC (permalink / raw)
To: Alexander Reimelt, andersson, petr.vorel, konrad.dybcio, robh+dt,
krzysztof.kozlowski+dt, conor+dt
Cc: linux-arm-msm, devicetree, linux-kernel
On 27/07/2024 22:04, Alexander Reimelt wrote:
> International variant of the LG G4 from 2015.
>
> Signed-off-by: Alexander Reimelt <alexander.reimelt@posteo.de>
> ---
<form letter>
This is a friendly reminder during the review process.
It looks like you received a tag and forgot to add it.
If you do not know the process, here is a short explanation:
Please add Acked-by/Reviewed-by/Tested-by tags when posting new
versions, under or above your Signed-off-by tag. Tag is "received", when
provided in a message replied to you on the mailing list. Tools like b4
can help here. However, there's no need to repost patches *only* to add
the tags. The upstream maintainer will do that for tags received on the
version they apply.
https://elixir.bootlin.com/linux/v6.5-rc3/source/Documentation/process/submitting-patches.rst#L577
If a tag was not added on purpose, please state why and what changed.
</form letter>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: arm: qcom: Add LG G4 (h815)
2024-07-27 20:04 ` [PATCH v3 1/2] dt-bindings: arm: qcom: Add LG G4 (h815) Alexander Reimelt
2024-07-28 8:42 ` Krzysztof Kozlowski
@ 2024-07-28 15:13 ` Petr Vorel
2024-07-28 18:59 ` Alexander Reimelt
1 sibling, 1 reply; 8+ messages in thread
From: Petr Vorel @ 2024-07-28 15:13 UTC (permalink / raw)
To: Alexander Reimelt
Cc: andersson, konrad.dybcio, robh+dt, krzysztof.kozlowski+dt,
conor+dt, linux-arm-msm, devicetree, linux-kernel
Hi all,
> International variant of the LG G4 from 2015.
Obviously correct.
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Alexander, others have added their tags in previous versions. IMHO generally
it'd be worth if you carry others tags in next versions (when nothing changes).
I now see Krzysztof was faster to write this. Thus I put the tags with links:
https://lore.kernel.org/linux-arm-msm/171216461463.4018435.3466905061314737419.robh@kernel.org/
Acked-by: Rob Herring <robh@kernel.org>
https://lore.kernel.org/linux-arm-msm/d596abcd-8374-4a6f-ad98-c5a04416865d@linaro.org/
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Kind regards,
Petr
> Signed-off-by: Alexander Reimelt <alexander.reimelt@posteo.de>
> ---
> Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
> 1 file changed, 1 insertion(+)
> diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml
> index f08e13b61172..f79730d02eb7 100644
> --- a/Documentation/devicetree/bindings/arm/qcom.yaml
> +++ b/Documentation/devicetree/bindings/arm/qcom.yaml
> @@ -250,6 +250,7 @@ properties:
> - items:
> - enum:
> - lg,bullhead
> + - lg,h815
> - microsoft,talkman
> - xiaomi,libra
> - const: qcom,msm8992
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: arm: qcom: Add LG G4 (h815)
2024-07-28 15:13 ` Petr Vorel
@ 2024-07-28 18:59 ` Alexander Reimelt
0 siblings, 0 replies; 8+ messages in thread
From: Alexander Reimelt @ 2024-07-28 18:59 UTC (permalink / raw)
To: Petr Vorel
Cc: andersson, konrad.dybcio, robh+dt, krzysztof.kozlowski+dt,
conor+dt, linux-arm-msm, devicetree, linux-kernel
Hello,
> Alexander, others have added their tags in previous versions. IMHO generally
> it'd be worth if you carry others tags in next versions (when nothing
> changes).
I already replied to Krzysztof, but I messed it up and sent it only to him.
I'm sorry I wasted everyone's time. I didn't fully understand how the system
behind these tags worked until now. I should have asked earlier, but thanks
for pointing it out.
Kind regards,
Alexander
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 0/2] arm64: Add basic support for LG H815
2024-07-27 20:04 [PATCH v3 0/2] arm64: Add basic support for LG H815 Alexander Reimelt
2024-07-27 20:04 ` [PATCH v3 1/2] dt-bindings: arm: qcom: Add LG G4 (h815) Alexander Reimelt
2024-07-27 20:04 ` [PATCH v3 2/2] arm64: dts: qcom: msm8992-lg-h815: Initial support for LG G4 (H815) Alexander Reimelt
@ 2024-07-29 18:52 ` Rob Herring (Arm)
2024-08-01 3:19 ` Bjorn Andersson
3 siblings, 0 replies; 8+ messages in thread
From: Rob Herring (Arm) @ 2024-07-29 18:52 UTC (permalink / raw)
To: Alexander Reimelt
Cc: konrad.dybcio, conor+dt, andersson, devicetree, linux-arm-msm,
krzysztof.kozlowski+dt, linux-kernel, petr.vorel, robh+dt
On Sat, 27 Jul 2024 20:04:48 +0000, Alexander Reimelt wrote:
> Hello,
>
> Changes in v3:
> - use 0x0 consistently
> - pad to 8 digits
> - drop compatible = "framebuffer" because it's unused
> - drop chosen
>
> Thanks again for your time.
>
> v2: https://lore.kernel.org/linux-devicetree/20240530135922.23326-1-alexander.reimelt@posteo.de/
>
> Alexander Reimelt (2):
> dt-bindings: arm: qcom: Add LG G4 (h815)
> arm64: dts: qcom: msm8992-lg-h815: Initial support for LG G4 (H815)
>
> .../devicetree/bindings/arm/qcom.yaml | 1 +
> arch/arm64/boot/dts/qcom/Makefile | 1 +
> arch/arm64/boot/dts/qcom/msm8992-lg-h815.dts | 231 ++++++++++++++++++
> 3 files changed, 233 insertions(+)
> create mode 100644 arch/arm64/boot/dts/qcom/msm8992-lg-h815.dts
>
> --
> 2.45.2
>
>
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y qcom/msm8992-lg-h815.dtb' for 20240727201413.114317-1-alexander.reimelt@posteo.de:
arch/arm64/boot/dts/qcom/msm8992-lg-h815.dtb: usb@f92f8800: 'interrupt-names' is a required property
from schema $id: http://devicetree.org/schemas/usb/qcom,dwc3.yaml#
arch/arm64/boot/dts/qcom/msm8992-lg-h815.dtb: usb@f92f8800: 'oneOf' conditional failed, one must be fixed:
'interrupts' is a required property
'interrupts-extended' is a required property
from schema $id: http://devicetree.org/schemas/usb/qcom,dwc3.yaml#
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 0/2] arm64: Add basic support for LG H815
2024-07-27 20:04 [PATCH v3 0/2] arm64: Add basic support for LG H815 Alexander Reimelt
` (2 preceding siblings ...)
2024-07-29 18:52 ` [PATCH v3 0/2] arm64: Add basic support for LG H815 Rob Herring (Arm)
@ 2024-08-01 3:19 ` Bjorn Andersson
3 siblings, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2024-08-01 3:19 UTC (permalink / raw)
To: petr.vorel, robh+dt, krzysztof.kozlowski+dt, conor+dt,
Konrad Dybcio, Alexander Reimelt
Cc: linux-arm-msm, devicetree, linux-kernel
On Sat, 27 Jul 2024 20:04:48 +0000, Alexander Reimelt wrote:
> Changes in v3:
> - use 0x0 consistently
> - pad to 8 digits
> - drop compatible = "framebuffer" because it's unused
> - drop chosen
>
> Thanks again for your time.
>
> [...]
Applied, thanks!
[1/2] dt-bindings: arm: qcom: Add LG G4 (h815)
commit: d2e577267cc29841d9f316ff65494d1892fed13c
[2/2] arm64: dts: qcom: msm8992-lg-h815: Initial support for LG G4 (H815)
commit: ed3c955cab3a9d5a9bce4756e4bd3390f9c23e1f
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-08-01 3:19 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-27 20:04 [PATCH v3 0/2] arm64: Add basic support for LG H815 Alexander Reimelt
2024-07-27 20:04 ` [PATCH v3 1/2] dt-bindings: arm: qcom: Add LG G4 (h815) Alexander Reimelt
2024-07-28 8:42 ` Krzysztof Kozlowski
2024-07-28 15:13 ` Petr Vorel
2024-07-28 18:59 ` Alexander Reimelt
2024-07-27 20:04 ` [PATCH v3 2/2] arm64: dts: qcom: msm8992-lg-h815: Initial support for LG G4 (H815) Alexander Reimelt
2024-07-29 18:52 ` [PATCH v3 0/2] arm64: Add basic support for LG H815 Rob Herring (Arm)
2024-08-01 3:19 ` Bjorn Andersson
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).