Skip to contentSkip to conversation

some drivers from Blackfin team

PATCH In review Bryan Wu 3 participants 6 messages Jan 30, 2008 – Mar 16, 2008 3 messages not in the archive I2C subsystem host drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1201687796-987-1-git-send-email-bryan.wu-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org

author
#2 lore raw

PATCH 1/3 : add AD5252 chip driver

---
 drivers/i2c/chips/Kconfig  |    7 ++
 drivers/i2c/chips/Makefile |    1 +
 drivers/i2c/chips/ad5252.c |  252 ++++++++++++++++++++++++++++++++++++++++++++
 include/linux/i2c-id.h     |    1 +
 4 files changed, 261 insertions(+), 0 deletions(-)
 create mode 100644 drivers/i2c/chips/ad5252.c
drivers/i2c/chips/Kconfig +7 -0
index bd7082c..bb8c253 100644
@@ -14,6 +14,13 @@ config DS1682
 	  This driver can also be built as a module.  If so, the module
 	  will be called ds1682.
 
+config SENSORS_AD5252
+	tristate "Analog Devices AD5252 and AD5251 Digital Potentiometers"
+	depends on I2C && EXPERIMENTAL
+	help
+	  If you say yes here you get support for Analog Devices and AD5252
+	  AD5251 chips.
+
 config SENSORS_EEPROM
 	tristate "EEPROM reader"
 	depends on EXPERIMENTAL
drivers/i2c/chips/Makefile +1 -0
index 501f00c..a1e1f5f 100644
@@ -2,6 +2,7 @@
 # Makefile for miscellaneous I2C chip drivers.
 #
 
+obj-$(CONFIG_SENSORS_AD5252)	+= ad5252.o
 obj-$(CONFIG_DS1682)		+= ds1682.o
 obj-$(CONFIG_SENSORS_EEPROM)	+= eeprom.o
 obj-$(CONFIG_SENSORS_MAX6875)	+= max6875.o
drivers/i2c/chips/ad5252.c new file +252 -0

252 lines not on this page · raw message

include/linux/i2c-id.h +1 -0
index f922b06..67d639d 100644
@@ -133,6 +133,7 @@
 #define I2C_DRIVERID_FSCHER 1046
 #define I2C_DRIVERID_W83L785TS 1047
 #define I2C_DRIVERID_OV7670 1048	/* Omnivision 7670 camera */
+#define I2C_DRIVERID_AD5252 1049
 
 /*
  * ---- Adapter types ----------------------------------------------------
Signature · 6 lines
1.5.3.4

_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c
author
#3 lore raw

PATCH 2/3 add PCA9543 chip driver

In reply to a message not in the archive
---
 drivers/i2c/chips/Kconfig   |   13 +++
 drivers/i2c/chips/Makefile  |    1 +
 drivers/i2c/chips/pca9543.c |  212 +++++++++++++++++++++++++++++++++++++++++++
 include/linux/i2c-id.h      |    1 +
 4 files changed, 227 insertions(+), 0 deletions(-)
 create mode 100644 drivers/i2c/chips/pca9543.c
drivers/i2c/chips/Kconfig +13 -0
index bb8c253..9f05f6f 100644
@@ -60,6 +60,19 @@ config PCF8575
 	  This device is hard to detect and is rarely found on mainstream
 	  hardware.  If unsure, say N.
 
+config SENSORS_PCA9543
+	tristate "Philips PCA9543 bi-directional translating switch"
+	depends on I2C && EXPERIMENTAL
+	default n
+	help
+	  If you say yes here you get support for Philips PCA9543.
+
+	  This driver can also be built as a module.  If so, the module
+	  will be called pca9543.
+
+	  These devices are hard to detect and rarely found on mainstream
+	  hardware.  If unsure, say N.
+
 config SENSORS_PCA9539
 	tristate "Philips PCA9539 16-bit I/O port"
 	depends on EXPERIMENTAL
drivers/i2c/chips/Makefile +1 -0
index a1e1f5f..d5a1d98 100644
@@ -7,6 +7,7 @@ obj-$(CONFIG_DS1682)		+= ds1682.o
 obj-$(CONFIG_SENSORS_EEPROM)	+= eeprom.o
 obj-$(CONFIG_SENSORS_MAX6875)	+= max6875.o
 obj-$(CONFIG_SENSORS_PCA9539)	+= pca9539.o
+obj-$(CONFIG_SENSORS_PCA9543)	+= pca9543.o
 obj-$(CONFIG_SENSORS_PCF8574)	+= pcf8574.o
 obj-$(CONFIG_PCF8575)		+= pcf8575.o
 obj-$(CONFIG_SENSORS_PCF8591)	+= pcf8591.o
drivers/i2c/chips/pca9543.c new file +212 -0

212 lines not on this page · raw message

include/linux/i2c-id.h +1 -0
index 67d639d..6748bd2 100644
@@ -134,6 +134,7 @@
 #define I2C_DRIVERID_W83L785TS 1047
 #define I2C_DRIVERID_OV7670 1048	/* Omnivision 7670 camera */
 #define I2C_DRIVERID_AD5252 1049
