Skip to contentSkip to conversation

Add support for OneForAll remote JP1 parallel port interface

PATCH In review Jonathan McDowell 2 participants 2 messages Jan 25, 2007 – Jan 26, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add support for OneForAll remote JP1 parallel port interface

This simple patch adds support to i2c-parport for the OneForAll remote JP1 parallel port interfaces which can be found detailed at:

http://www.hifi-remote.com/jp1/hardware.shtml

These allow access to the internal configuration EEPROM on various remote controls and there are a variety of Windows tools that make use of this hardware. I have tested this patch with the "simple" parallel port device and a OneForAll URC-7562 and confirmed that the data read using the eeprom i2c driver matches that returned by the Windows "IR" JP1 tool.

-----

Documentation/i2c/busses/i2c-parport renamed from Documentation/i2c/busses/i2c-parport.orig +15 -0
@@ -19,6 +19,7 @@
  * (type=4) Analog Devices ADM1032 evaluation board
  * (type=5) Analog Devices evaluation boards: ADM1025, ADM1030, ADM1031
  * (type=6) Barco LPT->DVI (K5800236) adapter
+ * (type=7) OneForAll JP1 parallel port adapter
 
 These devices use different pinout configurations, so you have to tell
 the driver what you have, using the type module parameter. There is no
@@ -157,3 +158,17 @@
   http://home.wanadoo.nl/hihihi/libk8005.htm
   http://struyve.mine.nu:8080/index.php?block=k8000
   http://sourceforge.net/projects/libk8005/
+
+
+OneForAll JP1 parallel port adapter
+-----------------------------------
+
+The JP1 project revolves around a set of remote controls which expose
+the i2c bus their internal configuration EEPROM lives on via a 6 pin
+jumper in the battery compartment. More details can be found at:
+
+http://www.hifi-remote.com/jp1/
+
+Details of the simple parallel port hardware can be found at:
+
+http://www.hifi-remote.com/jp1/hardware.shtml
drivers/i2c/busses/i2c-parport.h renamed from drivers/i2c/busses/i2c-parport.h.orig +8 -0
@@ -88,6 +88,13 @@
 		.getscl	= { 0x40, STAT, 0 },
 		.init	= { 0xfc, DATA, 0 },
 	},
+	/* type 7: OneForAll JP1 parallel port adapter */
+	{
+		.setsda	= { 0x01, DATA, 0 },
+		.setscl	= { 0x02, DATA, 0 },
+		.getsda	= { 0x80, STAT, 1 },
+		.init	= { 0x04, DATA, 1 },
+	},
 };
 
 static int type = -1;
@@ -101,4 +108,5 @@
 	" 4 = ADM1032 evaluation board\n"
 	" 5 = ADM1025, ADM1030 and ADM1031 evaluation boards\n"
 	" 6 = Barco LPT->DVI (K5800236) adapter\n"
+	" 7 = OneForAll JP1 parallel port adapter\n"
 );

-----

J.

Signature · 4 lines
] http://www.earth.li/~noodles/ []   "Hey, topic drift isn't just a    [
]  PGP/GPG Key @ the.earth.li   []   hobby, its a way of life around   [
] via keyserver, web or email.  []      here ..." -- \pir, b.l-w       [
] RSA: 4DC4E7FD / DSA: 5B430367 []                                     [
#1 lore raw

Hi Jonathan,

Quoted 5 lines · Jonathan McDowell

This simple patch adds support to i2c-parport for the OneForAll remote JP1 parallel port interfaces which can be found detailed at:

http://www.hifi-remote.com/jp1/hardware.shtml

Quoted 8 lines

These allow access to the internal configuration EEPROM on various remote controls and there are a variety of Windows tools that make use of this hardware. I have tested this patch with the "simple" parallel port device and a OneForAll URC-7562 and confirmed that the data read using the eeprom i2c driver matches that returned by the Windows "IR" JP1 tool.

Patch applied, thanks.

Signature · 1 line
Jean Delvare