Lines Matching full:syscon
3 * SYSCON GPIO driver
14 #include <linux/mfd/syscon.h>
20 /* SYSCON driver is designed to use 32-bit wide registers */
26 * @compatible: SYSCON driver compatible string.
50 struct regmap *syscon; member
64 ret = regmap_read(priv->syscon, in syscon_gpio_get()
79 regmap_update_bits(priv->syscon, in syscon_gpio_set()
95 regmap_update_bits(priv->syscon, in syscon_gpio_dir_in()
113 regmap_update_bits(priv->syscon, in syscon_gpio_dir_out()
143 ret = regmap_write(priv->syscon, in rockchip_gpio_set()
172 priv->syscon, in keystone_gpio_set()
218 priv->syscon = syscon_regmap_lookup_by_phandle(np, "gpio,syscon-dev"); in syscon_gpio_probe()
219 if (IS_ERR(priv->syscon) && np->parent) in syscon_gpio_probe()
220 priv->syscon = syscon_node_to_regmap(np->parent); in syscon_gpio_probe()
221 if (IS_ERR(priv->syscon)) in syscon_gpio_probe()
222 return PTR_ERR(priv->syscon); in syscon_gpio_probe()
224 ret = of_property_read_u32_index(np, "gpio,syscon-dev", 1, in syscon_gpio_probe()
231 ret = of_property_read_u32_index(np, "gpio,syscon-dev", 2, in syscon_gpio_probe()
256 .name = "gpio-syscon",
264 MODULE_DESCRIPTION("SYSCON GPIO driver");