i2c: i801: Add support for Intel DNV
PATCH 1/1 i2c: i801: Add support for Intel DNV
Intel DNV SoC has the same legacy SMBus host controller than Intel Sunrisepoint PCH. It also has same iTCO watchdog on the bus.
Add DNV PCI ID to the list of supported devices.
--- drivers/i2c/busses/i2c-i801.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/i2c/busses/i2c-i801.c +4 -0
@@ -60,6 +60,7 @@* BayTrail (SOC) 0x0f12 32 hard yes yes yes * Sunrise Point-H (PCH) 0xa123 32 hard yes yes yes * Sunrise Point-LP (PCH) 0x9d23 32 hard yes yes yes +* DNV (SOC) 0x19df 32 hard yes yes yes * * Features supported by this driver: * Software PEC no
@@ -202,6 +203,7 @@#define PCI_DEVICE_ID_INTEL_WILDCATPOINT_LP_SMBUS 0x9ca2#define PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS 0xa123#define PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS 0x9d23 +#define PCI_DEVICE_ID_INTEL_DNV_SMBUS 0x19dfstruct i801_mux_config {char *gpio_chip;
@@ -863,6 +865,7 @@ static const struct pci_device_id i801_ids[] = { { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BRASWELL_SMBUS) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS) }, + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_DNV_SMBUS) }, { 0, } };
@@ -1256,6 +1259,7 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)switch (dev->device) {case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS :case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS : +case PCI_DEVICE_ID_INTEL_DNV_SMBUS : priv->features |=FEATURE_I2C_BLOCK_READ ; priv->features |=FEATURE_IRQ ; priv->features |=FEATURE_SMBUS_PEC ;
Signature · 1 line
2.5.3
Wolfram Sang
AppliedQuoted 6 lines · Mika Westerberg
Intel DNV SoC has the same legacy SMBus host controller than Intel Sunrisepoint PCH. It also has same iTCO watchdog on the bus.
Add DNV PCI ID to the list of supported devices.
Signed-off-by Mika Westerberg <[email protected]>
Applied to for-next, thanks!
Hi Mika,
Quoted 23 lines · Mika Westerberg
Intel DNV SoC has the same legacy SMBus host controller than Intel Sunrisepoint PCH. It also has same iTCO watchdog on the bus.
Add DNV PCI ID to the list of supported devices.
Signed-off-by Mika Westerberg <[email protected]>--- drivers/i2c/busses/i2c-i801.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/i2c/busses/i2c-i801.c +1
-0@@ -60,6 +60,7 @@* BayTrail (SOC) 0x0f12 32 hard yes yes yes * Sunrise Point-H (PCH) 0xa123 32 hard yes yes yes * Sunrise Point-LP (PCH) 0x9d23 32 hard yes yes yes +* DNV (SOC) 0x19df 32 hard yes yes yes * * Features supported by this driver: * Software PEC no
drivers/i2c/busses/i2c-i801.c line 206
Quoted 4 lines
drivers/i2c/busses/i2c-i801.c +1
-0@@ -202,6 +203,7 @@#define PCI_DEVICE_ID_INTEL_WILDCATPOINT_LP_SMBUS 0x9ca2#define PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS 0xa123#define PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS 0x9d23 +#define PCI_DEVICE_ID_INTEL_DNV_SMBUS 0x19df
Can you please get this added to pci.ids?
Quoted 12 lines
drivers/i2c/busses/i2c-i801.c +1
-0struct i801_mux_config {char *gpio_chip;@@ -863,6 +865,7 @@ static const struct pci_device_id i801_ids[] = { { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BRASWELL_SMBUS) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS) }, + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_DNV_SMBUS) }, { 0, } };
drivers/i2c/busses/i2c-i801.c static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) · line 1265
Quoted 7 lines
drivers/i2c/busses/i2c-i801.c +1
-0@@ -1256,6 +1259,7 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)switch (dev->device) {case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS :case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS : +case PCI_DEVICE_ID_INTEL_DNV_SMBUS : priv->features |=FEATURE_I2C_BLOCK_READ ; priv->features |=FEATURE_IRQ ; priv->features |=FEATURE_SMBUS_PEC ;
Looks good, but please also update Documentation/i2c/busses/i2c-i801 and drivers/i2c/busses/Kconfig.
Signature · 2 lines
Jean Delvare SUSE L3 Support
Quoted 33 lines · Jean Delvare
Hi Mika,
Quoted 23 lines · Mika Westerberg
Intel DNV SoC has the same legacy SMBus host controller than Intel Sunrisepoint PCH. It also has same iTCO watchdog on the bus.
Add DNV PCI ID to the list of supported devices.
Signed-off-by Mika Westerberg <[email protected]>--- drivers/i2c/busses/i2c-i801.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/i2c/busses/i2c-i801.c +1
-0@@ -60,6 +60,7 @@* BayTrail (SOC) 0x0f12 32 hard yes yes yes * Sunrise Point-H (PCH) 0xa123 32 hard yes yes yes * Sunrise Point-LP (PCH) 0x9d23 32 hard yes yes yes +* DNV (SOC) 0x19df 32 hard yes yes yes * * Features supported by this driver: * Software PEC no drivers/i2c/busses/i2c-i801.c line 206
Quoted 4 lines
drivers/i2c/busses/i2c-i801.c +1
-0@@ -202,6 +203,7 @@#define PCI_DEVICE_ID_INTEL_WILDCATPOINT_LP_SMBUS 0x9ca2#define PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS 0xa123#define PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS 0x9d23 +#define PCI_DEVICE_ID_INTEL_DNV_SMBUS 0x19dfCan you please get this added to pci.ids?
Quoted 1 line
Sure.
Quoted 11 lines
Quoted 11 lines
drivers/i2c/busses/i2c-i801.c +1
-0struct i801_mux_config {char *gpio_chip;@@ -863,6 +865,7 @@ static const struct pci_device_id i801_ids[] = { { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BRASWELL_SMBUS) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS) }, + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_DNV_SMBUS) }, { 0, } };
Quoted 11 lines
drivers/i2c/busses/i2c-i801.c static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) · line 1265
Quoted 8 lines
drivers/i2c/busses/i2c-i801.c +1
-0@@ -1256,6 +1259,7 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)switch (dev->device) {case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS :case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS : +case PCI_DEVICE_ID_INTEL_DNV_SMBUS : priv->features |=FEATURE_I2C_BLOCK_READ ; priv->features |=FEATURE_IRQ ; priv->features |=FEATURE_SMBUS_PEC ;Looks good, but please also update
Documentation/i2c/busses/i2c-i801anddrivers/i2c/busses/Kconfig.
Will do thanks.
Wolfram, do you want followup patch on top of this or do you prefer updated patch?
Quoted 3 lines
Wolfram, do you want followup patch on top of this or do you prefer updated patch?
I'd prefer the seperate patch Jarkko mentioned which fixes all the previously forgotten ones.