Commit d409e44d authored by Konrad Dybcio's avatar Konrad Dybcio Committed by Bjorn Andersson

arm64: dts: qcom: sm8450-nagara: Add Samsung touchscreen

Add device node and required pinctrl settings (as well as a fixup for
an existing one, whoops!) to support the Samsung Electronics
touchscreen on Nagara devices.
Signed-off-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221114095654.34561-4-konrad.dybcio@linaro.org
parent 7d54cdf5
...@@ -435,7 +435,22 @@ &gpi_dma2 { ...@@ -435,7 +435,22 @@ &gpi_dma2 {
status = "okay"; status = "okay";
}; };
/* I2C4 is used, it hosts a Samsung touchscreen, but GPI DMA is broken.. */ &i2c4 {
clock-frequency = <400000>;
status = "okay";
touchscreen@48 {
compatible = "samsung,s6sy761";
reg = <0x48>;
interrupt-parent = <&tlmm>;
interrupts = <21 0x2008>;
vdd-supply = <&pm8350c_l2>;
avdd-supply = <&pm8350c_l3>;
pinctrl-names = "default";
pinctrl-0 = <&ts_reset_default &ts_int_default>;
};
};
&i2c5 { &i2c5 {
clock-frequency = <400000>; clock-frequency = <400000>;
...@@ -566,8 +581,16 @@ &spi10 { ...@@ -566,8 +581,16 @@ &spi10 {
&tlmm { &tlmm {
gpio-reserved-ranges = <28 4>; gpio-reserved-ranges = <28 4>;
ts_reset_default: ts-reset-default-state {
pins = "gpio20";
function = "gpio";
drive-strength = <2>;
bias-disable;
output-high;
};
ts_int_default: ts-int-default-state { ts_int_default: ts-int-default-state {
pins = "gpio23"; pins = "gpio21";
function = "gpio"; function = "gpio";
drive-strength = <2>; drive-strength = <2>;
bias-disable; bias-disable;
......
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