Loading Documentation/devicetree/bindings/iio/light/tsl2583.txt 0 → 100644 +26 −0 Original line number Diff line number Diff line * TAOS TSL 2580/2581/2583 ALS sensor Required properties: - compatible: Should be one of "amstaos,tsl2580" "amstaos,tsl2581" "amstaos,tsl2583" - reg: the I2C address of the device Optional properties: - interrupt-parent: should be the phandle for the interrupt controller - interrupts: the sole interrupt generated by the device Refer to interrupt-controller/interrupts.txt for generic interrupt client node bindings. - vcc-supply: phandle to the regulator that provides power to the sensor. Example: tsl2581@29 { compatible = "amstaos,tsl2581"; reg = <0x29>; }; drivers/staging/iio/light/tsl2583.c +13 −0 Original line number Diff line number Diff line Loading @@ -947,11 +947,24 @@ static struct i2c_device_id taos_idtable[] = { }; MODULE_DEVICE_TABLE(i2c, taos_idtable); #ifdef CONFIG_OF static const struct of_device_id taos2583_of_match[] = { { .compatible = "amstaos,tsl2580", }, { .compatible = "amstaos,tsl2581", }, { .compatible = "amstaos,tsl2583", }, { }, }; MODULE_DEVICE_TABLE(of, taos2583_of_match); #else #define taos2583_of_match NULL #endif /* Driver definition */ static struct i2c_driver taos_driver = { .driver = { .name = "tsl2583", .pm = TAOS_PM_OPS, .of_match_table = taos2583_of_match, }, .id_table = taos_idtable, .probe = taos_probe, Loading Loading
Documentation/devicetree/bindings/iio/light/tsl2583.txt 0 → 100644 +26 −0 Original line number Diff line number Diff line * TAOS TSL 2580/2581/2583 ALS sensor Required properties: - compatible: Should be one of "amstaos,tsl2580" "amstaos,tsl2581" "amstaos,tsl2583" - reg: the I2C address of the device Optional properties: - interrupt-parent: should be the phandle for the interrupt controller - interrupts: the sole interrupt generated by the device Refer to interrupt-controller/interrupts.txt for generic interrupt client node bindings. - vcc-supply: phandle to the regulator that provides power to the sensor. Example: tsl2581@29 { compatible = "amstaos,tsl2581"; reg = <0x29>; };
drivers/staging/iio/light/tsl2583.c +13 −0 Original line number Diff line number Diff line Loading @@ -947,11 +947,24 @@ static struct i2c_device_id taos_idtable[] = { }; MODULE_DEVICE_TABLE(i2c, taos_idtable); #ifdef CONFIG_OF static const struct of_device_id taos2583_of_match[] = { { .compatible = "amstaos,tsl2580", }, { .compatible = "amstaos,tsl2581", }, { .compatible = "amstaos,tsl2583", }, { }, }; MODULE_DEVICE_TABLE(of, taos2583_of_match); #else #define taos2583_of_match NULL #endif /* Driver definition */ static struct i2c_driver taos_driver = { .driver = { .name = "tsl2583", .pm = TAOS_PM_OPS, .of_match_table = taos2583_of_match, }, .id_table = taos_idtable, .probe = taos_probe, Loading