From nobody Tue Apr 7 09:17:53 2026 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D39D4388E67 for ; Sat, 14 Mar 2026 21:46:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773524802; cv=none; b=MxSwa+bPk5lwGWjo6LMioW+6lazZsxz/kuJKl+50ulIQ1JgTSDxdATjIpNHr/YdtODAolw2HYicHs8bmgmdMoa9ADqFbJHXnXkwYAfqsmwL0OYeM2NA5lbglgb8HMvHM+WGyO60jLBrWFwv+9nWJJg5+uYOO9Qxs/4/D2kamGUM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773524802; c=relaxed/simple; bh=MowvpUKBHWcPnQE4YIK2nePYkcrVYnXiFtHKOMsDddI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tn7UHT1WksL5aQzi5mABp2rKzuGq2DKEuj0ss4olbQZjhjkOr8dF3vHtNDYxp5OC9tWeNrl7vLGNm1KDVM3KEnnuCWDVhzQVUXtHwy9mJ41RC22TkkmZ6P0amEnDVJOov8V9Mdn0jH4lTYEOGV0BhVQgbsygFzmvkc+aPSTIIX4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=A0GuyJfQ; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="A0GuyJfQ" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-439cb5af25bso3665068f8f.1 for ; Sat, 14 Mar 2026 14:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773524794; x=1774129594; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dsoJTFfN3Lcp672vnl+BCSyX/e4yOnsEQpHNAiLSlIQ=; b=A0GuyJfQc94m5UEhtTIfAdq56YUBCYJWaSTIsRFCT6Kgz6om7Ixa9ZtQ6UhzyQF9MH XRUwy8aBrbrasIrhuDDENW++4Ap3cgP8a7pOuTQlB3jFPdCoTNWeoSNFcmUQzkzHSqDN 4EKSOHDYHmb1KYoxly/puprbnFDn89A+YQnmkIZjkhhmBSEjcwINDA3o+YJz6vl1ZYlM vyT29FXXpPAk6Iem0Xm52K2L2ImlOr6vBOFbl+U4RPjk0LhlheEa9YvXsTAbuJ1stGXs nm5u1sM3hIV48KONjgevjD4kID32ehSZ6pQalctH9JeMGfth2ieGsKQ/jiJ/eCBhKtfJ /f9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773524794; x=1774129594; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=dsoJTFfN3Lcp672vnl+BCSyX/e4yOnsEQpHNAiLSlIQ=; b=ohQ1iwh+PZ3FoNCsXnsoqc94zBeVMQe9Pm/VwbAm3MdGuUwEZMjLGUnsqAKc9SsDT1 zsJsoMS2/rrcVuKpIVzVtgTFn4SGQX6x2WGaXoAoD5zyd4LdwNsRs81Wsx0Nrh270Bco ViW8oQROfx99RP0xDrv7vwrUuCGA12HQAjH1Teet6vUVA4LM9tIT5xWrjJ67NMO9W7NL G9dqSBq1ItnoIpwpU0jodPdk60m6chpx3jF2nFX2zdWx28w9safCPHdO0+IynKng8R6W N9i1nWNbt/CJKFjKWXs+qLUSa5V6+Qsx03iUbMVzNLgdEDxlHC9oNNQnXUJ9pYSS5CTD +H1Q== X-Forwarded-Encrypted: i=1; AJvYcCVIiy51RxBAJuojI2LXv/YWua4gG4bsSICMUjC2zrhbXoHIU2u/7rIOavQPuzYZCmw7MJ1nQZcbJjZuA74=@vger.kernel.org X-Gm-Message-State: AOJu0YzqI5nspivqQX7SOwITVgr8KA2uIBErPFuM4jaTyagV8AzC4ZeF /sj4EYDBh9tnYgOs7R/+yvldcl/OT1ayRIR7CUqOqS7T+yYOHv88ouXG X-Gm-Gg: ATEYQzxO2c49vU5Ym1bs2xAOyI+PhOjRE+zPXnad+/fdt2D7qpIO4GZNu15Omt9bK+Q lIk2tgB6kOq+qNZV2GuDokcy2X3scmtSuF/rXfQBzXX8iI5JaYNnDtEtBXNtVS8Qxk5ClxAeahB P5SnTO6E4Ueo1tnwCEh1jtAHWJq0Kt6KGF2/2snS09RIRjdQIJU3cKE4MXmtFB62DDYlXGTdwCT nNrpbiPJIaXNNQV4mS3/JYLDEly0hb5flf1qXA9FTGJ9MUhXplFEApgxCtZ6m71Zo+V5DZ6FzqI V0c49MMBU6T9n9n2HHAsLhT1OTxjMT/E+s0f95Nad7q40eAmLo5A+vBkESRGKzlpd5uT1cMqhN/ +ltCFthYT7ZDyThDTn7TLKAJt6Uoqk43tUaWJAW+phIDp2zmbwIop6PrKlJabxbt/Znrw8vAMzi F1rOBWFL9dsmRjo0XZHmtctewMPRjswVu7Qdty/XIhCeciFfJsXsE39srZqBKI4tJYLcNSGdAlU g== X-Received: by 2002:a5d:5f53:0:b0:439:bd26:3c63 with SMTP id ffacd0b85a97d-43a04db4bf4mr13896214f8f.28.1773524794034; Sat, 14 Mar 2026 14:46:34 -0700 (PDT) Received: from [10.100.102.17] (89-139-129-65.bb.netvision.net.il. [89.139.129.65]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439fe19aec5sm28756221f8f.4.2026.03.14.14.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Mar 2026 14:46:33 -0700 (PDT) From: Yedaya Katsman Date: Sat, 14 Mar 2026 23:46:23 +0200 Subject: [PATCH v4 3/3] arm64: dts: qcom: sm6125-xiaomi-laurel-sprout: Enable MDSS and add panel 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: quoted-printable Message-Id: <20260314-panel-patches-v4-3-1ecbb2c0c3c8@gmail.com> References: <20260314-panel-patches-v4-0-1ecbb2c0c3c8@gmail.com> In-Reply-To: <20260314-panel-patches-v4-0-1ecbb2c0c3c8@gmail.com> To: Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?q?Kamil_Go=C5=82da?= , Bjorn Andersson , Konrad Dybcio , Kaustabh Chakraborty Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Yedaya Katsman , Dmitry Baryshkov , Konrad Dybcio X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773524784; l=3473; i=yedaya.ka@gmail.com; s=20260113; h=from:subject:message-id; bh=MowvpUKBHWcPnQE4YIK2nePYkcrVYnXiFtHKOMsDddI=; b=fjAjMIu63T3J89KrTMFMgceNzP8z3eiyQ/RYVuk1rw4Xso+FdysYzfH7tFEqPaGpEPjECwufA ZyYAKfsa9lhDS0lbq+DfbA14HoN7LNx4Kv9qt9tfs+0v9ATS6TkkIjO X-Developer-Key: i=yedaya.ka@gmail.com; a=ed25519; pk=CgNmxD3tYSws5dZfpmJfc6re/bV/f47veVijddHLytk= Enable the MDSS nodes and add supplies and bindings for the Samsung S6E8FCO DSI controller for the M1906F9 panel. The ldo and iovcc gpio pins boot up with a current of 16 mA, but they work fine with 2mA, so I used that. mdss_dsi0_phy is powered by VDD_MX, see power-domains in sm6125.dtsi Co-developed-by: Kamil Go=C5=82da Signed-off-by: Kamil Go=C5=82da Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: Yedaya Katsman --- .../boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts | 94 ++++++++++++++++++= ++++ 1 file changed, 94 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts b/arc= h/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts index 994fb0412fcbdf5466f87a325c48b697a37b514b..9b046d21da1dc54bd851a94d0e2= 09bf1763e865a 100644 --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts @@ -82,6 +82,33 @@ key-volume-up { }; }; =20 + panel_vdd_1p8: regulator-panel-vdd { + compatible =3D "regulator-fixed"; + regulator-name =3D "panel_vdd_1p8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-boot-on; + vin-supply =3D <&vreg_l9a>; + + enable-active-high; + gpio =3D <&tlmm 26 GPIO_ACTIVE_HIGH>; + pinctrl-0 =3D <&panel_vdd_1p8_en>; + pinctrl-names =3D "default"; + }; + + panel_vci_3p0: regulator-panel-vci { + compatible =3D "regulator-fixed"; + regulator-name =3D "panel_vci_3p0"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-boot-on; + + enable-active-high; + gpio =3D <&tlmm 124 GPIO_ACTIVE_HIGH>; + pinctrl-0 =3D <&panel_vci_3p0_en>; + pinctrl-names =3D "default"; + }; + thermal-zones { rf-pa0-thermal { thermal-sensors =3D <&pm6125_adc_tm 0>; @@ -128,6 +155,45 @@ &hsusb_phy1 { status =3D "okay"; }; =20 +&mdss { + status =3D "okay"; +}; + +&mdss_dsi0 { + vdda-supply =3D <&vreg_l18a>; + status =3D "okay"; + + panel@0 { + compatible =3D "samsung,s6e8fco-m1906f9"; + reg =3D <0>; + + reset-gpios =3D <&tlmm 90 GPIO_ACTIVE_LOW>; + + pinctrl-0 =3D <&mdss_default>; + pinctrl-1 =3D <&mdss_sleep>; + pinctrl-names =3D "default", "sleep"; + + vdd-supply =3D <&panel_vdd_1p8>; + vci-supply =3D <&panel_vci_3p0>; + + port { + panel_in: endpoint { + remote-endpoint =3D <&mdss_dsi0_out>; + }; + }; + }; +}; + +&mdss_dsi0_out { + data-lanes =3D <0 1 2 3>; + remote-endpoint =3D <&panel_in>; +}; + + +&mdss_dsi0_phy { + status =3D "okay"; +}; + &pm6125_adc { pinctrl-names =3D "default"; pinctrl-0 =3D <&camera_flash_therm &emmc_ufs_therm>; @@ -387,6 +453,34 @@ &sdhc_2 { =20 &tlmm { gpio-reserved-ranges =3D <22 2>, <28 6>; + + panel_vdd_1p8_en: panel-vdd-default-state { + pins =3D "gpio26"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-up; + }; + + mdss_default: mdss-default-state { + pins =3D "gpio90"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-disable; + }; + + mdss_sleep: mdss-sleep-state { + pins =3D "gpio90"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-down; + }; + + panel_vci_3p0_en: panel-vci-default-state { + pins =3D "gpio124"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-up; + }; }; =20 &ufs_mem_hc { --=20 2.53.0