Skip to contentSkip to conversation

Add initial device tree for MSM8916 A3U/A5U/L8150

RFC PATCH In review Stephan Gerhold 2 participants 7 messages Jul 22, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover Add initial device tree for MSM8916 A3U/A5U/L8150

This patch series adds initial device trees for the Samsung Galaxy A3/A5 (2015) and the Wileyfox Swift (a re-branded Longcheer L8150), three smartphones based on the MSM8916 SoC. The device trees provde basic support for SDHCI, USB device mode and regulators.

The idea is to leverage the efforts that went into mainline for the Dragonboard 410c. So far this is going quite well:

In addition to the functionality provided by the initial device trees, Display/GPU, touchscreen, sound and sensors also seem to work in initial tests. Those will be added in future patch sets.

Changes in v2:
- Add initial device tree for Longcheer L8150
- Document new device tree bindings

v1: https://lore.kernel.org/linux-arm-msm/[email protected]/

Stephan Gerhold (4):
dt-bindings: vendor-prefixes: Add Longcheer Technology Co., Ltd.
dt-bindings: qcom: Document bindings for new MSM8916 devices
arm64: dts: qcom: Add device tree for Samsung Galaxy A3U/A5U
arm64: dts: qcom: Add device tree for Longcheer L8150

 .../devicetree/bindings/arm/qcom.yaml         |   8 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 arch/arm64/boot/dts/qcom/Makefile             |   3 +
 .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 228 +++++++++++++++++
 .../qcom/msm8916-samsung-a2015-common.dtsi    | 236 ++++++++++++++++++
 .../boot/dts/qcom/msm8916-samsung-a3u-eur.dts |  10 +
 .../boot/dts/qcom/msm8916-samsung-a5u-eur.dts |  10 +
 7 files changed, 497 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-a2015-common.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dts
Signature · 1 line
2.22.0
#1 lore raw

RFC PATCH v2 1/4 dt-bindings: vendor-prefixes: Add Longcheer Technology Co., Ltd.

Add the "longcheer" vendor prefix for Longcheer Technology Co., Ltd., an "industry-leading service provider of mobile phone design and product delivery". (http://www.longcheer.com)

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 6992bbbbffab..7bcf340b6f38 100644
@@ -529,6 +529,8 @@ patternProperties:
     description: Linear Technology Corporation
   "^logicpd,.*":
     description: Logic PD, Inc.
+  "^longcheer,.*":
+    description: Longcheer Technology (Shanghai) Co., Ltd.
   "^lsi,.*":
     description: LSI Corp. (LSI Logic)
   "^lwn,.*":
Signature · 1 line
2.22.0
#3 lore raw

RFC PATCH v2 2/4 dt-bindings: qcom: Document bindings for new MSM8916 devices

In reply to Stephan Gerhold

Document the new samsung,a3u/a5u-eur and longcheer,l8150 device tree bindings used in their device trees.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)
Documentation/devicetree/bindings/arm/qcom.yaml +8 -0
index 54ef6b6b9189..e39d8f02e33c 100644
@@ -45,6 +45,7 @@ description: |
   	mtp
   	sbc
   	hk01
+  	qrd
 
   The 'soc_version' and 'board_version' elements take the form of v<Major>.<Minor>
   where the minor number may be omitted when it's zero, i.e.  v1.0 is the same
@@ -115,6 +116,13 @@ properties:
           - const: qcom,msm8916-mtp
           - const: qcom,msm8916
 
+      - items:
+          - enum:
+              - longcheer,l8150
+              - samsung,a3u-eur
+              - samsung,a5u-eur
+          - const: qcom,msm8916
+
       - items:
           - const: qcom,msm8996-mtp
 
Signature · 1 line
2.22.0
#5 lore raw

RFC PATCH v2 3/4 arm64: dts: qcom: Add device tree for Samsung Galaxy A3U/A5U

In reply to Stephan Gerhold

Samsung Galaxy A3 (SM-A300FU) and Samsung Galaxy A5 (SM-A500FU) are smartphones using the MSM8916 SoC released in 2015.

Add a device tree for A3U and A5U with initial support for:
- SDHCI (internal and external storage)
- USB Device Mode
- UART (on USB connector via the SM5502 MUIC)
- Regulators

