Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 2 | /* |
| 3 | * I2C multiplexer using GPIO API |
| 4 | * |
| 5 | * Peter Korsgaard <peter.korsgaard@barco.com> |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <linux/i2c.h> |
| 9 | #include <linux/i2c-mux.h> |
Wolfram Sang | 62ea22c | 2018-04-19 22:00:08 +0200 | [diff] [blame] | 10 | #include <linux/platform_data/i2c-mux-gpio.h> |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 11 | #include <linux/platform_device.h> |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 12 | #include <linux/module.h> |
| 13 | #include <linux/slab.h> |
Linus Walleij | d308dfb | 2019-06-18 12:58:33 +0200 | [diff] [blame] | 14 | #include <linux/bits.h> |
| 15 | #include <linux/gpio/consumer.h> |
| 16 | /* FIXME: stop poking around inside gpiolib */ |
Peter Rosin | 6ef91fc | 2016-05-04 22:15:29 +0200 | [diff] [blame] | 17 | #include "../../gpio/gpiolib.h" |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 18 | |
| 19 | struct gpiomux { |
Jean Delvare | e7065e2 | 2012-04-28 15:32:06 +0200 | [diff] [blame] | 20 | struct i2c_mux_gpio_platform_data data; |
Linus Walleij | d308dfb | 2019-06-18 12:58:33 +0200 | [diff] [blame] | 21 | int ngpios; |
Peter Rosin | feff5c0 | 2016-11-24 19:19:28 +0100 | [diff] [blame] | 22 | struct gpio_desc **gpios; |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 23 | }; |
| 24 | |
Jean Delvare | e7065e2 | 2012-04-28 15:32:06 +0200 | [diff] [blame] | 25 | static void i2c_mux_gpio_set(const struct gpiomux *mux, unsigned val) |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 26 | { |
Janusz Krzysztofik | b9762be | 2018-09-05 23:50:05 +0200 | [diff] [blame] | 27 | DECLARE_BITMAP(values, BITS_PER_TYPE(val)); |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 28 | |
Janusz Krzysztofik | b9762be | 2018-09-05 23:50:05 +0200 | [diff] [blame] | 29 | values[0] = val; |
Peter Rosin | feff5c0 | 2016-11-24 19:19:28 +0100 | [diff] [blame] | 30 | |
Linus Walleij | d308dfb | 2019-06-18 12:58:33 +0200 | [diff] [blame] | 31 | gpiod_set_array_value_cansleep(mux->ngpios, mux->gpios, NULL, values); |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 32 | } |
| 33 | |
Peter Rosin | bb44814 | 2016-04-20 08:39:05 +0200 | [diff] [blame] | 34 | static int i2c_mux_gpio_select(struct i2c_mux_core *muxc, u32 chan) |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 35 | { |
Peter Rosin | bb44814 | 2016-04-20 08:39:05 +0200 | [diff] [blame] | 36 | struct gpiomux *mux = i2c_mux_priv(muxc); |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 37 | |
Ionut Nicu | 8c0ec25 | 2013-10-11 12:09:57 +0200 | [diff] [blame] | 38 | i2c_mux_gpio_set(mux, chan); |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 39 | |
| 40 | return 0; |
| 41 | } |
| 42 | |
Peter Rosin | bb44814 | 2016-04-20 08:39:05 +0200 | [diff] [blame] | 43 | static int i2c_mux_gpio_deselect(struct i2c_mux_core *muxc, u32 chan) |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 44 | { |
Peter Rosin | bb44814 | 2016-04-20 08:39:05 +0200 | [diff] [blame] | 45 | struct gpiomux *mux = i2c_mux_priv(muxc); |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 46 | |
Jean Delvare | e7065e2 | 2012-04-28 15:32:06 +0200 | [diff] [blame] | 47 | i2c_mux_gpio_set(mux, mux->data.idle); |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 48 | |
| 49 | return 0; |
| 50 | } |
| 51 | |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 52 | #ifdef CONFIG_OF |
Bill Pemberton | 0b255e9 | 2012-11-27 15:59:38 -0500 | [diff] [blame] | 53 | static int i2c_mux_gpio_probe_dt(struct gpiomux *mux, |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 54 | struct platform_device *pdev) |
| 55 | { |
Evan Green | 19eb29b | 2020-11-18 15:40:24 -0800 | [diff] [blame^] | 56 | struct device *dev = &pdev->dev; |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 57 | struct device_node *np = pdev->dev.of_node; |
| 58 | struct device_node *adapter_np, *child; |
| 59 | struct i2c_adapter *adapter; |
Linus Walleij | d308dfb | 2019-06-18 12:58:33 +0200 | [diff] [blame] | 60 | unsigned *values; |
| 61 | int i = 0; |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 62 | |
| 63 | if (!np) |
| 64 | return -ENODEV; |
| 65 | |
| 66 | adapter_np = of_parse_phandle(np, "i2c-parent", 0); |
| 67 | if (!adapter_np) { |
| 68 | dev_err(&pdev->dev, "Cannot parse i2c-parent\n"); |
| 69 | return -ENODEV; |
| 70 | } |
| 71 | adapter = of_find_i2c_adapter_by_node(adapter_np); |
Vladimir Zapolskiy | bdbf4a2 | 2015-08-26 23:59:33 +0300 | [diff] [blame] | 72 | of_node_put(adapter_np); |
Ioan Nicu | 623e4ec | 2015-03-30 15:03:38 +0200 | [diff] [blame] | 73 | if (!adapter) |
Ionut Nicu | 9937b8d | 2013-10-09 11:50:45 +0200 | [diff] [blame] | 74 | return -EPROBE_DEFER; |
Ioan Nicu | 623e4ec | 2015-03-30 15:03:38 +0200 | [diff] [blame] | 75 | |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 76 | mux->data.parent = i2c_adapter_id(adapter); |
| 77 | put_device(&adapter->dev); |
| 78 | |
| 79 | mux->data.n_values = of_get_child_count(np); |
| 80 | |
Evan Green | 19eb29b | 2020-11-18 15:40:24 -0800 | [diff] [blame^] | 81 | values = devm_kcalloc(dev, |
Kees Cook | a86854d | 2018-06-12 14:07:58 -0700 | [diff] [blame] | 82 | mux->data.n_values, sizeof(*mux->data.values), |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 83 | GFP_KERNEL); |
| 84 | if (!values) { |
Evan Green | 19eb29b | 2020-11-18 15:40:24 -0800 | [diff] [blame^] | 85 | dev_err(dev, "Cannot allocate values array"); |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 86 | return -ENOMEM; |
| 87 | } |
| 88 | |
| 89 | for_each_child_of_node(np, child) { |
| 90 | of_property_read_u32(child, "reg", values + i); |
| 91 | i++; |
| 92 | } |
| 93 | mux->data.values = values; |
| 94 | |
| 95 | if (of_property_read_u32(np, "idle-state", &mux->data.idle)) |
| 96 | mux->data.idle = I2C_MUX_GPIO_NO_IDLE; |
| 97 | |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 98 | return 0; |
| 99 | } |
| 100 | #else |
Bill Pemberton | 0b255e9 | 2012-11-27 15:59:38 -0500 | [diff] [blame] | 101 | static int i2c_mux_gpio_probe_dt(struct gpiomux *mux, |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 102 | struct platform_device *pdev) |
| 103 | { |
| 104 | return 0; |
| 105 | } |
| 106 | #endif |
| 107 | |
Bill Pemberton | 0b255e9 | 2012-11-27 15:59:38 -0500 | [diff] [blame] | 108 | static int i2c_mux_gpio_probe(struct platform_device *pdev) |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 109 | { |
Peter Rosin | bb44814 | 2016-04-20 08:39:05 +0200 | [diff] [blame] | 110 | struct i2c_mux_core *muxc; |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 111 | struct gpiomux *mux; |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 112 | struct i2c_adapter *parent; |
Peter Rosin | 6ef91fc | 2016-05-04 22:15:29 +0200 | [diff] [blame] | 113 | struct i2c_adapter *root; |
Linus Walleij | d308dfb | 2019-06-18 12:58:33 +0200 | [diff] [blame] | 114 | unsigned initial_state; |
| 115 | int i, ngpios, ret; |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 116 | |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 117 | mux = devm_kzalloc(&pdev->dev, sizeof(*mux), GFP_KERNEL); |
Peter Rosin | bb44814 | 2016-04-20 08:39:05 +0200 | [diff] [blame] | 118 | if (!mux) |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 119 | return -ENOMEM; |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 120 | |
Jingoo Han | 6d4028c | 2013-07-30 16:59:33 +0900 | [diff] [blame] | 121 | if (!dev_get_platdata(&pdev->dev)) { |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 122 | ret = i2c_mux_gpio_probe_dt(mux, pdev); |
| 123 | if (ret < 0) |
| 124 | return ret; |
Jingoo Han | 6d4028c | 2013-07-30 16:59:33 +0900 | [diff] [blame] | 125 | } else { |
| 126 | memcpy(&mux->data, dev_get_platdata(&pdev->dev), |
| 127 | sizeof(mux->data)); |
| 128 | } |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 129 | |
Linus Walleij | d308dfb | 2019-06-18 12:58:33 +0200 | [diff] [blame] | 130 | ngpios = gpiod_count(&pdev->dev, "mux"); |
| 131 | if (ngpios <= 0) { |
| 132 | dev_err(&pdev->dev, "no valid gpios provided\n"); |
| 133 | return ngpios ?: -EINVAL; |
Jean Delvare | e7ee514 | 2012-10-05 22:23:54 +0200 | [diff] [blame] | 134 | } |
Linus Walleij | d308dfb | 2019-06-18 12:58:33 +0200 | [diff] [blame] | 135 | mux->ngpios = ngpios; |
Jean Delvare | e7ee514 | 2012-10-05 22:23:54 +0200 | [diff] [blame] | 136 | |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 137 | parent = i2c_get_adapter(mux->data.parent); |
Ioan Nicu | 623e4ec | 2015-03-30 15:03:38 +0200 | [diff] [blame] | 138 | if (!parent) |
Ionut Nicu | 9937b8d | 2013-10-09 11:50:45 +0200 | [diff] [blame] | 139 | return -EPROBE_DEFER; |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 140 | |
Peter Rosin | feff5c0 | 2016-11-24 19:19:28 +0100 | [diff] [blame] | 141 | muxc = i2c_mux_alloc(parent, &pdev->dev, mux->data.n_values, |
Linus Walleij | d308dfb | 2019-06-18 12:58:33 +0200 | [diff] [blame] | 142 | ngpios * sizeof(*mux->gpios), 0, |
Peter Rosin | bb44814 | 2016-04-20 08:39:05 +0200 | [diff] [blame] | 143 | i2c_mux_gpio_select, NULL); |
| 144 | if (!muxc) { |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 145 | ret = -ENOMEM; |
Maxime Ripard | 2614a85 | 2012-10-05 22:23:53 +0200 | [diff] [blame] | 146 | goto alloc_failed; |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 147 | } |
Peter Rosin | feff5c0 | 2016-11-24 19:19:28 +0100 | [diff] [blame] | 148 | mux->gpios = muxc->priv; |
Peter Rosin | bb44814 | 2016-04-20 08:39:05 +0200 | [diff] [blame] | 149 | muxc->priv = mux; |
| 150 | |
| 151 | platform_set_drvdata(pdev, muxc); |
| 152 | |
Peter Rosin | 6ef91fc | 2016-05-04 22:15:29 +0200 | [diff] [blame] | 153 | root = i2c_root_adapter(&parent->dev); |
| 154 | |
| 155 | muxc->mux_locked = true; |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 156 | |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 157 | if (mux->data.idle != I2C_MUX_GPIO_NO_IDLE) { |
| 158 | initial_state = mux->data.idle; |
Peter Rosin | bb44814 | 2016-04-20 08:39:05 +0200 | [diff] [blame] | 159 | muxc->deselect = i2c_mux_gpio_deselect; |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 160 | } else { |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 161 | initial_state = mux->data.values[0]; |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 162 | } |
| 163 | |
Linus Walleij | d308dfb | 2019-06-18 12:58:33 +0200 | [diff] [blame] | 164 | for (i = 0; i < ngpios; i++) { |
Peter Rosin | 6ef91fc | 2016-05-04 22:15:29 +0200 | [diff] [blame] | 165 | struct device *gpio_dev; |
Linus Walleij | d308dfb | 2019-06-18 12:58:33 +0200 | [diff] [blame] | 166 | struct gpio_desc *gpiod; |
| 167 | enum gpiod_flags flag; |
Peter Rosin | 6ef91fc | 2016-05-04 22:15:29 +0200 | [diff] [blame] | 168 | |
Linus Walleij | d308dfb | 2019-06-18 12:58:33 +0200 | [diff] [blame] | 169 | if (initial_state & BIT(i)) |
| 170 | flag = GPIOD_OUT_HIGH; |
| 171 | else |
| 172 | flag = GPIOD_OUT_LOW; |
| 173 | gpiod = devm_gpiod_get_index(&pdev->dev, "mux", i, flag); |
| 174 | if (IS_ERR(gpiod)) { |
| 175 | ret = PTR_ERR(gpiod); |
| 176 | goto alloc_failed; |
Jean Delvare | 7fafae6 | 2013-03-06 22:35:53 +0000 | [diff] [blame] | 177 | } |
| 178 | |
Linus Walleij | d308dfb | 2019-06-18 12:58:33 +0200 | [diff] [blame] | 179 | mux->gpios[i] = gpiod; |
Peter Rosin | feff5c0 | 2016-11-24 19:19:28 +0100 | [diff] [blame] | 180 | |
Peter Rosin | 6ef91fc | 2016-05-04 22:15:29 +0200 | [diff] [blame] | 181 | if (!muxc->mux_locked) |
| 182 | continue; |
| 183 | |
Linus Walleij | d308dfb | 2019-06-18 12:58:33 +0200 | [diff] [blame] | 184 | /* FIXME: find a proper way to access the GPIO device */ |
| 185 | gpio_dev = &gpiod->gdev->dev; |
Peter Rosin | 6ef91fc | 2016-05-04 22:15:29 +0200 | [diff] [blame] | 186 | muxc->mux_locked = i2c_root_adapter(gpio_dev) == root; |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 187 | } |
| 188 | |
Peter Rosin | 6ef91fc | 2016-05-04 22:15:29 +0200 | [diff] [blame] | 189 | if (muxc->mux_locked) |
| 190 | dev_info(&pdev->dev, "mux-locked i2c mux\n"); |
| 191 | |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 192 | for (i = 0; i < mux->data.n_values; i++) { |
| 193 | u32 nr = mux->data.base_nr ? (mux->data.base_nr + i) : 0; |
| 194 | unsigned int class = mux->data.classes ? mux->data.classes[i] : 0; |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 195 | |
Peter Rosin | bb44814 | 2016-04-20 08:39:05 +0200 | [diff] [blame] | 196 | ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class); |
Peter Rosin | 1b00900 | 2017-04-03 10:14:11 +0200 | [diff] [blame] | 197 | if (ret) |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 198 | goto add_adapter_failed; |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 199 | } |
| 200 | |
| 201 | dev_info(&pdev->dev, "%d port mux on %s adapter\n", |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 202 | mux->data.n_values, parent->name); |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 203 | |
| 204 | return 0; |
| 205 | |
| 206 | add_adapter_failed: |
Peter Rosin | bb44814 | 2016-04-20 08:39:05 +0200 | [diff] [blame] | 207 | i2c_mux_del_adapters(muxc); |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 208 | alloc_failed: |
| 209 | i2c_put_adapter(parent); |
| 210 | |
| 211 | return ret; |
| 212 | } |
| 213 | |
Bill Pemberton | 0b255e9 | 2012-11-27 15:59:38 -0500 | [diff] [blame] | 214 | static int i2c_mux_gpio_remove(struct platform_device *pdev) |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 215 | { |
Peter Rosin | bb44814 | 2016-04-20 08:39:05 +0200 | [diff] [blame] | 216 | struct i2c_mux_core *muxc = platform_get_drvdata(pdev); |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 217 | |
Peter Rosin | bb44814 | 2016-04-20 08:39:05 +0200 | [diff] [blame] | 218 | i2c_mux_del_adapters(muxc); |
Peter Rosin | bb44814 | 2016-04-20 08:39:05 +0200 | [diff] [blame] | 219 | i2c_put_adapter(muxc->parent); |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 220 | |
| 221 | return 0; |
| 222 | } |
| 223 | |
Bill Pemberton | 0b255e9 | 2012-11-27 15:59:38 -0500 | [diff] [blame] | 224 | static const struct of_device_id i2c_mux_gpio_of_match[] = { |
Maxime Ripard | 9b7a0c4 | 2012-10-25 18:23:53 +0200 | [diff] [blame] | 225 | { .compatible = "i2c-mux-gpio", }, |
| 226 | {}, |
| 227 | }; |
| 228 | MODULE_DEVICE_TABLE(of, i2c_mux_gpio_of_match); |
| 229 | |
Jean Delvare | e7065e2 | 2012-04-28 15:32:06 +0200 | [diff] [blame] | 230 | static struct platform_driver i2c_mux_gpio_driver = { |
| 231 | .probe = i2c_mux_gpio_probe, |
Bill Pemberton | 0b255e9 | 2012-11-27 15:59:38 -0500 | [diff] [blame] | 232 | .remove = i2c_mux_gpio_remove, |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 233 | .driver = { |
Jean Delvare | e7065e2 | 2012-04-28 15:32:06 +0200 | [diff] [blame] | 234 | .name = "i2c-mux-gpio", |
Sachin Kamat | 4e90532 | 2013-09-30 09:04:25 +0530 | [diff] [blame] | 235 | .of_match_table = i2c_mux_gpio_of_match, |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 236 | }, |
| 237 | }; |
| 238 | |
Jean Delvare | e7065e2 | 2012-04-28 15:32:06 +0200 | [diff] [blame] | 239 | module_platform_driver(i2c_mux_gpio_driver); |
Peter Korsgaard | 92ed1a7 | 2011-01-10 22:11:23 +0100 | [diff] [blame] | 240 | |
| 241 | MODULE_DESCRIPTION("GPIO-based I2C multiplexer driver"); |
| 242 | MODULE_AUTHOR("Peter Korsgaard <peter.korsgaard@barco.com>"); |
| 243 | MODULE_LICENSE("GPL"); |
Jean Delvare | e7065e2 | 2012-04-28 15:32:06 +0200 | [diff] [blame] | 244 | MODULE_ALIAS("platform:i2c-mux-gpio"); |