iio: adc128s052: Add pin-compatible IDs
authorJavier Arteaga <javier@emutex.com>
Thu, 25 Oct 2018 15:35:40 +0000 (16:35 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Nov 2018 09:44:21 +0000 (09:44 +0000)
The datasheets for ADC122S021 and ADC124S021 list two more
pin-compatible alternatives for each device.

Add their IDs as compatible strings.

Suggested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Javier Arteaga <javier@emutex.com>
Signed-off-by: Dan O'Donovan <dan@emutex.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt
drivers/iio/adc/ti-adc128s052.c

index daa2b2c294285f4e717d25d473690582a3bc0329..c07ce1a3f5c4f6ddad158591c19edc22e3f050c7 100644 (file)
@@ -1,7 +1,14 @@
 * Texas Instruments' ADC128S052, ADC122S021 and ADC124S021 ADC chip
 
 Required properties:
- - compatible: Should be "ti,adc128s052", "ti,adc122s021" or "ti,adc124s021"
+ - compatible: Should be one of:
+   - "ti,adc128s052"
+   - "ti,adc122s021"
+   - "ti,adc122s051"
+   - "ti,adc122s101"
+   - "ti,adc124s021"
+   - "ti,adc124s051"
+   - "ti,adc124s101"
  - reg: spi chip select number for the device
  - vref-supply: The regulator supply for ADC reference voltage
 
index 7cf39b3e2416d152e2384831fd66d9c37890b9af..4ab6552bd06b1dfc13f7d99389ae5a443b18697c 100644 (file)
@@ -186,15 +186,23 @@ static int adc128_remove(struct spi_device *spi)
 static const struct of_device_id adc128_of_match[] = {
        { .compatible = "ti,adc128s052", },
        { .compatible = "ti,adc122s021", },
+       { .compatible = "ti,adc122s051", },
+       { .compatible = "ti,adc122s101", },
        { .compatible = "ti,adc124s021", },
+       { .compatible = "ti,adc124s051", },
+       { .compatible = "ti,adc124s101", },
        { /* sentinel */ },
 };
 MODULE_DEVICE_TABLE(of, adc128_of_match);
 
 static const struct spi_device_id adc128_id[] = {
-       { "adc128s052", 0},     /* index into adc128_config */
-       { "adc122s021", 1},
-       { "adc124s021", 2},
+       { "adc128s052", 0 },    /* index into adc128_config */
+       { "adc122s021", 1 },
+       { "adc122s051", 1 },
+       { "adc122s101", 1 },
+       { "adc124s021", 2 },
+       { "adc124s051", 2 },
+       { "adc124s101", 2 },
        { }
 };
 MODULE_DEVICE_TABLE(spi, adc128_id);