From: Ivaylo Ivanov Date: Sun, 5 Jan 2025 16:13:44 +0000 (+0200) Subject: arm64: dts: exynos8895-dreamlte: enable support for the touchscreen X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0cbf9ca0a8a152ff1cb334f644ac466297be6c91;p=users%2Fjedix%2Flinux-maple.git arm64: dts: exynos8895-dreamlte: enable support for the touchscreen The Samsung Galaxy S8 uses a Samsung s6sy761 touchscreen over hsi2c23. Add a node for it in order to allow using the touchscreen as long as the previous bootloader has enabled the required regulators because there's no support for PMIC yet. Signed-off-by: Ivaylo Ivanov Link: https://lore.kernel.org/r/20250105161344.420749-7-ivo.ivanov.ivanov1@gmail.com Signed-off-by: Krzysztof Kozlowski --- diff --git a/arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dts b/arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dts index 6c4f8d4a9cc4d..61e064af3337d 100644 --- a/arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dts +++ b/arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dts @@ -10,6 +10,7 @@ #include #include #include +#include / { model = "Samsung Galaxy S8 (SM-G950F)"; @@ -93,6 +94,33 @@ wakeup-source; }; }; + + /* TODO: Remove once PMIC is implemented */ + reg_placeholder: regulator-0 { + compatible = "regulator-fixed"; + regulator-name = "reg-placeholder"; + }; +}; + +&hsi2c_23 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + touchscreen@48 { + compatible = "samsung,s6sy761"; + reg = <0x48>; + + /* TODO: Update once PMIC is implemented */ + avdd-supply = <®_placeholder>; + vdd-supply = <®_placeholder>; + + interrupt-parent = <&gpa1>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + + pinctrl-0 = <&ts_int>; + pinctrl-names = "default"; + }; }; &oscclk { @@ -155,4 +183,16 @@ samsung,pin-pud = ; samsung,pin-drv = ; }; + + ts_int: ts-int-pins { + samsung,pins = "gpa1-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +}; + +&usi9 { + samsung,mode = ; + status = "okay"; };