From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 808803EDE7C; Tue, 6 Oct 2026 12:15:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791288943; cv=none; b=Rb3gvzf85k0We9ayEN36+ZtRAtsdoPx+Pu7WgkWk1Z1L6pGpAxntZNdHRTdgUuRHB3lOewPcPAR39tbK4nzoST8r/nTcyZUz4aTQHQG4ZONQxPQiK0O3/9sae20sJRPgp5q/NmH12O9MMFwY7eHqyGL2Iy+6QDOL4DbkSAu5kRw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791288943; c=relaxed/simple; bh=6SRT3574ngYng/Gk5dyY/GIUvlILwgq/HP04R7VdNtc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MWsWazdEJvTfJtJ0OF/vlVVFQn6/n6qC+HnfArro65mRvwPGtCt7i7TWJ2sXp5vF2XqhZYtJR7VEj8m3bum7mDUpCej4vctqoXwiHlN6/dm65VM1nWpWXN/3d9NfJskJkynRBxy/VAWf3z1ERZIJ0PqOyB0RML09k1nU95z5D/4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cxtDVlfy; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cxtDVlfy" Received: by smtp.kernel.org (Postfix) with ESMTPS id 4A096C4DE01; Tue, 6 Oct 2026 12:15:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1791288941; bh=6SRT3574ngYng/Gk5dyY/GIUvlILwgq/HP04R7VdNtc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=cxtDVlfy06g/p5cbSVNwONvSmBnlAIjH732IshGNM/xgpRDVJ2Yo211PBTNwqZPux XTxnv03j5NlKZlWok62jUANfPuhfJ/hm/Rq5tv2lDx6/YbtALXF/BV/B2OrYw90xC0 NOWofskXHQ3K3+yxLaOIWp1cpR/Y9+ZA/moCapDUhFoz7zmM5FjMvCZ5yXtUJv7pge 7mliR4zxliXfTPCYcWL5akgDrj0H5t8bHtw/6sKaJTIZKfiDzjQIGI794pNzeYV4ng gaOlqTR/bxfeZVkeMnEeJEom7ndayS2qlPuwD+ae/oy0Vt99BsDk+Ux1ZRRL5WalU9 RbHtVq+5oPFBw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33A48CA6004; Tue, 6 Oct 2026 12:15:41 +0000 (UTC) From: Muzaffer Kadir via B4 Relay Date: Tue, 06 Oct 2026 15:15:14 +0300 Subject: [PATCH v4 7/7] arm64: dts: qcom: generalmobile-shamrock: new device Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261006-msm8952-initial-support-v4-7-ecdcc1ac620c@mainlining.org> References: <20261006-msm8952-initial-support-v4-0-ecdcc1ac620c@mainlining.org> In-Reply-To: <20261006-msm8952-initial-support-v4-0-ecdcc1ac620c@mainlining.org> To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Joerg Roedel (AMD)" , Will Deacon , Robin Murphy , Konrad Dybcio , Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Bjorn Andersson , Abel Vesa , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , Dmitry Torokhov Cc: David Heidelberg , phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-pm@vger.kernel.org, linux-input@vger.kernel.org, Muzaffer Kadir X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1791288938; l=11249; i=muzafferkadir@mainlining.org; s=20260816; h=from:subject:message-id; bh=ffFFkJidU1ps/YRl6Y6TqqB8qywb5ps7t3vcLKjZ4Kg=; b=4yKUScUk1PHVs4YqWceuMPrfi9NvecXHAe/V1zBKkHDbh0i6ZDiiOdbQRX5hyPkUj4veQVwpN rpFOQHYNKtZDMRkgjNs5HG8kdq7hNIYkEi9t7cnZ1k8ubkOEp9S6wbp X-Developer-Key: i=muzafferkadir@mainlining.org; a=ed25519; pk=4zkv4suQ3cYcO4Z7CrV8JSSjEGLBGepUtvQCFjgnYIU= X-Endpoint-Received: by B4 Relay for muzafferkadir@mainlining.org/20260816 with auth_id=954 X-Original-From: Muzaffer Kadir Reply-To: muzafferkadir@mainlining.org From: Muzaffer Kadir Add General Mobile Shamrock (GM 5 Plus). Shamrock is designed similar to L9300. Downstream reference is [1]. [1] https://github.com/Asderdd/android_kernel_generalmobile_shamrock/blob/cm-14.1/arch/arm/boot/dts/qcom/msm8952-l9300.dtsi Signed-off-by: Muzaffer Kadir --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../dts/qcom/msm8952-generalmobile-shamrock.dts | 435 +++++++++++++++++++++ 2 files changed, 436 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 88230c4e00ea..898df8754657 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -130,6 +130,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-deen.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-motorola-potter.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8952-generalmobile-shamrock.dts b/arch/arm64/boot/dts/qcom/msm8952-generalmobile-shamrock.dts new file mode 100644 index 000000000000..9114b232cb1b --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8952-generalmobile-shamrock.dts @@ -0,0 +1,435 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8952.dtsi" +#include "pm8950.dtsi" +#include "pmi8950.dtsi" +#include +#include + +/ { + model = "General Mobile GM 5 Plus"; + compatible = "generalmobile,shamrock", "qcom,msm8952"; + chassis-type = "handset"; + qcom,msm-id = ; + qcom,board-id = ; + + aliases { + mmc0 = &sdhc_1; /* SDC1 eMMC slot */ + mmc1 = &sdhc_2; /* SDC2 SD card slot */ + serial0 = &blsp1_uart2; + }; + + battery: battery { + compatible = "simple-battery"; + + charge-term-current-microamp = <100000>; + charge-full-design-microamp-hours = <3100000>; + constant-charge-current-max-microamp = <3000000>; + constant-charge-voltage-max-microvolt = <4400000>; + voltage-min-design-microvolt = <3400000>; + voltage-max-design-microvolt = <4400000>; + }; + + chosen { + stdout-path = "serial0:115200n8"; + + framebuffer { + compatible = "simple-framebuffer"; + memory-region = <&cont_splash_mem>; + + width = <1080>; + height = <1920>; + stride = <(1080 * 3)>; + format = "r8g8b8"; + + power-domains = <&gcc MDSS_GDSC>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_VSYNC_CLK>, + <&gcc GCC_MDSS_MDP_CLK>, + <&gcc GCC_MDSS_BYTE0_CLK>, + <&gcc GCC_MDSS_PCLK0_CLK>, + <&gcc GCC_MDSS_ESC0_CLK>; + }; + }; + + /* Front Flash */ + flash-led-controller { + compatible = "sgmicro,sgm3140"; + + enable-gpios = <&tlmm 33 GPIO_ACTIVE_HIGH>; + flash-gpios = <&tlmm 128 GPIO_ACTIVE_HIGH>; + + pinctrl-0 = <&front_flash_default>; + pinctrl-names = "default"; + + front_flash_led: led { + function = LED_FUNCTION_FLASH; + color = ; + flash-max-microamp = <1000000>; + led-max-microamp = <625000>; + flash-max-timeout-us = <1280000>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&gpio_hall_sensor_default>, <&gpio_keys_default>; + pinctrl-names = "default"; + + button-volume-up { + label = "Volume Up"; + gpios = <&tlmm 85 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + wakeup-source; + linux,code = ; + }; + + event-hall-sensor { + label = "Hall Effect Sensor"; + gpios = <&tlmm 46 GPIO_ACTIVE_LOW>; + wakeup-source; + linux,input-type = ; + linux,code = ; + linux,can-disable; + }; + }; + + multi-led { + compatible = "leds-group-multicolor"; + color = ; + function = LED_FUNCTION_INDICATOR; + leds = <&red_status>, <&green_status>, <&blue_status>; + }; + + reserved-memory { + cont_splash_mem: cont-splash@83200000 { + reg = <0x0 0x83200000 0x0 (1080 * 1920 * 3)>; + no-map; + }; + }; + + vph_pwr: regulator-vph-pwr { + compatible = "regulator-fixed"; + regulator-name = "vph-pwr"; + regulator-always-on; + regulator-boot-on; + }; +}; + +&adsp { + status = "okay"; +}; + +&blsp1_i2c2 { + status = "okay"; + /* SMB1351 @1d charger */ + /* wsa881x-i2c @e @44 @f @45 audio amplifier */ +}; + +&blsp1_i2c3 { + status = "okay"; + + /* himax,852x@48 Touchscreen */ + + touchscreen@5d { + compatible = "goodix,gt970", "goodix,gt911"; + reg = <0x5d>; + interrupts-extended = <&tlmm 65 IRQ_TYPE_EDGE_FALLING>; + irq-gpios = <&tlmm 65 GPIO_ACTIVE_HIGH>; + reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>; + AVDD28-supply = <&pm8950_l10>; + VDDIO-supply = <&pm8950_l6>; + + pinctrl-0 = <&touchscreen_default>; + pinctrl-names = "default"; + + touchscreen-size-x = <1080>; + touchscreen-size-y = <1920>; + }; +}; + +&blsp2_i2c1 { + status = "okay"; + + /* FUSB301 @25 USB-C Controller */ + + tpa6130a2: audio-controller@60 { + compatible = "ti,tpa6130a2"; + reg = <0x60>; + pinctrl-0 = <&tpa6130a2_default>; + pinctrl-names = "default"; + power-gpio = <&tlmm 61 GPIO_ACTIVE_HIGH>; + Vdd-supply = <&pm8950_l22>; + }; + + tusb320: usb@67 { + compatible = "ti,tusb320"; + reg = <0x67>; + interrupts-extended = <&tlmm 45 IRQ_TYPE_EDGE_FALLING>; + }; + + led-controller@68 { + compatible = "si-en,sn3193"; + reg = <0x68>; + + shutdown-gpios = <&tlmm 68 GPIO_ACTIVE_HIGH>; + + #address-cells = <1>; + #size-cells = <0>; + + red_status: led@1 { + reg = <1>; + label = "red:status"; + led-max-microamp = <17500>; + }; + + green_status: led@2 { + reg = <2>; + label = "green:status"; + led-max-microamp = <17500>; + }; + + blue_status: led@3 { + reg = <3>; + label = "blue:status"; + led-max-microamp = <17500>; + }; + }; +}; + +&pm8950_spmi_regulators { + /* PM8950 S5 + S6 = VDD_APC supply */ + pm8950_s5: s5 { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1350000>; + regulator-always-on; + regulator-boot-on; + }; +}; + +&pm8950_resin { + linux,code = ; + + status = "okay"; +}; + +&pmi8950_wled { + qcom,enabled-strings = <0 1>; + qcom,current-limit-microamp = <30000>; + qcom,ovp-millivolt = <29500>; + qcom,external-pfet; + + status = "okay"; +}; + +&ramoops_mem { + status = "okay"; +}; + +&rpm_requests { + pm8950_rpm_regulators: regulators { + compatible = "qcom,rpm-pm8950-regulators"; + vdd_s1-supply = <&vph_pwr>; + vdd_s2-supply = <&vph_pwr>; + vdd_s3-supply = <&vph_pwr>; + vdd_s4-supply = <&vph_pwr>; + vdd_s6-supply = <&vph_pwr>; + vdd_l1_l19-supply = <&pm8950_s3>; + vdd_l2_l23-supply = <&pm8950_s3>; + vdd_l3-supply = <&pm8950_s3>; + vdd_l5_l6_l7_l16-supply = <&pm8950_s4>; + vdd_l8_l11_l12_l17_l22-supply = <&vph_pwr>; + vdd_l9_l10_l13_l14_l15_l18-supply = <&vph_pwr>; + + pm8950_s1: s1 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1225000>; + }; + + pm8950_s3: s3 { + regulator-min-microvolt = <1300000>; + regulator-max-microvolt = <1300000>; + }; + + pm8950_s4: s4 { + regulator-min-microvolt = <2050000>; + regulator-max-microvolt = <2050000>; + }; + + pm8950_l2: l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-boot-on; + }; + + /* pm8950_l3 is managed by rpmpd (RPMPD_VDDMX) */ + + pm8950_l5: l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8950_l6: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8950_l7: l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8950_l8: l8 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2900000>; + }; + + pm8950_l9: l9 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + }; + + pm8950_l10: l10 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + }; + + pm8950_l11: l11 { + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + regulator-allow-set-load; + regulator-system-load = <200000>; + }; + + pm8950_l12: l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + pm8950_l13: l13 { + regulator-min-microvolt = <3075000>; + regulator-max-microvolt = <3075000>; + }; + + pm8950_l14: l14 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + pm8950_l15: l15 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + pm8950_l16: l16 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + pm8950_l17: l17 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + pm8950_l19: l19 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1350000>; + }; + + pm8950_l22: l22 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + }; + + pm8950_l23: l23 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + }; +}; + +&sdhc_1 { + vmmc-supply = <&pm8950_l8>; + vqmmc-supply = <&pm8950_l5>; + + status = "okay"; +}; + +&sdhc_2 { + cd-gpios = <&tlmm 67 GPIO_ACTIVE_HIGH>; + vmmc-supply = <&pm8950_l11>; + vqmmc-supply = <&pm8950_l12>; + + status = "okay"; +}; + +&sleep_clk { + clock-frequency = <32768>; +}; + +&tlmm { + gpio-reserved-ranges = <20 4>; /* Unknown, TZ Protected */ + + gpio_hall_sensor_default: gpio-hall-sensor-default-state { + pins = "gpio46"; + function = "gpio"; + drive-strength = <6>; + bias-pull-up; + }; + + tpa6130a2_default: tpa6130a2-default-state { + pins = "gpio61"; + function = "gpio"; + drive-strength = <8>; + bias-pull-down; + }; + + touchscreen_default: touchscreen-default-state { + reset-pins { + pins = "gpio64"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + irq-pins { + pins = "gpio65"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + + gpio_keys_default: gpio-keys-default-state { + pins = "gpio85"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + + front_flash_default: front-flash-default-state { + enable-pins { + pins = "gpio33"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + flash-pins { + pins = "gpio128"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + }; +}; + +&xo_board { + clock-frequency = <19200000>; +}; -- 2.55.0