+#define I2C_DRIVERID_PCF8575 1050
 
 /*
  * ---- Adapter types ----------------------------------------------------
Signature · 6 lines
1.5.3.4

_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c
author
#4 lore raw

PATCH 3/3 ID: add I2C Blackfin HW ID

In reply to a message not in the archive
---
 include/linux/i2c-id.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/i2c-id.h +1 -0
index 6748bd2..402d21d 100644
@@ -163,6 +163,7 @@
 #define I2C_HW_B_CX2341X	0x010020 /* Conexant CX2341X MPEG encoder cards */
 #define I2C_HW_B_INTELFB	0x010021 /* intel framebuffer driver */
 #define I2C_HW_B_CX23885	0x010022 /* conexant 23885 based tv cards (bus1) */
+#define I2C_HW_B_BLACKFIN	0x010023 /* ADI Blackfin I2C TWI driver */
 
 /* --- PCF 8584 based algorithms					*/
 #define I2C_HW_P_ELEK		0x020002 /* Elektor ISA Bus inteface card */
Signature · 6 lines
1.5.3.4

_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c

A message that is not in the archive (sent off-list or not yet received): 1201687796-987-4-git-send-email-bryan.wu-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org

#6 lore raw

Re: [PATCH 3/3] [I2C] ID: add I2C Blackfin HW ID

Quoted 10 lines · Bryan Wu
---
 include/linux/i2c-id.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/i2c-id.h +0 -0
index 6748bd2..402d21d 100644

include/linux/i2c-id.h line 169

Quoted 7 lines
include/linux/i2c-id.h +1 -0
@@ -163,6 +163,7 @@
 #define I2C_HW_B_CX2341X	0x010020 /* Conexant CX2341X MPEG encoder cards */
 #define I2C_HW_B_INTELFB	0x010021 /* intel framebuffer driver */
 #define I2C_HW_B_CX23885	0x010022 /* conexant 23885 based tv cards (bus1) */
+#define I2C_HW_B_BLACKFIN	0x010023 /* ADI Blackfin I2C TWI driver */
 
 /* --- PCF 8584 based algorithms					*/
 #define I2C_HW_P_ELEK		0x020002 /* Elektor ISA Bus inteface card */

Why do you need this ID? In general we are trying to get rid of them, as the new-style i2c drivers make them obsolete.

Signature · 6 lines
Jean Delvare

_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw

Re: [PATCH 3/3] [I2C] ID: add I2C Blackfin HW ID

Quoted 16 lines · Jean Delvare
Quoted 15 lines · Bryan Wu
---
 include/linux/i2c-id.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/i2c-id.h +1 -0
index 6748bd2..402d21d 100644
@@ -163,6 +163,7 @@
 #define I2C_HW_B_CX2341X     0x010020 /* Conexant CX2341X MPEG encoder cards */
 #define I2C_HW_B_INTELFB     0x010021 /* intel framebuffer driver */
 #define I2C_HW_B_CX23885     0x010022 /* conexant 23885 based tv cards (bus1) */
+#define I2C_HW_B_BLACKFIN    0x010023 /* ADI Blackfin I2C TWI driver */
 
Quoted 6 lines

include/linux/i2c-id.h line 169

Quoted 2 lines
include/linux/i2c-id.h +0 -0
 /* --- PCF 8584 based algorithms                                     */
 #define I2C_HW_P_ELEK                0x020002 /* Elektor ISA Bus inteface card */

Why do you need this ID? In general we are trying to get rid of them, as the new-style i2c drivers make them obsolete.

Yes, please ignore this patch, that's for the old-style i2c driver.

Thanks,
-Bryan

_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c