From: Andi Shyti Date: Tue, 14 Jun 2016 01:20:58 +0000 (+0900) Subject: arm64: dts: exynos5433: tm2/tm2e: add ir-spi device node X-Git-Tag: submit/tizen/20160810.050017~136 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7bbcc738e84f64e033f3018e7b8a4a79b05828e;p=platform%2Fkernel%2Flinux-exynos.git arm64: dts: exynos5433: tm2/tm2e: add ir-spi device node 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 --- diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts index ca5f36e6fd74..7a9f2e3cb648 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts @@ -175,6 +175,13 @@ }; }; + 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 */ @@ -362,6 +369,22 @@ 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>; @@ -1438,8 +1461,6 @@ 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 { diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts index e284ea3d7523..8f182c8da6ee 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts @@ -175,6 +175,13 @@ }; }; + 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 */ @@ -362,6 +369,22 @@ 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>; @@ -1424,8 +1447,6 @@ 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 {