Thread (15 messages) 15 messages, 2 authors, 2019-01-08

Re: [PATCH 5/6] ARM: dts: s5pv210: aries: Support for more devices present on Aries

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2018-12-31 13:36:14
Also in: linux-arm-kernel, linux-samsung-soc, lkml

On Fri, 28 Dec 2018 at 17:18, Paweł Chmiel
[off-list ref] wrote:
quoted hunk ↗ jump to hunk
From: Jonathan Bakker <redacted>

This commit enables following devices present on Aries based phones:
- pwm-vibrator attached to PWM 1
- poweroff support
- Atmel maXTouch touchscreen. It's connected to i2c2
- Broadcom BCM4329 bluetooth over uart0

Signed-off-by: Jonathan Bakker <redacted>
Signed-off-by: Paweł Chmiel <redacted>
---
 arch/arm/boot/dts/s5pv210-aries.dtsi | 68 ++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)
diff --git a/arch/arm/boot/dts/s5pv210-aries.dtsi b/arch/arm/boot/dts/s5pv210-aries.dtsi
index 35ba009a1a33..b7246f879648 100644
--- a/arch/arm/boot/dts/s5pv210-aries.dtsi
+++ b/arch/arm/boot/dts/s5pv210-aries.dtsi
@@ -41,6 +41,13 @@
                };
        };

+       vibrator_pwr: regulator-fixed-0 {
+               compatible = "regulator-fixed";
+               regulator-name = "vibrator-en";
+               enable-active-high;
+               gpio = <&gpj1 1 GPIO_ACTIVE_HIGH>;
+       };
+
        wifi_pwrseq: wifi-pwrseq {
                compatible = "mmc-pwrseq-simple";
                reset-gpios = <&gpg1 2 GPIO_ACTIVE_LOW>;
@@ -314,6 +321,22 @@
                        reg = <0x36>;
                };
        };
+
+       vibrator: pwm-vibrator {
+               compatible = "pwm-vibrator";
+               pwms = <&pwm 1 44642 0>;
+               pwm-names = "enable";
+               vcc-supply = <&vibrator_pwr>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pwm1_out>;
+       };
+
+       poweroff: syscon-poweroff {
+               compatible = "syscon-poweroff";
+               regmap = <&pmu_syscon>;
+               offset = <0x681c>; /* PS_HOLD_CONTROL */
+               value = <0x5200>;
+       };
 };

 &fimd {
@@ -347,6 +370,23 @@
        status = "okay";
 };

+&i2c2 {
+       samsung,i2c-sda-delay = <100>;
+       samsung,i2c-max-bus-freq = <400000>;
+       samsung,i2c-slave-addr = <0x10>;
+       status = "okay";
+
+       touchscreen@4a {
+               compatible = "atmel,maxtouch";
+               reg = <0x4a>;
+               interrupt-parent = <&gpj0>;
+               interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&ts_irq>;
+               reset-gpios = <&gpj1 3 GPIO_ACTIVE_HIGH>;
+       };
+};
+
 &mfc {
        memory-region = <&mfc_left>, <&mfc_right>;
 };
@@ -372,6 +412,13 @@
                samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
        };

+       bt_host_wake: bt-host-wake {
+               samsung,pins = "gph2-5";
+               samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
+               samsung,pin-pud = <S3C64XX_PIN_PULL_DOWN>;
+               samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
+       };
+
        tf_detect: tf-detect {
                samsung,pins = "gph3-4";
                samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
@@ -384,6 +431,17 @@
                samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
                samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
        };
+
+       ts_irq: ts-irq {
+               samsung,pins = "gpj0-5";
+               samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
+               samsung,pin-pud = <S3C64XX_PIN_PULL_UP>;
It seems there is a difference here between Aries and Fascinate. At
least in vendor kernel. One disables pull and second pulls down.
Anyway neither of them pulls it up.

Best regards,
Krzysztof

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help