Skip to contentSkip to conversation

arm64: dts: qcom: msm8939-longcheer-l9100: Add initial dts

PATCH RESEND Superseded André Apitzsch 2 participants 4 messages Aug 15, 2023 – Aug 26, 2023

Subsystems (3)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v3 cover arm64: dts: qcom: msm8939-longcheer-l9100: Add initial dts

This dts adds support for BQ Aquaris M5 (Longcheer L9100) released in 2015.

Add a device tree with initial support for:

- GPIO keys
- Hall sensor
- SDHCI
- WCNSS (BT/WIFI)
- Accelerometer/Magnetometer
- Vibrator
- Touchscreen
- Front flash

---
Changes in v3:
- use "id-gpios" instead of "id-gpio" to avoid conflicts with
https://lore.kernel.org/linux-arm-msm/[email protected]/
(v2 only contained the changelog entry, but not the actual change)
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- add R-b to first patch
- sort node extends/overrides by name, but keep &tlmm last, as done in msm8939-samsung-a7.dts
- use id-gpios, to avoid conflict with
https://lore.kernel.org/linux-arm-msm/[email protected]/
- don't enable mdss for now; postpone it till display support is added
- Link to v1: https://lore.kernel.org/r/[email protected]

---
André Apitzsch (2):
dt-bindings: arm: qcom: Add BQ Aquaris M5
arm64: dts: qcom: msm8939-longcheer-l9100: Add initial device tree

 Documentation/devicetree/bindings/arm/qcom.yaml    |   1 +
 arch/arm64/boot/dts/qcom/Makefile                  |   1 +
 .../boot/dts/qcom/msm8939-longcheer-l9100.dts      | 336 +++++++++++++++++++++
 3 files changed, 338 insertions(+)

---
base-commit: 451cc82bd11eb6a374f4dbcfc1cf007eafea91ab
change-id: 20230724-bq_m5-bc9afe378f8d

Best regards,

Signature · 1 line
André Apitzsch <[email protected]>
#1 lore raw

PATCH RESEND v3 1/2 dt-bindings: arm: qcom: Add BQ Aquaris M5

Add a compatible for BQ Aquaris M5 (Longcheer L9100).

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
index a6f7ef4f0830..66f660dd5026 100644
@@ -186,6 +186,7 @@ properties:
 
       - items:
           - enum:
+              - longcheer,l9100
               - samsung,a7
               - sony,kanuti-tulip
               - square,apq8039-t2
Signature · 1 line
2.41.0
#2 lore raw

PATCH RESEND v3 2/2 arm64: dts: qcom: msm8939-longcheer-l9100: Add initial device tree

In reply to André Apitzsch

This dts adds support for BQ Aquaris M5 (Longcheer L9100) released in 2015.

Add a device tree with initial support for:

- GPIO keys
- Hall sensor
- SDHCI
- WCNSS (BT/WIFI)
- Accelerometer/Magnetometer
- Vibrator
- Touchscreen
- Front flash

---
 arch/arm64/boot/dts/qcom/Makefile                  |   1 +
 .../boot/dts/qcom/msm8939-longcheer-l9100.dts      | 336 +++++++++++++++++++++
 2 files changed, 337 insertions(+)
arch/arm64/boot/dts/qcom/Makefile +1 -0
index 23fd31d4bf5a..3200bc92853f 100644
@@ -39,6 +39,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= msm8916-thwc-uf896.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8916-thwc-ufi001c.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8916-wingtech-wt88047.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8916-yiming-uz801v3.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= msm8939-longcheer-l9100.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8939-samsung-a7.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8939-sony-xperia-kanuti-tulip.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8953-motorola-potter.dtb
arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts new file +336 -0

336 lines not on this page · raw message

Signature · 1 line
2.41.0
Reviewed-by on v3 2/2
#3 lore raw

Re: [PATCH RESEND v3 2/2] arm64: dts: qcom: msm8939-longcheer-l9100: Add initial device tree

Quoted 16 lines · André Apitzsch

This dts adds support for BQ Aquaris M5 (Longcheer L9100) released in 2015.

Add a device tree with initial support for:

- GPIO keys
- Hall sensor
- SDHCI
- WCNSS (BT/WIFI)
- Accelerometer/Magnetometer
- Vibrator
- Touchscreen
- Front flash

---> + light-sensor@23 {

arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts line 147

Quoted 8 lines
arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts new file +8 -0
+		compatible = "liteon,ltr559";
+		reg = <0x23>;
+
+		vdd-supply = <&pm8916_l17>;
+		vddio-supply = <&pm8916_l5>;
+
+		interrupt-parent = <&tlmm>;
+		interrupts = <113 IRQ_TYPE_EDGE_FALLING>;

interrupts-extended = <&tlmm 113 IRQ_TYPE_EDGE_FALLING>;

Quoted 13 lines
arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts new file +13 -0
+
+		pinctrl-0 = <&light_int_default>;
+		pinctrl-names = "default";
+	};
+
+	imu@68 {
+		compatible = "bosch,bmi160";
+		reg = <0x68>;
+
+		vdd-supply = <&pm8916_l17>;
+		vddio-supply = <&pm8916_l6>;
+	};
+};

arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts line 170

Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts new file +10 -0
+
+&blsp_i2c5 {
+	status = "okay";
+
+	touchscreen@4a {
+		compatible = "atmel,maxtouch";
+		reg = <0x4a>;
+
+		interrupt-parent = <&tlmm>;
+		interrupts = <13 IRQ_TYPE_LEVEL_LOW>;

similarly here

otherwise:

Konrad