]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm64: dts: exynos: Enable ir-spi in the TM2 and TM2E boards
authorAndi Shyti <andi.shyti@samsung.com>
Fri, 10 Feb 2017 02:22:38 +0000 (11:22 +0900)
committerKrzysztof Kozlowski <krzk@kernel.org>
Tue, 7 Mar 2017 19:17:35 +0000 (21:17 +0200)
Add the device tree node for the ir-spi driver which enables the
IR LED for remote controlling.

This patch sets first the GPR3[3] gpio line as a regulator-fixed
for enabling an external regulator which powers the IR LED.

Removes also the default assignment of GPG3[7] related to the
MOSI line of the SPI3 bus.

Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi

index 098ad557fee3259677340800eef05d10e71e06bd..4df6b57a0a6831f2d8c3a4622f27d22e6cd3db93 100644 (file)
                };
        };
 
+       irda_regulator: irda-regulator {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpr3 3 GPIO_ACTIVE_HIGH>;
+               regulator-name = "irda_regulator";
+       };
+
        sound {
                compatible = "samsung,tm2-audio";
                audio-codec = <&wm5110>;
                PIN(INPUT, gpg3-0, DOWN, FAST_SR1);
                PIN(INPUT, gpg3-1, DOWN, FAST_SR1);
                PIN(INPUT, gpg3-5, DOWN, FAST_SR1);
-               PIN(INPUT, gpg3-7, DOWN, FAST_SR1);
        };
 };
 
        };
 };
 
+&spi_3 {
+       status = "okay";
+       no-cs-readback;
+
+       irled@0 {
+               compatible = "ir-spi-led";
+               reg = <0x0>;
+               spi-max-frequency = <5000000>;
+               power-supply = <&irda_regulator>;
+               duty-cycle = <60>;
+               led-active-low;
+
+               controller-data {
+                       samsung,spi-feedback-delay = <0>;
+               };
+       };
+};
+
 &timer {
        clock-frequency = <24000000>;
 };