]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: qcom: sdm845-starqltechn: add display PMIC
authorDzmitry Sankouski <dsankouski@gmail.com>
Tue, 25 Feb 2025 16:38:59 +0000 (19:38 +0300)
committerBjorn Andersson <andersson@kernel.org>
Fri, 7 Mar 2025 23:05:20 +0000 (17:05 -0600)
Add support for s2dos05 display / touchscreen PMIC

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Link: https://lore.kernel.org/r/20250225-starqltechn_integration_upstream-v9-8-a5d80375cb66@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts

index bd5c8b319ddfa8eb6cf8668d13a029060f902f5a..77abfadb4cc5b1fbac9e94a25d77a4a4f6cfd184 100644 (file)
@@ -40,6 +40,9 @@
                        height = <2960>;
                        stride = <(1440 * 4)>;
                        format = "a8r8g8b8";
+                       vci-supply = <&s2dos05_ldo4>;
+                       vddr-supply = <&s2dos05_buck>;
+                       vdd3-supply = <&s2dos05_ldo1>;
                };
        };
 
                };
        };
 
+       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;
        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";