Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Bitbanging I2C bus driver using the GPIO API |
| 3 | * |
| 4 | * Copyright (C) 2007 Atmel Corporation |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | #include <linux/i2c.h> |
| 11 | #include <linux/i2c-algo-bit.h> |
| 12 | #include <linux/i2c-gpio.h> |
| 13 | #include <linux/init.h> |
| 14 | #include <linux/module.h> |
Tejun Heo | 5a0e3ad | 2010-03-24 17:04:11 +0900 | [diff] [blame] | 15 | #include <linux/slab.h> |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 16 | #include <linux/platform_device.h> |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 17 | #include <linux/gpio/consumer.h> |
Sachin Kamat | 4edd65e | 2013-10-16 15:26:33 +0530 | [diff] [blame] | 18 | #include <linux/of.h> |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 19 | |
Jean-Christophe PLAGNIOL-VILLARD | 8ffaa0f | 2012-02-05 18:22:34 +0800 | [diff] [blame] | 20 | struct i2c_gpio_private_data { |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 21 | struct gpio_desc *sda; |
| 22 | struct gpio_desc *scl; |
Jean-Christophe PLAGNIOL-VILLARD | 8ffaa0f | 2012-02-05 18:22:34 +0800 | [diff] [blame] | 23 | struct i2c_adapter adap; |
| 24 | struct i2c_algo_bit_data bit_data; |
| 25 | struct i2c_gpio_platform_data pdata; |
| 26 | }; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 27 | |
| 28 | /* Toggle SDA by changing the direction of the pin */ |
| 29 | static void i2c_gpio_setsda_dir(void *data, int state) |
| 30 | { |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 31 | struct i2c_gpio_private_data *priv = data; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 32 | |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 33 | /* |
| 34 | * This is a way of saying "do not drive |
| 35 | * me actively high" which means emulating open drain. |
| 36 | * The right way to do this is for gpiolib to |
| 37 | * handle this, by the function below. |
| 38 | */ |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 39 | if (state) |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 40 | gpiod_direction_input(priv->sda); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 41 | else |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 42 | gpiod_direction_output(priv->sda, 0); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | /* |
| 46 | * Toggle SDA by changing the output value of the pin. This is only |
| 47 | * valid for pins configured as open drain (i.e. setting the value |
| 48 | * high effectively turns off the output driver.) |
| 49 | */ |
| 50 | static void i2c_gpio_setsda_val(void *data, int state) |
| 51 | { |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 52 | struct i2c_gpio_private_data *priv = data; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 53 | |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 54 | gpiod_set_value(priv->sda, state); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | /* Toggle SCL by changing the direction of the pin. */ |
| 58 | static void i2c_gpio_setscl_dir(void *data, int state) |
| 59 | { |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 60 | struct i2c_gpio_private_data *priv = data; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 61 | |
| 62 | if (state) |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 63 | gpiod_direction_input(priv->scl); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 64 | else |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 65 | gpiod_direction_output(priv->scl, 0); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 66 | } |
| 67 | |
| 68 | /* |
| 69 | * Toggle SCL by changing the output value of the pin. This is used |
| 70 | * for pins that are configured as open drain and for output-only |
| 71 | * pins. The latter case will break the i2c protocol, but it will |
| 72 | * often work in practice. |
| 73 | */ |
| 74 | static void i2c_gpio_setscl_val(void *data, int state) |
| 75 | { |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 76 | struct i2c_gpio_private_data *priv = data; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 77 | |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 78 | gpiod_set_value(priv->scl, state); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 79 | } |
| 80 | |
Atsushi Nemoto | 4d6ceed | 2007-07-12 14:12:30 +0200 | [diff] [blame] | 81 | static int i2c_gpio_getsda(void *data) |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 82 | { |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 83 | struct i2c_gpio_private_data *priv = data; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 84 | |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 85 | return gpiod_get_value(priv->sda); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 86 | } |
| 87 | |
Atsushi Nemoto | 4d6ceed | 2007-07-12 14:12:30 +0200 | [diff] [blame] | 88 | static int i2c_gpio_getscl(void *data) |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 89 | { |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 90 | struct i2c_gpio_private_data *priv = data; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 91 | |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 92 | return gpiod_get_value(priv->scl); |
Jean Delvare | 1b295c8 | 2013-02-28 01:01:40 +0000 | [diff] [blame] | 93 | } |
| 94 | |
| 95 | static void of_i2c_gpio_get_props(struct device_node *np, |
| 96 | struct i2c_gpio_platform_data *pdata) |
| 97 | { |
| 98 | u32 reg; |
| 99 | |
Jean-Christophe PLAGNIOL-VILLARD | 8ffaa0f | 2012-02-05 18:22:34 +0800 | [diff] [blame] | 100 | of_property_read_u32(np, "i2c-gpio,delay-us", &pdata->udelay); |
| 101 | |
| 102 | if (!of_property_read_u32(np, "i2c-gpio,timeout-ms", ®)) |
| 103 | pdata->timeout = msecs_to_jiffies(reg); |
| 104 | |
| 105 | pdata->sda_is_open_drain = |
| 106 | of_property_read_bool(np, "i2c-gpio,sda-open-drain"); |
| 107 | pdata->scl_is_open_drain = |
| 108 | of_property_read_bool(np, "i2c-gpio,scl-open-drain"); |
| 109 | pdata->scl_is_output_only = |
| 110 | of_property_read_bool(np, "i2c-gpio,scl-output-only"); |
Jean-Christophe PLAGNIOL-VILLARD | 8ffaa0f | 2012-02-05 18:22:34 +0800 | [diff] [blame] | 111 | } |
| 112 | |
Bill Pemberton | 0b255e9 | 2012-11-27 15:59:38 -0500 | [diff] [blame] | 113 | static int i2c_gpio_probe(struct platform_device *pdev) |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 114 | { |
Jean-Christophe PLAGNIOL-VILLARD | 8ffaa0f | 2012-02-05 18:22:34 +0800 | [diff] [blame] | 115 | struct i2c_gpio_private_data *priv; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 116 | struct i2c_gpio_platform_data *pdata; |
| 117 | struct i2c_algo_bit_data *bit_data; |
| 118 | struct i2c_adapter *adap; |
| 119 | int ret; |
| 120 | |
Jean Delvare | 1b295c8 | 2013-02-28 01:01:40 +0000 | [diff] [blame] | 121 | priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); |
Jingoo Han | a0682a3 | 2013-12-17 15:48:19 +0900 | [diff] [blame] | 122 | if (!priv) |
| 123 | return -ENOMEM; |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 124 | |
| 125 | /* First get the GPIO pins; if it fails, we'll defer the probe. */ |
| 126 | priv->sda = devm_gpiod_get_index(&pdev->dev, NULL, 0, GPIOD_OUT_HIGH); |
| 127 | if (IS_ERR(priv->sda)) { |
| 128 | ret = PTR_ERR(priv->sda); |
| 129 | /* FIXME: hack in the old code, is this really necessary? */ |
| 130 | if (ret == -EINVAL) |
| 131 | ret = -EPROBE_DEFER; |
| 132 | return ret; |
| 133 | } |
| 134 | priv->scl = devm_gpiod_get_index(&pdev->dev, NULL, 1, GPIOD_OUT_LOW); |
| 135 | if (IS_ERR(priv->scl)) { |
| 136 | ret = PTR_ERR(priv->scl); |
| 137 | /* FIXME: hack in the old code, is this really necessary? */ |
| 138 | if (ret == -EINVAL) |
| 139 | ret = -EPROBE_DEFER; |
| 140 | return ret; |
| 141 | } |
| 142 | |
Jean Delvare | 1b295c8 | 2013-02-28 01:01:40 +0000 | [diff] [blame] | 143 | adap = &priv->adap; |
| 144 | bit_data = &priv->bit_data; |
| 145 | pdata = &priv->pdata; |
| 146 | |
| 147 | if (pdev->dev.of_node) { |
Jean Delvare | 1b295c8 | 2013-02-28 01:01:40 +0000 | [diff] [blame] | 148 | of_i2c_gpio_get_props(pdev->dev.of_node, pdata); |
| 149 | } else { |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 150 | /* |
| 151 | * If all platform data settings are zero it is OK |
| 152 | * to not provide any platform data from the board. |
| 153 | */ |
| 154 | if (dev_get_platdata(&pdev->dev)) |
| 155 | memcpy(pdata, dev_get_platdata(&pdev->dev), |
| 156 | sizeof(*pdata)); |
Jean Delvare | 1b295c8 | 2013-02-28 01:01:40 +0000 | [diff] [blame] | 157 | } |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 158 | |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 159 | /* |
| 160 | * FIXME: this is a hack emulating the open drain emulation |
| 161 | * that gpiolib can already do for us. Make all clients properly |
| 162 | * flag their lines as open drain and get rid of this property |
| 163 | * and the special callback. |
| 164 | */ |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 165 | if (pdata->sda_is_open_drain) { |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 166 | gpiod_direction_output(priv->sda, 1); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 167 | bit_data->setsda = i2c_gpio_setsda_val; |
| 168 | } else { |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 169 | gpiod_direction_input(priv->sda); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 170 | bit_data->setsda = i2c_gpio_setsda_dir; |
| 171 | } |
| 172 | |
| 173 | if (pdata->scl_is_open_drain || pdata->scl_is_output_only) { |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 174 | gpiod_direction_output(priv->scl, 1); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 175 | bit_data->setscl = i2c_gpio_setscl_val; |
| 176 | } else { |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 177 | gpiod_direction_input(priv->scl); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 178 | bit_data->setscl = i2c_gpio_setscl_dir; |
| 179 | } |
| 180 | |
| 181 | if (!pdata->scl_is_output_only) |
| 182 | bit_data->getscl = i2c_gpio_getscl; |
| 183 | bit_data->getsda = i2c_gpio_getsda; |
| 184 | |
| 185 | if (pdata->udelay) |
| 186 | bit_data->udelay = pdata->udelay; |
| 187 | else if (pdata->scl_is_output_only) |
| 188 | bit_data->udelay = 50; /* 10 kHz */ |
| 189 | else |
| 190 | bit_data->udelay = 5; /* 100 kHz */ |
| 191 | |
| 192 | if (pdata->timeout) |
| 193 | bit_data->timeout = pdata->timeout; |
| 194 | else |
| 195 | bit_data->timeout = HZ / 10; /* 100 ms */ |
| 196 | |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 197 | bit_data->data = priv; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 198 | |
| 199 | adap->owner = THIS_MODULE; |
Bo Shen | 58a7371 | 2012-10-15 15:51:17 +0800 | [diff] [blame] | 200 | if (pdev->dev.of_node) |
| 201 | strlcpy(adap->name, dev_name(&pdev->dev), sizeof(adap->name)); |
| 202 | else |
| 203 | snprintf(adap->name, sizeof(adap->name), "i2c-gpio%d", pdev->id); |
| 204 | |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 205 | adap->algo_data = bit_data; |
Jean Delvare | 3401b2f | 2008-07-14 22:38:29 +0200 | [diff] [blame] | 206 | adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 207 | adap->dev.parent = &pdev->dev; |
Jean-Christophe PLAGNIOL-VILLARD | 8ffaa0f | 2012-02-05 18:22:34 +0800 | [diff] [blame] | 208 | adap->dev.of_node = pdev->dev.of_node; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 209 | |
Karol Lewandowski | 44454ba | 2012-03-27 11:10:28 +0200 | [diff] [blame] | 210 | adap->nr = pdev->id; |
Atsushi Nemoto | 7e69c3a | 2007-07-12 14:12:30 +0200 | [diff] [blame] | 211 | ret = i2c_bit_add_numbered_bus(adap); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 212 | if (ret) |
Jingoo Han | a0682a3 | 2013-12-17 15:48:19 +0900 | [diff] [blame] | 213 | return ret; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 214 | |
Jean-Christophe PLAGNIOL-VILLARD | 8ffaa0f | 2012-02-05 18:22:34 +0800 | [diff] [blame] | 215 | platform_set_drvdata(pdev, priv); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 216 | |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame^] | 217 | /* |
| 218 | * FIXME: using global GPIO numbers is not helpful. If/when we |
| 219 | * get accessors to get the actual name of the GPIO line, |
| 220 | * from the descriptor, then provide that instead. |
| 221 | */ |
| 222 | dev_info(&pdev->dev, "using lines %u (SDA) and %u (SCL%s)\n", |
| 223 | desc_to_gpio(priv->sda), desc_to_gpio(priv->scl), |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 224 | pdata->scl_is_output_only |
| 225 | ? ", no clock stretching" : ""); |
| 226 | |
| 227 | return 0; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 228 | } |
| 229 | |
Bill Pemberton | 0b255e9 | 2012-11-27 15:59:38 -0500 | [diff] [blame] | 230 | static int i2c_gpio_remove(struct platform_device *pdev) |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 231 | { |
Jean-Christophe PLAGNIOL-VILLARD | 8ffaa0f | 2012-02-05 18:22:34 +0800 | [diff] [blame] | 232 | struct i2c_gpio_private_data *priv; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 233 | struct i2c_adapter *adap; |
| 234 | |
Jean-Christophe PLAGNIOL-VILLARD | 8ffaa0f | 2012-02-05 18:22:34 +0800 | [diff] [blame] | 235 | priv = platform_get_drvdata(pdev); |
| 236 | adap = &priv->adap; |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 237 | |
| 238 | i2c_del_adapter(adap); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 239 | |
| 240 | return 0; |
| 241 | } |
| 242 | |
Jean-Christophe PLAGNIOL-VILLARD | 8ffaa0f | 2012-02-05 18:22:34 +0800 | [diff] [blame] | 243 | #if defined(CONFIG_OF) |
| 244 | static const struct of_device_id i2c_gpio_dt_ids[] = { |
| 245 | { .compatible = "i2c-gpio", }, |
| 246 | { /* sentinel */ } |
| 247 | }; |
| 248 | |
| 249 | MODULE_DEVICE_TABLE(of, i2c_gpio_dt_ids); |
| 250 | #endif |
| 251 | |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 252 | static struct platform_driver i2c_gpio_driver = { |
| 253 | .driver = { |
| 254 | .name = "i2c-gpio", |
Jean-Christophe PLAGNIOL-VILLARD | 8ffaa0f | 2012-02-05 18:22:34 +0800 | [diff] [blame] | 255 | .of_match_table = of_match_ptr(i2c_gpio_dt_ids), |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 256 | }, |
Ben Dooks | 1efe7c5 | 2008-07-28 12:04:09 +0100 | [diff] [blame] | 257 | .probe = i2c_gpio_probe, |
Bill Pemberton | 0b255e9 | 2012-11-27 15:59:38 -0500 | [diff] [blame] | 258 | .remove = i2c_gpio_remove, |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 259 | }; |
| 260 | |
| 261 | static int __init i2c_gpio_init(void) |
| 262 | { |
| 263 | int ret; |
| 264 | |
Ben Dooks | 1efe7c5 | 2008-07-28 12:04:09 +0100 | [diff] [blame] | 265 | ret = platform_driver_register(&i2c_gpio_driver); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 266 | if (ret) |
| 267 | printk(KERN_ERR "i2c-gpio: probe failed: %d\n", ret); |
| 268 | |
| 269 | return ret; |
| 270 | } |
Marek Szyprowski | b868078 | 2010-05-21 18:40:58 +0200 | [diff] [blame] | 271 | subsys_initcall(i2c_gpio_init); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 272 | |
| 273 | static void __exit i2c_gpio_exit(void) |
| 274 | { |
| 275 | platform_driver_unregister(&i2c_gpio_driver); |
| 276 | } |
| 277 | module_exit(i2c_gpio_exit); |
| 278 | |
Jean Delvare | e05503e | 2011-05-18 16:49:24 +0200 | [diff] [blame] | 279 | MODULE_AUTHOR("Haavard Skinnemoen (Atmel)"); |
Haavard Skinnemoen | 1c23af9 | 2007-05-01 23:26:34 +0200 | [diff] [blame] | 280 | MODULE_DESCRIPTION("Platform-independent bitbanging I2C driver"); |
| 281 | MODULE_LICENSE("GPL"); |
Kay Sievers | add8eda | 2008-04-22 22:16:49 +0200 | [diff] [blame] | 282 | MODULE_ALIAS("platform:i2c-gpio"); |