The two devices (and all other variants of A3/A5 released in 2015) are very similar, with some differences in display, touchscreen and sensors. The common parts are shared in msm8916-samsung-a2015-common.dtsi to reduce duplication.

The device tree is loosely based on apq8016-sbc.dtsi and the downstream kernel provided by Samsung, mixed with a lot of own research.

---
Changes in v2:
- Remove msm8916-samsung-a2015-common-pins.dtsi, move to main .dtsi
- Update s4/l17 regulator-max-microvolt, remove regulator-always-on
- Use muic extcon device for both VBUS/USB-ID in usb@78d9000
- Move i2c-muic out of soc { ... } node

 arch/arm64/boot/dts/qcom/Makefile             |   2 +
 .../qcom/msm8916-samsung-a2015-common.dtsi    | 236 ++++++++++++++++++
 .../boot/dts/qcom/msm8916-samsung-a3u-eur.dts |  10 +
 .../boot/dts/qcom/msm8916-samsung-a5u-eur.dts |  10 +
 4 files changed, 258 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-a2015-common.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dts
arch/arm64/boot/dts/qcom/Makefile +2 -0
index 0a7e5dfce6f7..5d725770d9c4 100644
@@ -3,6 +3,8 @@ dtb-$(CONFIG_ARCH_QCOM)	+= apq8016-sbc.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= apq8096-db820c.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= ipq8074-hk01.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8916-mtp.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= msm8916-samsung-a3u-eur.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= msm8916-samsung-a5u-eur.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8992-bullhead-rev-101.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8994-angler-rev-101.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8996-mtp.dtb
arch/arm64/boot/dts/qcom/msm8916-samsung-a2015-common.dtsi new file +236 -0

236 lines not on this page · raw message

arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts new file +10 -0
new file mode 100644
index 000000000000..d10f7ac5089f
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
+/dts-v1/;
+
+#include "msm8916-samsung-a2015-common.dtsi"
+
+/ {
+	model = "Samsung Galaxy A3U (EUR)";
+	compatible = "samsung,a3u-eur", "qcom,msm8916";
+};
arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dts new file +10 -0
new file mode 100644
index 000000000000..1aa59da98495
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
+/dts-v1/;
+
+#include "msm8916-samsung-a2015-common.dtsi"
+
+/ {
+	model = "Samsung Galaxy A5U (EUR)";
+	compatible = "samsung,a5u-eur", "qcom,msm8916";
+};
Signature · 1 line
2.22.0
#6 lore raw

RFC PATCH v2 4/4 arm64: dts: qcom: Add device tree for Longcheer L8150

In reply to Stephan Gerhold

Longcheer L8150 is a smartphone based on MSM8916 which is used in several rebrands like the Snapdragon 410 Android One devices or the Wileyfox Swift.

Add a device tree for L8150 with initial support for:
- SDHCI (internal and external storage)
- USB Device Mode
- UART
- Regulators

---
 arch/arm64/boot/dts/qcom/Makefile             |   1 +
 .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 228 ++++++++++++++++++
 2 files changed, 229 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
arch/arm64/boot/dts/qcom/Makefile +1 -0
index 5d725770d9c4..cb2d4de62668 100644
@@ -3,6 +3,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= apq8016-sbc.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= apq8096-db820c.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= ipq8074-hk01.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8916-mtp.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= msm8916-longcheer-l8150.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8916-samsung-a3u-eur.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8916-samsung-a5u-eur.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8992-bullhead-rev-101.dtb
arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts new file +228 -0

228 lines not on this page · raw message

Signature · 1 line
2.22.0
Reviewed-by on v2 1/4
#2 lore raw

Re: [RFC PATCH v2 1/4] dt-bindings: vendor-prefixes: Add Longcheer Technology Co., Ltd.

In reply to Stephan Gerhold
Quoted 9 lines · Stephan Gerhold

Add the "longcheer" vendor prefix for Longcheer Technology Co., Ltd., an "industry-leading service provider of mobile phone design and product delivery". (http://www.longcheer.com)

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Reviewed-by on v2 2/4
#4 lore raw

Re: [RFC PATCH v2 2/4] dt-bindings: qcom: Document bindings for new MSM8916 devices

In reply to Stephan Gerhold
Quoted 8 lines · Stephan Gerhold

Document the new samsung,a3u/a5u-eur and longcheer,l8150 device tree bindings used in their device trees.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)