James Feist | 053a664 | 2018-10-15 13:17:09 -0700 | [diff] [blame] | 1 | /* |
| 2 | // Copyright (c) 2018 Intel Corporation |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | */ |
Brad Bishop | 1fb9f3f | 2020-08-28 08:15:13 -0400 | [diff] [blame] | 16 | /// \file devices.hpp |
James Feist | 053a664 | 2018-10-15 13:17:09 -0700 | [diff] [blame] | 17 | |
| 18 | #pragma once |
| 19 | #include <boost/container/flat_map.hpp> |
| 20 | |
| 21 | namespace devices |
| 22 | { |
| 23 | |
| 24 | struct CmpStr |
| 25 | { |
James Feist | a465ccc | 2019-02-08 12:51:01 -0800 | [diff] [blame] | 26 | bool operator()(const char* a, const char* b) const |
James Feist | 053a664 | 2018-10-15 13:17:09 -0700 | [diff] [blame] | 27 | { |
| 28 | return std::strcmp(a, b) < 0; |
| 29 | } |
| 30 | }; |
| 31 | |
| 32 | struct ExportTemplate |
| 33 | { |
Zev Weiss | c11b5da | 2022-07-12 16:31:37 -0700 | [diff] [blame] | 34 | ExportTemplate(const char* params, const char* bus, const char* constructor, |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 35 | const char* destructor, bool createsHWMon) : |
| 36 | parameters(params), |
Zev Weiss | c11b5da | 2022-07-12 16:31:37 -0700 | [diff] [blame] | 37 | busPath(bus), add(constructor), remove(destructor), |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 38 | createsHWMon(createsHWMon){}; |
James Feist | a465ccc | 2019-02-08 12:51:01 -0800 | [diff] [blame] | 39 | const char* parameters; |
Zev Weiss | c11b5da | 2022-07-12 16:31:37 -0700 | [diff] [blame] | 40 | const char* busPath; |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 41 | const char* add; |
| 42 | const char* remove; |
| 43 | bool createsHWMon; |
James Feist | 053a664 | 2018-10-15 13:17:09 -0700 | [diff] [blame] | 44 | }; |
| 45 | |
James Feist | a465ccc | 2019-02-08 12:51:01 -0800 | [diff] [blame] | 46 | const boost::container::flat_map<const char*, ExportTemplate, CmpStr> |
Devjit Gopalpur | 4acdc54 | 2019-10-10 22:47:46 -0700 | [diff] [blame] | 47 | exportTemplates{ |
Vijay Khemka | 4832841 | 2021-04-12 23:14:53 +0000 | [diff] [blame] | 48 | {{"EEPROM_24C01", |
| 49 | ExportTemplate("24c01 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 50 | "new_device", "delete_device", false)}, |
| 51 | {"EEPROM_24C02", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 52 | ExportTemplate("24c02 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 53 | "new_device", "delete_device", false)}, |
Jae Hyun Yoo | 8602201 | 2022-04-01 16:04:29 -0700 | [diff] [blame] | 54 | {"EEPROM_24C04", |
| 55 | ExportTemplate("24c04 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 56 | "new_device", "delete_device", false)}, |
| 57 | {"EEPROM_24C08", |
| 58 | ExportTemplate("24c08 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 59 | "new_device", "delete_device", false)}, |
| 60 | {"EEPROM_24C16", |
| 61 | ExportTemplate("24c16 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 62 | "new_device", "delete_device", false)}, |
| 63 | {"EEPROM_24C32", |
| 64 | ExportTemplate("24c32 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 65 | "new_device", "delete_device", false)}, |
Hao Jiang | f64d439 | 2021-02-23 14:22:03 -0800 | [diff] [blame] | 66 | {"EEPROM_24C64", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 67 | ExportTemplate("24c64 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 68 | "new_device", "delete_device", false)}, |
Jae Hyun Yoo | 8602201 | 2022-04-01 16:04:29 -0700 | [diff] [blame] | 69 | {"EEPROM_24C128", |
| 70 | ExportTemplate("24c128 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 71 | "new_device", "delete_device", false)}, |
| 72 | {"EEPROM_24C256", |
| 73 | ExportTemplate("24c256 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 74 | "new_device", "delete_device", false)}, |
Nan Zhou | 296667f | 2021-02-23 09:53:14 -0800 | [diff] [blame] | 75 | {"ADM1266", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 76 | ExportTemplate("adm1266 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 77 | "new_device", "delete_device", false)}, |
Josh Lehan | 079c47f | 2020-06-18 16:34:31 -0700 | [diff] [blame] | 78 | {"ADM1272", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 79 | ExportTemplate("adm1272 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 80 | "new_device", "delete_device", false)}, |
Michal Bielecki | ff503d8 | 2022-04-29 10:20:08 +0200 | [diff] [blame] | 81 | {"ADS7828", |
| 82 | ExportTemplate("ads7828 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 83 | "new_device", "delete_device", false)}, |
Bruce Mitchell | ad2b133 | 2021-07-27 14:42:29 -0500 | [diff] [blame] | 84 | {"DPS310", |
| 85 | ExportTemplate("dps310 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 86 | "new_device", "delete_device", false)}, |
| 87 | {"SI7020", |
| 88 | ExportTemplate("si7020 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 89 | "new_device", "delete_device", false)}, |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 90 | {"EEPROM", |
| 91 | ExportTemplate("eeprom $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 92 | "new_device", "delete_device", false)}, |
Gilbert Chen | c61ae35 | 2020-11-03 22:32:30 +0800 | [diff] [blame] | 93 | {"EMC1412", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 94 | ExportTemplate("emc1412 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 95 | "new_device", "delete_device", true)}, |
Alex Qiu | 0cbe6bf | 2020-01-03 09:20:02 -0800 | [diff] [blame] | 96 | {"EMC1413", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 97 | ExportTemplate("emc1413 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 98 | "new_device", "delete_device", true)}, |
Gilbert Chen | c61ae35 | 2020-11-03 22:32:30 +0800 | [diff] [blame] | 99 | {"EMC1414", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 100 | ExportTemplate("emc1414 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 101 | "new_device", "delete_device", true)}, |
| 102 | {"Gpio", ExportTemplate("$Index", "/sys/class/gpio", "export", |
| 103 | "unexport", false)}, |
| 104 | {"INA230", |
| 105 | ExportTemplate("ina230 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 106 | "new_device", "delete_device", true)}, |
Alex Qiu | 0cbe6bf | 2020-01-03 09:20:02 -0800 | [diff] [blame] | 107 | {"ISL68137", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 108 | ExportTemplate("isl68137 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 109 | "new_device", "delete_device", true)}, |
Yung Sheng Huang | ec5e74e | 2022-05-06 10:02:18 +0800 | [diff] [blame] | 110 | {"ISL68220", |
| 111 | ExportTemplate("isl68220 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 112 | "new_device", "delete_device", true)}, |
Khang Kieu | 20fb4ae | 2022-02-09 02:04:33 +0000 | [diff] [blame] | 113 | {"ISL69225", |
| 114 | ExportTemplate("isl69225 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 115 | "new_device", "delete_device", true)}, |
Gaurav Gandhi | bdad957 | 2020-12-29 03:14:48 +0000 | [diff] [blame] | 116 | {"ISL68223", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 117 | ExportTemplate("isl68223 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 118 | "new_device", "delete_device", true)}, |
Gaurav Gandhi | bdad957 | 2020-12-29 03:14:48 +0000 | [diff] [blame] | 119 | {"ISL69243", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 120 | ExportTemplate("isl69243 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 121 | "new_device", "delete_device", true)}, |
Zhikui Ren | ed2f07b | 2022-02-16 14:59:09 -0800 | [diff] [blame] | 122 | {"ISL69260", |
| 123 | ExportTemplate("isl69260 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 124 | "new_device", "delete_device", true)}, |
Alex Qiu | ba5424a | 2020-01-29 13:33:16 -0800 | [diff] [blame] | 125 | {"MAX16601", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 126 | ExportTemplate("max16601 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 127 | "new_device", "delete_device", true)}, |
Gaurav Gandhi | bdad957 | 2020-12-29 03:14:48 +0000 | [diff] [blame] | 128 | {"MAX20710", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 129 | ExportTemplate("max20710 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 130 | "new_device", "delete_device", true)}, |
Alex Qiu | 9354bf7 | 2020-01-22 17:52:32 -0800 | [diff] [blame] | 131 | {"MAX20730", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 132 | ExportTemplate("max20730 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 133 | "new_device", "delete_device", true)}, |
Alex Qiu | 9354bf7 | 2020-01-22 17:52:32 -0800 | [diff] [blame] | 134 | {"MAX20734", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 135 | ExportTemplate("max20734 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 136 | "new_device", "delete_device", true)}, |
Alex Qiu | 9354bf7 | 2020-01-22 17:52:32 -0800 | [diff] [blame] | 137 | {"MAX20796", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 138 | ExportTemplate("max20796 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 139 | "new_device", "delete_device", true)}, |
Alex Qiu | 0cbe6bf | 2020-01-03 09:20:02 -0800 | [diff] [blame] | 140 | {"MAX31725", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 141 | ExportTemplate("max31725 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 142 | "new_device", "delete_device", true)}, |
Alex Qiu | 0cbe6bf | 2020-01-03 09:20:02 -0800 | [diff] [blame] | 143 | {"MAX31730", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 144 | ExportTemplate("max31730 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 145 | "new_device", "delete_device", true)}, |
Nan Zhou | 296667f | 2021-02-23 09:53:14 -0800 | [diff] [blame] | 146 | {"MAX34440", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 147 | ExportTemplate("max34440 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 148 | "new_device", "delete_device", true)}, |
Alex Qiu | 0cbe6bf | 2020-01-03 09:20:02 -0800 | [diff] [blame] | 149 | {"MAX34451", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 150 | ExportTemplate("max34451 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 151 | "new_device", "delete_device", true)}, |
Josh Lehan | fdef837 | 2020-05-13 17:02:43 -0700 | [diff] [blame] | 152 | {"MAX6654", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 153 | ExportTemplate("max6654 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 154 | "new_device", "delete_device", true)}, |
Zev Weiss | c7612cf | 2022-05-09 19:22:16 -0700 | [diff] [blame] | 155 | {"NCT6779", |
| 156 | ExportTemplate("nct6779 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 157 | "new_device", "delete_device", true)}, |
Jan Sowinski | 50b2e0f | 2022-05-06 16:47:12 +0200 | [diff] [blame] | 158 | {"PCA9542Mux", |
| 159 | ExportTemplate("pca9542 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 160 | "new_device", "delete_device", false)}, |
Devjit Gopalpur | 4acdc54 | 2019-10-10 22:47:46 -0700 | [diff] [blame] | 161 | {"PCA9543Mux", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 162 | ExportTemplate("pca9543 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 163 | "new_device", "delete_device", false)}, |
Devjit Gopalpur | 4acdc54 | 2019-10-10 22:47:46 -0700 | [diff] [blame] | 164 | {"PCA9544Mux", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 165 | ExportTemplate("pca9544 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 166 | "new_device", "delete_device", false)}, |
Devjit Gopalpur | 4acdc54 | 2019-10-10 22:47:46 -0700 | [diff] [blame] | 167 | {"PCA9545Mux", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 168 | ExportTemplate("pca9545 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 169 | "new_device", "delete_device", false)}, |
Devjit Gopalpur | 4acdc54 | 2019-10-10 22:47:46 -0700 | [diff] [blame] | 170 | {"PCA9546Mux", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 171 | ExportTemplate("pca9546 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 172 | "new_device", "delete_device", false)}, |
Devjit Gopalpur | 4acdc54 | 2019-10-10 22:47:46 -0700 | [diff] [blame] | 173 | {"PCA9547Mux", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 174 | ExportTemplate("pca9547 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 175 | "new_device", "delete_device", false)}, |
Sujoy Ray | e4dc140 | 2022-04-15 10:28:34 -0700 | [diff] [blame] | 176 | {"PCA9548Mux", |
| 177 | ExportTemplate("pca9548 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 178 | "new_device", "delete_device", false)}, |
Jan Sowinski | 50b2e0f | 2022-05-06 16:47:12 +0200 | [diff] [blame] | 179 | {"PCA9846Mux", |
| 180 | ExportTemplate("pca9846 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 181 | "new_device", "delete_device", false)}, |
Jiaqing Zhao | 88333fe | 2022-05-06 15:00:15 +0800 | [diff] [blame] | 182 | {"PCA9847Mux", |
| 183 | ExportTemplate("pca9847 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 184 | "new_device", "delete_device", false)}, |
| 185 | {"PCA9848Mux", |
| 186 | ExportTemplate("pca9848 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 187 | "new_device", "delete_device", false)}, |
| 188 | {"PCA9849Mux", |
| 189 | ExportTemplate("pca9849 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 190 | "new_device", "delete_device", false)}, |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 191 | {"SBTSI", |
| 192 | ExportTemplate("sbtsi $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 193 | "new_device", "delete_device", true)}, |
Yung Sheng Huang | 2ca8529 | 2022-07-15 09:59:50 +0800 | [diff] [blame^] | 194 | {"SIC450", |
| 195 | ExportTemplate("sic450 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 196 | "new_device", "delete_device", true)}, |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 197 | {"pmbus", |
| 198 | ExportTemplate("pmbus $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 199 | "new_device", "delete_device", true)}, |
Lotus Xu | 93db9bf | 2021-09-08 13:47:47 +0800 | [diff] [blame] | 200 | {"PXE1610", |
| 201 | ExportTemplate("pxe1610 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
hsangani | 33cbfd2 | 2021-11-23 18:29:34 +0530 | [diff] [blame] | 202 | "new_device", "delete_device", true)}, |
Lotus Xu | 93db9bf | 2021-09-08 13:47:47 +0800 | [diff] [blame] | 203 | {"XDPE12284", |
| 204 | ExportTemplate("xdpe12284 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 205 | "new_device", "delete_device", true)}, |
Konstantin Aladyshev | 97353ed | 2021-04-01 17:24:34 +0300 | [diff] [blame] | 206 | {"LM95234", |
| 207 | ExportTemplate("lm95234 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 208 | "new_device", "delete_device", true)}, |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 209 | {"TMP112", |
| 210 | ExportTemplate("tmp112 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 211 | "new_device", "delete_device", true)}, |
| 212 | {"TMP175", |
| 213 | ExportTemplate("tmp175 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 214 | "new_device", "delete_device", true)}, |
| 215 | {"TMP421", |
| 216 | ExportTemplate("tmp421 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 217 | "new_device", "delete_device", true)}, |
| 218 | {"TMP441", |
| 219 | ExportTemplate("tmp441 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 220 | "new_device", "delete_device", true)}, |
Konstantin Aladyshev | 32ec03a | 2021-04-01 17:12:28 +0300 | [diff] [blame] | 221 | {"LM75A", |
| 222 | ExportTemplate("lm75a $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 223 | "new_device", "delete_device", true)}, |
Zev Weiss | 27adbb7 | 2022-04-01 16:17:09 -0700 | [diff] [blame] | 224 | {"LM25066", |
| 225 | ExportTemplate("lm25066 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 226 | "new_device", "delete_device", true)}, |
Alex Qiu | 0cbe6bf | 2020-01-03 09:20:02 -0800 | [diff] [blame] | 227 | {"TMP75", |
Johnathan Mantey | 9b86787 | 2020-10-13 15:00:51 -0700 | [diff] [blame] | 228 | ExportTemplate("tmp75 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
Zev Weiss | 756fcae | 2021-03-24 22:36:19 +0000 | [diff] [blame] | 229 | "new_device", "delete_device", true)}, |
| 230 | {"W83773G", |
| 231 | ExportTemplate("w83773g $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
Scron Chang | 2fb84ef | 2021-07-14 20:32:14 +0800 | [diff] [blame] | 232 | "new_device", "delete_device", true)}, |
| 233 | {"RAA228000", |
| 234 | ExportTemplate("raa228000 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 235 | "new_device", "delete_device", true)}, |
| 236 | {"DPS800", |
| 237 | ExportTemplate("dps800 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
Scron Chang | 5d11daf | 2021-07-26 13:38:26 +0800 | [diff] [blame] | 238 | "new_device", "delete_device", true)}, |
| 239 | {"MAX31790", |
| 240 | ExportTemplate("max31790 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
hsangani | 33cbfd2 | 2021-11-23 18:29:34 +0530 | [diff] [blame] | 241 | "new_device", "delete_device", true)}, |
| 242 | {"JC42", |
| 243 | ExportTemplate("jc42 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
Zhikui Ren | ed2f07b | 2022-02-16 14:59:09 -0800 | [diff] [blame] | 244 | "new_device", "delete_device", true)}, |
| 245 | {"ADM1293", |
| 246 | ExportTemplate("adm1293 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
Johnathan Mantey | f7fc474 | 2022-07-28 13:41:23 -0700 | [diff] [blame] | 247 | "new_device", "delete_device", false)}, |
Zhikui Ren | ed2f07b | 2022-02-16 14:59:09 -0800 | [diff] [blame] | 248 | {"INA219", |
| 249 | ExportTemplate("ina219 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
Johnathan Mantey | f7fc474 | 2022-07-28 13:41:23 -0700 | [diff] [blame] | 250 | "new_device", "delete_device", false)}, |
Zhikui Ren | ec6183c | 2022-02-26 23:04:34 -0800 | [diff] [blame] | 251 | {"RAA229126", |
| 252 | ExportTemplate("raa229126 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
Shamim Ali | 3f4527a | 2022-06-08 23:19:11 +0530 | [diff] [blame] | 253 | "new_device", "delete_device", true)}, |
| 254 | {"MP2971", |
| 255 | ExportTemplate("mp2971 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
| 256 | "new_device", "delete_device", true)}, |
| 257 | {"MP2973", |
| 258 | ExportTemplate("mp2973 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
Potin Lai | f51f6af | 2022-06-28 09:55:19 +0800 | [diff] [blame] | 259 | "new_device", "delete_device", true)}, |
| 260 | {"HDC1080", |
| 261 | ExportTemplate("hdc1080 $Address", "/sys/bus/i2c/devices/i2c-$Bus", |
Potin Lai | c492ab8 | 2022-07-06 00:47:49 +0800 | [diff] [blame] | 262 | "new_device", "delete_device", false)}}}; |
Jae Hyun Yoo | 9cdeabb | 2018-10-16 11:47:09 -0700 | [diff] [blame] | 263 | } // namespace devices |