Skip to contentSkip to conversation

86xx: mpc8610_hpcd: add support for IrDA

PATCH Superseded Anton Vorontsov 1 participant 1 message Jun 4, 2008

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 86xx: mpc8610_hpcd: add support for IrDA

This patch adds support for IrDA on MPC8610HPCD. IrDA platfrom hook is used to setup IR clocks and to manage the on-board transceiver.

(The original BSP patch comes with lots of Sign offs, providing them here.)

---
 arch/powerpc/boot/dts/mpc8610_hpcd.dts     |   20 ++++
 arch/powerpc/platforms/86xx/Kconfig        |    1 +
 arch/powerpc/platforms/86xx/mpc8610_hpcd.c |  164 ++++++++++++++++++++++++++--
 3 files changed, 174 insertions(+), 11 deletions(-)
arch/powerpc/boot/dts/mpc8610_hpcd.dts +20 -0
index fa9c297..6f550ef 100644
@@ -171,6 +171,18 @@
 			interrupt-parent = <&mpic>;
 		};
 
+		irda@2d000 {
+			compatible = "fsl,mpc8610-irda";
+			interrupt-parent = <&mpic>;
+			interrupts = <73 2>;
+			reg = <0x2d000 0x1000>;
+
+			irda-transceiver {
+				compatible = "vishay,tfdu6102";
+				gpios = <&soc_gpio2 18 0>;
+			};
+		};
+
 		mpic: interrupt-controller@40000 {
 			clock-frequency = <0>;
 			interrupt-controller;
@@ -204,6 +216,14 @@
 			fsl,has-rstcr;
 		};
 
+		soc_gpio2: gpio-controller@f100 {
+			#gpio-cells = <2>;
+			compatible = "fsl,mpc8610-gpio-bank",
+				     "fsl,mpc8349-gpio-bank";
+			reg = <0xf100 0x100>;
+			gpio-controller;
+		};
+
 		i2s@16000 {
 			compatible = "fsl,mpc8610-ssi";
 			cell-index = <0>;
arch/powerpc/platforms/86xx/Kconfig +1 -0
index 053f49a..f1d5d0f 100644
@@ -21,6 +21,7 @@ config SBC8641D
 config MPC8610_HPCD
 	bool "Freescale MPC8610 HPCD"
 	select DEFAULT_UIMAGE
+	select FSL_MPC8349_GPIO
 	help
 	  This option enables support for the MPC8610 HPCD board.
 
arch/powerpc/platforms/86xx/mpc8610_hpcd.c +153 -11

220 lines not on this page · raw message

Signature · 1 line
1.5.5.1