Initial support for MSM8x26 Lumias
v2 cover Initial support for MSM8x26 Lumias
Hello,
The following patches:
- Add device tree files for Nokia/Microsoft Lumia phones based around the MSM8x26 family of Qualcomm chipsets, utilising a common tree
- Document this support
v1: https://lore.kernel.org/linux-arm-msm/[email protected]/
Changes in v2:
- Fix style issues and CHECK_DTBS warnings
- Squash common dt commit with a device commit
- Use both msm8926 and msm8226 compatibles for msm8926 devices
Rayyan Ansari (6):
dt-bindings: arm: qcom: Document MSM8x26-based Lumia phones
ARM: dts: qcom: add common dt for MSM8x26 Lumias along with Nokia
Lumia 630
ARM: dts: qcom: add device tree for Microsoft Lumia 640
ARM: dts: qcom: add device tree for Microsoft Lumia 640 XL
ARM: dts: qcom: add device tree for Nokia Lumia 735
ARM: dts: qcom: add device tree for Nokia Lumia 830
.../devicetree/bindings/arm/qcom.yaml | 10 + arch/arm/boot/dts/qcom/Makefile | 5 + .../qcom/qcom-msm8226-microsoft-common.dtsi | 329 ++++++++++++++++++ .../qcom/qcom-msm8226-microsoft-dempsey.dts | 17 + .../qcom/qcom-msm8226-microsoft-makepeace.dts | 17 + .../qcom-msm8226-microsoft-moneypenny.dts | 23 ++ .../qcom-msm8926-microsoft-superman-lte.dts | 52 +++ .../dts/qcom/qcom-msm8926-microsoft-tesla.dts | 66 ++++ 8 files changed, 519 insertions(+) create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-common.dtsi create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-dempsey.dts create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-makepeace.dts create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-moneypenny.dts create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-superman-lte.dts create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-tesla.dts
Signature · 1 line
2.41.0
PATCH v2 1/6 dt-bindings: arm: qcom: Document MSM8x26-based Lumia phones
Document MSM8226 and MSM8926 Lumias.
--- Documentation/devicetree/bindings/arm/qcom.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)
Documentation/devicetree/bindings/arm/qcom.yaml +10 -0
@@ -181,9 +181,19 @@ properties: - items: - enum: + - microsoft,dempsey + - microsoft,makepeace + - microsoft,moneypenny - samsung,s3ve3g - const: qcom,msm8226 + - items: + - enum: + - microsoft,superman-lte + - microsoft,tesla + - const: qcom,msm8926 + - const: qcom,msm8226 + - items: - enum: - sony,kanuti-tulip
Signature · 1 line
2.41.0
Re: [PATCH v2 1/6] dt-bindings: arm: qcom: Document MSM8x26-based Lumia phones
Quoted 3 lines · Rayyan Ansari
Document MSM8226 and MSM8926 Lumias.
Signed-off-by Rayyan Ansari <[email protected]>
Best regards,
Krzysztof
PATCH v2 2/6 ARM: dts: qcom: add common dt for MSM8x26 Lumias along with Nokia Lumia 630
In reply to Rayyan AnsariAdd a common device tree for Lumia phones based on the Qualcomm MSM8x26 family of chipsets.
Currently supports:
- Framebuffer
- Touchscreen
- Keys
- Regulators
- MMC
- USB
- UART
Also add an initial device tree for the Nokia Lumia 630, codenamed "moneypenny".
--- arch/arm/boot/dts/qcom/Makefile | 1 + .../qcom/qcom-msm8226-microsoft-common.dtsi | 329 ++++++++++++++++++ .../qcom-msm8226-microsoft-moneypenny.dts | 23 ++ 3 files changed, 353 insertions(+) create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-common.dtsi create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-moneypenny.dts
arch/arm/boot/dts/qcom/Makefile +1 -0
@@ -23,6 +23,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-ipq4019-ap.dk07.1-c2.dtb \ qcom-ipq8064-ap148.dtb \ qcom-ipq8064-rb3011.dtb \ + qcom-msm8226-microsoft-moneypenny.dtb \ qcom-msm8226-samsung-s3ve3g.dtb \ qcom-msm8660-surf.dtb \ qcom-msm8916-samsung-e5.dtb \
arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-common.dtsi new file +329 -0
329 lines not on this page · raw message
arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-moneypenny.dts new file +23 -0
@@ -0,0 +1,23 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023, Jack Matthews <[email protected]> + * Copyright (c) 2023, Ivaylo Ivanov <[email protected]> + * Copyright (c) 2023, Dominik Kobinski <[email protected]> + * Copyright (c) 2023, Rayyan Ansari <[email protected]> + */ + +/dts-v1/; + +#include "qcom-msm8226-microsoft-common.dtsi" + +/ { + model = "Nokia Lumia 630"; + compatible = "microsoft,moneypenny", "qcom,msm8226"; + chassis-type = "handset"; +}; + +&framebuffer { + width = <480>; + height = <854>; + stride = <(480 * 4)>; +};
Signature · 1 line
2.41.0
Re: [PATCH v2 2/6] ARM: dts: qcom: add common dt for MSM8x26 Lumias along with Nokia Lumia 630
Quoted 119 lines · Rayyan Ansari
Add a common device tree for Lumia phones based on the Qualcomm MSM8x26 family of chipsets.
Currently supports:
- Framebuffer
- Touchscreen
- Keys
- Regulators
- MMC
- USB
- UARTAlso add an initial device tree for the Nokia Lumia 630, codenamed "moneypenny".
Co-authored-by Dominik Kobinski <[email protected]>Co-authored-by Ivaylo Ivanov <[email protected]>Co-authored-by Jack Matthews <[email protected]>Signed-off-by Dominik Kobinski <[email protected]>Signed-off-by Ivaylo Ivanov <[email protected]>Signed-off-by Jack Matthews <[email protected]>Signed-off-by Rayyan Ansari <[email protected]>--- arch/arm/boot/dts/qcom/Makefile | 1 + .../qcom/qcom-msm8226-microsoft-common.dtsi | 329 ++++++++++++++++++ .../qcom-msm8226-microsoft-moneypenny.dts | 23 ++ 3 files changed, 353 insertions(+) create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-common.dtsi create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-moneypenny.dtsarch/arm/boot/dts/qcom/Makefile +1
-0@@ -23,6 +23,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-ipq4019-ap.dk07.1-c2.dtb \ qcom-ipq8064-ap148.dtb \ qcom-ipq8064-rb3011.dtb \ + qcom-msm8226-microsoft-moneypenny.dtb \ qcom-msm8226-samsung-s3ve3g.dtb \ qcom-msm8660-surf.dtb \ qcom-msm8916-samsung-e5.dtb \arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-common.dtsi new file +71
-0@@ -0,0 +1,329 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Common Board Device Tree for Microsoft MSM8x26-based Lumias + * + * Copyright (c) 2023, Jack Matthews <[email protected]> + * Copyright (c) 2023, Ivaylo Ivanov <[email protected]> + * Copyright (c) 2023, Dominik Kobinski <[email protected]> + * Copyright (c) 2023, Rayyan Ansari <[email protected]> + */ + +#include "qcom-msm8226.dtsi" +#include "qcom-pm8226.dtsi" +#include <dt-bindings/input/input.h> + +/* + * Delete all generic (msm8226.dtsi) reserved + * memory mappings which are different on these devices. + */ +/delete-node/ &smem_region; + +/ { + aliases { + mmc0 = &sdhc_1; /* eMMC */ + mmc1 = &sdhc_2; /* microSD */ + display0 = &framebuffer; + }; + + chosen { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + stdout-path = "display0"; + + framebuffer: framebuffer@3200000 { + compatible = "simple-framebuffer"; + reg = <0x3200000 0x800000>; + format = "a8r8g8b8"; + width = <720>; + height = <1280>; + stride = <(720 * 4)>; + + clocks = <&mmcc MDSS_AHB_CLK>, + <&mmcc MDSS_AXI_CLK>, + <&mmcc MDSS_BYTE0_CLK>, + <&mmcc MDSS_MDP_CLK>, + <&mmcc MDSS_PCLK0_CLK>, + <&mmcc MDSS_VSYNC_CLK>; + power-domains = <&mmcc MDSS_GDSC>; + }; + }; + + gpio_keys: gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&gpio_keys_default>; + pinctrl-names = "default"; + + label = "GPIO Buttons"; + + key-volume-up { + label = "Volume Up"; + gpios = <&tlmm 106 GPIO_ACTIVE_LOW>; + linux,code = <KEY_VOLUMEUP>; + }; + }; + + /* + * This device being a WP platform has a different + * memory layout than other Android based devices. + * This smem memory region is directly copied from
arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-common.dtsi line 81
Quoted 10 lines
arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-common.dtsi new file +10
-0+ * the original UEFI firmware. + */ + reserved-memory { + display_reserved: framebuffer@3200000 { + reg = <0x3200000 0x800000>; + no-map; + }; + + smem_region: smem@fa00000 { + reg = <0xfa00000 0x100000>;
Padding the addr field to 8 hex digits would make this easier to compare
[...]
arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-common.dtsi line 316
Quoted 6 lines
arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-common.dtsi new file +6
-0+ touchscreen_default: touchscreen-default-state { + irq-pins { + pins = "gpio17"; + function = "gpio"; + + drive-strength = <8>;
Drop newline above
Konrad
Bjorn Andersson
maintainerRe: [PATCH v2 2/6] ARM: dts: qcom: add common dt for MSM8x26 Lumias along with Nokia Lumia 630
In reply to Rayyan AnsariQuoted 12 lines · Rayyan Ansari
Add a common device tree for Lumia phones based on the Qualcomm MSM8x26 family of chipsets.
Currently supports:
- Framebuffer
- Touchscreen
- Keys
- Regulators
- MMC
- USB
- UART
Quoted 4 lines
Also add an initial device tree for the Nokia Lumia 630, codenamed "moneypenny".
Co-authored-by Dominik Kobinski <[email protected]>
I believe you meant "Co-developed-by" here, and it needs to be directly adjacent to the s-o-b. Can you please update these, and make checkpatch --strict happy?
Regards,
Bjorn
Quoted 6 lines
Co-authored-by Ivaylo Ivanov <[email protected]>Co-authored-by Jack Matthews <[email protected]>Signed-off-by Dominik Kobinski <[email protected]>Signed-off-by Ivaylo Ivanov <[email protected]>Signed-off-by Jack Matthews <[email protected]>Signed-off-by Rayyan Ansari <[email protected]>
PATCH v2 3/6 ARM: dts: qcom: add device tree for Microsoft Lumia 640
In reply to Rayyan AnsariAdd an initial device tree for the Microsoft Lumia 640, codenamed "dempsey".
--- arch/arm/boot/dts/qcom/Makefile | 1 + .../dts/qcom/qcom-msm8226-microsoft-dempsey.dts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-dempsey.dts
arch/arm/boot/dts/qcom/Makefile +1 -0
@@ -23,6 +23,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-ipq4019-ap.dk07.1-c2.dtb \ qcom-ipq8064-ap148.dtb \ qcom-ipq8064-rb3011.dtb \ + qcom-msm8226-microsoft-dempsey.dtb \ qcom-msm8226-microsoft-moneypenny.dtb \ qcom-msm8226-samsung-s3ve3g.dtb \ qcom-msm8660-surf.dtb \
arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-dempsey.dts new file +17 -0
@@ -0,0 +1,17 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023, Jack Matthews <[email protected]> + * Copyright (c) 2023, Ivaylo Ivanov <[email protected]> + * Copyright (c) 2023, Dominik Kobinski <[email protected]> + * Copyright (c) 2023, Rayyan Ansari <[email protected]> + */ + +/dts-v1/; + +#include "qcom-msm8226-microsoft-common.dtsi" + +/ { + model = "Microsoft Lumia 640"; + compatible = "microsoft,dempsey", "qcom,msm8226"; + chassis-type = "handset"; +};
Signature · 1 line
2.41.0
PATCH v2 4/6 ARM: dts: qcom: add device tree for Microsoft Lumia 640 XL
In reply to Rayyan AnsariAdd an initial device tree for the Microsoft Lumia 640 XL, codenamed "makepeace".
--- arch/arm/boot/dts/qcom/Makefile | 1 + .../qcom/qcom-msm8226-microsoft-makepeace.dts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-makepeace.dts
arch/arm/boot/dts/qcom/Makefile +1 -0
@@ -24,6 +24,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-ipq8064-ap148.dtb \ qcom-ipq8064-rb3011.dtb \ qcom-msm8226-microsoft-dempsey.dtb \ + qcom-msm8226-microsoft-makepeace.dtb \ qcom-msm8226-microsoft-moneypenny.dtb \ qcom-msm8226-samsung-s3ve3g.dtb \ qcom-msm8660-surf.dtb \
arch/arm/boot/dts/qcom/qcom-msm8226-microsoft-makepeace.dts new file +17 -0
@@ -0,0 +1,17 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023, Jack Matthews <[email protected]> + * Copyright (c) 2023, Ivaylo Ivanov <[email protected]> + * Copyright (c) 2023, Dominik Kobinski <[email protected]> + * Copyright (c) 2023, Rayyan Ansari <[email protected]> + */ + +/dts-v1/; + +#include "qcom-msm8226-microsoft-common.dtsi" + +/ { + model = "Microsoft Lumia 640 XL"; + compatible = "microsoft,makepeace", "qcom,msm8226"; + chassis-type = "handset"; +};
Signature · 1 line
2.41.0
PATCH v2 5/6 ARM: dts: qcom: add device tree for Nokia Lumia 735
In reply to Rayyan AnsariAdd an initial device tree for the Nokia Lumia 735, codenamed "superman-lte".
--- arch/arm/boot/dts/qcom/Makefile | 1 + .../qcom-msm8926-microsoft-superman-lte.dts | 52 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-superman-lte.dts
arch/arm/boot/dts/qcom/Makefile +1 -0
@@ -32,6 +32,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-msm8916-samsung-e7.dtb \ qcom-msm8916-samsung-grandmax.dtb \ qcom-msm8916-samsung-serranove.dtb \ + qcom-msm8926-microsoft-superman-lte.dtb \ qcom-msm8960-cdp.dtb \ qcom-msm8960-samsung-expressatt.dtb \ qcom-msm8974-lge-nexus5-hammerhead.dtb \
arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-superman-lte.dts new file +52 -0
52 lines not on this page · raw message
Signature · 1 line
2.41.0
Re: [PATCH v2 5/6] ARM: dts: qcom: add device tree for Nokia Lumia 735
Quoted 75 lines · Rayyan Ansari
Add an initial device tree for the Nokia Lumia 735, codenamed "superman-lte".
Co-authored-by Dominik Kobinski <[email protected]>Co-authored-by Ivaylo Ivanov <[email protected]>Co-authored-by Jack Matthews <[email protected]>Signed-off-by Dominik Kobinski <[email protected]>Signed-off-by Ivaylo Ivanov <[email protected]>Signed-off-by Jack Matthews <[email protected]>Signed-off-by Rayyan Ansari <[email protected]>--- arch/arm/boot/dts/qcom/Makefile | 1 + .../qcom-msm8926-microsoft-superman-lte.dts | 52 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-superman-lte.dtsarch/arm/boot/dts/qcom/Makefile +1
-0@@ -32,6 +32,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-msm8916-samsung-e7.dtb \ qcom-msm8916-samsung-grandmax.dtb \ qcom-msm8916-samsung-serranove.dtb \ + qcom-msm8926-microsoft-superman-lte.dtb \ qcom-msm8960-cdp.dtb \ qcom-msm8960-samsung-expressatt.dtb \ qcom-msm8974-lge-nexus5-hammerhead.dtb \arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-superman-lte.dts new file +41
-0@@ -0,0 +1,52 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023, Jack Matthews <[email protected]> + * Copyright (c) 2023, Ivaylo Ivanov <[email protected]> + * Copyright (c) 2023, Dominik Kobinski <[email protected]> + * Copyright (c) 2023, Rayyan Ansari <[email protected]> + */ + +/dts-v1/; + +#include "qcom-msm8226-microsoft-common.dtsi" + +/ { + model = "Nokia Lumia 735"; + compatible = "microsoft,superman-lte", "qcom,msm8926", "qcom,msm8226"; + chassis-type = "handset"; +}; + +&blsp1_i2c3 { + status = "okay"; + + touchscreen@4b { + compatible = "syna,rmi4-i2c"; + reg = <0x4b>; + + interrupts-extended = <&tlmm 17 IRQ_TYPE_EDGE_FALLING>; + vdd-supply = <&pm8226_l15>; + vio-supply = <&pm8226_l6>; + + pinctrl-0 = <&touchscreen_default>; + pinctrl-names = "default"; + + #address-cells = <1>; + #size-cells = <0>; + + rmi4-f01@1 { + reg = <0x01>; + syna,nosleep-mode = <1>; + }; + + rmi4-f11@11 {
arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-superman-lte.dts line 51
Quoted 10 lines
arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-superman-lte.dts new file +10
-0+ reg = <0x11>; + syna,sensor-type = <1>; + }; + }; +}; + +&blsp1_i2c5 { + status = "disabled"; + + /delete-node/ touchscreen@4b;
use /delete-node/ &touchscreen (need to add a label in common dt), it's less error-prone
Konrad
PATCH v2 6/6 ARM: dts: qcom: add device tree for Nokia Lumia 830
In reply to Rayyan AnsariAdd an initial device tree for the Nokia Lumia 830, codenamed "tesla".
--- arch/arm/boot/dts/qcom/Makefile | 1 + .../dts/qcom/qcom-msm8926-microsoft-tesla.dts | 66 +++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-tesla.dts
arch/arm/boot/dts/qcom/Makefile +1 -0
@@ -33,6 +33,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-msm8916-samsung-grandmax.dtb \ qcom-msm8916-samsung-serranove.dtb \ qcom-msm8926-microsoft-superman-lte.dtb \ + qcom-msm8926-microsoft-tesla.dtb \ qcom-msm8960-cdp.dtb \ qcom-msm8960-samsung-expressatt.dtb \ qcom-msm8974-lge-nexus5-hammerhead.dtb \
arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-tesla.dts new file +66 -0
66 lines not on this page · raw message
Signature · 1 line
2.41.0
Re: [PATCH v2 6/6] ARM: dts: qcom: add device tree for Nokia Lumia 830
Quoted 13 lines · Rayyan Ansari
Add an initial device tree for the Nokia Lumia 830, codenamed "tesla".
Co-authored-by Dominik Kobinski <[email protected]>Co-authored-by Ivaylo Ivanov <[email protected]>Co-authored-by Jack Matthews <[email protected]>Signed-off-by Dominik Kobinski <[email protected]>Signed-off-by Ivaylo Ivanov <[email protected]>Signed-off-by Jack Matthews <[email protected]>Signed-off-by Rayyan Ansari <[email protected]>---
+&blsp1_i2c5 {
arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-tesla.dts line 51
Quoted 3 lines
arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-tesla.dts new file +3
-0+ status = "disabled"; + + /delete-node/ touchscreen@4b;
same as patch5
Konrad