diff options
author | Andi Shyti <andi.shyti@samsung.com> | 2017-02-09 21:22:38 -0500 |
---|---|---|
committer | Krzysztof Kozlowski <krzk@kernel.org> | 2017-03-07 14:17:35 -0500 |
commit | 0ed797f70567dedceb26afd01f0cafd7b785f483 (patch) | |
tree | 9657534b3f89965979c68fe5b74e2a5259fb8065 | |
parent | c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff) |
arm64: dts: exynos: Enable ir-spi in the TM2 and TM2E boards
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>
-rw-r--r-- | arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi index 098ad557fee3..4df6b57a0a68 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | |||
@@ -106,6 +106,13 @@ | |||
106 | }; | 106 | }; |
107 | }; | 107 | }; |
108 | 108 | ||
109 | irda_regulator: irda-regulator { | ||
110 | compatible = "regulator-fixed"; | ||
111 | enable-active-high; | ||
112 | gpio = <&gpr3 3 GPIO_ACTIVE_HIGH>; | ||
113 | regulator-name = "irda_regulator"; | ||
114 | }; | ||
115 | |||
109 | sound { | 116 | sound { |
110 | compatible = "samsung,tm2-audio"; | 117 | compatible = "samsung,tm2-audio"; |
111 | audio-codec = <&wm5110>; | 118 | audio-codec = <&wm5110>; |
@@ -1074,7 +1081,6 @@ | |||
1074 | PIN(INPUT, gpg3-0, DOWN, FAST_SR1); | 1081 | PIN(INPUT, gpg3-0, DOWN, FAST_SR1); |
1075 | PIN(INPUT, gpg3-1, DOWN, FAST_SR1); | 1082 | PIN(INPUT, gpg3-1, DOWN, FAST_SR1); |
1076 | PIN(INPUT, gpg3-5, DOWN, FAST_SR1); | 1083 | PIN(INPUT, gpg3-5, DOWN, FAST_SR1); |
1077 | PIN(INPUT, gpg3-7, DOWN, FAST_SR1); | ||
1078 | }; | 1084 | }; |
1079 | }; | 1085 | }; |
1080 | 1086 | ||
@@ -1152,6 +1158,24 @@ | |||
1152 | }; | 1158 | }; |
1153 | }; | 1159 | }; |
1154 | 1160 | ||
1161 | &spi_3 { | ||
1162 | status = "okay"; | ||
1163 | no-cs-readback; | ||
1164 | |||
1165 | irled@0 { | ||
1166 | compatible = "ir-spi-led"; | ||
1167 | reg = <0x0>; | ||
1168 | spi-max-frequency = <5000000>; | ||
1169 | power-supply = <&irda_regulator>; | ||
1170 | duty-cycle = <60>; | ||
1171 | led-active-low; | ||
1172 | |||
1173 | controller-data { | ||
1174 | samsung,spi-feedback-delay = <0>; | ||
1175 | }; | ||
1176 | }; | ||
1177 | }; | ||
1178 | |||
1155 | &timer { | 1179 | &timer { |
1156 | clock-frequency = <24000000>; | 1180 | clock-frequency = <24000000>; |
1157 | }; | 1181 | }; |