Commit 0d10ac7d authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Bjorn Andersson

arm64: dts: qcom: sm6375-pdx225: add fixed touchscreen AVDD regulator

The Samsung S6SY761 touchscreen bindings expect AVDD regulator which is
missing in the Sony Xperia PDX225 DTS.  There is however pinctrl setting
for in the touchscreen device node with similar name: "avdd", so assume
author wanted to control a fixed regulator with a GPIO.

This fixes dtbs_check warning:

  sm6375-sony-xperia-murray-pdx225.dtb: touchscreen@48: 'avdd-supply' is a required property
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20231111164229.63803-6-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 67e4656f
...@@ -80,6 +80,15 @@ ramoops@ffc40000 { ...@@ -80,6 +80,15 @@ ramoops@ffc40000 {
}; };
}; };
touch_avdd: touch-avdd-regulator {
compatible = "regulator-fixed";
regulator-name = "touch_avdd";
gpio = <&tlmm 59 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&ts_avdd_default>;
enable-active-high;
};
vph_pwr: vph-pwr-regulator { vph_pwr: vph-pwr-regulator {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
regulator-name = "vph_pwr"; regulator-name = "vph_pwr";
...@@ -136,9 +145,10 @@ touchscreen@48 { ...@@ -136,9 +145,10 @@ touchscreen@48 {
interrupts = <22 0x2008>; interrupts = <22 0x2008>;
vdd-supply = <&pm6125_l13>; vdd-supply = <&pm6125_l13>;
avdd-supply = <&touch_avdd>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ts_int_default &ts_avdd_default>; pinctrl-0 = <&ts_int_default>;
}; };
}; };
...@@ -417,7 +427,7 @@ ts_avdd_default: ts-avdd-default-state { ...@@ -417,7 +427,7 @@ ts_avdd_default: ts-avdd-default-state {
pins = "gpio59"; pins = "gpio59";
function = "gpio"; function = "gpio";
drive-strength = <8>; drive-strength = <8>;
output-high; output-low;
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment