arm64: dts: exynos5433: tm2/tm2e: add ir-spi device node
authorAndi Shyti <andi.shyti@samsung.com>
Tue, 14 Jun 2016 01:20:58 +0000 (10:20 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 24 Jun 2016 01:50:42 +0000 (10:50 +0900)
The tm2 and tm2e boards both have an irled connected to the
SPI MOSI line for remote controlling. Therefore, enable it in
their related device tree node.

Add the fixed regulator which powers the LED, as well.

Change-Id: Ie47bebae3efaebbd2d18b3e5f5d6fbec68486b1d
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts

index ca5f36e6fd74fa854cb44c22a3d23a636c5b32f3..7a9f2e3cb648cc21f09951cbbda9d00c8ece6f13 100644 (file)
                };
        };
 
+       irda_regulator: irda-regulator {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpr3 3 0>;
+               regulator-name = "irda_regulator";
+       };
+
        i2c_max98504: i2c-gpio-0 {
                compatible = "i2c-gpio";
                gpios = <&gpd0 1 0 /* SPK_AMP_SDA */
        status = "okay";
 };
 
+&spi_3 {
+       status = "okay";
+       broken-cs;
+
+       irled@0 {
+               compatible = "ir-spi";
+               reg = <0x0>;
+               spi-max-frequency = <5000000>;
+               power-supply = <&irda_regulator>;
+
+               controller-data {
+                       samsung,spi-feedback-delay = <0>;
+               };
+       };
+};
+
 &spi_5 {
        cs-gpios = <&gpc0 6 0>, <&gpc3 1 0>;
 
 
                PIN(IN, gpg3-0, DOWN, LV1);     /* NC */
                PIN(IN, gpg3-1, DOWN, LV1);     /* NC */
-               PIN(IN, gpg3-5, DOWN, LV1);     /* NC */
-               PIN(IN, gpg3-7, DOWN, LV1);     /* IRDA_CONTROL */
        };
 
        sleep1: sleep-state {
index e284ea3d7523b2fc73756ce21c5096502eca6f4f..8f182c8da6eeac9d4b2fefbc27c1c59152e1b2ab 100644 (file)
                };
        };
 
+       irda_regulator: irda-regulator {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpr3 3 0>;
+               regulator-name = "irda_regulator";
+       };
+
        i2c_max98504: i2c-gpio-0 {
                compatible = "i2c-gpio";
                gpios = <&gpd0 1 0 /* SPK_AMP_SDA */
        status = "okay";
 };
 
+&spi_3 {
+       status = "okay";
+       broken-cs;
+
+       irled@0 {
+               compatible = "ir-spi";
+               reg = <0x0>;
+               spi-max-frequency = <5000000>;
+               power-supply = <&irda_regulator>;
+
+               controller-data {
+                       samsung,spi-feedback-delay = <0>;
+               };
+       };
+};
+
 &spi_5 {
        cs-gpios = <&gpc0 6 0>, <&gpc3 1 0>;
 
 
                PIN(IN, gpg3-0, DOWN, LV1);     /* NC */
                PIN(IN, gpg3-1, DOWN, LV1);     /* NC */
-               PIN(IN, gpg3-5, DOWN, LV1);     /* NC */
-               PIN(IN, gpg3-7, DOWN, LV1);     /* IRDA_CONTROL */
        };
 
        sleep1: sleep-state {