Lines Matching +full:co +full:- +full:located
1 // SPDX-License-Identifier: GPL-2.0
7 * Copyright 2014 Embest Technology Co. Ltd. Inc.
8 * Author: yanglsh@embest-tech.com
18 #include <linux/mfd/rohm-bd71815.h>
33 ret = regmap_read(bd71815->regmap, BD71815_REG_GPO, &val);
49 return regmap_set_bits(bd71815->regmap, BD71815_REG_GPO, bit);
51 return regmap_clear_bits(bd71815->regmap, BD71815_REG_GPO, bit);
61 return regmap_update_bits(bdgpio->regmap,
66 return regmap_update_bits(bdgpio->regmap,
73 return -ENOTSUPP;
99 * located at the center of IC is hard to use on PCB (due to the location). It
103 * OTOH - the original driver written by colleagues at Embest did support
109 * "rohm,enable-hidden-gpo".
118 if (gc->parent && device_property_present(gc->parent,
119 "rohm,enable-hidden-gpo"))
136 dev = &pdev->dev;
137 /* The device-tree and regmap come from MFD => use parent for that */
138 parent = dev->parent;
142 return -ENOMEM;
144 g->chip = bd71815gpo_chip;
149 * to 1 if "rohm,enable-hidden-gpo" is not given.
156 if (device_property_present(parent, "rohm,enable-hidden-gpo"))
157 g->chip.ngpio = 2;
159 g->chip.ngpio = 1;
161 g->chip.init_valid_mask = bd71815_init_valid_mask;
162 g->chip.base = -1;
163 g->chip.parent = parent;
164 g->regmap = dev_get_regmap(parent, NULL);
165 g->dev = dev;
167 return devm_gpiochip_add_data(dev, &g->chip, g);
172 .name = "bd71815-gpo",
178 MODULE_ALIAS("platform:bd71815-gpo");
180 MODULE_AUTHOR("Peter Yang <yanglsh@embest-tech.com>");