|
26 | 26 |
|
27 | 27 | enum lm75_type { /* keep sorted in alphabetical order */
|
28 | 28 | adt75,
|
| 29 | + at30ts74, |
29 | 30 | ds1775,
|
30 | 31 | ds75,
|
31 | 32 | ds7505,
|
@@ -128,6 +129,14 @@ static const struct lm75_params device_params[] = {
|
128 | 129 | .default_resolution = 12,
|
129 | 130 | .default_sample_time = MSEC_PER_SEC / 10,
|
130 | 131 | },
|
| 132 | + [at30ts74] = { |
| 133 | + .set_mask = 3 << 5, /* 12-bit mode*/ |
| 134 | + .default_resolution = 12, |
| 135 | + .default_sample_time = 200, |
| 136 | + .num_sample_times = 4, |
| 137 | + .sample_times = (unsigned int []){ 25, 50, 100, 200 }, |
| 138 | + .resolutions = (u8 []) {9, 10, 11, 12 }, |
| 139 | + }, |
131 | 140 | [ds1775] = {
|
132 | 141 | .clr_mask = 3 << 5,
|
133 | 142 | .set_mask = 2 << 5, /* 11-bit mode */
|
@@ -645,6 +654,7 @@ static int lm75_probe(struct i2c_client *client)
|
645 | 654 |
|
646 | 655 | static const struct i2c_device_id lm75_ids[] = {
|
647 | 656 | { "adt75", adt75, },
|
| 657 | + { "at30ts74", at30ts74, }, |
648 | 658 | { "ds1775", ds1775, },
|
649 | 659 | { "ds75", ds75, },
|
650 | 660 | { "ds7505", ds7505, },
|
@@ -680,6 +690,10 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
|
680 | 690 | .compatible = "adi,adt75",
|
681 | 691 | .data = (void *)adt75
|
682 | 692 | },
|
| 693 | + { |
| 694 | + .compatible = "atmel,at30ts74", |
| 695 | + .data = (void *)at30ts74 |
| 696 | + }, |
683 | 697 | {
|
684 | 698 | .compatible = "dallas,ds1775",
|
685 | 699 | .data = (void *)ds1775
|
|
0 commit comments