Add Initial Support For MSM8952, Add General Mobile Shamrock
Subsystems (16)
v3 cover Add Initial Support For MSM8952, Add General Mobile Shamrock
MSM8952 is a SoC with 8 core cpu and Adreno 405 gpu.
Ported without uart connection. ramoops and usb mainly used to debug.
USB is not enabled in this series because it depends on the not yet upstreamed (and not developed by me) pmi8950_smbcharger.
General Mobile shamrock display panel driver is generated using MSM8916's mdss dsi panel driver generator and tested with it. I didn't include it.
The GCC and DTS files are derived from existing Qualcomm source files. Original copyright notices are retained.
GCC is based on msm8939's gcc file.
SoC device tree is based on MSM8937 file.
in some downstreams MSM8952 GCC is merged with MSM8917 and MSM8937's. But upstreamed MSM8917 is based on different GCC and different pll structure. I have no way to verify MSM8952 pll so I am not sure about how correct pll structure is.
Pinctrl driver was submitted and merged here:
https://lore.kernel.org/all/[email protected]/
---
Changes in v3:
- Improved GCC driver, also rewrote resets part
- Rewrote the dt-binding side of gcc
- Reformatted Device tree files with dt-check-style tool
- Added reset to sdhci1 and sdhci2
- Added cx regulator to gcc
- Added gcc commit messages that it is a derived driver
- Dropped adsp_mem, renamed lpass_mem to adsp_mem
- Changed tusb320 interrupt from rising to falling as downstream uses
- Link to v2: https://patch.msgid.link/20260916-msm8952-initial-support-v2-0-798c2602dde1@mainlining.org
Changes in v2:
- Changed device dts file as David's and Konrad's suggestions
- Removed accidental duplicated clock assigments and fixed wrong gcc gp1,gp2
and gp3 parent_maps
- Updated commit messages to make it wrapped at 72 character.
- Fixed spi1 tlmm node naming
- Added remaining spi and i2c nodes
- Wired up mpm
- Add mmio-sram to rpm_msg_ram
- Reformatted msm8952.dtsi
- Removed rpmcc-msm8952 driver entry and replaced it with rpmcc-msm8976
- Merged sdhci tlmm pins to single nodes, now it is similar to existing SoCs
- Rebased to latest linux-next, now storage works
- Removed polling-delay properties from tsens
- Link to v1: https://lore.kernel.org/r/20260912-msm8952-initial-support-v1-0-0e742578b524@mainlining.org
---
Muzaffer Kadir (19):
dt-bindings: clock: qcom: Add MSM8952 global clock controller
clk: qcom: Add global clock controller driver for MSM8952
dt-bindings: nvmem: Add compatible for MSM8952
dt-bindings: power: rpmpd: Add MSM8952 power domains
dt-bindings: mmc: sdhci-msm: Add MSM8952 compatible
dt-bindings: vendor-prefixes: Add General Mobile
dt-bindings: arm: qcom: Document MSM8952 SoC binding
dt-bindings: iommu: qcom,iommu: Add MSM8952 IOMMU to SMMUv2 compatibles
dt-bindings: mfd: qcom,tcsr: Add compatible for MSM8952
dt-bindings: display/msm: qcom, mdp5: Add MSM8952 compatible
dt-bindings: firmware: qcom,scm: Document MSM8952 SCM
dt-bindings: clock: qcom,rpmcc: Add MSM8952 compatible
drm: msm: mdp5: Add MDP5 configuration for MSM8952
soc: qcom: ubwc: Add UBWC config for MSM8952
dt-bindings: thermal: tsens: Add MSM8952
thermal: qcom: tsens: Add support for MSM8952 tsens
arm64: dts: qcom: Add initial support for MSM8952
dt-bindings: input: touchscreen: goodix: Add binding for GT970
arm64: dts: qcom: generalmobile-shamrock: new device
Documentation/devicetree/bindings/arm/qcom.yaml | 6 + .../bindings/clock/qcom,gcc-msm8952.yaml | 65 + .../devicetree/bindings/clock/qcom,rpmcc.yaml | 5 + .../devicetree/bindings/display/msm/qcom,mdp5.yaml | 1 + .../devicetree/bindings/firmware/qcom,scm.yaml | 3 + .../bindings/input/touchscreen/goodix.yaml | 35 +- .../devicetree/bindings/iommu/qcom,iommu.yaml | 1 + .../devicetree/bindings/mfd/qcom,tcsr.yaml | 1 + .../devicetree/bindings/mmc/qcom,sdhci-msm.yaml | 1 + .../devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 + .../devicetree/bindings/power/qcom,rpmpd.yaml | 1 + .../devicetree/bindings/thermal/qcom-tsens.yaml | 1 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm64/boot/dts/qcom/Makefile | 1 + .../dts/qcom/msm8952-generalmobile-shamrock.dts | 435 +++ arch/arm64/boot/dts/qcom/msm8952.dtsi | 2696 +++++++++++++++ drivers/clk/qcom/Kconfig | 10 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/gcc-msm8952.c | 3548 ++++++++++++++++++++ drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 81 + drivers/soc/qcom/ubwc_config.c | 1 + drivers/thermal/qcom/tsens-v1.c | 44 + drivers/thermal/qcom/tsens.c | 3 + drivers/thermal/qcom/tsens.h | 2 +- include/dt-bindings/clock/qcom,gcc-msm8952.h | 215 ++ 25 files changed, 7144 insertions(+), 16 deletions(-)
---
base-commit: e657a464aba873f5eaf3ca821b6e4016674492d6
change-id: 20260909-msm8952-initial-support-60a059c2e15e
Best regards,
Signature · 1 line
Muzaffer Kadir <[email protected]>
PATCH v3 1/19 dt-bindings: clock: qcom: Add MSM8952 global clock controller
Add a device tree binding to describe clocks, resets and power domains provided by the global clock controller on MSM8952 SoC.
MSM8952 GCC driver is mainly based on MSM8939 GCC driver.
--- .../bindings/clock/qcom,gcc-msm8952.yaml | 65 +++++++ include/dt-bindings/clock/qcom,gcc-msm8952.h | 215 +++++++++++++++++++++ 2 files changed, 280 insertions(+)
Documentation/devicetree/bindings/clock/qcom,gcc-msm8952.yaml new file +65 -0
@@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,gcc-msm8952.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Global Clock & Reset Controller on MSM8952 + +maintainers: + - Muzaffer Kadir <[email protected]> + +description: | + Qualcomm global clock control module provides the clocks, resets and power + domains on MSM8952. + + See also: + include/dt-bindings/clock/qcom,gcc-msm8952.h + +properties: + compatible: + enum: + - qcom,gcc-msm8952 + + clocks: + items: + - description: XO source + - description: Always-on XO source + - description: DSI phy instance 0 dsi clock + - description: DSI phy instance 0 byte clock + + power-domains: + items: + - description: CX power domain + +required: + - compatible + - clocks + - power-domains + - '#power-domain-cells' + +allOf: + - $ref: qcom,gcc.yaml# + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/clock/qcom,dsi-phy-28nm.h> + #include <dt-bindings/clock/qcom,gcc-msm8952.h> + #include <dt-bindings/clock/qcom,rpmcc.h> + #include <dt-bindings/power/qcom-rpmpd.h> + + clock-controller@1800000 { + compatible = "qcom,gcc-msm8952"; + reg = <0x01800000 0x80000>; + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, + <&rpmcc RPM_SMD_XO_A_CLK_SRC>, + <&mdss_dsi0_phy DSI_PIXEL_PLL_CLK>, + <&mdss_dsi0_phy DSI_BYTE_PLL_CLK>; + power-domains = <&rpmpd RPMPD_VDDCX>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; +...
include/dt-bindings/clock/qcom,gcc-msm8952.h new file +215 -0
215 lines not on this page · raw message
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 01/19] dt-bindings: clock: qcom: Add MSM8952 global clock controller
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 8 lines
From: Muzaffer Kadir <[email protected]>
Add a device tree binding to describe clocks, resets and power domains provided by the global clock controller on MSM8952 SoC.
MSM8952 GCC driver is mainly based on MSM8939 GCC driver.
Signed-off-by Muzaffer Kadir <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=1
Re: [PATCH v3 01/19] dt-bindings: clock: qcom: Add MSM8952 global clock controller
In reply to Muzaffer KadirQuoted 10 lines · Muzaffer Kadir
Add a device tree binding to describe clocks, resets and power domains provided by the global clock controller on MSM8952 SoC.
MSM8952 GCC driver is mainly based on MSM8939 GCC driver.
Signed-off-by Muzaffer Kadir <[email protected]>--- .../bindings/clock/qcom,gcc-msm8952.yaml | 65 +++++++ include/dt-bindings/clock/qcom,gcc-msm8952.h | 215 +++++++++++++++++++++ 2 files changed, 280 insertions(+)
Best regards,
Krzysztof
PATCH v3 2/19 clk: qcom: Add global clock controller driver for MSM8952
In reply to Muzaffer KadirThis driver provides clocks, resets and power domains needed for various components of the MSM8952.
Some downstreams merge MSM8952 to MSM8917 and MSM8937. But upstreamed GCC driver for 8917 series has different pll structure and ported from different GCC driver.
MSM8952 GCC driver is mainly based on MSM8939 GCC driver, with some parts added from existing other GCC drivers.
--- drivers/clk/qcom/Kconfig | 10 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/gcc-msm8952.c | 3548 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 3559 insertions(+)
drivers/clk/qcom/Kconfig +10 -0
@@ -778,6 +778,16 @@ config MSM_GCC_8939 Say Y if you want to use devices such as UART, SPI i2c, USB, SD/eMMC, display, graphics, camera etc. +config MSM_GCC_8952 + tristate "MSM8952 Global Clock Controller" + depends on ARM64 || COMPILE_TEST + select QCOM_GDSC + default ARCH_QCOM + help + Support for the global clock controller on MSM8952 devices. + Say Y if you want to use devices such as UART, SPI i2c, USB, + SD/eMMC, display, graphics, camera etc. + config MSM_GCC_8960 tristate "APQ8064/MSM8960 Global Clock Controller" depends on ARM || COMPILE_TEST
drivers/clk/qcom/Makefile +1 -0
@@ -89,6 +89,7 @@ obj-$(CONFIG_MSM_GCC_8909) += gcc-msm8909.o obj-$(CONFIG_MSM_GCC_8916) += gcc-msm8916.o obj-$(CONFIG_MSM_GCC_8917) += gcc-msm8917.o obj-$(CONFIG_MSM_GCC_8939) += gcc-msm8939.o +obj-$(CONFIG_MSM_GCC_8952) += gcc-msm8952.o obj-$(CONFIG_MSM_GCC_8953) += gcc-msm8953.o obj-$(CONFIG_MSM_GCC_8960) += gcc-msm8960.o obj-$(CONFIG_MSM_GCC_8974) += gcc-msm8974.o
drivers/clk/qcom/gcc-msm8952.c new file +3548 -0
2,977 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.55.0
Part of the diff is not shown here. View the raw message.
[email protected]
AI reviewRe: [PATCH v3 02/19] clk: qcom: Add global clock controller driver for MSM8952
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 9 lines
From: Muzaffer Kadir <[email protected]>
This driver provides clocks, resets and power domains needed for various components of the MSM8952.
Some downstreams merge MSM8952 to MSM8917 and MSM8937. But upstreamed GCC driver for 8917 series has different pll structure and ported from different GCC driver.
Quoted 5 lines
MSM8952 GCC driver is mainly based on MSM8939 GCC driver, with some parts added from existing other GCC drivers.
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=2
Re: [PATCH v3 02/19] clk: qcom: Add global clock controller driver for MSM8952
In reply to Muzaffer KadirQuoted 9 lines · On 26-09-21 21:18:53, Muzaffer Kadir via B4 Relay wrote:
From: Muzaffer Kadir <[email protected]>
This driver provides clocks, resets and power domains needed for various components of the MSM8952.
Some downstreams merge MSM8952 to MSM8917 and MSM8937. But upstreamed GCC driver for 8917 series has different pll structure and ported from different GCC driver.
Quoted 5 lines
MSM8952 GCC driver is mainly based on MSM8939 GCC driver, with some parts added from existing other GCC drivers.
PATCH v3 3/19 dt-bindings: nvmem: Add compatible for MSM8952
In reply to Muzaffer KadirDocument the QFPROM block found on MSM8952.
--- Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml +1 -0
@@ -37,6 +37,7 @@ properties: - qcom,msm8916-qfprom - qcom,msm8917-qfprom - qcom,msm8937-qfprom + - qcom,msm8952-qfprom - qcom,msm8960-qfprom - qcom,msm8974-qfprom - qcom,msm8976-qfprom
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 03/19] dt-bindings: nvmem: Add compatible for MSM8952
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 6 lines
From: Muzaffer Kadir <[email protected]>
Document the QFPROM block found on MSM8952.
Signed-off-by Muzaffer Kadir <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=3
PATCH v3 4/19 dt-bindings: power: rpmpd: Add MSM8952 power domains
In reply to Muzaffer KadirDocument the compatible for the rpmpd found on MSM8952.
--- Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +1 -0
@@ -76,6 +76,7 @@ properties: - items: - enum: - qcom,msm8937-rpmpd + - qcom,msm8952-rpmpd - const: qcom,msm8917-rpmpd - items: - enum:
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 04/19] dt-bindings: power: rpmpd: Add MSM8952 power domains
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 5 lines
From: Muzaffer Kadir <[email protected]>
Document the compatible for the rpmpd found on MSM8952.
Signed-off-by Muzaffer Kadir <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=4
Re: [PATCH v3 04/19] dt-bindings: power: rpmpd: Add MSM8952 power domains
In reply to Muzaffer KadirQuoted 6 lines · Muzaffer Kadir
Document the compatible for the rpmpd found on MSM8952.
Signed-off-by Muzaffer Kadir <[email protected]>--- Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 + 1 file changed, 1 insertion(+)
Best regards,
Krzysztof
Re: [PATCH v3 04/19] dt-bindings: power: rpmpd: Add MSM8952 power domains
In reply to Muzaffer KadirQuoted 6 lines · On Mon, Sep 21, 2026 at 8:19 PM Muzaffer Kadir via B4 Relay…
From: Muzaffer Kadir <[email protected]>
Document the compatible for the rpmpd found on MSM8952.
Signed-off-by Muzaffer Kadir <[email protected]>
Applied for next, thanks!
Kind regards
Uffe
Quoted 21 lines
--- Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +1
-1@@ -76,6 +76,7 @@ properties: - items: - enum: - qcom,msm8937-rpmpd + - qcom,msm8952-rpmpd - const: qcom,msm8917-rpmpd - items: - enum: --2.55.0
PATCH v3 5/19 dt-bindings: mmc: sdhci-msm: Add MSM8952 compatible
In reply to Muzaffer KadirDocument the compatible string for the SDHCI controller on the MSM8952 platform.
--- Documentation/devicetree/bindings/mmc/qcom,sdhci-msm.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/mmc/qcom,sdhci-msm.yaml +1 -0
@@ -26,6 +26,7 @@ properties: - qcom,ipq4019-sdhci - qcom,ipq8074-sdhci - qcom,msm8226-sdhci + - qcom,msm8952-sdhci - qcom,msm8953-sdhci - qcom,msm8974-sdhci - qcom,msm8976-sdhci
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 05/19] dt-bindings: mmc: sdhci-msm: Add MSM8952 compatible
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 6 lines
From: Muzaffer Kadir <[email protected]>
Document the compatible string for the SDHCI controller on the MSM8952 platform.
Signed-off-by Muzaffer Kadir <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=5
Re: [PATCH v3 05/19] dt-bindings: mmc: sdhci-msm: Add MSM8952 compatible
In reply to Muzaffer KadirQuoted 4 lines · Muzaffer Kadir
Document the compatible string for the SDHCI controller on the MSM8952 platform.
Signed-off-by Muzaffer Kadir <[email protected]>
Best regards,
Krzysztof
Re: [PATCH v3 05/19] dt-bindings: mmc: sdhci-msm: Add MSM8952 compatible
In reply to Muzaffer KadirQuoted 7 lines · On Mon, Sep 21, 2026 at 8:19 PM Muzaffer Kadir via B4 Relay…
From: Muzaffer Kadir <[email protected]>
Document the compatible string for the SDHCI controller on the MSM8952 platform.
Signed-off-by Muzaffer Kadir <[email protected]>
Applied for next, thanks!
Kind regards
Uffe
Quoted 21 lines
--- Documentation/devicetree/bindings/mmc/qcom,sdhci-msm.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/mmc/qcom,sdhci-msm.yaml +1
-1@@ -26,6 +26,7 @@ properties: - qcom,ipq4019-sdhci - qcom,ipq8074-sdhci - qcom,msm8226-sdhci + - qcom,msm8952-sdhci - qcom,msm8953-sdhci - qcom,msm8974-sdhci - qcom,msm8976-sdhci --2.55.0
PATCH v3 6/19 dt-bindings: vendor-prefixes: Add General Mobile
In reply to Muzaffer KadirAdd vendor prefix for General Mobile.
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -662,6 +662,8 @@ patternProperties: description: Gemei Digital Technology Co., Ltd. "^gemtek,.*": description: Gemtek Technology Co., Ltd. + "^generalmobile,.*": + description: General Mobile Fzc. "^genesys,.*": description: Genesys Logic, Inc. "^genexis,.*":
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 06/19] dt-bindings: vendor-prefixes: Add General Mobile
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 7 lines
From: Muzaffer Kadir <[email protected]>
Add vendor prefix for General Mobile.
Signed-off-by Muzaffer Kadir <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=6
PATCH v3 7/19 dt-bindings: arm: qcom: Document MSM8952 SoC binding
In reply to Muzaffer KadirDocument the MSM8952 and add General Mobile shamrock to it.
--- Documentation/devicetree/bindings/arm/qcom.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/qcom.yaml +6 -0
@@ -297,6 +297,11 @@ properties: - wingtech,wt82918hdhw39 - const: qcom,msm8939 + - items: + - enum: + - generalmobile,shamrock + - const: qcom,msm8952 + - items: - enum: - flipkart,rimob
@@ -1342,6 +1347,7 @@ allOf: - qcom,msm8917 - qcom,msm8937 - qcom,msm8939 + - qcom,msm8952 - qcom,msm8953 - qcom,msm8956 - qcom,msm8992
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 07/19] dt-bindings: arm: qcom: Document MSM8952 SoC binding
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 6 lines
From: Muzaffer Kadir <[email protected]>
Document the MSM8952 and add General Mobile shamrock to it.
Reviewed-by Krzysztof Kozlowski <[email protected]>Signed-off-by Muzaffer Kadir <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=7
PATCH v3 8/19 dt-bindings: iommu: qcom,iommu: Add MSM8952 IOMMU to SMMUv2 compatibles
In reply to Muzaffer KadirAdd MSM8952 compatible string with "qcom,msm-iommu-v2" as fallback for the MSM8952 IOMMU which is compatible with Qualcomm's secure fw "SMMU v2" implementation.
--- Documentation/devicetree/bindings/iommu/qcom,iommu.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/iommu/qcom,iommu.yaml +1 -0
@@ -27,6 +27,7 @@ properties: - const: qcom,msm-iommu-v1 - items: - enum: + - qcom,msm8952-iommu - qcom,msm8953-iommu - qcom,msm8976-iommu - const: qcom,msm-iommu-v2
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 08/19] dt-bindings: iommu: qcom,iommu: Add MSM8952 IOMMU to SMMUv2 compatibles
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 7 lines
From: Muzaffer Kadir <[email protected]>
Add MSM8952 compatible string with "qcom,msm-iommu-v2" as fallback for the MSM8952 IOMMU which is compatible with Qualcomm's secure fw "SMMU v2" implementation.
Signed-off-by Muzaffer Kadir <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=8
Re: [PATCH v3 08/19] dt-bindings: iommu: qcom,iommu: Add MSM8952 IOMMU to SMMUv2 compatibles
In reply to Muzaffer KadirQuoted 8 lines · Muzaffer Kadir
Add MSM8952 compatible string with "qcom,msm-iommu-v2" as fallback for the MSM8952 IOMMU which is compatible with Qualcomm's secure fw "SMMU v2" implementation.
Signed-off-by Muzaffer Kadir <[email protected]>--- Documentation/devicetree/bindings/iommu/qcom,iommu.yaml | 1 + 1 file changed, 1 insertion(+)
Best regards,
Krzysztof
PATCH v3 9/19 dt-bindings: mfd: qcom,tcsr: Add compatible for MSM8952
In reply to Muzaffer KadirDocument the qcom,tcsr-msm8952 compatible.
--- Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml +1 -0
@@ -60,6 +60,7 @@ properties: - qcom,tcsr-msm8916 - qcom,tcsr-msm8917 - qcom,tcsr-msm8937 + - qcom,tcsr-msm8952 - qcom,tcsr-msm8953 - qcom,tcsr-msm8960 - qcom,tcsr-msm8974
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 09/19] dt-bindings: mfd: qcom,tcsr: Add compatible for MSM8952
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 5 lines
From: Muzaffer Kadir <[email protected]>
Document the qcom,tcsr-msm8952 compatible.
Signed-off-by Muzaffer Kadir <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=9
Re: [PATCH v3 09/19] dt-bindings: mfd: qcom,tcsr: Add compatible for MSM8952
In reply to Muzaffer KadirQuoted 6 lines · Muzaffer Kadir
Document the qcom,tcsr-msm8952 compatible.
Signed-off-by Muzaffer Kadir <[email protected]>--- Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml | 1 + 1 file changed, 1 insertion(+)
Best regards,
Krzysztof
PATCH v3 10/19 dt-bindings: display/msm: qcom, mdp5: Add MSM8952 compatible
In reply to Muzaffer KadirAdd the compatible for the MDP5 found on MSM8952.
--- Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml +1 -0
@@ -26,6 +26,7 @@ properties: - qcom,msm8916-mdp5 - qcom,msm8917-mdp5 - qcom,msm8937-mdp5 + - qcom,msm8952-mdp5 - qcom,msm8953-mdp5 - qcom,msm8974-mdp5 - qcom,msm8976-mdp5
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 10/19] dt-bindings: display/msm: qcom, mdp5: Add MSM8952 compatible
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 5 lines
From: Muzaffer Kadir <[email protected]>
Add the compatible for the MDP5 found on MSM8952.
Signed-off-by Muzaffer Kadir <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=10
Re: [PATCH v3 10/19] dt-bindings: display/msm: qcom, mdp5: Add MSM8952 compatible
In reply to Muzaffer KadirDocumentation/devicetree/bindings/display/msm/qcom,mdp5.yaml
Quoted 8 lines · Muzaffer Kadir
Add the compatible for the MDP5 found on MSM8952.
Signed-off-by Muzaffer Kadir <[email protected]>--- Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml +0
-0
Best regards,
Krzysztof
PATCH v3 11/19 dt-bindings: firmware: qcom,scm: Document MSM8952 SCM
In reply to Muzaffer KadirDocument the scm compatible for msm8952 SoC.
--- Documentation/devicetree/bindings/firmware/qcom,scm.yaml | 3 +++ 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/firmware/qcom,scm.yaml +3 -0
@@ -45,6 +45,7 @@ properties: - qcom,scm-msm8660 - qcom,scm-msm8916 - qcom,scm-msm8937 + - qcom,scm-msm8952 - qcom,scm-msm8953 - qcom,scm-msm8960 - qcom,scm-msm8974
@@ -153,6 +154,7 @@ allOf: - qcom,scm-msm8660 - qcom,scm-msm8916 - qcom,scm-msm8937 + - qcom,scm-msm8952 - qcom,scm-msm8953 - qcom,scm-msm8960 - qcom,scm-msm8974
@@ -199,6 +201,7 @@ allOf: - qcom,scm-msm8226 - qcom,scm-msm8916 - qcom,scm-msm8937 + - qcom,scm-msm8952 - qcom,scm-msm8953 - qcom,scm-msm8974 - qcom,scm-msm8976
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 11/19] dt-bindings: firmware: qcom,scm: Document MSM8952 SCM
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 5 lines
From: Muzaffer Kadir <[email protected]>
Document the scm compatible for msm8952 SoC.
Signed-off-by Muzaffer Kadir <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=11
Re: [PATCH v3 11/19] dt-bindings: firmware: qcom,scm: Document MSM8952 SCM
In reply to Muzaffer KadirQuoted 6 lines · Muzaffer Kadir
Document the scm compatible for msm8952 SoC.
Signed-off-by Muzaffer Kadir <[email protected]>--- Documentation/devicetree/bindings/firmware/qcom,scm.yaml | 3 +++ 1 file changed, 3 insertions(+)
Best regards,
Krzysztof
PATCH v3 12/19 dt-bindings: clock: qcom,rpmcc: Add MSM8952 compatible
In reply to Muzaffer KadirDocument the rpmcc found on MSM8952.
--- Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml +5 -0
@@ -56,6 +56,11 @@ properties: - qcom,rpmcc-shikra - const: qcom,rpmcc-qcm2290 - const: qcom,rpmcc + - items: + - enum: + - qcom,rpmcc-msm8952 + - const: qcom,rpmcc-msm8976 + - const: qcom,rpmcc '#clock-cells': const: 1
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 12/19] dt-bindings: clock: qcom,rpmcc: Add MSM8952 compatible
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] dt-bindings: clock: missing msm8952 in constraints conditional block --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: clock: missing msm8952 in constraints conditional block --
commit 08e2cd81c0f804c9a9db2e8d8d60babe26ca3d55
Author: Muzaffer Kadir <[email protected]>
dt-bindings: clock: qcom,rpmcc: Add MSM8952 compatible
Document the rpmcc found on MSM8952.
Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml properties: · line 63
Quoted 12 lines
Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml +5
-0@@ -56,6 +56,11 @@ properties: - qcom,rpmcc-shikra - const: qcom,rpmcc-qcm2290 - const: qcom,rpmcc + - items: + - enum: + - qcom,rpmcc-msm8952 + - const: qcom,rpmcc-msm8976 + - const: qcom,rpmcc
[Severity: Medium]
Does qcom,rpmcc-msm8952 also need to be added to the allOf conditional block that enforces the xo clock constraints?
Because qcom,rpmcc-msm8952 falls back to qcom,rpmcc-msm8976, it shares the same xo clock requirement. Currently, qcom,rpmcc-msm8976 is listed in the conditional block:
Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml:
- if:
properties:
compatible:
contains:
enum:
...
- qcom,rpmcc-msm8974
- qcom,rpmcc-msm8976
...
then:
properties:
clocks:
items:
- description: xo clock
Should qcom,rpmcc-msm8952 be added to this enum list? When running dt_binding_check on a device tree containing the qcom,rpmcc-msm8952 compatible string, the clock constraints will not be enforced.
Quoted 3 lines
Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml +0
-0'#clock-cells': const: 1
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=12
Re: [PATCH v3 12/19] dt-bindings: clock: qcom,rpmcc: Add MSM8952 compatible
In reply to Muzaffer KadirQuoted 12 lines · Muzaffer Kadir
Document the rpmcc found on MSM8952.
Signed-off-by Muzaffer Kadir <[email protected]>--- Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml | 5 +++++ 1 file changed, 5 insertions(+)Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml +0
-0
Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml properties: · line 63
Quoted 8 lines
Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml +5
-0@@ -56,6 +56,11 @@ properties: - qcom,rpmcc-shikra - const: qcom,rpmcc-qcm2290 - const: qcom,rpmcc + - items: + - enum: + - qcom,rpmcc-msm8952 + - const: qcom,rpmcc-msm8976 + - const: qcom,rpmcc
This block should be placed rather before one using qcm2290 as fallback, to keep alphabetical sorting.
Best regards,
Krzysztof
PATCH v3 13/19 drm: msm: mdp5: Add MDP5 configuration for MSM8952
In reply to Muzaffer KadirAdd the mdp5_cfg_hw entry for MDP5 version v1.12 found on MSM8952.
--- drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 81 ++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+)
drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c +81 -0
@@ -744,6 +744,86 @@ static const struct mdp5_cfg_hw msm8x76_config = { .max_clk = 360000000, }; +static const struct mdp5_cfg_hw msm8952_config = { + .name ="msm8952" , + .mdp = { + .count =1 , + .base = {0x0 }, + .caps =MDP_CAP_SMP | +0 , + }, + .smp = { + .mmb_count =8 , + .mmb_size =8192 , + .clients = { + [SSPP_VIG0 ] =1 , [SSPP_DMA0 ] =4 , + [SSPP_RGB0 ] =7 , [SSPP_RGB1 ] =8 , + }, + }, + .ctl = { + .count =3 , + .base = {0x01000 ,0x01200 ,0x01400 }, + .flush_hw_mask =0xffffffff , + }, + .pipe_vig = { + .count =1 , + .base = {0x04000 }, + .caps =MDP_PIPE_CAP_HFLIP |MDP_PIPE_CAP_VFLIP | +MDP_PIPE_CAP_SCALE |MDP_PIPE_CAP_CSC | +MDP_PIPE_CAP_DECIMATION , + }, + .pipe_rgb = { + .count =2 , + .base = {0x14000 ,0x16000 }, + .caps =MDP_PIPE_CAP_HFLIP |MDP_PIPE_CAP_VFLIP | +MDP_PIPE_CAP_DECIMATION , + }, + .pipe_dma = { + .count =1 , + .base = {0x24000 }, + .caps =MDP_PIPE_CAP_HFLIP |MDP_PIPE_CAP_VFLIP , + }, + .pipe_cursor = { + .count =1 , + .base = {0x440DC }, + .caps =MDP_PIPE_CAP_HFLIP | +MDP_PIPE_CAP_VFLIP | +MDP_PIPE_CAP_SW_PIX_EXT | +MDP_PIPE_CAP_CURSOR | +0 , + }, + .lm = { + .count =2 , + .base = {0x44000 ,0x47000 }, + .instances = { + { .id =0 , .pp =0 , .dspp =0 , + .caps =MDP_LM_CAP_DISPLAY , }, + { .id =3 , .pp =-1 , .dspp =-1 , + .caps =MDP_LM_CAP_WB }, + }, + .nb_stages =8 , + .max_width =2048 , + .max_height =0xFFFF , + }, + .dspp = { + .count =1 , + .base = {0x54000 }, + + }, + .pp = { + .count =3 , + .base = {0x70000 ,0x70800 ,0x72000 }, + }, + .intf = { + .base = {0x00000 ,0x6a800 }, + .connect = { + [0 ] =INTF_DISABLED , + [1 ] =INTF_DSI , + }, + }, + .max_clk =320000000 , +}; +static const struct mdp5_cfg_hw msm8x53_config = { .name ="msm8x53" , .mdp = {
@@ -1017,6 +1097,7 @@ static const struct mdp5_cfg_handler cfg_handlers_v1[] = { { .revision = 9, .config = { .hw = &msm8x94_config } }, { .revision = 7, .config = { .hw = &msm8x96_config } }, { .revision = 11, .config = { .hw = &msm8x76_config } }, + { .revision = 12, .config = { .hw = &msm8952_config } }, { .revision = 14, .config = { .hw = &msm8937_config } }, { .revision = 15, .config = { .hw = &msm8917_config } }, { .revision = 16, .config = { .hw = &msm8x53_config } },
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 13/19] drm: msm: mdp5: Add MDP5 configuration for MSM8952
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [High] drm/msm: Missing designated initializers in lm.base array maps LM3 to 0x0 - [High] drm/msm…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] drm/msm: Missing designated initializers in lm.base array maps LM3 to 0x0
- [High] drm/msm: Hardware register corruption from exposing LM cursor as SSPP pipe --
commit a462b33778a7f0e919c295ca897f61ab29c8108c
Author: Muzaffer Kadir <[email protected]>
drm: msm: mdp5: Add MDP5 configuration for MSM8952
Add the mdp5_cfg_hw entry for MDP5 version v1.12 found on MSM8952.
Quoted 4 lines
drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c +0
-0
[ ... ]
Quoted 2 lines
drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c +2
-0+static const struct mdp5_cfg_hw msm8952_config = { + .name ="msm8952" ,
[ ... ]
drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c static const struct mdp5_cfg_hw msm8x76_config = { · line 794
Quoted 9 lines
drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c +9
-0+ .pipe_cursor = { + .count = 1, + .base = { 0x440DC }, + .caps =MDP_PIPE_CAP_HFLIP | +MDP_PIPE_CAP_VFLIP | +MDP_PIPE_CAP_SW_PIX_EXT | +MDP_PIPE_CAP_CURSOR | + 0, + },
[Severity: High]
Does exposing the LM cursor as an SSPP pipe corrupt the LM cursor registers?
When userspace performs an atomic plane update on this cursor plane, mdp5_plane_mode_set() writes standard SSPP pipe configurations to 0x440DC, which is the exact address of REG_MDP5_LM_CURSOR_STRIDE(0).
Because the two hardware blocks have completely different register layouts, SSPP registers like SRC0_ADDR end up being written into LM CURSOR_XY coordinates, corrupting the layer mixer's cursor configuration.
Should this cursor be handled by mdp5_crtc_cursor_set() instead of being exposed as a pipe_cursor?
drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c static const struct mdp5_cfg_hw msm8x76_config = { · line 797
Quoted 3 lines
drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c +3
-0+ .lm = { + .count = 2, + .base = { 0x44000, 0x47000 },
[Severity: High]
Will the base address for the LM3 (Writeback) hardware mixer evaluate to 0x0?
When the driver configures the Writeback interface (LM3), it indexes mdp5_cfg->lm.base using the instance ID (mixer->lm = 3). Since the array was initialized sequentially as { 0x44000, 0x47000 }, base[1] receives 0x47000 while base[3] is zero-initialized.
Writing layer mixer configuration to 0x0 corrupts the global MDP5 control registers, leading to severe hardware malfunction or system crash.
Should this use designated initializers (e.g., [0] = 0x44000, [3] = 0x47000)?
Quoted 10 lines
drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c +10
-0+ .instances = { + { .id = 0, .pp = 0, .dspp = 0, + .caps = MDP_LM_CAP_DISPLAY, }, + { .id = 3, .pp = -1, .dspp = -1, + .caps = MDP_LM_CAP_WB }, + }, + .nb_stages = 8, + .max_width = 2048, + .max_height = 0xFFFF, + },
[ ... ]
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=13
Re: [PATCH v3 13/19] drm: msm: mdp5: Add MDP5 configuration for MSM8952
In reply to Muzaffer KadirQuoted 9 lines · On Mon, Sep 21, 2026 at 09:19:04PM +0300, Muzaffer Kadir via B4 Relay wrote:
From: Muzaffer Kadir <[email protected]>
Add the
mdp5_cfg_hwentry for MDP5 version v1.12 found on MSM8952.Signed-off-by Muzaffer Kadir <[email protected]>--- drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 81 ++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+)
drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c static const struct mdp5_cfg_hw msm8x76_config = { · line 794
Quoted 9 lines
drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c +9
-0+ .pipe_cursor = { + .count = 1, + .base = { 0x440DC }, + .caps =MDP_PIPE_CAP_HFLIP | +MDP_PIPE_CAP_VFLIP | +MDP_PIPE_CAP_SW_PIX_EXT | +MDP_PIPE_CAP_CURSOR | + 0, + },
PIPE_CURSOR is invalid and should be dropped. I'll do it while applying.
With that fixed:
Signature · 2 lines
With best wishes Dmitry
PATCH v3 14/19 soc: qcom: ubwc: Add UBWC config for MSM8952
In reply to Muzaffer KadirMSM8952 uses Adreno 405 and predates ubwc just like MSM8939.
--- drivers/soc/qcom/ubwc_config.c | 1 + 1 file changed, 1 insertion(+)
drivers/soc/qcom/ubwc_config.c +1 -0
@@ -130,6 +130,7 @@ static const struct of_device_id qcom_ubwc_configs[] __maybe_unused = { { .compatible = "qcom,msm8937", .data = &ubwc_1_0_hbb14 }, { .compatible = "qcom,msm8929", .data = &no_ubwc_data }, { .compatible = "qcom,msm8939", .data = &no_ubwc_data }, + { .compatible = "qcom,msm8952", .data = &no_ubwc_data }, { .compatible = "qcom,msm8953", .data = &ubwc_1_0_hbb14 }, { .compatible = "qcom,msm8956", .data = &no_ubwc_data }, { .compatible = "qcom,msm8974", .data = &no_ubwc_data },
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 14/19] soc: qcom: ubwc: Add UBWC config for MSM8952
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 7 lines
From: Muzaffer Kadir <[email protected]>
MSM8952 uses Adreno 405 and predates ubwc just like MSM8939.
Reviewed-by Konrad Dybcio <[email protected]>Reviewed-by Abel Vesa <[email protected]>Signed-off-by Muzaffer Kadir <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=14
Re: [PATCH v3 14/19] soc: qcom: ubwc: Add UBWC config for MSM8952
In reply to Muzaffer KadirQuoted 11 lines · On Mon, Sep 21, 2026 at 09:19:05PM +0300, Muzaffer Kadir via B4 Relay wrote:
From: Muzaffer Kadir <[email protected]>
MSM8952 uses Adreno 405 and predates ubwc just like MSM8939.
Reviewed-by Konrad Dybcio <[email protected]>Reviewed-by Abel Vesa <[email protected]>Signed-off-by Muzaffer Kadir <[email protected]>--- drivers/soc/qcom/ubwc_config.c | 1 + 1 file changed, 1 insertion(+)
Signature · 2 lines
With best wishes Dmitry
PATCH v3 15/19 dt-bindings: thermal: tsens: Add MSM8952
In reply to Muzaffer KadirAdd compatible string for tsens block found in MSM8952.
--- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/thermal/qcom-tsens.yaml +1 -0
@@ -46,6 +46,7 @@ properties: items: - enum: - qcom,msm8937-tsens + - qcom,msm8952-tsens - qcom,msm8956-tsens - qcom,msm8976-tsens - qcom,qcs404-tsens
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 15/19] dt-bindings: thermal: tsens: Add MSM8952
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 5 lines
From: Muzaffer Kadir <[email protected]>
Add compatible string for tsens block found in MSM8952.
Signed-off-by Muzaffer Kadir <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=15
Re: [PATCH v3 15/19] dt-bindings: thermal: tsens: Add MSM8952
In reply to Muzaffer KadirQuoted 6 lines · Muzaffer Kadir
Add compatible string for tsens block found in MSM8952.
Signed-off-by Muzaffer Kadir <[email protected]>--- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 + 1 file changed, 1 insertion(+)
Best regards,
Krzysztof
PATCH v3 16/19 thermal: qcom: tsens: Add support for MSM8952 tsens
In reply to Muzaffer KadirAdd MSM8952 support for tsens.
Downstream does a lot of advanced things with calculations. But seems like using tsens-v1 directly works too.
--- drivers/thermal/qcom/tsens-v1.c | 44 +++++++++++++++++++++++++++++++++++++++++ drivers/thermal/qcom/tsens.c | 3 +++ drivers/thermal/qcom/tsens.h | 2 +- 3 files changed, 48 insertions(+), 1 deletion(-)
drivers/thermal/qcom/tsens-v1.c +44 -0
@@ -145,6 +145,37 @@ static const struct reg_field tsens_v1_regfields[MAX_REGFIELDS] = { [TRDY] = REG_FIELD(TM_TRDY_OFF, 0, 0), }; +static int __init init_8952 (struct tsens_priv *priv) +{ +for (int i =0 ; i < priv->num_sensors; ++i) + priv->sensor[i].slope =3200 ; + + priv->sensor[0 ].p1_calib_offset =2 ; + priv->sensor[0 ].p2_calib_offset =-1 ; + priv->sensor[1 ].p1_calib_offset =-4 ; + priv->sensor[1 ].p2_calib_offset =-4 ; + priv->sensor[2 ].p1_calib_offset =4 ; + priv->sensor[2 ].p2_calib_offset =5 ; + priv->sensor[3 ].p1_calib_offset =1 ; + priv->sensor[3 ].p2_calib_offset =1 ; + priv->sensor[4 ].p1_calib_offset =2 ; + priv->sensor[4 ].p2_calib_offset =3 ; + priv->sensor[5 ].p1_calib_offset =-1 ; + priv->sensor[5 ].p2_calib_offset =-1 ; + priv->sensor[6 ].p1_calib_offset =0 ; + priv->sensor[6 ].p2_calib_offset =-1 ; + priv->sensor[7 ].p1_calib_offset =3 ; + priv->sensor[7 ].p2_calib_offset =4 ; + priv->sensor[8 ].p1_calib_offset =2 ; + priv->sensor[8 ].p2_calib_offset =4 ; + priv->sensor[9 ].p1_calib_offset =0 ; + priv->sensor[9 ].p2_calib_offset =0 ; + priv->sensor[10 ].p1_calib_offset =-3 ; + priv->sensor[10 ].p2_calib_offset =-2 ; + +return init_common (priv); +} +static int __init init_8956 (struct tsens_priv *priv) { priv->sensor[0 ].slope =3313 ; priv->sensor[1 ].slope =3275 ;
@@ -223,6 +254,19 @@ struct tsens_plat_data data_8937 = { .fields = tsens_v1_regfields, }; +static const struct tsens_ops ops_8952 = { + .init = init_8952, + .calibrate = tsens_calibrate_common, + .get_temp = get_temp_tsens_valid, +}; + +struct tsens_plat_data data_8952 = { + .num_sensors =11 , + .ops = &ops_8952, + .feat = &tsens_v1_feat, + .fields = tsens_v1_regfields, +}; +static const struct tsens_ops ops_8956 = { .init = init_8956, .calibrate = tsens_calibrate_common,
drivers/thermal/qcom/tsens.c +3 -0
@@ -1191,6 +1191,9 @@ static const struct of_device_id tsens_table[] = { }, { .compatible = "qcom,msm8939-tsens", .data = &data_8939, + }, { + .compatible = "qcom,msm8952-tsens", + .data = &data_8952, }, { .compatible = "qcom,msm8956-tsens", .data = &data_8956,
drivers/thermal/qcom/tsens.h +1 -1
@@ -669,7 +669,7 @@ extern struct tsens_plat_data data_8960;extern struct tsens_plat_data data_8226, data_8909, data_8916, data_8939, data_8974, data_9607;/* TSENS v1 targets */ -extern struct tsens_plat_data data_tsens_v1, data_8937, data_8976, data_8956; +extern struct tsens_plat_data data_tsens_v1, data_8937, data_8952, data_8976, data_8956;/* TSENS v1 with no RPM targets */ extern const struct tsens_plat_data data_ipq5018;
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 16/19] thermal: qcom: tsens: Add support for MSM8952 tsens
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [High] thermal: tsens: Use-after-free in tsens_probe() via __init section mismatch - [High] thermal…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] thermal: tsens: Use-after-free in tsens_probe() via __init section mismatch
- [High] thermal: tsens: Heap buffer overflow in init_8952() via DT override --
commit 5408ae137c176a5df112132baa926440df23a1b3
Author: Muzaffer Kadir <[email protected]>
thermal: qcom: tsens: Add support for MSM8952 tsens
This commit adds TSENS thermal sensor support for the Qualcomm MSM8952 platform. It introduces calibration data for 11 sensors and wires up the associated platform data structure.
drivers/thermal/qcom/tsens-v1.c static const struct reg_field tsens_v1_regfields[MAX_REGFIELDS] = { · line 148
Quoted 9 lines
drivers/thermal/qcom/tsens-v1.c +1
-0@@ -145,6 +145,37 @@ static const struct reg_field tsens_v1_regfields[MAX_REGFIELDS] = { [TRDY] = REG_FIELD(TM_TRDY_OFF, 0, 0), }; +static int __init init_8952 (struct tsens_priv *priv)
[Severity: High]
Does marking this function as __init risk a use-after-free if the device is probed late?
If tsens_probe() runs after the initial kernel boot sequence, for instance due to a standard -EPROBE_DEFER or a manual sysfs bind, the .init.text section containing this function will have already been freed. Since this function is assigned to ops_8952.init and invoked dynamically by tsens_probe(), executing it after boot would jump into freed memory:
drivers/thermal/qcom/tsens.c:tsens_probe() {
...
if (priv->ops->init) {
ret = priv->ops->init(priv);
...
}drivers/thermal/qcom/tsens-v1.c static const struct reg_field tsens_v1_regfields[MAX_REGFIELDS] = { · line 154
Quoted 6 lines
drivers/thermal/qcom/tsens-v1.c +6
-0+{ +for (int i =0 ; i < priv->num_sensors; ++i) + priv->sensor[i].slope =3200 ; + + priv->sensor[0 ].p1_calib_offset =2 ; + priv->sensor[0 ].p2_calib_offset =-1 ;
[Severity: High]
Could these unconditional writes overflow the priv->sensor flexible array?
In tsens_probe(), the array size is dynamically allocated based on the "#qcom,sensors" device tree property:
drivers/thermal/qcom/tsens.c:tsens_probe() {
...
of_property_read_u32(np, "#qcom,sensors", &num_sensors);
...
priv = devm_kzalloc(dev,
struct_size(priv, sensor, num_sensors),
GFP_KERNEL);
...
}If a malformed or custom device tree overrides this property to a value less than 11, the array will be allocated with fewer elements. However, this code unconditionally writes to hardcoded indices up to priv->sensor[10], which could cause a heap buffer overflow.
Quoted 2 lines
drivers/thermal/qcom/tsens-v1.c +2
-0+ priv->sensor[1 ].p1_calib_offset =-4 ; + priv->sensor[1 ].p2_calib_offset =-4 ;
[ ... ]
Quoted 5 lines
drivers/thermal/qcom/tsens-v1.c +5
-0+ priv->sensor[10 ].p1_calib_offset =-3 ; + priv->sensor[10 ].p2_calib_offset =-2 ; + +return init_common (priv); +}
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=16
Re: [PATCH v3 16/19] thermal: qcom: tsens: Add support for MSM8952 tsens
In reply to Muzaffer KadirQuoted 6 lines · On 9/21/26 20:19, Muzaffer Kadir via B4 Relay wrote:
From: Muzaffer Kadir <[email protected]>
Add MSM8952 support for tsens.
Downstream does a lot of advanced things with calculations. But seems like using tsens-v1 directly works too.
Can you elaborate a bit the changelog please ?
Thanks
Quoted 98 lines
Signed-off-by Muzaffer Kadir <[email protected]>--- drivers/thermal/qcom/tsens-v1.c | 44 +++++++++++++++++++++++++++++++++++++++++ drivers/thermal/qcom/tsens.c | 3 +++ drivers/thermal/qcom/tsens.h | 2 +- 3 files changed, 48 insertions(+), 1 deletion(-)drivers/thermal/qcom/tsens-v1.c +44
-0@@ -145,6 +145,37 @@ static const struct reg_field tsens_v1_regfields[MAX_REGFIELDS] = { [TRDY] = REG_FIELD(TM_TRDY_OFF, 0, 0), }; +static int __init init_8952 (struct tsens_priv *priv) +{ +for (int i =0 ; i < priv->num_sensors; ++i) + priv->sensor[i].slope =3200 ; + + priv->sensor[0 ].p1_calib_offset =2 ; + priv->sensor[0 ].p2_calib_offset =-1 ; + priv->sensor[1 ].p1_calib_offset =-4 ; + priv->sensor[1 ].p2_calib_offset =-4 ; + priv->sensor[2 ].p1_calib_offset =4 ; + priv->sensor[2 ].p2_calib_offset =5 ; + priv->sensor[3 ].p1_calib_offset =1 ; + priv->sensor[3 ].p2_calib_offset =1 ; + priv->sensor[4 ].p1_calib_offset =2 ; + priv->sensor[4 ].p2_calib_offset =3 ; + priv->sensor[5 ].p1_calib_offset =-1 ; + priv->sensor[5 ].p2_calib_offset =-1 ; + priv->sensor[6 ].p1_calib_offset =0 ; + priv->sensor[6 ].p2_calib_offset =-1 ; + priv->sensor[7 ].p1_calib_offset =3 ; + priv->sensor[7 ].p2_calib_offset =4 ; + priv->sensor[8 ].p1_calib_offset =2 ; + priv->sensor[8 ].p2_calib_offset =4 ; + priv->sensor[9 ].p1_calib_offset =0 ; + priv->sensor[9 ].p2_calib_offset =0 ; + priv->sensor[10 ].p1_calib_offset =-3 ; + priv->sensor[10 ].p2_calib_offset =-2 ; + +return init_common (priv); +} +static int __init init_8956 (struct tsens_priv *priv) { priv->sensor[0 ].slope =3313 ; priv->sensor[1 ].slope =3275 ;@@ -223,6 +254,19 @@ struct tsens_plat_data data_8937 = { .fields = tsens_v1_regfields, }; +static const struct tsens_ops ops_8952 = { + .init = init_8952, + .calibrate = tsens_calibrate_common, + .get_temp = get_temp_tsens_valid, +}; + +struct tsens_plat_data data_8952 = { + .num_sensors =11 , + .ops = &ops_8952, + .feat = &tsens_v1_feat, + .fields = tsens_v1_regfields, +}; +static const struct tsens_ops ops_8956 = { .init = init_8956, .calibrate = tsens_calibrate_common,drivers/thermal/qcom/tsens.c +3
-0@@ -1191,6 +1191,9 @@ static const struct of_device_id tsens_table[] = { }, { .compatible = "qcom,msm8939-tsens", .data = &data_8939, + }, { + .compatible = "qcom,msm8952-tsens", + .data = &data_8952, }, { .compatible = "qcom,msm8956-tsens", .data = &data_8956,drivers/thermal/qcom/tsens.h +1
-1@@ -669,7 +669,7 @@ extern struct tsens_plat_data data_8960;extern struct tsens_plat_data data_8226, data_8909, data_8916, data_8939, data_8974, data_9607;/* TSENS v1 targets */ -extern struct tsens_plat_data data_tsens_v1, data_8937, data_8976, data_8956; +extern struct tsens_plat_data data_tsens_v1, data_8937, data_8952, data_8976, data_8956;/* TSENS v1 with no RPM targets */ extern const struct tsens_plat_data data_ipq5018;
Re: [PATCH v3 16/19] thermal: qcom: tsens: Add support for MSM8952 tsens
Hi Daniel,
Quoted 12 lines · Daniel Lezcano
Quoted 6 lines · On 9/21/26 20:19, Muzaffer Kadir via B4 Relay wrote:
From: Muzaffer Kadir <[email protected]>
Add MSM8952 support for tsens.
Downstream does a lot of advanced things with calculations. But seems like using tsens-v1 directly works too.
Can you elaborate a bit the changelog please ?
Thanks
MSM8952 has 11 sensors
and 3200 default slope (according to downstream)
For tests, this is the table for readings:
tsens sensor 0 1 2 3 4 5 6 7 8 9 10
TWRP 32 31 29 28 28 31 30 30 30 32 30
this patch 31 29 31 29 29 31 30 31 31 30 30
Both are read from same device, one after the other, First upstream then TWRP.
2 degree difference seems reasonable in my idea, as there is a reboot process happens in between reads and downstream has more power saving features than this port.
I don't know any way to independently measure temperature.
I reused offsets and slope from downstream.
My commit message wasn't good, I will expand the commit message by v4.
Best regards,
Muzaffer Kadir
PATCH v3 17/19 arm64: dts: qcom: Add initial support for MSM8952
In reply to Muzaffer KadirAdd initial support for MSM8952 SoC.
AI help is used for calculating qfprom nodes.
Downstream reference for port is [1] which is very lightly modified version of [2].
Downstream reference used to calculate qfprom: [3]
Currently supported features in this port:
- Internal Storage support
- MDSS
- Basic Adsp remote proc support
- Blsp 1 and 2 with all i2c and spi
- Tsens support
- USB
- RPM with mpm and master-stats
[1] https://github.com/Asderdd/android_kernel_generalmobile_shamrock/blob/cm-14.1/arch/arm/boot/dts/qcom/msm8952.dtsi
[2] https://android.googlesource.com/kernel/msm.git/+/refs/tags/android-wear-7.0.0_r0.3/arch/arm/boot/dts/qcom/msm8952.dtsi
[3] https://android.googlesource.com/kernel/msm.git/+/refs/tags/android-wear-7.0.0_r0.3/drivers/thermal/msm-tsens.c#1621
--- arch/arm64/boot/dts/qcom/msm8952.dtsi | 2696 +++++++++++++++++++++++++++++++++ 1 file changed, 2696 insertions(+)
arch/arm64/boot/dts/qcom/msm8952.dtsi new file +2696 -0
@@ -0,0 +1,2696 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright 2026 Muzaffer Kadir <[email protected]> + * + * Based on msm8937.dtsi: + * Copyright (c) 2023, Dang Huynh <[email protected]> + * adapted with data from msm8952.dtsi and msm8952-*.dtsi files in Qualcomm's msm-3.10 release + * Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. + */ + +#include <dt-bindings/clock/qcom,dsi-phy-28nm.h> +#include <dt-bindings/clock/qcom,gcc-msm8952.h> +#include <dt-bindings/clock/qcom,rpmcc.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/power/qcom-rpmpd.h> +#include <dt-bindings/thermal/thermal.h> +#include <dt-bindings/arm/qcom,ids.h> + +/ { + interrupt-parent = <&intc>; + + #address-cells = <2>; + #size-cells = <2>; + + clocks { + sleep_clk: sleep-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + + xo_board: xo-board { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x0>; + enable-method = "psci"; + operating-points-v2 = <&cpu_opp_table_c0>; + next-level-cache = <&l2_0>; + clocks = <&apcs0>; + #cooling-cells = <2>; + qcom,acc = <&acc0>; + + l2_0: l2-cache { + compatible = "cache"; + cache-level = <2>; + cache-size = <0x40000>; + cache-unified; + }; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x1>; + enable-method = "psci"; + operating-points-v2 = <&cpu_opp_table_c0>; + next-level-cache = <&l2_0>; + clocks = <&apcs0>; + #cooling-cells = <2>; + qcom,acc = <&acc1>; + }; + + cpu2: cpu@2 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x2>; + enable-method = "psci"; + operating-points-v2 = <&cpu_opp_table_c0>; + next-level-cache = <&l2_0>; + clocks = <&apcs0>; + #cooling-cells = <2>; + qcom,acc = <&acc2>; + }; + + cpu3: cpu@3 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x3>; + enable-method = "psci"; + operating-points-v2 = <&cpu_opp_table_c0>; + next-level-cache = <&l2_0>; + clocks = <&apcs0>; + #cooling-cells = <2>; + qcom,acc = <&acc3>; + }; + + cpu4: cpu@100 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x100>; + next-level-cache = <&l2_1>; + enable-method = "psci"; + clocks = <&apcs1>; + operating-points-v2 = <&cpu_opp_table_c1>; + #cooling-cells = <2>; + qcom,acc = <&acc4>; + + l2_1: l2-cache { + compatible = "cache"; + cache-level = <2>; + cache-size = <0x80000>; + cache-unified; + }; + }; + + cpu5: cpu@101 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x101>; + next-level-cache = <&l2_1>; + enable-method = "psci"; + clocks = <&apcs1>; + operating-points-v2 = <&cpu_opp_table_c1>; + #cooling-cells = <2>; + qcom,acc = <&acc5>; + }; + + cpu6: cpu@102 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x102>; + next-level-cache = <&l2_1>; + enable-method = "psci"; + clocks = <&apcs1>; + operating-points-v2 = <&cpu_opp_table_c1>; + #cooling-cells = <2>; + qcom,acc = <&acc6>; + }; + + cpu7: cpu@103 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x103>; + next-level-cache = <&l2_1>; + enable-method = "psci"; + clocks = <&apcs1>; + operating-points-v2 = <&cpu_opp_table_c1>; + #cooling-cells = <2>; + qcom,acc = <&acc7>; + }; + + cpu-map { + /* Little Cores */ + cluster0 { + core0 { + cpu = <&cpu0>; + }; + + core1 { + cpu = <&cpu1>; + }; + + core2 { + cpu = <&cpu2>; + }; + + core3 { + cpu = <&cpu3>; + }; + }; + + /* Big Cores */ + cluster1 { + core0 { + cpu = <&cpu4>; + }; + + core1 { + cpu = <&cpu5>; + }; + + core2 { + cpu = <&cpu6>; + }; + + core3 { + cpu = <&cpu7>; + }; + }; + }; + }; + + firmware { + scm: scm { + compatible = "qcom,scm-msm8952", "qcom,scm"; + clocks = <&gcc GCC_CRYPTO_CLK>, + <&gcc GCC_CRYPTO_AXI_CLK>, + <&gcc GCC_CRYPTO_AHB_CLK>; + clock-names = "core", + "bus", + "iface"; + #reset-cells = <1>; + + qcom,dload-mode = <&tcsr 0x6100>; + }; + }; + + memory@80000000 { + device_type = "memory"; + /* We expect the bootloader to fill in the reg */ + reg = <0 0x80000000 0 0>; + }; + + reserved-memory { + ranges; + #address-cells = <2>; + #size-cells = <2>; + + qseecom_mem: reserved@85b00000 { + reg = <0x0 0x85b00000 0x0 0x800000>; + no-map; + }; + + smem@86300000 { + compatible = "qcom,smem"; + reg = <0x0 0x86300000 0x0 0x100000>; + no-map; + + hwlocks = <&tcsr_mutex 3>; + qcom,rpm-msg-ram = <&rpm_msg_ram>; + }; + + reserved@86400000 { + reg = <0x0 0x86400000 0x0 0x400000>; + no-map; + }; + + mpss_mem: mpss@86c00000 { + reg = <0x0 0x86c00000 0x0 0x5600000>; + no-map; + }; + + adsp_mem: adsp@8c200000 { + reg = <0x0 0x8c200000 0x0 0x1700000>; + no-map; + }; + + rmtfs_mem: rmtfs { + compatible = "qcom,rmtfs-mem"; + + size = <0x0 0x200000>; + alloc-ranges = <0x0 0xa0000000 0x0 0x2000000>; + no-map; + + qcom,client-id = <1>; + }; + + ramoops_mem: ramoops@dffc0000 { + compatible = "ramoops"; + reg = <0x0 0xdffc0000 0x0 0x40000>; + + record-size = <0x10000>; + console-size = <0x10000>; + pmsg-size = <0x20000>; + + status = "disabled"; + }; + + mba_mem: mba { + size = <0x0 0x100000>; + alignment = <0x0 0x100000>; + alloc-ranges = <0x0 0x86800000 0x0 0x8000000>; + no-map; + + status = "disabled"; + }; + + venus_mem: venus { + size = <0x0 0x500000>; + alignment = <0x0 0x100000>; + alloc-ranges = <0x0 0x86800000 0x0 0x8000000>; + no-map; + + status = "disabled"; + }; + }; + + cpu_opp_table_c0: opp-table-c0 { + compatible = "operating-points-v2"; + opp-shared; + + opp-403200000 { + opp-hz = /bits/ 64 <403200000>; + }; + + opp-806400000 { + opp-hz = /bits/ 64 <806400000>; + }; + + opp-998400000 { + opp-hz = /bits/ 64 <998400000>; + }; + + opp-1094400000 { + opp-hz = /bits/ 64 <1094400000>; + }; + + opp-1209600000 { + opp-hz = /bits/ 64 <1209600000>; + }; + }; + + cpu_opp_table_c1: opp-table-c1 { + compatible = "operating-points-v2"; + opp-shared; + + opp-499200000 { + opp-hz = /bits/ 64 <499200000>; + }; + + opp-806400000 { + opp-hz = /bits/ 64 <806400000>; + }; + + opp-960000000 { + opp-hz = /bits/ 64 <960000000>; + }; + + opp-1094400000 { + opp-hz = /bits/ 64 <1094400000>; + }; + + opp-1344000000 { + opp-hz = /bits/ 64 <1344000000>; + }; + + opp-1440000000 { + opp-hz = /bits/ 64 <1440000000>; + }; + + opp-1516800000 { + opp-hz = /bits/ 64 <1516800000>; + }; + + opp-1651200000 { + opp-hz = /bits/ 64 <1651200000>; + }; + }; + + pmu { + compatible = "arm,cortex-a53-pmu"; + interrupts = <GIC_PPI 7 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>; + }; + + psci { + compatible = "arm,psci-1.0"; + method = "smc"; + }; + + rpm: remoteproc { + compatible = "qcom,msm8952-rpm-proc", "qcom,rpm-proc"; + + master-stats { + compatible = "qcom,rpm-master-stats"; + qcom,rpm-msg-ram = <&apss_master_stats>, + <&mpss_master_stats>, + <&pronto_master_stats>, + <&tz_master_stats>, + <&lpass_master_stats>; + qcom,master-names = "APSS", + "MPSS", + "PRONTO", + "TZ", + "LPASS"; + }; + + smd-edge { + interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>; + qcom,ipc = <&apcs1 8 0>; + qcom,smd-edge = <15>; + + rpm_requests: rpm-requests { + compatible = "qcom,rpm-msm8952", "qcom,smd-rpm"; + qcom,smd-channels = "rpm_requests"; + + rpmcc: clock-controller { + compatible = "qcom,rpmcc-msm8952", + "qcom,rpmcc-msm8976", + "qcom,rpmcc"; + #clock-cells = <1>; + clocks = <&xo_board>; + clock-names = "xo"; + }; + + rpmpd: power-controller { + compatible = "qcom,msm8952-rpmpd", + "qcom,msm8917-rpmpd"; + #power-domain-cells = <1>; + operating-points-v2 = <&rpmpd_opp_table>; + + rpmpd_opp_table: opp-table { + compatible = "operating-points-v2"; + + rpmpd_opp_ret: opp1 { + opp-level = <RPM_SMD_LEVEL_RETENTION>; + }; + + rpmpd_opp_ret_plus: opp2 { + opp-level = <RPM_SMD_LEVEL_RETENTION_PLUS>; + }; + + rpmpd_opp_min_svs: opp3 { + opp-level = <RPM_SMD_LEVEL_MIN_SVS>; + }; + + rpmpd_opp_low_svs: opp4 { + opp-level = <RPM_SMD_LEVEL_LOW_SVS>; + }; + + rpmpd_opp_svs: opp5 { + opp-level = <RPM_SMD_LEVEL_SVS>; + }; + + rpmpd_opp_svs_plus: opp6 { + opp-level = <RPM_SMD_LEVEL_SVS_PLUS>; + }; + + rpmpd_opp_nom: opp7 { + opp-level = <RPM_SMD_LEVEL_NOM>; + }; + + rpmpd_opp_nom_plus: opp8 { + opp-level = <RPM_SMD_LEVEL_NOM_PLUS>; + }; + + rpmpd_opp_turbo: opp9 { + opp-level = <RPM_SMD_LEVEL_TURBO>; + }; + }; + }; + }; + }; + + mpm: interrupt-controller { + compatible = "qcom,mpm"; + + interrupts = <GIC_SPI 171 IRQ_TYPE_EDGE_RISING>; + + mboxes = <&apcs1 1>; + interrupt-controller; + #interrupt-cells = <2>; + #power-domain-cells = <0>; + interrupt-parent = <&intc>; + qcom,rpm-msg-ram = <&apss_mpm>; + qcom,mpm-pin-count = <64>; + qcom,mpm-pin-map = <2 184>, /* TSENS UPLOW */ + <49 140>, /* USB ASYNC */ + <53 72>, /* MDSS */ + <58 134>, /* USB */ + <62 190>; /* SPMI */ + }; + }; + + smp2p-adsp { + compatible = "qcom,smp2p"; + + interrupts = <GIC_SPI 291 IRQ_TYPE_EDGE_RISING>; + + mboxes = <&apcs1 10>; + qcom,smem = <443>, <429>; + + qcom,local-pid = <0>; + qcom,remote-pid = <2>; + + adsp_smp2p_out: master-kernel { + qcom,entry-name = "master-kernel"; + + #qcom,smem-state-cells = <1>; + }; + + adsp_smp2p_in: slave-kernel { + interrupt-controller; + #interrupt-cells = <2>; + + qcom,entry-name = "slave-kernel"; + }; + }; + + smp2p-modem { + compatible = "qcom,smp2p"; + + interrupts = <GIC_SPI 27 IRQ_TYPE_EDGE_RISING>; + + mboxes = <&apcs1 14>; + qcom,smem = <435>, <428>; + + qcom,local-pid = <0>; + qcom,remote-pid = <1>; + + modem_smp2p_out: master-kernel { + qcom,entry-name = "master-kernel"; + + #qcom,smem-state-cells = <1>; + }; + + modem_smp2p_in: slave-kernel { + interrupt-controller; + #interrupt-cells = <2>; + qcom,entry-name = "slave-kernel"; + }; + }; + + smp2p-wcnss { + compatible = "qcom,smp2p"; + + interrupts = <GIC_SPI 143 IRQ_TYPE_EDGE_RISING>; + + mboxes = <&apcs1 18>; + qcom,smem = <451>, <431>; + + qcom,local-pid = <0>; + qcom,remote-pid = <4>; + + wcnss_smp2p_out: master-kernel { + qcom,entry-name = "master-kernel"; + + #qcom,smem-state-cells = <1>; + }; + + wcnss_smp2p_in: slave-kernel { + interrupt-controller; + #interrupt-cells = <2>; + + qcom,entry-name = "slave-kernel"; + }; + }; + + smsm { + compatible = "qcom,smsm"; + + #address-cells = <1>; + #size-cells = <0>; + + mboxes = <0>, <&apcs1 13>, <&apcs1 9>, <&apcs1 19>; + + apps_smsm: apps@0 { + reg = <0>; + + #qcom,smem-state-cells = <1>; + }; + + hexagon_smsm: hexagon@1 { + reg = <1>; + interrupts = <GIC_SPI 290 IRQ_TYPE_EDGE_RISING>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + wcnss_smsm: wcnss@6 { + reg = <6>; + interrupts = <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + soc: soc@0 { + compatible = "simple-bus"; + ranges = <0 0 0 0xffffffff>; + #address-cells = <1>; + #size-cells = <1>; + + rng@22000 { + compatible = "qcom,prng"; + reg = <0x00022000 0x140>; + clocks = <&gcc GCC_PRNG_AHB_CLK>; + clock-names = "core"; + }; + + qfprom: qfprom@5c000 { + compatible = "qcom,msm8952-qfprom", "qcom,qfprom"; + reg = <0x0005c000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + tsens_base0: base0@a0 { + reg = <0xa0 0x1>; + bits = <0 8>; + }; + + tsens_s5_p1: s5-p1@a1 { + reg = <0xa1 0x1>; + bits = <0 6>; + }; + + tsens_s5_p2: s5-p2@a1 { + reg = <0xa1 0x2>; + bits = <6 6>; + }; + + tsens_s6_p1: s6-p1@a2 { + reg = <0xa2 0x2>; + bits = <4 6>; + }; + + tsens_s6_p2: s6-p2@a3 { + reg = <0xa3 0x1>; + bits = <2 6>; + }; + + tsens_s7_p1: s7-p1@a4 { + reg = <0xa4 0x1>; + bits = <0 6>; + }; + + tsens_s7_p2: s7-p2@a4 { + reg = <0xa4 0x2>; + bits = <6 6>; + }; + + tsens_s8_p1: s8-p1@a5 { + reg = <0xa5 0x2>; + bits = <4 6>; + }; + + tsens_s8_p2: s8-p2@a6 { + reg = <0xa6 0x1>; + bits = <2 6>; + }; + + tsens_base1: base1@a7 { + reg = <0xa7 0x1>; + bits = <0 8>; + }; + + tsens_mode: mode@d0 { + reg = <0xd0 0x1>; + bits = <0 3>; + }; + + tsens_s0_p1: s0-p1@d0 { + reg = <0xd0 0x2>; + bits = <3 6>; + }; + + tsens_s0_p2: s0-p2@d1 { + reg = <0xd1 0x1>; + bits = <1 6>; + }; + + tsens_s1_p1: s1-p1@d1 { + reg = <0xd1 0x2>; + bits = <7 6>; + }; + + tsens_s1_p2: s1-p2@d2 { + reg = <0xd2 0x2>; + bits = <5 6>; + }; + + tsens_s2_p1: s2-p1@d3 { + reg = <0xd3 0x2>; + bits = <3 6>; + }; + + tsens_s2_p2: s2-p2@d4 { + reg = <0xd4 0x1>; + bits = <1 6>; + }; + + tsens_s3_p1: s3-p1@d4 { + reg = <0xd4 0x2>; + bits = <7 6>; + }; + + tsens_s3_p2: s3-p2@d5 { + reg = <0xd5 0x2>; + bits = <5 6>; + }; + + tsens_s4_p1: s4-p1@d6 { + reg = <0xd6 0x2>; + bits = <3 6>; + }; + + tsens_s4_p2: s4-p2@d7 { + reg = <0xd7 0x1>; + bits = <1 6>; + }; + + tsens_s9_p1: s9-p1@f0 { + reg = <0xf0 0x1>; + bits = <0 6>; + }; + + tsens_s9_p2: s9-p2@f0 { + reg = <0xf0 0x2>; + bits = <6 6>; + }; + + tsens_s10_p1: s10-p1@f1 { + reg = <0xf1 0x2>; + bits = <4 6>; + }; + + tsens_s10_p2: s10-p2@f2 { + reg = <0xf2 0x1>; + bits = <2 6>; + }; + }; + + rpm_msg_ram: sram@60000 { + compatible = "qcom,rpm-msg-ram", "mmio-sram"; + reg = <0x00060000 0x8000>; + + ranges = <0 0x00060000 0x8000>; + #address-cells = <1>; + #size-cells = <1>; + + apss_master_stats: sram@150 { + reg = <0x150 0x14>; + }; + + apss_mpm: sram@1d0 { + reg = <0x1d0 0x64>; + }; + + mpss_master_stats: sram@1150 { + reg = <0x1150 0x14>; + }; + + pronto_master_stats: sram@2550 { + reg = <0x2550 0x14>; + }; + + tz_master_stats: sram@3550 { + reg = <0x3550 0x14>; + }; + + lpass_master_stats: sram@4550 { + reg = <0x4550 0x14>; + }; + }; + + usb_hs_phy: phy@6c000 { + compatible = "qcom,usb-hs-28nm-femtophy"; + reg = <0x0006c000 0x200>; + #phy-cells = <0>; + clocks = <&xo_board>, + <&gcc GCC_USB_HS_PHY_CFG_AHB_CLK>, + <&gcc GCC_USB2A_PHY_SLEEP_CLK>; + clock-names = "ref", + "ahb", + "sleep"; + resets = <&gcc GCC_QUSB2_PHY_BCR>, + <&gcc GCC_USB2_HS_PHY_ONLY_BCR>; + reset-names = "phy", "por"; + + status = "disabled"; + }; + + tsens: thermal-sensor@4a9000 { + compatible = "qcom,msm8952-tsens", "qcom,tsens-v1"; + reg = <0x004a9000 0x1000>, /* TM */ + <0x004a8000 0x1000>; /* SROT */ + nvmem-cells = <&tsens_mode>, + <&tsens_base0>, <&tsens_base1>, + <&tsens_s0_p1>, <&tsens_s0_p2>, + <&tsens_s1_p1>, <&tsens_s1_p2>, + <&tsens_s2_p1>, <&tsens_s2_p2>, + <&tsens_s3_p1>, <&tsens_s3_p2>, + <&tsens_s4_p1>, <&tsens_s4_p2>, + <&tsens_s5_p1>, <&tsens_s5_p2>, + <&tsens_s6_p1>, <&tsens_s6_p2>, + <&tsens_s7_p1>, <&tsens_s7_p2>, + <&tsens_s8_p1>, <&tsens_s8_p2>, + <&tsens_s9_p1>, <&tsens_s9_p2>, + <&tsens_s10_p1>, <&tsens_s10_p2>; + nvmem-cell-names = "mode", + "base1", "base2", + "s0_p1", "s0_p2", + "s1_p1", "s1_p2", + "s2_p1", "s2_p2", + "s3_p1", "s3_p2", + "s4_p1", "s4_p2", + "s5_p1", "s5_p2", + "s6_p1", "s6_p2", + "s7_p1", "s7_p2", + "s8_p1", "s8_p2", + "s9_p1", "s9_p2", + "s10_p1", "s10_p2"; + interrupts-extended = <&mpm 2 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "uplow"; + #thermal-sensor-cells = <1>; + #qcom,sensors = <11>; + }; + + restart@4ab000 { + compatible = "qcom,pshold"; + reg = <0x004ab000 0x4>; + }; + + crypto_dma: dma-controller@704000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x00704000 0x20000>; + interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>; + #dma-cells = <1>; + num-channels = <16>; + qcom,ee = <1>; + qcom,num-ees = <4>; + qcom,controlled-remotely; + }; + + crypto: crypto@73a000 { + compatible = "qcom,crypto-v5.4"; + reg = <0x0073a000 0x6000>; + clocks = <&gcc GCC_CRYPTO_AHB_CLK>, + <&gcc GCC_CRYPTO_AXI_CLK>, + <&gcc GCC_CRYPTO_CLK>; + clock-names = "iface", + "bus", + "core"; + dmas = <&crypto_dma 2>, <&crypto_dma 3>; + dma-names = "rx", "tx"; + }; + + tlmm: pinctrl@1000000 { + compatible = "qcom,msm8952-pinctrl"; + reg = <0x01000000 0x300000>; + interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; + gpio-controller; + gpio-ranges = <&tlmm 0 0 134>; + wakeup-parent = <&mpm>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + + blsp1_uart1_console_default: blsp1-uart1-console-default-state { + rx-pins { + pins = "gpio1"; + function = "blsp_uart1"; + drive-strength = <16>; + bias-pull-up; + bootph-all; + }; + + tx-pins { + pins = "gpio0"; + function = "blsp_uart1"; + drive-strength = <16>; + bias-disable; + bootph-all; + }; + }; + + blsp1_uart1_console_sleep: blsp1-uart1-console-sleep-state { + pins = "gpio0", "gpio1"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + blsp1_uart1_default: blsp1-uart1-default-state { + pins = "gpio0", "gpio1", "gpio2", "gpio3"; + function = "blsp_uart1"; + drive-strength = <2>; + bias-disable; + }; + + blsp1_uart1_sleep: blsp1-uart1-sleep-state { + pins = "gpio0", "gpio1", "gpio2", "gpio3"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + blsp1_i2c1_default: blsp1-i2c1-default-state { + pins = "gpio2", "gpio3"; + function = "blsp_i2c1"; + drive-strength = <2>; + bias-disable; + }; + + blsp1_i2c1_sleep: blsp1-i2c1-sleep-state { + pins = "gpio2", "gpio3"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + blsp1_spi1_default: blsp1-spi1-default-state { + cs-pins { + pins = "gpio2"; + function = "blsp_spi1"; + drive-strength = <2>; + bias-disable; + }; + + spi-pins { + pins = "gpio0", "gpio1", "gpio3"; + function = "blsp_spi1"; + drive-strength = <12>; + bias-disable; + }; + }; + + blsp1_spi1_sleep: blsp1-spi1-sleep-state { + pins = "gpio0", "gpio1", "gpio2", "gpio3"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + blsp1_uart2_default: blsp1-uart2-default-state { + pins = "gpio4", "gpio5"; + function = "blsp_uart2"; + drive-strength = <2>; + bias-disable; + }; + + blsp1_uart2_sleep: blsp1-uart2-sleep-state { + pins = "gpio4", "gpio5"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + blsp1_i2c2_default: blsp1-i2c2-default-state { + pins = "gpio6", "gpio7"; + function = "blsp_i2c2"; + drive-strength = <2>; + bias-disable; + }; + + blsp1_i2c2_sleep: blsp1-i2c2-sleep-state { + pins = "gpio6", "gpio7"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + blsp1_spi2_default: blsp1-spi2-default-state { + cs-pins { + pins = "gpio6"; + function = "blsp_spi2"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + spi-pins { + pins = "gpio4", "gpio5", "gpio7"; + function = "blsp_spi2"; + drive-strength = <12>; + bias-disable; + }; + }; + + blsp1_spi2_sleep: blsp1-spi2-sleep-state { + pins = "gpio4", "gpio5", "gpio6", "gpio7"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + blsp1_i2c3_default: blsp1-i2c3-default-state { + pins = "gpio10", "gpio11"; + function = "blsp_i2c3"; + drive-strength = <2>; + bias-disable; + }; + + blsp1_i2c3_sleep: blsp1-i2c3-sleep-state { + pins = "gpio10", "gpio11"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + blsp1_spi3_default: blsp1-spi3-default-state { + cs-pins { + pins = "gpio10"; + function = "blsp_spi3"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + spi-pins { + pins = "gpio8", "gpio9", "gpio11"; + function = "blsp_spi3"; + drive-strength = <12>; + bias-disable; + }; + }; + + blsp1_spi3_sleep: blsp1-spi3-sleep-state { + pins = "gpio8", "gpio9", "gpio10", "gpio11"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + blsp1_i2c4_default: blsp1-i2c4-default-state { + pins = "gpio14", "gpio15"; + function = "blsp_i2c4"; + drive-strength = <2>; + bias-disable; + }; + + blsp1_i2c4_sleep: blsp1-i2c4-sleep-state { + pins = "gpio14", "gpio15"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + blsp1_spi4_default: blsp1-spi4-default-state { + cs-pins { + pins = "gpio14"; + function = "blsp_spi4"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + spi-pins { + pins = "gpio12", "gpio13", "gpio15"; + function = "blsp_spi4"; + drive-strength = <12>; + bias-disable; + }; + }; + + blsp1_spi4_sleep: blsp1-spi4-sleep-state { + pins = "gpio12", "gpio13", "gpio14", "gpio15"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + blsp2_i2c1_default: blsp2-i2c1-default-state { + pins = "gpio18", "gpio19"; + function = "blsp_i2c5"; + drive-strength = <2>; + bias-disable; + }; + + blsp2_i2c1_sleep: blsp2-i2c1-sleep-state { + pins = "gpio18", "gpio19"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + blsp2_spi1_default: blsp2-spi1-default-state { + cs-pins { + pins = "gpio18"; + function = "blsp_spi5"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + spi-pins { + pins = "gpio16", "gpio17", "gpio19"; + function = "blsp_spi5"; + drive-strength = <12>; + bias-disable; + }; + }; + + blsp2_spi1_sleep: blsp2-spi1-sleep-state { + pins = "gpio16", "gpio17", "gpio18", "gpio19"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + blsp2_i2c2_default: blsp2-i2c2-default-state { + pins = "gpio22", "gpio23"; + function = "blsp_i2c6"; + drive-strength = <2>; + bias-disable; + }; + + blsp2_i2c2_sleep: blsp2-i2c2-sleep-state { + pins = "gpio22", "gpio23"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + blsp2_spi2_default: blsp2-spi2-default-state { + cs-pins { + pins = "gpio22"; + function = "blsp_spi6"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + spi-pins { + pins = "gpio20", "gpio21", "gpio23"; + function = "blsp_spi6"; + drive-strength = <12>; + bias-disable; + }; + }; + + blsp2_spi2_sleep: blsp2-spi2-sleep-state { + pins = "gpio20", "gpio21", "gpio22", "gpio23"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + blsp2_i2c3_default: blsp2-i2c3-default-state { + pins = "gpio94", "gpio95"; + function = "blsp_i2c7"; + drive-strength = <2>; + bias-disable; + }; + + blsp2_i2c3_sleep: blsp2-i2c3-sleep-state { + pins = "gpio94", "gpio95"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + blsp2_spi3_default: blsp2-spi3-default-state { + cs-pins { + pins = "gpio94"; + function = "blsp_spi7"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + spi-pins { + pins = "gpio92", "gpio93", "gpio95"; + function = "blsp_spi7"; + drive-strength = <12>; + bias-disable; + }; + }; + + blsp2_spi3_sleep: blsp2-spi3-sleep-state { + pins = "gpio92", "gpio93", "gpio94", "gpio95"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + blsp2_i2c4_default: blsp2-i2c4-default-state { + pins = "gpio98", "gpio99"; + function = "blsp_i2c8"; + drive-strength = <2>; + bias-disable; + }; + + blsp2_i2c4_sleep: blsp2-i2c4-sleep-state { + pins = "gpio98", "gpio99"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + blsp2_spi4_default: blsp2-spi4-default-state { + cs-pins { + pins = "gpio98"; + function = "blsp_spi8"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + spi-pins { + pins = "gpio96", "gpio97", "gpio99"; + function = "blsp_spi8"; + drive-strength = <12>; + bias-disable; + }; + }; + + blsp2_spi4_sleep: blsp2-spi4-sleep-state { + pins = "gpio96", "gpio97", "gpio98", "gpio99"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + sdc1_default: sdc1-default-state { + clk-pins { + pins = "sdc1_clk"; + drive-strength = <16>; + bias-disable; + }; + + cmd-pins { + pins = "sdc1_cmd"; + drive-strength = <10>; + bias-pull-up; + }; + + data-pins { + pins = "sdc1_data"; + drive-strength = <10>; + bias-pull-up; + }; + + rclk-pins { + pins = "sdc1_rclk"; + bias-pull-down; + }; + }; + + sdc1_sleep: sdc1-sleep-state { + clk-pins { + pins = "sdc1_clk"; + drive-strength = <2>; + bias-disable; + }; + + cmd-pins { + pins = "sdc1_cmd"; + drive-strength = <2>; + bias-pull-up; + }; + + data-pins { + pins = "sdc1_data"; + drive-strength = <2>; + bias-pull-up; + }; + + rclk-pins { + pins = "sdc1_rclk"; + bias-pull-down; + }; + }; + + sdc2_default: sdc2-default-state { + clk-pins { + pins = "sdc2_clk"; + drive-strength = <16>; + bias-disable; + }; + + sdc2_cmd_default: cmd-pins { + pins = "sdc2_cmd"; + drive-strength = <16>; + bias-pull-up; + }; + + sdc2_data_default: data-pins { + pins = "sdc2_data"; + drive-strength = <16>; + bias-pull-up; + }; + }; + + sdc2_sleep: sdc2-sleep-state { + clk-pins { + pins = "sdc2_clk"; + drive-strength = <2>; + bias-disable; + }; + + cmd-pins { + pins = "sdc2_cmd"; + drive-strength = <2>; + bias-pull-up; + }; + + data-pins { + pins = "sdc2_data"; + drive-strength = <2>; + bias-pull-up; + }; + }; + }; + + gcc: clock-controller@1800000 { + compatible = "qcom,gcc-msm8952"; + reg = <0x01800000 0x80000>; + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, + <&rpmcc RPM_SMD_XO_A_CLK_SRC>, + <&mdss_dsi0_phy DSI_PIXEL_PLL_CLK>, + <&mdss_dsi0_phy DSI_BYTE_PLL_CLK>; + power-domains = <&rpmpd RPMPD_VDDCX>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; + + tcsr_mutex: hwlock@1905000 { + compatible = "qcom,tcsr-mutex"; + reg = <0x01905000 0x20000>; + #hwlock-cells = <1>; + }; + + tcsr: syscon@1937000 { + compatible = "qcom,tcsr-msm8952", "syscon"; + reg = <0x01937000 0x30000>; + }; + + mdss: display-subsystem@1a00000 { + compatible = "qcom,mdss"; + reg = <0x01a00000 0x1000>, + <0x01ac8000 0x3000>; + reg-names = "mdss_phys", + "vbif_phys"; + + ranges; + #address-cells = <1>; + #size-cells = <1>; + + power-domains = <&gcc MDSS_GDSC>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_VSYNC_CLK>; + clock-names = "iface", + "bus", + "vsync"; + + interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; + + interrupt-controller; + #interrupt-cells = <1>; + + resets = <&gcc GCC_MDSS_BCR>; + + status = "disabled"; + + mdss_mdp: display-controller@1a01000 { + compatible = "qcom,msm8952-mdp5", "qcom,mdp5"; + reg = <0x01a01000 0x89000>; + reg-names = "mdp_phys"; + + interrupt-parent = <&mdss>; + interrupts = <0>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_MDP_CLK>, + <&gcc GCC_MDSS_VSYNC_CLK>; + clock-names = "iface", + "bus", + "core", + "vsync"; + + operating-points-v2 = <&mdp_opp_table>; + power-domains = <&gcc MDSS_GDSC>; + + iommus = <&apps_iommu 0x17>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + mdss_mdp_intf1_out: endpoint { + remote-endpoint = <&mdss_dsi0_in>; + }; + }; + }; + + mdp_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-160000000 { + opp-hz = /bits/ 64 <160000000>; + required-opps = <&rpmpd_opp_svs>; + }; + + opp-266670000 { + opp-hz = /bits/ 64 <266670000>; + required-opps = <&rpmpd_opp_svs_plus>; + }; + + opp-320000000 { + opp-hz = /bits/ 64 <320000000>; + required-opps = <&rpmpd_opp_nom>; + }; + }; + }; + + mdss_dsi0: dsi@1a98000 { + compatible = "qcom,msm8916-dsi-ctrl", + "qcom,mdss-dsi-ctrl"; + reg = <0x01a98000 0x25c>; + reg-names = "dsi_ctrl"; + + interrupt-parent = <&mdss>; + interrupts = <4>; + + assigned-clocks = <&gcc BYTE0_CLK_SRC>, + <&gcc PCLK0_CLK_SRC>; + assigned-clock-parents = <&mdss_dsi0_phy DSI_BYTE_PLL_CLK>, + <&mdss_dsi0_phy DSI_PIXEL_PLL_CLK>; + + clocks = <&gcc GCC_MDSS_MDP_CLK>, + <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_BYTE0_CLK>, + <&gcc GCC_MDSS_PCLK0_CLK>, + <&gcc GCC_MDSS_ESC0_CLK>; + clock-names = "mdp_core", + "iface", + "bus", + "byte", + "pixel", + "core"; + phys = <&mdss_dsi0_phy>; + + operating-points-v2 = <&dsi0_opp_table>; + power-domains = <&rpmpd RPMPD_VDDCX>; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + mdss_dsi0_in: endpoint { + remote-endpoint = <&mdss_mdp_intf1_out>; + }; + }; + + port@1 { + reg = <1>; + + mdss_dsi0_out: endpoint { + }; + }; + }; + + dsi0_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-120000000 { + opp-hz = /bits/ 64 <120000000>; + required-opps = <&rpmpd_opp_svs>; + }; + + opp-187500000 { + opp-hz = /bits/ 64 <187500000>; + required-opps = <&rpmpd_opp_nom>; + }; + }; + }; + + mdss_dsi0_phy: phy@1a98300 { + compatible = "qcom,dsi-phy-28nm-lp"; + reg = <0x01a98300 0xd4>, + <0x01a98500 0x280>, + <0x01a98780 0x30>; + reg-names = "dsi_pll", + "dsi_phy", + "dsi_phy_regulator"; + + #clock-cells = <1>; + #phy-cells = <0>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "iface", "ref"; + + status = "disabled"; + }; + }; + + gpu: gpu@1c00000 { + compatible = "qcom,adreno-405.0", "qcom,adreno"; + reg = <0x01c00000 0x10000>; + reg-names = "kgsl_3d0_reg_memory"; + interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "kgsl_3d0_irq"; + clocks = <&gcc GCC_OXILI_GFX3D_CLK>, + <&gcc GCC_OXILI_AHB_CLK>, + <&gcc GCC_OXILI_GMEM_CLK>, + <&gcc GCC_BIMC_GFX_CLK>, + <&gcc GCC_BIMC_GPU_CLK>, + <&gcc GFX3D_CLK_SRC>, + <&gcc GCC_OXILI_TIMER_CLK>; + clock-names = "core", + "iface", + "mem", + "mem_iface", + "alt_mem_iface", + "gfx3d", + "rbbmtimer"; + power-domains = <&gcc OXILI_GX_GDSC>; + operating-points-v2 = <&opp_table>; + iommus = <&gpu_iommu 0>, <&gpu_iommu 1>; + #cooling-cells = <2>; + + status = "disabled"; + + opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-19200000 { + opp-hz = /bits/ 64 <19200000>; + required-opps = <&rpmpd_opp_min_svs>; + }; + + opp-240000000 { + opp-hz = /bits/ 64 <240000000>; + required-opps = <&rpmpd_opp_svs>; + }; + + opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + required-opps = <&rpmpd_opp_svs_plus>; + }; + + opp-465000000 { + opp-hz = /bits/ 64 <465000000>; + required-opps = <&rpmpd_opp_nom>; + }; + + opp-500000000 { + opp-hz = /bits/ 64 <500000000>; + required-opps = <&rpmpd_opp_nom_plus>; + }; + + opp-550000000 { + opp-hz = /bits/ 64 <550000000>; + required-opps = <&rpmpd_opp_turbo>; + }; + }; + }; + + apps_iommu: iommu@1e20000 { + compatible = "qcom,msm8952-iommu", "qcom,msm-iommu-v2"; + ranges = <0 0x01e20000 0x20000>; + + clocks = <&gcc GCC_SMMU_CFG_CLK>, + <&gcc GCC_APSS_TCU_CLK>; + clock-names = "iface", "bus"; + + #address-cells = <1>; + #size-cells = <1>; + #iommu-cells = <1>; + + qcom,iommu-secure-id = <17>; + + /* CPP */ + iommu-ctx@13000 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x13000 0x1000>; + interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>; + }; + + /* JPEG ENC0 */ + iommu-ctx@14000 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x14000 0x1000>; + interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; + }; + + /* VFE */ + iommu-ctx@15000 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x15000 0x1000>; + interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>; + }; + + /* VENUS NS */ + iommu-ctx@16000 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x16000 0x1000>; + interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>; + }; + + /* MDP0 */ + iommu-ctx@17000 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x17000 0x1000>; + interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>; + }; + + /* PRONTO */ + iommu-ctx@18000 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x18000 0x1000>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>; + }; + }; + + gpu_iommu: iommu@1f08000 { + compatible = "qcom,msm8952-iommu", "qcom,msm-iommu-v2"; + ranges = <0 0x01f08000 0x10000>; + + clocks = <&gcc GCC_SMMU_CFG_CLK>, + <&gcc GCC_GFX_TCU_CLK>; + clock-names = "iface", "bus"; + + #address-cells = <1>; + #size-cells = <1>; + #iommu-cells = <1>; + + qcom,iommu-secure-id = <18>; + + /* gfx3d user */ + iommu-ctx@0 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x0 0x1000>; + interrupts = <GIC_SPI 240 IRQ_TYPE_LEVEL_HIGH>; + qcom,ctx-asid = <0>; + }; + + /* gfx3d secure */ + iommu-ctx@1000 { + compatible = "qcom,msm-iommu-v2-sec"; + reg = <0x1000 0x1000>; + interrupts = <GIC_SPI 241 IRQ_TYPE_LEVEL_HIGH>; + qcom,ctx-asid = <2>; + }; + + /* gfx3d priv */ + iommu-ctx@3000 { + compatible = "qcom,msm-iommu-v2-sec"; + reg = <0x3000 0x1000>; + interrupts = <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>; + qcom,ctx-asid = <1>; + }; + }; + + spmi_bus: spmi@200f000 { + compatible = "qcom,spmi-pmic-arb"; + reg = <0x0200f000 0x001000>, + <0x02400000 0x800000>, + <0x02c00000 0x800000>, + <0x03800000 0x200000>, + <0x0200a000 0x002100>; + reg-names = "core", + "chnls", + "obsrvr", + "intr", + "cnfg"; + interrupt-names = "periph_irq"; + interrupts-extended = <&mpm 62 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <4>; + qcom,ee = <0>; + qcom,channel = <0>; + }; + + bam_dmux_dma: dma-controller@4044000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x04044000 0x19000>; + interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>; + #dma-cells = <1>; + + num-channels = <6>; + qcom,ee = <0>; + qcom,num-ees = <1>; + qcom,powered-remotely; + + status = "disabled"; + }; + + sdhc_1: mmc@7824900 { + compatible = "qcom,msm8952-sdhci", "qcom,sdhci-msm-v4"; + reg = <0x07824900 0x500>, <0x07824000 0x800>, <0x7824e00 0x200>; + reg-names = "hc", "core", "cqhci"; + + interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hc_irq", "pwr_irq"; + + clocks = <&gcc GCC_SDCC1_AHB_CLK>, + <&gcc GCC_SDCC1_APPS_CLK>, + <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "iface", "core", "xo"; + + resets = <&gcc GCC_SDCC1_BCR>; + + pinctrl-0 = <&sdc1_default>; + pinctrl-1 = <&sdc1_sleep>; + pinctrl-names = "default", "sleep"; + + power-domains = <&rpmpd RPMPD_VDDCX>; + + mmc-hs400-1_8v; + mmc-hs200-1_8v; + mmc-ddr-1_8v; + bus-width = <8>; + non-removable; + + status = "disabled"; + }; + + sdhc_2: mmc@7864900 { + compatible = "qcom,msm8952-sdhci", "qcom,sdhci-msm-v4"; + reg = <0x07864900 0x11c>, <0x07864000 0x800>; + reg-names = "hc", "core"; + + interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hc_irq", "pwr_irq"; + + clocks = <&gcc GCC_SDCC2_AHB_CLK>, + <&gcc GCC_SDCC2_APPS_CLK>, + <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "iface", "core", "xo"; + + resets = <&gcc GCC_SDCC2_BCR>; + + pinctrl-0 = <&sdc2_default>; + pinctrl-1 = <&sdc2_sleep>; + pinctrl-names = "default", "sleep"; + + power-domains = <&rpmpd RPMPD_VDDCX>; + + bus-width = <4>; + + status = "disabled"; + }; + + blsp1_dma: dma-controller@7884000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x07884000 0x1f000>; + interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + num-channels = <12>; + qcom,num-ees = <4>; + qcom,ee = <0>; + qcom,controlled-remotely; + }; + + blsp1_uart1: serial@78af000 { + compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; + reg = <0x078af000 0x200>; + interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + dmas = <&blsp1_dma 0>, <&blsp1_dma 1>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp1_uart1_console_default>; + pinctrl-1 = <&blsp1_uart1_console_sleep>; + pinctrl-names = "default", "sleep"; + + status = "disabled"; + }; + + blsp1_uart2: serial@78b0000 { + compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; + reg = <0x078b0000 0x200>; + interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + dmas = <&blsp1_dma 2>, <&blsp1_dma 3>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp1_uart2_default>; + pinctrl-1 = <&blsp1_uart2_sleep>; + pinctrl-names = "default", "sleep"; + + status = "disabled"; + }; + + blsp1_i2c1: i2c@78b5000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x078b5000 0x600>; + interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_QUP1_I2C_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + clock-frequency = <400000>; + dmas = <&blsp1_dma 4>, <&blsp1_dma 5>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp1_i2c1_default>; + pinctrl-1 = <&blsp1_i2c1_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + blsp1_spi1: spi@78b5000 { + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x078b5000 0x500>; + interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + dmas = <&blsp1_dma 4>, <&blsp1_dma 5>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp1_spi1_default>; + pinctrl-1 = <&blsp1_spi1_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + blsp1_i2c2: i2c@78b6000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x078b6000 0x500>; + interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + clock-frequency = <400000>; + dmas = <&blsp1_dma 6>, <&blsp1_dma 7>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp1_i2c2_default>; + pinctrl-1 = <&blsp1_i2c2_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + blsp1_spi2: spi@78b6000 { + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x078b6000 0x600>; + interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_QUP2_SPI_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + dmas = <&blsp1_dma 6>, <&blsp1_dma 7>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp1_spi2_default>; + pinctrl-1 = <&blsp1_spi2_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + blsp1_i2c3: i2c@78b7000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x078b7000 0x600>; + interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + clock-frequency = <400000>; + dmas = <&blsp1_dma 8>, <&blsp1_dma 9>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp1_i2c3_default>; + pinctrl-1 = <&blsp1_i2c3_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + blsp1_spi3: spi@78b7000 { + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x078b7000 0x600>; + interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_QUP3_SPI_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + dmas = <&blsp1_dma 8>, <&blsp1_dma 9>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp1_spi3_default>; + pinctrl-1 = <&blsp1_spi3_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + blsp1_i2c4: i2c@78b8000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x078b8000 0x600>; + interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + clock-frequency = <400000>; + dmas = <&blsp1_dma 10>, <&blsp1_dma 11>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp1_i2c4_default>; + pinctrl-1 = <&blsp1_i2c4_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + blsp1_spi4: spi@78b8000 { + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x078b8000 0x600>; + interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_QUP4_SPI_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + dmas = <&blsp1_dma 10>, <&blsp1_dma 11>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp1_spi4_default>; + pinctrl-1 = <&blsp1_spi4_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + usb_dma: dma-controller@78c4000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x078c4000 0x17000>; + interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>; + #dma-cells = <1>; + num-channels = <4>; + qcom,num-ees = <4>; + qcom,ee = <0>; + qcom,controlled-remotely; + }; + + usb: usb@78db000 { + compatible = "qcom,ci-hdrc"; + reg = <0x078db000 0x200>, + <0x078db200 0x200>; + interrupts-extended = <&mpm 58 IRQ_TYPE_LEVEL_HIGH>, + <&mpm 49 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_USB_HS_AHB_CLK>, + <&gcc GCC_USB_HS_SYSTEM_CLK>; + clock-names = "iface", + "core"; + assigned-clocks = <&gcc GCC_USB_HS_SYSTEM_CLK>; + assigned-clock-rates = <80000000>; + resets = <&gcc GCC_USB_HS_BCR>; + reset-names = "core"; + hnp-disable; + srp-disable; + adp-disable; + ahb-burst-config = <0>; + dr_mode = "otg"; + phy_type = "ulpi"; + phys = <&usb_hs_phy>; + phy-names = "usb-phy"; + #reset-cells = <1>; + + status = "disabled"; + }; + + blsp2_dma: dma-controller@7ac4000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x07ac4000 0x1f000>; + interrupts = <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP2_AHB_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + }; + + blsp2_i2c1: i2c@7af5000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x07af5000 0x600>; + interrupts = <GIC_SPI 299 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP2_QUP1_I2C_APPS_CLK>, + <&gcc GCC_BLSP2_AHB_CLK>; + clock-names = "core", "iface"; + clock-frequency = <400000>; + dmas = <&blsp2_dma 4>, <&blsp2_dma 5>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp2_i2c1_default>; + pinctrl-1 = <&blsp2_i2c1_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + blsp2_spi1: spi@7af5000 { + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x07af5000 0x600>; + interrupts = <GIC_SPI 299 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP2_QUP1_SPI_APPS_CLK>, + <&gcc GCC_BLSP2_AHB_CLK>; + clock-names = "core", "iface"; + dmas = <&blsp2_dma 4>, <&blsp2_dma 5>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp2_spi1_default>; + pinctrl-1 = <&blsp2_spi1_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + blsp2_i2c2: i2c@7af6000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x07af6000 0x600>; + interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP2_QUP2_I2C_APPS_CLK>, + <&gcc GCC_BLSP2_AHB_CLK>; + clock-names = "core", "iface"; + clock-frequency = <400000>; + dmas = <&blsp2_dma 6>, <&blsp2_dma 7>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp2_i2c2_default>; + pinctrl-1 = <&blsp2_i2c2_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + blsp2_spi2: spi@7af6000 { + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x07af6000 0x600>; + interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP2_QUP2_SPI_APPS_CLK>, + <&gcc GCC_BLSP2_AHB_CLK>; + clock-names = "core", "iface"; + dmas = <&blsp2_dma 6>, <&blsp2_dma 7>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp2_spi2_default>; + pinctrl-1 = <&blsp2_spi2_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + blsp2_i2c3: i2c@7af7000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x07af7000 0x600>; + interrupts = <GIC_SPI 301 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP2_QUP3_I2C_APPS_CLK>, + <&gcc GCC_BLSP2_AHB_CLK>; + clock-names = "core", "iface"; + clock-frequency = <400000>; + dmas = <&blsp2_dma 8>, <&blsp2_dma 9>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp2_i2c3_default>; + pinctrl-1 = <&blsp2_i2c3_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + blsp2_spi3: spi@7af7000 { + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x07af7000 0x600>; + interrupts = <GIC_SPI 301 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP2_QUP3_SPI_APPS_CLK>, + <&gcc GCC_BLSP2_AHB_CLK>; + clock-names = "core", "iface"; + dmas = <&blsp2_dma 8>, <&blsp2_dma 9>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp2_spi3_default>; + pinctrl-1 = <&blsp2_spi3_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + blsp2_i2c4: i2c@7af8000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x07af8000 0x600>; + interrupts = <GIC_SPI 302 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP2_QUP4_I2C_APPS_CLK>, + <&gcc GCC_BLSP2_AHB_CLK>; + clock-names = "core", "iface"; + clock-frequency = <400000>; + dmas = <&blsp2_dma 10>, <&blsp2_dma 11>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp2_i2c4_default>; + pinctrl-1 = <&blsp2_i2c4_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + blsp2_spi4: spi@7af8000 { + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x07af8000 0x600>; + interrupts = <GIC_SPI 302 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP2_QUP4_SPI_APPS_CLK>, + <&gcc GCC_BLSP2_AHB_CLK>; + clock-names = "core", "iface"; + dmas = <&blsp2_dma 10>, <&blsp2_dma 11>; + dma-names = "tx", "rx"; + pinctrl-0 = <&blsp2_spi4_default>; + pinctrl-1 = <&blsp2_spi4_sleep>; + pinctrl-names = "default", "sleep"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + + imem: sram@8600000 { + compatible = "qcom,msm8976-imem", + "syscon", "simple-mfd"; + reg = <0x08600000 0x1000>; + + ranges = <0 0x08600000 0x1000>; + #size-cells = <1>; + #address-cells = <1>; + + pil-reloc@94c { + compatible = "qcom,pil-reloc-info"; + reg = <0x94c 0xc8>; + }; + }; + + intc: interrupt-controller@b000000 { + compatible = "qcom,msm-qgic2"; + reg = <0x0b000000 0x1000>, + <0x0b002000 0x1000>; + interrupt-controller; + #interrupt-cells = <3>; + }; + + apcs1: mailbox@b011000 { + compatible = "qcom,msm8939-apcs-kpss-global", "syscon"; + reg = <0x0b011000 0x1000>; + #mbox-cells = <1>; + clocks = <&a53pll_c1>, + <&gcc GPLL0_VOTE>, + <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "pll", + "aux", + "ref"; + #clock-cells = <0>; + }; + + a53pll_c1: clock@b016000 { + compatible = "qcom,msm8939-a53pll"; + reg = <0x0b016000 0x40>; + clocks = <&xo_board>; + clock-names = "xo"; + #clock-cells = <0>; + operating-points-v2 = <&pll_opp_table_c1>; + + pll_opp_table_c1: opp-table { + compatible = "operating-points-v2"; + + opp-499200000 { + opp-hz = /bits/ 64 <499200000>; + }; + + opp-806400000 { + opp-hz = /bits/ 64 <806400000>; + }; + + opp-960000000 { + opp-hz = /bits/ 64 <960000000>; + }; + + opp-1094400000 { + opp-hz = /bits/ 64 <1094400000>; + }; + + opp-1344000000 { + opp-hz = /bits/ 64 <1344000000>; + }; + + opp-1440000000 { + opp-hz = /bits/ 64 <1440000000>; + }; + + opp-1516800000 { + opp-hz = /bits/ 64 <1516800000>; + }; + + opp-1651200000 { + opp-hz = /bits/ 64 <1651200000>; + }; + }; + }; + + watchdog@b017000 { + compatible = "qcom,apss-wdt-qcs404", "qcom,kpss-wdt"; + reg = <0x0b017000 0x1000>; + interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 4 IRQ_TYPE_EDGE_RISING>; + clocks = <&sleep_clk>; + }; + + acc4: clock-controller@b088000 { + compatible = "qcom,kpss-acc-v2"; + reg = <0x0b088000 0x1000>; + }; + + acc5: clock-controller@b098000 { + compatible = "qcom,kpss-acc-v2"; + reg = <0x0b098000 0x1000>; + }; + + acc6: clock-controller@b0a8000 { + compatible = "qcom,kpss-acc-v2"; + reg = <0x0b0a8000 0x1000>; + }; + + acc7: clock-controller@b0b8000 { + compatible = "qcom,kpss-acc-v2"; + reg = <0x0b0b8000 0x1000>; + }; + + apcs0: mailbox@b111000 { + compatible = "qcom,msm8939-apcs-kpss-global", "syscon"; + reg = <0x0b111000 0x1000>; + #mbox-cells = <1>; + clocks = <&a53pll_c0>, + <&gcc GPLL0_VOTE>, + <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "pll", + "aux", + "ref"; + #clock-cells = <0>; + }; + + a53pll_c0: clock@b116000 { + compatible = "qcom,msm8939-a53pll"; + reg = <0x0b116000 0x40>; + clocks = <&xo_board>; + clock-names = "xo"; + #clock-cells = <0>; + operating-points-v2 = <&pll_opp_table_c0>; + + pll_opp_table_c0: opp-table { + compatible = "operating-points-v2"; + + opp-403200000 { + opp-hz = /bits/ 64 <403200000>; + }; + + opp-806400000 { + opp-hz = /bits/ 64 <806400000>; + }; + + opp-998400000 { + opp-hz = /bits/ 64 <998400000>; + }; + + opp-1094400000 { + opp-hz = /bits/ 64 <1094400000>; + }; + + opp-1209600000 { + opp-hz = /bits/ 64 <1209600000>; + }; + }; + }; + + timer@b120000 { + compatible = "arm,armv7-timer-mem"; + reg = <0x0b120000 0x1000>; + ranges; + #address-cells = <1>; + #size-cells = <1>; + clock-frequency = <19200000>; + + frame@b121000 { + reg = <0x0b121000 0x1000>, <0x0b122000 0x1000>; + interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; + frame-number = <0>; + }; + + frame@b123000 { + reg = <0x0b123000 0x1000>; + interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; + frame-number = <1>; + + status = "disabled"; + }; + + frame@b124000 { + reg = <0x0b124000 0x1000>; + interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; + frame-number = <2>; + + status = "disabled"; + }; + + frame@b125000 { + reg = <0x0b125000 0x1000>; + interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; + frame-number = <3>; + + status = "disabled"; + }; + + frame@b126000 { + reg = <0x0b126000 0x1000>; + interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; + frame-number = <4>; + + status = "disabled"; + }; + + frame@b127000 { + reg = <0x0b127000 0x1000>; + interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; + frame-number = <5>; + + status = "disabled"; + }; + + frame@b128000 { + reg = <0x0b128000 0x1000>; + interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; + frame-number = <6>; + + status = "disabled"; + }; + }; + + acc0: clock-controller@b188000 { + compatible = "qcom,kpss-acc-v2"; + reg = <0x0b188000 0x1000>; + }; + + acc1: clock-controller@b198000 { + compatible = "qcom,kpss-acc-v2"; + reg = <0x0b198000 0x1000>; + }; + + acc2: clock-controller@b1a8000 { + compatible = "qcom,kpss-acc-v2"; + reg = <0x0b1a8000 0x1000>; + }; + + acc3: clock-controller@b1b8000 { + compatible = "qcom,kpss-acc-v2"; + reg = <0x0b1b8000 0x1000>; + }; + + a53pll_cci: clock@b1d0000 { + compatible = "qcom,msm8939-a53pll"; + reg = <0x0b1d0000 0x40>; + clocks = <&xo_board>; + clock-names = "xo"; + #clock-cells = <0>; + }; + + apcs2: mailbox@b1d1000 { + compatible = "qcom,msm8939-apcs-kpss-global", "syscon"; + reg = <0x0b1d1000 0x1000>; + clocks = <&a53pll_cci>, + <&gcc GPLL0_VOTE>, + <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "pll", + "aux", + "ref"; + #clock-cells = <0>; + #mbox-cells = <1>; + }; + + adsp: remoteproc@c200000 { + compatible = "qcom,msm8996-adsp-pil"; + reg = <0x0c200000 0x100>; + + interrupts-extended = <&intc GIC_SPI 293 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; + + clocks = <&rpmcc RPM_SMD_BB_CLK1>; + clock-names = "xo"; + + power-domains = <&rpmpd RPMPD_VDDCX>; + power-domain-names = "cx"; + + memory-region = <&adsp_mem>; + + qcom,smem-states = <&adsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + smd-edge { + interrupts = <GIC_SPI 289 IRQ_TYPE_EDGE_RISING>; + + mboxes = <&apcs1 8>; + + qcom,smd-edge = <1>; + qcom,remote-pid = <2>; + }; + }; + }; + + thermal-zones { + aoss0-thermal { + polling-delay-passive = <250>; + + thermal-sensors = <&tsens 0>; + + trips { + aoss0_alert0: trip-point0 { + temperature = <75000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + modem-thermal { + polling-delay-passive = <250>; + + thermal-sensors = <&tsens 1>; + + trips { + modem_alert0: trip-point0 { + temperature = <75000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + qdsp-thermal { + polling-delay-passive = <250>; + + thermal-sensors = <&tsens 2>; + + trips { + qdsp_alert0: trip-point0 { + temperature = <75000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + camera-thermal { + polling-delay-passive = <250>; + + thermal-sensors = <&tsens 3>; + + trips { + camera_alert0: trip-point0 { + temperature = <85000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + l2-thermal { + polling-delay-passive = <250>; + + thermal-sensors = <&tsens 4>; + + trips { + l2_alert0: trip-point0 { + temperature = <50000>; + hysteresis = <2000>; + type = "hot"; + }; + + l2_alert1: trip-point1 { + temperature = <55000>; + hysteresis = <2000>; + type = "passive"; + }; + + l2_crit: l2-crit { + temperature = <75000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cpu4-thermal { + polling-delay-passive = <250>; + + thermal-sensors = <&tsens 5>; + + cooling-maps { + map0 { + trip = <&cpu4_alert1>; + cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + + trips { + cpu4_alert0: trip-point0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu4_alert1: trip-point1 { + temperature = <85000>; + hysteresis = <2000>; + type = "hot"; + }; + + cpu4_crit: cpu-crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cpu5-thermal { + polling-delay-passive = <250>; + + thermal-sensors = <&tsens 6>; + + cooling-maps { + map0 { + trip = <&cpu5_alert1>; + cooling-device = <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + + trips { + cpu5_alert0: trip-point0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu5_alert1: trip-point1 { + temperature = <85000>; + hysteresis = <2000>; + type = "hot"; + }; + + cpu5_crit: cpu-crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cpu6-thermal { + polling-delay-passive = <250>; + + thermal-sensors = <&tsens 7>; + + cooling-maps { + map0 { + trip = <&cpu6_alert1>; + cooling-device = <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + + trips { + cpu6_alert0: trip-point0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu6_alert1: trip-point1 { + temperature = <85000>; + hysteresis = <2000>; + type = "hot"; + }; + + cpu6_crit: cpu-crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cpu7-thermal { + polling-delay-passive = <250>; + + thermal-sensors = <&tsens 8>; + + cooling-maps { + map0 { + trip = <&cpu7_alert1>; + cooling-device = <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + + trips { + cpu7_alert0: trip-point0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu7_alert1: trip-point1 { + temperature = <85000>; + hysteresis = <2000>; + type = "hot"; + }; + + cpu7_crit: cpu-crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cpu0-3-thermal { + polling-delay-passive = <250>; + + thermal-sensors = <&tsens 9>; + + cooling-maps { + map0 { + trip = <&cpu0_alert1>; + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + + trips { + cpu0_alert0: trip-point0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu0_alert1: trip-point1 { + temperature = <85000>; + hysteresis = <2000>; + type = "hot"; + }; + + cpu0_crit: cpu-crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + gpu-thermal { + polling-delay-passive = <250>; + + thermal-sensors = <&tsens 10>; + + trips { + gpu_crit: gpu-crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>; + clock-frequency = <19200000>; + }; +};
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 17/19] arm64: dts: qcom: Add initial support for MSM8952
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [High] arm64: dts: qcom: cpu cooling devices bound to 'hot' instead of 'passive' trip points --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] arm64: dts: qcom: cpu cooling devices bound to 'hot' instead of 'passive' trip points --
commit b31c2ca10f75d0572d43b7d8403a096fd44b8429
Author: Muzaffer Kadir <[email protected]>
arm64: dts: qcom: Add initial support for MSM8952
Adds initial device tree support for the MSM8952 SoC, porting it from a downstream reference and adding calculation support for qfprom nodes.
Quoted 5 lines
arch/arm64/boot/dts/qcom/msm8952.dtsi new file +0
-0
[ ... ]
Quoted 1 line
arch/arm64/boot/dts/qcom/msm8952.dtsi new file +0
-0@@ -0,0 +1,2696 @@
[ ... ]
arch/arm64/boot/dts/qcom/msm8952.dtsi line 2513
Quoted 9 lines
arch/arm64/boot/dts/qcom/msm8952.dtsi new file +9
-0+ cpu4-thermal { + polling-delay-passive = <250>; + + thermal-sensors = <&tsens 5>; + + cooling-maps { + map0 { + trip = <&cpu4_alert1>; + cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
[Severity: High]
Does this cooling map bind to the hot trip point instead of the passive one?
The Linux thermal subsystem's default step_wise governor ignores hot and critical trip points for cooling devices. Binding CPU frequency cooling devices to cpu4_alert1 (which is defined as type hot) completely prevents thermal throttling.
Under sustained CPU load, the system will keep heating up until it hits the critical trip point and undergoes a hard, uncontrolled thermal shutdown. Should this bind to cpu4_alert0 instead?
Quoted 15 lines
arch/arm64/boot/dts/qcom/msm8952.dtsi new file +15
-0+ }; + }; + + trips { + cpu4_alert0: trip-point0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu4_alert1: trip-point1 { + temperature = <85000>; + hysteresis = <2000>; + type = "hot"; + };
[ ... ]
arch/arm64/boot/dts/qcom/msm8952.dtsi line 2645
Quoted 9 lines
arch/arm64/boot/dts/qcom/msm8952.dtsi new file +9
-0+ cpu0-3-thermal { + polling-delay-passive = <250>; + + thermal-sensors = <&tsens 9>; + + cooling-maps { + map0 { + trip = <&cpu0_alert1>; + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
[Severity: High]
Similarly for the little core cluster, does this also incorrectly bind to the hot trip point cpu0_alert1? This will prevent thermal throttling on these cores as well.
Quoted 5 lines
arch/arm64/boot/dts/qcom/msm8952.dtsi new file +5
-0+ <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + };
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=17
PATCH v3 18/19 dt-bindings: input: touchscreen: goodix: Add binding for GT970
In reply to Muzaffer KadirGT970 works with GT911 driver, document it to be
used with GT911 compatible.
--- .../bindings/input/touchscreen/goodix.yaml | 35 ++++++++++++---------- 1 file changed, 20 insertions(+), 15 deletions(-)
Documentation/devicetree/bindings/input/touchscreen/goodix.yaml +20 -15
@@ -14,21 +14,26 @@ allOf: properties: compatible: - enum: - - goodix,gt1151 - - goodix,gt1158 - - goodix,gt5663 - - goodix,gt5688 - - goodix,gt911 - - goodix,gt9110 - - goodix,gt912 - - goodix,gt9147 - - goodix,gt917s - - goodix,gt927 - - goodix,gt9271 - - goodix,gt928 - - goodix,gt9286 - - goodix,gt967 + oneOf: + - enum: + - goodix,gt1151 + - goodix,gt1158 + - goodix,gt5663 + - goodix,gt5688 + - goodix,gt911 + - goodix,gt9110 + - goodix,gt912 + - goodix,gt9147 + - goodix,gt917s + - goodix,gt927 + - goodix,gt9271 + - goodix,gt928 + - goodix,gt9286 + - goodix,gt967 + - items: + - enum: + - goodix,gt970 + - const: goodix,gt911 reg: enum: [ 0x5d, 0x14 ]
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 18/19] dt-bindings: input: touchscreen: goodix: Add binding for GT970
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] input: touchscreen: goodix: incomplete GT970 support causes config length mismatch --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] input: touchscreen: goodix: incomplete GT970 support causes config length mismatch --
commit fb8dc3b0be08be515a9f9b03de04ea7da115bf6f
Author: Muzaffer Kadir <[email protected]>
dt-bindings: input: touchscreen: goodix: Add binding for GT970
This commit adds the goodix,gt970 compatible string to the DT binding. It specifies that the GT970 should fall back to the goodix,gt911 compatible string to use the GT911 driver configuration.
Quoted 8 lines
Documentation/devicetree/bindings/input/touchscreen/goodix.yaml +0
-0@@ -14,21 +14,26 @@ allOf: properties: compatible:
[ ... ]
Documentation/devicetree/bindings/input/touchscreen/goodix.yaml allOf: · line 36
Quoted 4 lines
Documentation/devicetree/bindings/input/touchscreen/goodix.yaml +4
-0+ - items: + - enum: + - goodix,gt970 + - const: goodix,gt911
[Severity: Medium]
Will this require a corresponding driver change to work correctly?
When the driver probes the device, it uses goodix_get_chip_data() to choose configuration parameters based on the hardware ID read from the device, rather than the DT compatible string.
Because "970" is missing from the goodix_chip_ids[] array in drivers/input/touchscreen/goodix.c, it appears the driver will ignore this DT fallback and apply the generic 240-byte configuration instead of GT911's 186-byte configuration.
Could this incorrect configuration length cause the driver to read or write past the end of the configuration registers?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=18
Re: [PATCH v3 18/19] dt-bindings: input: touchscreen: goodix: Add binding for GT970
In reply to Muzaffer KadirQuoted 7 lines · Muzaffer Kadir
GT970 works with GT911 driver, document it to be
used with GT911 compatible.Signed-off-by Muzaffer Kadir <[email protected]>--- .../bindings/input/touchscreen/goodix.yaml | 35 ++++++++++++---------- 1 file changed, 20 insertions(+), 15 deletions(-)
Best regards,
Krzysztof
PATCH v3 19/19 arm64: dts: qcom: generalmobile-shamrock: new device
In reply to Muzaffer KadirAdd General Mobile Shamrock (GM 5 Plus). Shamrock is designed similar to L9300. Downstream reference is [1].
--- arch/arm64/boot/dts/qcom/Makefile | 1 + .../dts/qcom/msm8952-generalmobile-shamrock.dts | 435 +++++++++++++++++++++ 2 files changed, 436 insertions(+)
arch/arm64/boot/dts/qcom/Makefile +1 -0
@@ -126,6 +126,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8939-samsung-a7.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8939-sony-xperia-kanuti-tulip.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8939-wingtech-wt82918.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8939-wingtech-wt82918hd.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8952-generalmobile-shamrock.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-flipkart-rimob.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-motorola-potter.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-daisy.dtb
arch/arm64/boot/dts/qcom/msm8952-generalmobile-shamrock.dts new file +435 -0
435 lines not on this page · raw message
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v3 19/19] arm64: dts: qcom: generalmobile-shamrock: new device
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 8 lines
From: Muzaffer Kadir <[email protected]>
Add General Mobile Shamrock (GM 5 Plus). Shamrock is designed similar to L9300. Downstream reference is [1].
Signed-off-by Muzaffer Kadir <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-msm8952-initial-support-v3-0-b96fd3fe298b@mainlining.org?part=19
Dmitry Baryshkov
AppliedQuoted 9 lines · Muzaffer Kadir
MSM8952 is a SoC with 8 core cpu and Adreno 405 gpu.
Ported without uart connection. ramoops and usb mainly used to debug.
USB is not enabled in this series because it depends on the not yet upstreamed (and not developed by me)pmi8950_smbcharger.[...]
Applied to ttt, thanks!
[01/19] dt-bindings: clock: qcom: Add MSM8952 global clock controller
(no commit info)
[02/19] clk: qcom: Add global clock controller driver for MSM8952
(no commit info)
[03/19] dt-bindings: nvmem: Add compatible for MSM8952
(no commit info)
[04/19] dt-bindings: power: rpmpd: Add MSM8952 power domains
(no commit info)
[05/19] dt-bindings: mmc: sdhci-msm: Add MSM8952 compatible
(no commit info)
[06/19] dt-bindings: vendor-prefixes: Add General Mobile
(no commit info)
[07/19] dt-bindings: arm: qcom: Document MSM8952 SoC binding
(no commit info)
[08/19] dt-bindings: iommu: qcom,iommu: Add MSM8952 IOMMU to SMMUv2 compatibles
(no commit info)
[09/19] dt-bindings: mfd: qcom,tcsr: Add compatible for MSM8952
(no commit info)
[10/19] dt-bindings: display/msm: qcom, mdp5: Add MSM8952 compatible
https://gitlab.freedesktop.org/lumag/msm/-/commit/df6ce9e6447e
[11/19] dt-bindings: firmware: qcom,scm: Document MSM8952 SCM
(no commit info)
[12/19] dt-bindings: clock: qcom,rpmcc: Add MSM8952 compatible
(no commit info)
[13/19] drm: msm: mdp5: Add MDP5 configuration for MSM8952
https://gitlab.freedesktop.org/lumag/msm/-/commit/7af226f9aa59
[14/19] soc: qcom: ubwc: Add UBWC config for MSM8952
(no commit info)
[15/19] dt-bindings: thermal: tsens: Add MSM8952
(no commit info)
[16/19] thermal: qcom: tsens: Add support for MSM8952 tsens
(no commit info)
[17/19] arm64: dts: qcom: Add initial support for MSM8952
(no commit info)
[18/19] dt-bindings: input: touchscreen: goodix: Add binding for GT970
(no commit info)
[19/19] arm64: dts: qcom: generalmobile-shamrock: new device
(no commit info)
Best regards,
Signature · 2 lines
With best wishes Dmitry
Quoted 39 lines · Dmitry Baryshkov
Quoted 9 lines · Muzaffer Kadir
MSM8952 is a SoC with 8 core cpu and Adreno 405 gpu.
Ported without uart connection. ramoops and usb mainly used to debug.
USB is not enabled in this series because it depends on the not yet upstreamed (and not developed by me)pmi8950_smbcharger.[...]
Applied to ttt, thanks!
[01/19] dt-bindings: clock: qcom: Add MSM8952 global clock controller
(no commit info)
[02/19] clk: qcom: Add global clock controller driver for MSM8952
(no commit info)
[03/19] dt-bindings: nvmem: Add compatible for MSM8952
(no commit info)
[04/19] dt-bindings: power: rpmpd: Add MSM8952 power domains
(no commit info)
[05/19] dt-bindings: mmc: sdhci-msm: Add MSM8952 compatible
(no commit info)
[06/19] dt-bindings: vendor-prefixes: Add General Mobile
(no commit info)
[07/19] dt-bindings: arm: qcom: Document MSM8952 SoC binding
(no commit info)
[08/19] dt-bindings: iommu: qcom,iommu: Add MSM8952 IOMMU to SMMUv2 compatibles
(no commit info)
[09/19] dt-bindings: mfd: qcom,tcsr: Add compatible for MSM8952
(no commit info)
[10/19] dt-bindings: display/msm: qcom, mdp5: Add MSM8952 compatiblehttps://gitlab.freedesktop.org/lumag/msm/-/commit/df6ce9e6447e[11/19] dt-bindings: firmware: qcom,scm: Document MSM8952 SCM
(no commit info)
[12/19] dt-bindings: clock: qcom,rpmcc: Add MSM8952 compatible
(no commit info)
[13/19] drm: msm: mdp5: Add MDP5 configuration for MSM8952https://gitlab.freedesktop.org/lumag/msm/-/commit/7af226f9aa59
Quoted 12 lines
[14/19] soc: qcom: ubwc: Add UBWC config for MSM8952
(no commit info)
[15/19] dt-bindings: thermal: tsens: Add MSM8952
(no commit info)
[16/19] thermal: qcom: tsens: Add support for MSM8952 tsens
(no commit info)
[17/19] arm64: dts: qcom: Add initial support for MSM8952
(no commit info)
[18/19] dt-bindings: input: touchscreen: goodix: Add binding for GT970
(no commit info)
[19/19] arm64: dts: qcom: generalmobile-shamrock: new device
(no commit info)
Hi Dmitry,
Thanks for accepting MDP5 patches.
The message lists all 19 patches, but only 10 and 13 have commit links, the rest say "(no commit info)". Does this mean the whole series was applied, or only the MDP5 ones?
Best regards,
Muzaffer Kadir
Quoted 54 lines · Muzaffer Kadir
Quoted 39 lines · Dmitry Baryshkov
Quoted 9 lines · Muzaffer Kadir
MSM8952 is a SoC with 8 core cpu and Adreno 405 gpu.
Ported without uart connection. ramoops and usb mainly used to debug.
USB is not enabled in this series because it depends on the not yet upstreamed (and not developed by me)pmi8950_smbcharger.[...]
Applied to ttt, thanks!
[01/19] dt-bindings: clock: qcom: Add MSM8952 global clock controller
(no commit info)
[02/19] clk: qcom: Add global clock controller driver for MSM8952
(no commit info)
[03/19] dt-bindings: nvmem: Add compatible for MSM8952
(no commit info)
[04/19] dt-bindings: power: rpmpd: Add MSM8952 power domains
(no commit info)
[05/19] dt-bindings: mmc: sdhci-msm: Add MSM8952 compatible
(no commit info)
[06/19] dt-bindings: vendor-prefixes: Add General Mobile
(no commit info)
[07/19] dt-bindings: arm: qcom: Document MSM8952 SoC binding
(no commit info)
[08/19] dt-bindings: iommu: qcom,iommu: Add MSM8952 IOMMU to SMMUv2 compatibles
(no commit info)
[09/19] dt-bindings: mfd: qcom,tcsr: Add compatible for MSM8952
(no commit info)
[10/19] dt-bindings: display/msm: qcom, mdp5: Add MSM8952 compatiblehttps://gitlab.freedesktop.org/lumag/msm/-/commit/df6ce9e6447e[11/19] dt-bindings: firmware: qcom,scm: Document MSM8952 SCM
(no commit info)
[12/19] dt-bindings: clock: qcom,rpmcc: Add MSM8952 compatible
(no commit info)
[13/19] drm: msm: mdp5: Add MDP5 configuration for MSM8952https://gitlab.freedesktop.org/lumag/msm/-/commit/7af226f9aa59Quoted 12 lines
[14/19] soc: qcom: ubwc: Add UBWC config for MSM8952
(no commit info)
[15/19] dt-bindings: thermal: tsens: Add MSM8952
(no commit info)
[16/19] thermal: qcom: tsens: Add support for MSM8952 tsens
(no commit info)
[17/19] arm64: dts: qcom: Add initial support for MSM8952
(no commit info)
[18/19] dt-bindings: input: touchscreen: goodix: Add binding for GT970
(no commit info)
[19/19] arm64: dts: qcom: generalmobile-shamrock: new device
(no commit info)
Quoted 7 lines
Hi Dmitry,
Thanks for accepting MDP5 patches.
The message lists all 19 patches, but only 10 and 13 have commit links, the rest say "(no commit info)". Does this mean the whole series was applied, or only the MDP5 ones?
Only MDP5 ones.
Quoted 4 lines
Best regards,
Muzaffer Kadir
Signature · 2 lines
With best wishes Dmitry