From: Dzmitry Sankouski <dsankouski@gmail.com>
To: cros-qcom-dts-watchers@chromium.org,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org,
Dzmitry Sankouski <dsankouski@gmail.com>
Subject: [PATCH v8 10/14] arm64: dts: qcom: sdm845-starqltechn: add display PMIC
Date: Mon, 09 Dec 2024 15:09:14 +0300 [thread overview]
Message-ID: <20241209-starqltechn_integration_upstream-v8-10-ec604481d691@gmail.com> (raw)
In-Reply-To: <20241209-starqltechn_integration_upstream-v8-0-ec604481d691@gmail.com>
Add support for s2dos05 display / touchscreen PMIC
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
---
Changes in v7:
- move i2c21 node before gpio-keys
Changes in v6:
- refactor: s/starqltechn/sdm845-starqltechn in subject
- refactor: 'i' < 'm', so put tlmm i2c node before motor*
Changes in v5:
- simplify regulator names
- remove single buck index
---
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 77 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
index 7ed5aa23ba71..c4d8d7c0bf36 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
@@ -40,6 +40,9 @@ framebuffer: framebuffer@9d400000 {
height = <2960>;
stride = <(1440 * 4)>;
format = "a8r8g8b8";
+ vci-supply = <&s2dos05_ldo4>;
+ vddr-supply = <&s2dos05_buck>;
+ vdd3-supply = <&s2dos05_ldo1>;
};
};
@@ -96,6 +99,66 @@ memory@a1300000 {
};
};
+ i2c21 {
+ compatible = "i2c-gpio";
+ sda-gpios = <&tlmm 127 GPIO_ACTIVE_HIGH>;
+ scl-gpios = <&tlmm 128 GPIO_ACTIVE_HIGH>;
+ i2c-gpio,delay-us = <2>;
+ pinctrl-0 = <&i2c21_sda_state &i2c21_scl_state>;
+ pinctrl-names = "default";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ pmic@60 {
+ compatible = "samsung,s2dos05";
+ reg = <0x60>;
+
+ regulators {
+ s2dos05_ldo1: ldo1 {
+ regulator-active-discharge = <1>;
+ regulator-enable-ramp-delay = <12000>;
+ regulator-min-microvolt = <1500000>;
+ regulator-max-microvolt = <2000000>;
+ regulator-name = "ldo1";
+ };
+
+ s2dos05_ldo2: ldo2 {
+ regulator-active-discharge = <1>;
+ regulator-boot-on;
+ regulator-enable-ramp-delay = <12000>;
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-name = "ldo2";
+ };
+
+ s2dos05_ldo3: ldo3 {
+ regulator-active-discharge = <1>;
+ regulator-boot-on;
+ regulator-enable-ramp-delay = <12000>;
+ regulator-min-microvolt = <3000000>;
+ regulator-max-microvolt = <3000000>;
+ regulator-name = "ldo3";
+ };
+
+ s2dos05_ldo4: ldo4 {
+ regulator-active-discharge = <1>;
+ regulator-enable-ramp-delay = <12000>;
+ regulator-min-microvolt = <2700000>;
+ regulator-max-microvolt = <3775000>;
+ regulator-name = "ldo4";
+ };
+
+ s2dos05_buck: buck {
+ regulator-active-discharge = <1>;
+ regulator-enable-ramp-delay = <12000>;
+ regulator-min-microvolt = <850000>;
+ regulator-max-microvolt = <2100000>;
+ regulator-name = "buck";
+ };
+ };
+ };
+ };
+
gpio-keys {
compatible = "gpio-keys";
autorepeat;
@@ -556,6 +619,20 @@ &tlmm {
gpio-reserved-ranges = <27 4>, /* SPI (eSE - embedded Secure Element) */
<85 4>; /* SPI (fingerprint reader) */
+ i2c21_sda_state: i2c21-sda-state {
+ pins = "gpio127";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
+
+ i2c21_scl_state: i2c21-scl-state {
+ pins = "gpio128";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
+
motor_pwm_default_state: motor-pwm-active-state {
pins = "gpio57";
function = "gcc_gp1";
--
2.39.5
next prev parent reply other threads:[~2024-12-09 12:09 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-09 12:09 [PATCH v8 00/14] This is continued work on Samsung S9(SM-9600) starqltechn Dzmitry Sankouski
2024-12-09 12:09 ` [PATCH v8 01/14] ASoC: dt-bindings: Add bindings for WCD934x DAIs Dzmitry Sankouski
2024-12-10 8:10 ` Krzysztof Kozlowski
2024-12-09 12:09 ` [PATCH v8 02/14] ASoC: codecs: wcd934x: use wcd934x binding header Dzmitry Sankouski
2024-12-09 12:09 ` [PATCH v8 03/14] arm64: dts: qcom: sdm845: enable gmu Dzmitry Sankouski
2024-12-09 12:09 ` [PATCH v8 04/14] arm64: dts: qcom: sdm845-starqltechn: remove wifi Dzmitry Sankouski
2024-12-09 12:09 ` [PATCH v8 05/14] arm64: dts: qcom: sdm845-starqltechn: fix usb regulator mistake Dzmitry Sankouski
2024-12-09 12:09 ` [PATCH v8 06/14] arm64: dts: qcom: sdm845-starqltechn: refactor node order Dzmitry Sankouski
2024-12-09 12:09 ` [PATCH v8 07/14] arm64: dts: qcom: sdm845-starqltechn: remove excess reserved gpios Dzmitry Sankouski
2024-12-09 12:09 ` [PATCH v8 08/14] arm64: dts: qcom: sdm845-starqltechn: add gpio keys Dzmitry Sankouski
2024-12-09 12:09 ` [PATCH v8 09/14] arm64: dts: qcom: sdm845-starqltechn: add max77705 PMIC Dzmitry Sankouski
2024-12-13 23:57 ` Konrad Dybcio
2024-12-09 12:09 ` Dzmitry Sankouski [this message]
2024-12-13 23:55 ` [PATCH v8 10/14] arm64: dts: qcom: sdm845-starqltechn: add display PMIC Konrad Dybcio
2024-12-09 12:09 ` [PATCH v8 11/14] arm64: dts: qcom: sdm845-starqltechn: add touchscreen support Dzmitry Sankouski
2024-12-09 12:09 ` [PATCH v8 12/14] arm64: dts: qcom: sdm845-starqltechn: add initial sound support Dzmitry Sankouski
2024-12-13 23:55 ` Konrad Dybcio
2024-12-09 12:09 ` [PATCH v8 13/14] arm64: dts: qcom: sdm845-starqltechn: add graphics support Dzmitry Sankouski
2024-12-13 23:57 ` Konrad Dybcio
2024-12-09 12:09 ` [PATCH v8 14/14] arm64: dts: qcom: sdm845-starqltechn: add modem support Dzmitry Sankouski
2025-02-07 14:02 ` (subset) [PATCH v8 00/14] This is continued work on Samsung S9(SM-9600) starqltechn Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241209-starqltechn_integration_upstream-v8-10-ec604481d691@gmail.com \
--to=dsankouski@gmail.com \
--cc=andersson@kernel.org \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=cros-qcom-dts-watchers@chromium.org \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=robh@kernel.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox