Lines Matching full:syscon
3 * SYSCON GPIO driver
15 #include <linux/mfd/syscon.h>
21 /* SYSCON driver is designed to use 32-bit wide registers */
27 * @compatible: SYSCON driver compatible string.
51 struct regmap *syscon; member
65 ret = regmap_read(priv->syscon, in syscon_gpio_get()
80 regmap_update_bits(priv->syscon, in syscon_gpio_set()
96 regmap_update_bits(priv->syscon, in syscon_gpio_dir_in()
114 regmap_update_bits(priv->syscon, in syscon_gpio_dir_out()
144 ret = regmap_write(priv->syscon, in rockchip_gpio_set()
173 priv->syscon, in keystone_gpio_set()
219 priv->syscon = syscon_regmap_lookup_by_phandle(np, "gpio,syscon-dev"); in syscon_gpio_probe()
220 if (IS_ERR(priv->syscon) && np->parent) in syscon_gpio_probe()
221 priv->syscon = syscon_node_to_regmap(np->parent); in syscon_gpio_probe()
222 if (IS_ERR(priv->syscon)) in syscon_gpio_probe()
223 return PTR_ERR(priv->syscon); in syscon_gpio_probe()
225 ret = of_property_read_u32_index(np, "gpio,syscon-dev", 1, in syscon_gpio_probe()
232 ret = of_property_read_u32_index(np, "gpio,syscon-dev", 2, in syscon_gpio_probe()
259 .name = "gpio-syscon",
267 MODULE_DESCRIPTION("SYSCON GPIO driver");