Add support for the Qualcomm Molokai (SM8845) and the Motorola Signature
v2 cover Add support for the Qualcomm Molokai (SM8845) and the Motorola Signature
Molokai (SM8845) is a Qualcomm SoC derived from Kaanapali (SM8850). It has its own TLMM and GPIO to PDC wakeup map, a PDC with one more interrupt range, no I2C master hub, no fourth QUP wrapper, a different GPU clock controller and an Adreno 829 instead of the Adreno 840.
This series adds:
- the SoC ID (685, as reported in SMEM) and the socinfo entry
- the PDC compatible, the UBWC config and the protection domains
- the SoC compatible patterns and the board compatible
- the second DSI controller and PHY of Kaanapali, which the Motorola Signature uses for its panel
- the Molokai dtsi on top of the Kaanapali one, with its GPU
- a first devicetree for the Motorola Signature: UFS, USB with role switching and pmic-glink, the keys and the splash framebuffer
The rest of the phone (display, audio, DSPs, thermal) will follow once the drivers it needs are reviewed.
It depends on the Molokai TLMM, GPU clock controller and Adreno 829 series, sent at the same time.
Tested on the Motorola Signature, together with the board patches that will follow: it boots postmarketOS from UFS, with USB networking, the keys and the battery and USB power supplies working. dtbs_check is clean for the Motorola Signature and the Kaanapali MTP and QRD.
I used an LLM (Claude) to help write these patches and their commit messages. I reviewed all of them and tested the result on the device.
---
Changes in v2:
- vantage: describe the PMICs as reported by SMEM and the vendor
devicetree: PMK8550 on SID 0 (6 GPIOs, instead of including pmk8850.dtsi, whose 8 GPIOs made the GPIO driver read registers that
do not exist), PM8550 and PM8550VE RPMh regulator compatibles
(were PMH0101/PMH0110).
- vantage: the LDOs are PMIC5 LDOs without an auto mode, start them in high power mode like the vendor devicetree (v1 asked for auto mode, which the PMIC530 table encodes as the PMIC5 low power mode).
- vantage: drop the serial0 alias of the disabled uart7.
- vantage: drop alignment from the static reserved-memory nodes.
- vantage: move the memory map comment to the reserved-memory node.
- vantage: sort /delete-node/ lines, the clocks and the label overrides.
- Link to v1: https://patch.msgid.link/[email protected]
---
Venkat Yadlapati (11):
dt-bindings: arm: qcom,ids: Add SoC ID for SM8845
soc: qcom: socinfo: Add SM8845 SoC ID
dt-bindings: interrupt-controller: qcom,pdc: Document Molokai PDC
soc: qcom: ubwc: Add config for Molokai
soc: qcom: pd-mapper: Add support for Molokai
dt-bindings: arm: qcom-soc: Extend pattern for Molokai
dt-bindings: arm: qcom: Document Molokai and the Motorola Signature
arm64: dts: qcom: kaanapali: Add the second DSI controller and PHY
arm64: dts: qcom: Add Molokai (SM8845) SoC dtsi
arm64: dts: qcom: molokai: Describe the Adreno 829 GPU
arm64: dts: qcom: Add Motorola Signature (vantage)
.../devicetree/bindings/arm/qcom-soc.yaml | 4 +- Documentation/devicetree/bindings/arm/qcom.yaml | 5 + .../bindings/interrupt-controller/qcom,pdc.yaml | 1 + arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/kaanapali.dtsi | 90 ++- .../boot/dts/qcom/molokai-motorola-vantage.dts | 784 +++++++++++++++++++++ arch/arm64/boot/dts/qcom/molokai.dtsi | 327 +++++++++ drivers/soc/qcom/qcom_pd_mapper.c | 1 + drivers/soc/qcom/socinfo.c | 1 + drivers/soc/qcom/ubwc_config.c | 1 + include/dt-bindings/arm/qcom,ids.h | 1 + 11 files changed, 1212 insertions(+), 4 deletions(-)
---
base-commit: 6a876df4686788cd39128b62d7fcbff62f39278f
change-id: 20261116-molokai-soc-6ff9b295c2f3
prerequisite-change-id: 20261116-molokai-tlmm-ba0ee416e513:v1
prerequisite-patch-id: 370171903d0f17fe15c388c1656b22e24100153f
prerequisite-patch-id: 99e2c8b1997ebac9bf0463fdde3d83f6712ce487
prerequisite-change-id: 20261116-molokai-gpucc-daebd2758b5d:v1
prerequisite-patch-id: 0e6a86461e4d0ff585e2c950c87b4492ec9d96e8
prerequisite-patch-id: 6e286744dc03d7bd7216695a9c9632b22ad41f05
prerequisite-change-id: 20261116-molokai-a829-9cb850930124:v1
prerequisite-patch-id: c3a4e2985176713b54c997f91fa4975db8cdff3a
prerequisite-patch-id: c8fee006e015f2c35033a51779a4f1eb4655dcd0
Best regards,
Signature · 1 line
Venkat Yadlapati <[email protected]>
PATCH v2 1/11 dt-bindings: arm: qcom,ids: Add SoC ID for SM8845
Add the ID of the Qualcomm SM8845 (Molokai), a variant of the SM8850 (Kaanapali), as the Motorola Signature reports it in SMEM. socinfo uses it to report the SoC by name.
An LLM was used to help write this commit message.
--- include/dt-bindings/arm/qcom,ids.h | 1 + 1 file changed, 1 insertion(+)
include/dt-bindings/arm/qcom,ids.h +1 -0
@@ -300,6 +300,7 @@#define QCOM_ID_QCS8275 675#define QCOM_ID_QCS9075 676#define QCOM_ID_QCS615 680 +#define QCOM_ID_SM8845 685#define QCOM_ID_SA8797P 690#define QCOM_ID_SM8975 707#define QCOM_ID_CQ7790M 731
Signature · 1 line
2.56.1
PATCH v2 2/11 soc: qcom: socinfo: Add SM8845 SoC ID
In reply to Venkat YadlapatiAdd the SoC ID for SM8845, a variant of SM8850 (Kaanapali).
An LLM was used to help write this commit message.
--- drivers/soc/qcom/socinfo.c | 1 + 1 file changed, 1 insertion(+)
drivers/soc/qcom/socinfo.c +1 -0
@@ -541,6 +541,7 @@ static const struct soc_id soc_id[] = { { qcom_board_id(QCS8275) }, { qcom_board_id(QCS9075) }, { qcom_board_id(QCS615) }, + { qcom_board_id(SM8845) }, { qcom_board_id(SA8797P) }, { qcom_board_id(SM8975) }, { qcom_board_id(CQ7790M) },
Signature · 1 line
2.56.1
PATCH v2 3/11 dt-bindings: interrupt-controller: qcom,pdc: Document Molokai PDC
In reply to Venkat YadlapatiDocument the Power Domain Controller of the Qualcomm Molokai (SM8845) SoC, which maps one more range of interrupts than the Kaanapali one.
An LLM was used to help write this commit message.
--- Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml +1 -0
@@ -33,6 +33,7 @@ properties: - qcom,kuno-pdc - qcom,maili-pdc - qcom,milos-pdc + - qcom,molokai-pdc - qcom,nord-pdc - qcom,qcs615-pdc - qcom,qcs8300-pdc
Signature · 1 line
2.56.1
PATCH v2 4/11 soc: qcom: ubwc: Add config for Molokai
In reply to Venkat YadlapatiMolokai (SM8845) uses UBWC 6.0 with a highest bank bit of 16, like Kaanapali. Without an entry, the display subsystem fails to probe on Molokai based devices.
An LLM was used to help write this commit message.
--- 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,mahua", .data = &glymur_data }, { .compatible = "qcom,maili", .data = &ubwc_7_0_hbb16, }, { .compatible = "qcom,milos", .data = &milos_data }, + { .compatible = "qcom,molokai", .data = &ubwc_6_0_hbb16 }, { .compatible = "qcom,msm8226", .data = &no_ubwc_data }, { .compatible = "qcom,msm8916", .data = &no_ubwc_data }, { .compatible = "qcom,msm8917", .data = &no_ubwc_data },
Signature · 1 line
2.56.1
PATCH v2 5/11 soc: qcom: pd-mapper: Add support for Molokai
In reply to Venkat YadlapatiMolokai (SM8845) has the same remoteproc protection domains as Kaanapali.
An LLM was used to help write this commit message.
--- drivers/soc/qcom/qcom_pd_mapper.c | 1 + 1 file changed, 1 insertion(+)
drivers/soc/qcom/qcom_pd_mapper.c +1 -0
@@ -634,6 +634,7 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = { { .compatible = "qcom,kaanapali", .data = kaanapali_domains, }, { .compatible = "qcom,mahua", .data = glymur_domains, }, { .compatible = "qcom,milos", .data = sm8550_domains, }, + { .compatible = "qcom,molokai", .data = kaanapali_domains, }, { .compatible = "qcom,msm8226", .data = NULL, }, { .compatible = "qcom,msm8909", .data = NULL, }, { .compatible = "qcom,msm8916", .data = NULL, },
Signature · 1 line
2.56.1
Re: [PATCH v2 05/11] soc: qcom: pd-mapper: Add support for Molokai
Quoted 3 lines · Venkat Yadlapati
Molokai (SM8845) has the same remoteproc protection domains as Kaanapali.
An LLM was used to help write this commit message.
So a single line was written by LLM and then another line tells us that.
IMO, the second line is should be dropped.
PATCH v2 6/11 dt-bindings: arm: qcom-soc: Extend pattern for Molokai
In reply to Venkat YadlapatiAdd the Molokai (SM8845) codename to the patterns of SoC compatibles.
An LLM was used to help write this commit message.
--- Documentation/devicetree/bindings/arm/qcom-soc.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/arm/qcom-soc.yaml +2 -2
@@ -30,7 +30,7 @@ select: contains: oneOf: - pattern: "^qcom,.*(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sar|sc|sd[amx]|sm|x1[ep])[0-9]+.*$" - - pattern: "^qcom,.*(eliza|kaanapali|kuno|glymur|hawi|mahua|maili|milos|nord|shikra).*$" + - pattern: "^qcom,.*(eliza|kaanapali|kuno|glymur|hawi|mahua|maili|milos|molokai|nord|shikra).*$" required: - compatible
@@ -42,7 +42,7 @@ properties: - pattern: "^qcom,(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm|x1[ep])[0-9]+(pro)?-.*$" - pattern: "^qcom,sar[0-9]+[a-z]?-.*$" - pattern: "^qcom,(sa|sc)8[0-9]+[a-z][a-z]?-.*$" - - pattern: "^qcom,(eliza|kaanapali|kuno|glymur|hawi|mahua|maili|milos|nord|shikra)-.+$" + - pattern: "^qcom,(eliza|kaanapali|kuno|glymur|hawi|mahua|maili|milos|molokai|nord|shikra)-.+$" # Legacy namings - variations of existing patterns/compatibles are OK, # but do not add completely new entries to these:
Signature · 1 line
2.56.1
PATCH v2 7/11 dt-bindings: arm: qcom: Document Molokai and the Motorola Signature
In reply to Venkat YadlapatiDocument the Qualcomm Molokai (SM8845) SoC and the Motorola Signature (vantage) phone based on it.
An LLM was used to help write this commit message.
--- Documentation/devicetree/bindings/arm/qcom.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/qcom.yaml +5 -0
@@ -241,6 +241,11 @@ properties: - nothing,asteroids - const: qcom,milos + - items: + - enum: + - motorola,vantage + - const: qcom,molokai + - items: - enum: - microsoft,dempsey
Signature · 1 line
2.56.1
Re: [PATCH v2 07/11] dt-bindings: arm: qcom: Document Molokai and the Motorola Signature
Quoted 6 lines · On 16/11/2026 08:40, Venkat Yadlapati via B4 Relay wrote:
From: Venkat Yadlapati <[email protected]>
Document the Qualcomm Molokai (SM8845) SoC and the Motorola Signature (vantage) phone based on it.
An LLM was used to help write this commit message.
Same comments, this does not belong to the commit msg, but to the changelog.
Best regards,
Krzysztof
PATCH v2 8/11 arm64: dts: qcom: kaanapali: Add the second DSI controller and PHY
In reply to Venkat YadlapatiKaanapali has two DSI controllers. Describe DSI1 and its PHY next to DSI0, connect it to the INTF2 output of the display processor and feed the PHY's byte and pixel clocks to the display clock controller.
--- arch/arm64/boot/dts/qcom/kaanapali.dtsi | 90 ++++++++++++++++++++++++++++++++- 1 file changed, 88 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/kaanapali.dtsi +88 -2
@@ -3709,6 +3709,7 @@ port@1 { reg = <1>; dpu_intf2_out: endpoint { + remote-endpoint = <&mdss_dsi1_in>; }; };
@@ -3868,6 +3869,91 @@ mdss_dsi0_phy: phy@9ac1000 { status = "disabled"; }; + + mdss_dsi1: dsi@9ac3000 { + compatible = "qcom,kaanapali-dsi-ctrl", "qcom,mdss-dsi-ctrl"; + reg = <0x0 0x09ac3000 0x0 0x1000>; + reg-names = "dsi_ctrl"; + + interrupts-extended = <&mdss 5>; + + clocks = <&dispcc DISP_CC_MDSS_BYTE1_CLK>, + <&dispcc DISP_CC_MDSS_BYTE1_INTF_CLK>, + <&dispcc DISP_CC_MDSS_PCLK1_CLK>, + <&dispcc DISP_CC_MDSS_ESC1_CLK>, + <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&gcc GCC_DISP_HF_AXI_CLK>, + <&mdss_dsi1_phy DSI_PIXEL_PLL_CLK>, + <&mdss_dsi1_phy DSI_BYTE_PLL_CLK>, + <&dispcc DISP_CC_ESYNC1_CLK>, + <&dispcc DISP_CC_OSC_CLK>, + <&dispcc DISP_CC_MDSS_BYTE1_CLK_SRC>, + <&dispcc DISP_CC_MDSS_PCLK1_CLK_SRC>; + clock-names = "byte", + "byte_intf", + "pixel", + "core", + "iface", + "bus", + "dsi_pll_pixel", + "dsi_pll_byte", + "esync", + "osc", + "byte_src", + "pixel_src"; + + operating-points-v2 = <&mdss_dsi_opp_table>; + + power-domains = <&rpmhpd RPMHPD_MMCX>; + + phys = <&mdss_dsi1_phy>; + phy-names = "dsi"; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + mdss_dsi1_in: endpoint { + remote-endpoint = <&dpu_intf2_out>; + }; + }; + + port@1 { + reg = <1>; + + mdss_dsi1_out: endpoint { + }; + }; + }; + }; + + mdss_dsi1_phy: phy@9ac4000 { + compatible = "qcom,kaanapali-dsi-phy-3nm"; + reg = <0x0 0x09ac4000 0x0 0x1cc>, + <0x0 0x09ac4200 0x0 0x280>, + <0x0 0x09ac4500 0x0 0x400>; + reg-names = "dsi_phy", + "dsi_phy_lane", + "dsi_pll"; + + clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&rpmhcc RPMH_CXO_CLK>; + clock-names = "iface", + "ref"; + + #clock-cells = <1>; + #phy-cells = <0>; + + status = "disabled"; + }; }; dispcc: clock-controller@9ba2000 {
@@ -3887,8 +3973,8 @@ dispcc: clock-controller@9ba2000 { <0>, <&mdss_dsi0_phy DSI_BYTE_PLL_CLK>, <&mdss_dsi0_phy DSI_PIXEL_PLL_CLK>, - <0>, - <0>; + <&mdss_dsi1_phy DSI_BYTE_PLL_CLK>, + <&mdss_dsi1_phy DSI_PIXEL_PLL_CLK>; power-domains = <&rpmhpd RPMHPD_MMCX>; required-opps = <&rpmhpd_opp_low_svs>;
Signature · 1 line
2.56.1
PATCH v2 9/11 arm64: dts: qcom: Add Molokai (SM8845) SoC dtsi
In reply to Venkat YadlapatiMolokai is a Kaanapali derivative. Describe it on top of the Kaanapali
dtsi: it has its own TLMM, with different pins for most serial engines and a different GPIO to PDC wakeup map, and a PDC with one more interrupt range. It has neither the I2C master hub nor the fourth QUP wrapper, and QUP3 SE5 does not exist. Its graphics clock controller is not compatible with the Kaanapali one.
The SDC2 lines are muxed on regular GPIOs instead of dedicated pins, so the Kaanapali SDC2 pin states are dropped; boards using SDC2 describe their own.
--- arch/arm64/boot/dts/qcom/molokai.dtsi | 204 ++++++++++++++++++++++++++++++++++ 1 file changed, 204 insertions(+)
arch/arm64/boot/dts/qcom/molokai.dtsi new file +204 -0
@@ -0,0 +1,204 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2026 Venkat Yadlapati <[email protected]> + * + * Molokai (SM8845) is a Kaanapali derivative with its own TLMM: the pins of + * most serial engines and all the GPIO wakeup interrupts are different. It + * has no I2C master hub, no fourth QUP wrapper and no QUP3 SE5, and its PDC + * maps one more interrupt range. The SDC2 lines are muxed on regular GPIOs + * instead of dedicated pins, and the GPU is an Adreno 829 instead of the + * Adreno 840. + */ +#include "kaanapali.dtsi" + +/delete-node/ &gpi_dma4; +/delete-node/ &i2c_master_hub; +/delete-node/ &qupv3_4; +/delete-node/ &uart18; + +/delete-node/ &hub_i2c0_data_clk; +/delete-node/ &hub_i2c1_data_clk; +/delete-node/ &hub_i2c2_data_clk; +/delete-node/ &hub_i2c3_data_clk; +/delete-node/ &hub_i2c4_data_clk; +/delete-node/ &qup_i2c19_data_clk; +/delete-node/ &qup_i2c20_data_clk; +/delete-node/ &qup_i2c21_data_clk; +/delete-node/ &qup_i2c22_data_clk; +/delete-node/ &qup_i2c23_data_clk; +/delete-node/ &qup_spi19_cs; +/delete-node/ &qup_spi19_data_clk; +/delete-node/ &qup_spi20_cs; +/delete-node/ &qup_spi20_data_clk; +/delete-node/ &qup_spi21_cs; +/delete-node/ &qup_spi21_data_clk; +/delete-node/ &qup_uart18_cts_rts; +/delete-node/ &qup_uart18_default; +/delete-node/ &sdc2_default; +/delete-node/ &sdc2_sleep; + +&gpucc { + compatible = "qcom,molokai-gpucc"; +}; + +&pdc { + compatible = "qcom,molokai-pdc", "qcom,pdc"; + qcom,pdc-ranges = <0 745 38>, + <40 785 11>, + <51 527 4>, + <58 534 2>, + <61 537 20>, + <84 559 14>, + <98 609 32>, + <130 717 12>, + <142 251 5>, + <147 796 16>, + <163 783 2>, + <165 531 2>, + <167 536 1>, + <168 557 2>, + <170 415 1>, + <171 438 1>, + <172 579 1>, + <173 703 1>, + <174 708 1>, + <175 714 1>, + <176 68 1>, + <177 86 1>, + <178 96 1>, + <179 249 1>, + <180 504 9>; +}; + +&qup_i2c0_data_clk { + pins = "gpio32", "gpio33"; +}; + +&qup_i2c1_data_clk { + pins = "gpio36", "gpio37"; +}; + +&qup_i2c4_data_clk { + pins = "gpio48", "gpio49"; +}; + +&qup_i2c5_data_clk { + pins = "gpio72", "gpio73"; + function = "qup1_se5_mira"; +}; + +&qup_i2c10_data_clk { + pins = "gpio8", "gpio9"; +}; + +&qup_i2c11_data_clk { + pins = "gpio12", "gpio13"; +}; + +&qup_i2c12_data_clk { + pins = "gpio117", "gpio118"; + function = "qup2_se4_mirb"; +}; + +&qup_i2c14_data_clk { + pins = "gpio68", "gpio69"; +}; + +&qup_i2c15_data_clk { + pins = "gpio80", "gpio81"; +}; + +&qup_i2c16_data_clk { + pins = "gpio76", "gpio77"; +}; + +&qup_i2c17_data_clk { + pins = "gpio52", "gpio53"; +}; + +&qup_spi0_cs { + pins = "gpio35"; +}; + +&qup_spi0_data_clk { + pins = "gpio32", "gpio33", "gpio34"; +}; + +&qup_spi1_cs { + pins = "gpio39"; +}; + +&qup_spi1_data_clk { + pins = "gpio36", "gpio37", "gpio38"; +}; + +&qup_spi4_cs { + pins = "gpio51"; +}; + +&qup_spi4_data_clk { + pins = "gpio48", "gpio49", "gpio50"; +}; + +&qup_spi5_cs { + pins = "gpio75"; + function = "qup1_se5_mira"; +}; + +&qup_spi5_data_clk { + pins = "gpio72", "gpio73", "gpio74"; + function = "qup1_se5_mira"; +}; + +&qup_spi10_cs { + pins = "gpio11"; +}; + +&qup_spi10_data_clk { + pins = "gpio8", "gpio9", "gpio10"; +}; + +&qup_spi11_cs { + pins = "gpio15"; +}; + +&qup_spi11_data_clk { + pins = "gpio12", "gpio13", "gpio14"; +}; + +&qup_spi14_cs { + pins = "gpio71"; +}; + +&qup_spi14_data_clk { + pins = "gpio68", "gpio69", "gpio70"; +}; + +&qup_spi15_cs { + pins = "gpio83"; +}; + +&qup_spi15_data_clk { + pins = "gpio80", "gpio81", "gpio82"; +}; + +&qup_spi16_cs { + pins = "gpio147"; +}; + +&qup_spi16_data_clk { + pins = "gpio76", "gpio77", "gpio146"; +}; + +&qup_spi17_cs { + pins = "gpio55"; +}; + +&qup_spi17_data_clk { + pins = "gpio52", "gpio53", "gpio54"; +}; + +&tlmm { + compatible = "qcom,molokai-tlmm"; + gpio-ranges = <&tlmm 0 0 206>; +};
Signature · 1 line
2.56.1
PATCH v2 10/11 arm64: dts: qcom: molokai: Describe the Adreno 829 GPU
In reply to Venkat YadlapatiThe Molokai GPU is an Adreno 829 instead of the Kaanapali Adreno 840. It has no speed bin fuse and its own set of operating points.
--- arch/arm64/boot/dts/qcom/molokai.dtsi | 123 ++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+)
arch/arm64/boot/dts/qcom/molokai.dtsi +123 -0
@@ -12,6 +12,7 @@ #include "kaanapali.dtsi" /delete-node/ &gpi_dma4; +/delete-node/ &gpu_opp_table; /delete-node/ &i2c_master_hub; /delete-node/ &qupv3_4; /delete-node/ &uart18;
@@ -37,6 +38,128 @@ /delete-node/ &sdc2_default; /delete-node/ &sdc2_sleep; +&gmu { + compatible = "qcom,adreno-gmu-829.0", "qcom,adreno-gmu"; +}; + +&gpu { + compatible = "qcom,adreno-44030a00", "qcom,adreno"; + + /* No GPU speed bin fuse */ + /delete-property/ nvmem-cells; + /delete-property/ nvmem-cell-names; + + gpu_opp_table: opp-table { + compatible = "operating-points-v2-adreno", + "operating-points-v2"; + + opp-195000000 { + opp-hz = /bits/ 64 <195000000>; + opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS_D2>; + opp-peak-kBps = <2136718>; + qcom,opp-acd-level = <0xc82f5ffd>; + }; + + opp-301000000 { + opp-hz = /bits/ 64 <301000000>; + opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS_D1>; + opp-peak-kBps = <5285156>; + qcom,opp-acd-level = <0xc82f5ffd>; + }; + + opp-403000000 { + opp-hz = /bits/ 64 <403000000>; + opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>; + opp-peak-kBps = <5285156>; + qcom,opp-acd-level = <0xc8295ffd>; + }; + + opp-496000000 { + opp-hz = /bits/ 64 <496000000>; + opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS_L1>; + opp-peak-kBps = <5285156>; + qcom,opp-acd-level = <0xc8295ffd>; + }; + + opp-589000000 { + opp-hz = /bits/ 64 <589000000>; + opp-level = <RPMH_REGULATOR_LEVEL_SVS>; + opp-peak-kBps = <6074218>; + qcom,opp-acd-level = <0xc02b5ffd>; + }; + + opp-660000000 { + opp-hz = /bits/ 64 <660000000>; + opp-level = <RPMH_REGULATOR_LEVEL_SVS_L0>; + opp-peak-kBps = <6074218>; + qcom,opp-acd-level = <0x882f5ffd>; + }; + + opp-714000000 { + opp-hz = /bits/ 64 <714000000>; + opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>; + opp-peak-kBps = <6074218>; + qcom,opp-acd-level = <0x882f5ffd>; + }; + + opp-732000000 { + opp-hz = /bits/ 64 <732000000>; + opp-level = <RPMH_REGULATOR_LEVEL_SVS_L2>; + opp-peak-kBps = <8171875>; + qcom,opp-acd-level = <0x882e5ffd>; + }; + + opp-795000000 { + opp-hz = /bits/ 64 <795000000>; + opp-level = <RPMH_REGULATOR_LEVEL_NOM>; + opp-peak-kBps = <12449218>; + qcom,opp-acd-level = <0x882d5ffd>; + }; + + opp-891000000 { + opp-hz = /bits/ 64 <891000000>; + opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>; + opp-peak-kBps = <12449218>; + qcom,opp-acd-level = <0xa82b5ffd>; + }; + + opp-975000000 { + opp-hz = /bits/ 64 <975000000>; + opp-level = <RPMH_REGULATOR_LEVEL_TURBO>; + opp-peak-kBps = <14398437>; + qcom,opp-acd-level = <0x882b5ffd>; + }; + + opp-1025000000 { + opp-hz = /bits/ 64 <1025000000>; + opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L0>; + opp-peak-kBps = <14398437>; + qcom,opp-acd-level = <0xa82a5ffd>; + }; + + opp-1075000000 { + opp-hz = /bits/ 64 <1075000000>; + opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>; + opp-peak-kBps = <14398437>; + qcom,opp-acd-level = <0x882a5ffd>; + }; + + opp-1150000000 { + opp-hz = /bits/ 64 <1150000000>; + opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L2>; + opp-peak-kBps = <18671875>; + qcom,opp-acd-level = <0xa8295ffd>; + }; + + opp-1225000000 { + opp-hz = /bits/ 64 <1225000000>; + opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L3>; + opp-peak-kBps = <18671875>; + qcom,opp-acd-level = <0x88295ffd>; + }; + }; +}; + &gpucc { compatible = "qcom,molokai-gpucc"; };
Signature · 1 line
2.56.1
PATCH v2 11/11 arm64: dts: qcom: Add Motorola Signature (vantage)
In reply to Venkat YadlapatiAdd the devicetree for the Motorola Signature (vantage), a phone built on the Molokai (SM8845) SoC, with:
- UFS storage, the device reset is on GPIO 205
- USB with role switching, and the Type-C connector handled by the charger firmware on SoCCP through pmic-glink, which also provides the battery and USB power supplies
- the volume and AI keys: volume up is GPIO 6 of the PM8550, the AI key TLMM GPIO 124 and volume down the RESIN input of the PMK8550
- the bootloader's splash buffer as a simple-framebuffer
The PMICs on SPMI bus 0 are a PMK8550 (SID 0), a PM8550 (SID 1) and PM8550VE regulators, as reported in SMEM and described by the vendor devicetree. They are described here instead of including pmk8850.dtsi or pmk8550.dtsi: the PMK8550 has 6 GPIOs, not the 8 of the PMK8850, and pmk8550.dtsi is written for the single SPMI bus of the older SoCs. The LDOs are PMIC5 LDOs, which have no auto mode: like the vendor devicetree they start in high power mode and may drop to low power mode.
The memory map follows the firmware the phone ships with. The CoreSight blocks are disabled: they are not accessible on production devices and reading their peripheral ID registers is a synchronous external abort.
--- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/molokai-motorola-vantage.dts | 784 +++++++++++++++++++++ 2 files changed, 785 insertions(+)
arch/arm64/boot/dts/qcom/Makefile +1 -0
@@ -79,6 +79,7 @@ dtb-$(CONFIG_ARCH_QCOM) += mahua-lenovo-thinkpad-t14s-gen7-lcd.dtb dtb-$(CONFIG_ARCH_QCOM) += mahua-qcb.dtb dtb-$(CONFIG_ARCH_QCOM) += milos-fairphone-fp6.dtb dtb-$(CONFIG_ARCH_QCOM) += milos-nothing-asteroids.dtb +dtb-$(CONFIG_ARCH_QCOM) += molokai-motorola-vantage.dtb dtb-$(CONFIG_ARCH_QCOM) += monaco-arduino-monza.dtb monaco-arduino-monza-el2-dtbs := monaco-arduino-monza.dtb monaco-el2.dtbo
arch/arm64/boot/dts/qcom/molokai-motorola-vantage.dts new file +784 -0
784 lines not on this page · raw message
Signature · 1 line
2.56.1
[email protected]
AI reviewRe: [PATCH v2 11/11] arm64: dts: qcom: Add Motorola Signature (vantage)
Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] arm64: dts: qcom: vantage simple-framebuffer lacks clocks and power domains - [Low] arm64: dts…
Thank you for your contribution! Sashiko AI review found 2 potential issues to consider:
- [Medium] arm64: dts: qcom: vantage simple-framebuffer lacks clocks and power domains
- [Low] arm64: dts: qcom: gpio@b800 out of unit-address order in pmic@0 --
commit 06a3bd9d7180afacf80e722fa6af997381342626
Author: Venkat Yadlapati <[email protected]>
arm64: dts: qcom: Add Motorola Signature (vantage)
This commit adds the devicetree for the Motorola Signature (vantage) smartphone based on the Qualcomm Molokai (SM8845) SoC.
Quoted 6 lines
arch/arm64/boot/dts/qcom/molokai-motorola-vantage.dts new file +0
-0@@ -0,0 +1,784 @@
[ ... ]
Quoted 4 lines
arch/arm64/boot/dts/qcom/molokai-motorola-vantage.dts new file +4
-0+ chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges;
arch/arm64/boot/dts/qcom/molokai-motorola-vantage.dts line 46
Quoted 10 lines
arch/arm64/boot/dts/qcom/molokai-motorola-vantage.dts new file +10
-0+ + framebuffer0: framebuffer@fc800000 { + compatible = "simple-framebuffer"; + reg = <0x0 0xfc800000 0x0 0x2b00000>; + width = <1264>; + height = <2780>; + stride = <(1264 * 4)>; + format = "a8r8g8b8"; + }; + };
[Severity: Medium]
Does framebuffer0 need clocks and power-domains properties (or dispcc disabled) to keep the bootloader-initialized display pipeline running?
In kaanapali.dtsi, gcc and dispcc are enabled by default while mdss is disabled. Without a consumer claiming GCC_DISP_HF_AXI_CLK, the dispcc MDSS clocks, and DISP_CC_MDSS_CORE_GDSC, clk_disable_unused() and genpd_power_off_unused() will gate the display clocks and collapse the MDSS core GDSC during late initcalls, breaking simple-framebuffer scanout.
[ ... ]
Quoted 28 lines
+&spmi_bus0 {
arch/arm64/boot/dts/qcom/molokai-motorola-vantage.dts new file +27
-0+ pmic@0 { + compatible = "qcom,pmk8550", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pmk8550_pon: pon@1300 { + compatible = "qcom,pmk8350-pon"; + reg = <0x1300>, + <0x800>; + reg-names = "hlos", + "pbs"; + + pon_pwrkey: pwrkey { + compatible = "qcom,pmk8350-pwrkey"; + interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>; + linux,code = <KEY_POWER>; + }; + + pon_resin: resin { + compatible = "qcom,pmk8350-resin"; + interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>; + linux,code = <KEY_VOLUMEDOWN>; + }; + }; + + pmk8550_gpios: gpio@b800 {
arch/arm64/boot/dts/qcom/molokai-motorola-vantage.dts line 664
Quoted 10 lines
arch/arm64/boot/dts/qcom/molokai-motorola-vantage.dts new file +10
-0+ compatible = "qcom,pmk8550-gpio", "qcom,spmi-gpio"; + reg = <0xb800>; + gpio-controller; + gpio-ranges = <&pmk8550_gpios 0 0 6>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + pmk8550_rtc: rtc@6100 {
[Severity: Low]
This isn't a bug, but gpio@b800 is out of ascending unit-address order within pmic@0 and should be placed after nvram@7100.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=11