Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ed797f7 authored by Andi Shyti's avatar Andi Shyti Committed by Krzysztof Kozlowski
Browse files

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: default avatarAndi Shyti <andi.shyti@samsung.com>
Reviewed-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent c1ae3cfa
Loading
Loading
Loading
Loading
+25 −1
Original line number Original line Diff line number Diff line
@@ -106,6 +106,13 @@
		};
		};
	};
	};


	irda_regulator: irda-regulator {
		compatible = "regulator-fixed";
		enable-active-high;
		gpio = <&gpr3 3 GPIO_ACTIVE_HIGH>;
		regulator-name = "irda_regulator";
	};

	sound {
	sound {
		compatible = "samsung,tm2-audio";
		compatible = "samsung,tm2-audio";
		audio-codec = <&wm5110>;
		audio-codec = <&wm5110>;
@@ -1074,7 +1081,6 @@
		PIN(INPUT, gpg3-0, DOWN, FAST_SR1);
		PIN(INPUT, gpg3-0, DOWN, FAST_SR1);
		PIN(INPUT, gpg3-1, DOWN, FAST_SR1);
		PIN(INPUT, gpg3-1, DOWN, FAST_SR1);
		PIN(INPUT, gpg3-5, DOWN, FAST_SR1);
		PIN(INPUT, gpg3-5, DOWN, FAST_SR1);
		PIN(INPUT, gpg3-7, DOWN, FAST_SR1);
	};
	};
};
};


@@ -1152,6 +1158,24 @@
	};
	};
};
};


&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 {
&timer {
	clock-frequency = <24000000>;
	clock-frequency = <24000000>;
};
};