Lines Matching +full:pctrl +full:- +full:syscon

1 // SPDX-License-Identifier: GPL-2.0
9 #include <linux/mfd/syscon.h>
16 #include <linux/pinctrl/pinconf-generic.h>
123 raw_spin_lock_irqsave(&gc->bgpio_lock, flags); in npcm_gpio_set()
125 raw_spin_unlock_irqrestore(&gc->bgpio_lock, flags); in npcm_gpio_set()
133 raw_spin_lock_irqsave(&gc->bgpio_lock, flags); in npcm_gpio_clr()
135 raw_spin_unlock_irqrestore(&gc->bgpio_lock, flags); in npcm_gpio_clr()
143 ioread32(bank->base + NPCM8XX_GP_N_DIN), in npcmgpio_dbg_show()
144 ioread32(bank->base + NPCM8XX_GP_N_DOUT), in npcmgpio_dbg_show()
145 ioread32(bank->base + NPCM8XX_GP_N_IEM), in npcmgpio_dbg_show()
146 ioread32(bank->base + NPCM8XX_GP_N_OE)); in npcmgpio_dbg_show()
148 ioread32(bank->base + NPCM8XX_GP_N_PU), in npcmgpio_dbg_show()
149 ioread32(bank->base + NPCM8XX_GP_N_PD), in npcmgpio_dbg_show()
150 ioread32(bank->base + NPCM8XX_GP_N_DBNC), in npcmgpio_dbg_show()
151 ioread32(bank->base + NPCM8XX_GP_N_POL)); in npcmgpio_dbg_show()
153 ioread32(bank->base + NPCM8XX_GP_N_EVTYP), in npcmgpio_dbg_show()
154 ioread32(bank->base + NPCM8XX_GP_N_EVBE), in npcmgpio_dbg_show()
155 ioread32(bank->base + NPCM8XX_GP_N_EVEN), in npcmgpio_dbg_show()
156 ioread32(bank->base + NPCM8XX_GP_N_EVST)); in npcmgpio_dbg_show()
158 ioread32(bank->base + NPCM8XX_GP_N_OTYP), in npcmgpio_dbg_show()
159 ioread32(bank->base + NPCM8XX_GP_N_OSRC), in npcmgpio_dbg_show()
160 ioread32(bank->base + NPCM8XX_GP_N_ODSC)); in npcmgpio_dbg_show()
162 ioread32(bank->base + NPCM8XX_GP_N_OBL0), in npcmgpio_dbg_show()
163 ioread32(bank->base + NPCM8XX_GP_N_OBL1), in npcmgpio_dbg_show()
164 ioread32(bank->base + NPCM8XX_GP_N_OBL2), in npcmgpio_dbg_show()
165 ioread32(bank->base + NPCM8XX_GP_N_OBL3)); in npcmgpio_dbg_show()
167 ioread32(bank->base + NPCM8XX_GP_N_SPLCK), in npcmgpio_dbg_show()
168 ioread32(bank->base + NPCM8XX_GP_N_MPLCK)); in npcmgpio_dbg_show()
180 return bank->direction_input(chip, offset); in npcmgpio_direction_input()
193 return bank->direction_output(chip, offset, value); in npcmgpio_direction_output()
205 return bank->request(chip, offset); in npcmgpio_gpio_request()
220 sts = ioread32(bank->base + NPCM8XX_GP_N_EVST); in npcmgpio_irq_handler()
221 en = ioread32(bank->base + NPCM8XX_GP_N_EVEN); in npcmgpio_irq_handler()
224 generic_handle_domain_irq(gc->irq.domain, bit); in npcmgpio_irq_handler()
236 npcm_gpio_clr(&bank->gc, bank->base + NPCM8XX_GP_N_EVBE, gpio); in npcmgpio_set_irq_type()
237 npcm_gpio_clr(&bank->gc, bank->base + NPCM8XX_GP_N_POL, gpio); in npcmgpio_set_irq_type()
240 npcm_gpio_clr(&bank->gc, bank->base + NPCM8XX_GP_N_EVBE, gpio); in npcmgpio_set_irq_type()
241 npcm_gpio_set(&bank->gc, bank->base + NPCM8XX_GP_N_POL, gpio); in npcmgpio_set_irq_type()
244 npcm_gpio_clr(&bank->gc, bank->base + NPCM8XX_GP_N_POL, gpio); in npcmgpio_set_irq_type()
245 npcm_gpio_set(&bank->gc, bank->base + NPCM8XX_GP_N_EVBE, gpio); in npcmgpio_set_irq_type()
248 npcm_gpio_set(&bank->gc, bank->base + NPCM8XX_GP_N_POL, gpio); in npcmgpio_set_irq_type()
251 npcm_gpio_clr(&bank->gc, bank->base + NPCM8XX_GP_N_POL, gpio); in npcmgpio_set_irq_type()
254 return -EINVAL; in npcmgpio_set_irq_type()
258 npcm_gpio_clr(&bank->gc, bank->base + NPCM8XX_GP_N_EVTYP, gpio); in npcmgpio_set_irq_type()
261 npcm_gpio_set(&bank->gc, bank->base + NPCM8XX_GP_N_EVTYP, gpio); in npcmgpio_set_irq_type()
274 iowrite32(BIT(gpio), bank->base + NPCM8XX_GP_N_EVST); in npcmgpio_irq_ack()
283 iowrite32(BIT(gpio), bank->base + NPCM8XX_GP_N_EVENC); in npcmgpio_irq_mask()
292 iowrite32(BIT(gpio), bank->base + NPCM8XX_GP_N_EVENS); in npcmgpio_irq_unmask()
300 /* active-high, input, clear interrupt, enable interrupt */ in npcmgpio_irq_startup()
309 .name = "NPCM8XX-GPIO-IRQ",
1826 if (mode == fn_gpio || cfg->fn0 == mode || cfg->fn1 == mode || in npcm8xx_setfunc()
1827 cfg->fn2 == mode || cfg->fn3 == mode || cfg->fn4 == mode) { in npcm8xx_setfunc()
1828 if (cfg->reg0) in npcm8xx_setfunc()
1829 regmap_update_bits(gcr_regmap, cfg->reg0, in npcm8xx_setfunc()
1830 BIT(cfg->bit0), in npcm8xx_setfunc()
1831 (cfg->fn0 == mode) ? in npcm8xx_setfunc()
1832 BIT(cfg->bit0) : 0); in npcm8xx_setfunc()
1833 if (cfg->reg1) in npcm8xx_setfunc()
1834 regmap_update_bits(gcr_regmap, cfg->reg1, in npcm8xx_setfunc()
1835 BIT(cfg->bit1), in npcm8xx_setfunc()
1836 (cfg->fn1 == mode) ? in npcm8xx_setfunc()
1837 BIT(cfg->bit1) : 0); in npcm8xx_setfunc()
1838 if (cfg->reg2) in npcm8xx_setfunc()
1839 regmap_update_bits(gcr_regmap, cfg->reg2, in npcm8xx_setfunc()
1840 BIT(cfg->bit2), in npcm8xx_setfunc()
1841 (cfg->fn2 == mode) ? in npcm8xx_setfunc()
1842 BIT(cfg->bit2) : 0); in npcm8xx_setfunc()
1843 if (cfg->reg3) in npcm8xx_setfunc()
1844 regmap_update_bits(gcr_regmap, cfg->reg3, in npcm8xx_setfunc()
1845 BIT(cfg->bit3), in npcm8xx_setfunc()
1846 (cfg->fn3 == mode) ? in npcm8xx_setfunc()
1847 BIT(cfg->bit3) : 0); in npcm8xx_setfunc()
1848 if (cfg->reg4) in npcm8xx_setfunc()
1849 regmap_update_bits(gcr_regmap, cfg->reg4, in npcm8xx_setfunc()
1850 BIT(cfg->bit4), in npcm8xx_setfunc()
1851 (cfg->fn4 == mode) ? in npcm8xx_setfunc()
1852 BIT(cfg->bit4) : 0); in npcm8xx_setfunc()
1860 int gpio = pin % bank->gc.ngpio; in npcm8xx_get_slew_rate()
1865 return ioread32(bank->base + NPCM8XX_GP_N_OSRC) & pinmask; in npcm8xx_get_slew_rate()
1872 return -EINVAL; in npcm8xx_get_slew_rate()
1879 void __iomem *OSRC_Offset = bank->base + NPCM8XX_GP_N_OSRC; in npcm8xx_set_slew_rate()
1880 int gpio = BIT(pin % bank->gc.ngpio); in npcm8xx_set_slew_rate()
1885 npcm_gpio_clr(&bank->gc, OSRC_Offset, gpio); in npcm8xx_set_slew_rate()
1888 npcm_gpio_set(&bank->gc, OSRC_Offset, gpio); in npcm8xx_set_slew_rate()
1891 return -EINVAL; in npcm8xx_set_slew_rate()
1896 return -EINVAL; in npcm8xx_set_slew_rate()
1908 return -EINVAL; in npcm8xx_set_slew_rate()
1919 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm8xx_get_drive_strength()
1920 int gpio = pin % bank->gc.ngpio; in npcm8xx_get_drive_strength()
1927 return -EINVAL; in npcm8xx_get_drive_strength()
1929 val = ioread32(bank->base + NPCM8XX_GP_N_ODSC) & pinmask; in npcm8xx_get_drive_strength()
1931 dev_dbg(bank->gc.parent, "pin %d strength %d = %d\n", pin, val, ds); in npcm8xx_get_drive_strength()
1940 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm8xx_set_drive_strength()
1941 int gpio = BIT(pin % bank->gc.ngpio); in npcm8xx_set_drive_strength()
1947 npcm_gpio_clr(&bank->gc, bank->base + NPCM8XX_GP_N_ODSC, gpio); in npcm8xx_set_drive_strength()
1949 npcm_gpio_set(&bank->gc, bank->base + NPCM8XX_GP_N_ODSC, gpio); in npcm8xx_set_drive_strength()
1951 return -ENOTSUPP; in npcm8xx_set_drive_strength()
2031 npcm8xx_setfunc(npcm->gcr_regmap, npcm8xx_pingroups[group].pins, in npcm8xx_pinmux_set_mux()
2048 npcm8xx_setfunc(npcm->gcr_regmap, &offset, 1, mode); in npcm8xx_gpio_request_enable()
2060 virq = irq_find_mapping(npcm->domain, offset); in npcm8xx_gpio_request_free()
2071 &npcm->gpio_bank[offset / NPCM8XX_GPIO_PER_BANK]; in npcm_gpio_set_direction()
2072 int gpio = BIT(offset % bank->gc.ngpio); in npcm_gpio_set_direction()
2075 iowrite32(gpio, bank->base + NPCM8XX_GP_N_OEC); in npcm_gpio_set_direction()
2077 iowrite32(gpio, bank->base + NPCM8XX_GP_N_OES); in npcm_gpio_set_direction()
2095 void __iomem *DBNCS_offset = bank->base + NPCM8XX_GP_N_DBNCS0 + (gpio / 4); in debounce_timing_setting()
2100 if (bank->debounce.set_val[i]) { in debounce_timing_setting()
2101 if (bank->debounce.nanosec_val[i] == nanosecs) { in debounce_timing_setting()
2103 npcm_gpio_set(&bank->gc, DBNCS_offset, in debounce_timing_setting()
2108 bank->debounce.set_val[i] = true; in debounce_timing_setting()
2109 bank->debounce.nanosec_val[i] = nanosecs; in debounce_timing_setting()
2111 npcm_gpio_set(&bank->gc, DBNCS_offset, debounce_select); in debounce_timing_setting()
2114 iowrite32(0, bank->base + NPCM8XX_GP_N_DBNCP0 + (i * 4)); in debounce_timing_setting()
2117 iowrite32(0x10, bank->base + NPCM8XX_GP_N_DBNCP0 + (i * 4)); in debounce_timing_setting()
2120 iowrite32(0x20, bank->base + NPCM8XX_GP_N_DBNCP0 + (i * 4)); in debounce_timing_setting()
2123 iowrite32(0x30, bank->base + NPCM8XX_GP_N_DBNCP0 + (i * 4)); in debounce_timing_setting()
2126 iowrite32(0x40, bank->base + NPCM8XX_GP_N_DBNCP0 + (i * 4)); in debounce_timing_setting()
2129 iowrite32(0x50, bank->base + NPCM8XX_GP_N_DBNCP0 + (i * 4)); in debounce_timing_setting()
2132 iowrite32(0x60, bank->base + NPCM8XX_GP_N_DBNCP0 + (i * 4)); in debounce_timing_setting()
2135 iowrite32(0x70, bank->base + NPCM8XX_GP_N_DBNCP0 + (i * 4)); in debounce_timing_setting()
2140 return -ENOTSUPP; in debounce_timing_setting()
2145 bank->base + NPCM8XX_GP_N_DBNCP0 + (i * 4)); in debounce_timing_setting()
2153 return -ENOTSUPP; in debounce_timing_setting()
2162 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm_set_debounce()
2163 int gpio = BIT(pin % bank->gc.ngpio); in npcm_set_debounce()
2167 ret = debounce_timing_setting(bank, pin % bank->gc.ngpio, in npcm_set_debounce()
2170 …dev_err(npcm->dev, "Pin %d, All four debounce timing values are used, please use one of exist debo… in npcm_set_debounce()
2172 npcm_gpio_set(&bank->gc, bank->base + NPCM8XX_GP_N_DBNC, in npcm_set_debounce()
2177 npcm_gpio_clr(&bank->gc, bank->base + NPCM8XX_GP_N_DBNC, gpio); in npcm_set_debounce()
2189 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm8xx_config_get()
2190 int gpio = pin % bank->gc.ngpio; in npcm8xx_config_get()
2199 pu = ioread32(bank->base + NPCM8XX_GP_N_PU) & pinmask; in npcm8xx_config_get()
2200 pd = ioread32(bank->base + NPCM8XX_GP_N_PD) & pinmask; in npcm8xx_config_get()
2210 ie = ioread32(bank->base + NPCM8XX_GP_N_IEM) & pinmask; in npcm8xx_config_get()
2211 oe = ioread32(bank->base + NPCM8XX_GP_N_OE) & pinmask; in npcm8xx_config_get()
2218 rc = !(ioread32(bank->base + NPCM8XX_GP_N_OTYP) & pinmask); in npcm8xx_config_get()
2221 rc = ioread32(bank->base + NPCM8XX_GP_N_OTYP) & pinmask; in npcm8xx_config_get()
2224 rc = ioread32(bank->base + NPCM8XX_GP_N_DBNC) & pinmask; in npcm8xx_config_get()
2232 rc = npcm8xx_get_slew_rate(bank, npcm->gcr_regmap, pin); in npcm8xx_config_get()
2237 return -ENOTSUPP; in npcm8xx_config_get()
2241 return -EINVAL; in npcm8xx_config_get()
2251 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm8xx_config_set_one()
2253 int gpio = BIT(pin % bank->gc.ngpio); in npcm8xx_config_set_one()
2257 npcm_gpio_clr(&bank->gc, bank->base + NPCM8XX_GP_N_PU, gpio); in npcm8xx_config_set_one()
2258 npcm_gpio_clr(&bank->gc, bank->base + NPCM8XX_GP_N_PD, gpio); in npcm8xx_config_set_one()
2261 npcm_gpio_clr(&bank->gc, bank->base + NPCM8XX_GP_N_PU, gpio); in npcm8xx_config_set_one()
2262 npcm_gpio_set(&bank->gc, bank->base + NPCM8XX_GP_N_PD, gpio); in npcm8xx_config_set_one()
2265 npcm_gpio_clr(&bank->gc, bank->base + NPCM8XX_GP_N_PD, gpio); in npcm8xx_config_set_one()
2266 npcm_gpio_set(&bank->gc, bank->base + NPCM8XX_GP_N_PU, gpio); in npcm8xx_config_set_one()
2269 iowrite32(gpio, bank->base + NPCM8XX_GP_N_OEC); in npcm8xx_config_set_one()
2270 bank->direction_input(&bank->gc, pin % bank->gc.ngpio); in npcm8xx_config_set_one()
2273 bank->direction_output(&bank->gc, pin % bank->gc.ngpio, arg); in npcm8xx_config_set_one()
2274 iowrite32(gpio, bank->base + NPCM8XX_GP_N_OES); in npcm8xx_config_set_one()
2277 npcm_gpio_clr(&bank->gc, bank->base + NPCM8XX_GP_N_OTYP, gpio); in npcm8xx_config_set_one()
2280 npcm_gpio_set(&bank->gc, bank->base + NPCM8XX_GP_N_OTYP, gpio); in npcm8xx_config_set_one()
2285 return npcm8xx_set_slew_rate(bank, npcm->gcr_regmap, pin, arg); in npcm8xx_config_set_one()
2289 return -ENOTSUPP; in npcm8xx_config_set_one()
2301 while (num_configs--) { in npcm8xx_config_set()
2318 .name = "npcm8xx-pinctrl",
2331 return gpiochip_add_pin_range(&bank->gc, dev_name(chip->parent), in npcmgpio_add_pin_ranges()
2332 bank->pinctrl_id, bank->gc.base, in npcmgpio_add_pin_ranges()
2333 bank->gc.ngpio); in npcmgpio_add_pin_ranges()
2336 static int npcm8xx_gpio_fw(struct npcm8xx_pinctrl *pctrl) in npcm8xx_gpio_fw() argument
2339 struct device *dev = pctrl->dev; in npcm8xx_gpio_fw()
2341 int ret = -ENXIO; in npcm8xx_gpio_fw()
2345 pctrl->gpio_bank[id].base = fwnode_iomap(child, 0); in npcm8xx_gpio_fw()
2346 if (!pctrl->gpio_bank[id].base) in npcm8xx_gpio_fw()
2347 return dev_err_probe(dev, -ENXIO, "fwnode_iomap id %d failed\n", id); in npcm8xx_gpio_fw()
2349 ret = bgpio_init(&pctrl->gpio_bank[id].gc, dev, 4, in npcm8xx_gpio_fw()
2350 pctrl->gpio_bank[id].base + NPCM8XX_GP_N_DIN, in npcm8xx_gpio_fw()
2351 pctrl->gpio_bank[id].base + NPCM8XX_GP_N_DOUT, in npcm8xx_gpio_fw()
2354 pctrl->gpio_bank[id].base + NPCM8XX_GP_N_IEM, in npcm8xx_gpio_fw()
2359 ret = fwnode_property_get_reference_args(child, "gpio-ranges", NULL, 3, 0, &args); in npcm8xx_gpio_fw()
2361 return dev_err_probe(dev, ret, "gpio-ranges fail for GPIO bank %u\n", id); in npcm8xx_gpio_fw()
2367 pctrl->gpio_bank[id].irq = ret; in npcm8xx_gpio_fw()
2368 pctrl->gpio_bank[id].irq_chip = npcmgpio_irqchip; in npcm8xx_gpio_fw()
2369 pctrl->gpio_bank[id].irqbase = id * NPCM8XX_GPIO_PER_BANK; in npcm8xx_gpio_fw()
2370 pctrl->gpio_bank[id].pinctrl_id = args.args[0]; in npcm8xx_gpio_fw()
2371 pctrl->gpio_bank[id].gc.base = -1; in npcm8xx_gpio_fw()
2372 pctrl->gpio_bank[id].gc.ngpio = args.args[2]; in npcm8xx_gpio_fw()
2373 pctrl->gpio_bank[id].gc.owner = THIS_MODULE; in npcm8xx_gpio_fw()
2374 pctrl->gpio_bank[id].gc.parent = dev; in npcm8xx_gpio_fw()
2375 pctrl->gpio_bank[id].gc.fwnode = child; in npcm8xx_gpio_fw()
2376 pctrl->gpio_bank[id].gc.label = devm_kasprintf(dev, GFP_KERNEL, "%pfw", child); in npcm8xx_gpio_fw()
2377 pctrl->gpio_bank[id].gc.dbg_show = npcmgpio_dbg_show; in npcm8xx_gpio_fw()
2378 pctrl->gpio_bank[id].direction_input = pctrl->gpio_bank[id].gc.direction_input; in npcm8xx_gpio_fw()
2379 pctrl->gpio_bank[id].gc.direction_input = npcmgpio_direction_input; in npcm8xx_gpio_fw()
2380 pctrl->gpio_bank[id].direction_output = pctrl->gpio_bank[id].gc.direction_output; in npcm8xx_gpio_fw()
2381 pctrl->gpio_bank[id].gc.direction_output = npcmgpio_direction_output; in npcm8xx_gpio_fw()
2382 pctrl->gpio_bank[id].request = pctrl->gpio_bank[id].gc.request; in npcm8xx_gpio_fw()
2383 pctrl->gpio_bank[id].gc.request = npcmgpio_gpio_request; in npcm8xx_gpio_fw()
2384 pctrl->gpio_bank[id].gc.free = pinctrl_gpio_free; in npcm8xx_gpio_fw()
2386 pctrl->gpio_bank[id].debounce.set_val[i] = false; in npcm8xx_gpio_fw()
2387 pctrl->gpio_bank[id].gc.add_pin_ranges = npcmgpio_add_pin_ranges; in npcm8xx_gpio_fw()
2391 pctrl->bank_num = id; in npcm8xx_gpio_fw()
2395 static int npcm8xx_gpio_register(struct npcm8xx_pinctrl *pctrl) in npcm8xx_gpio_register() argument
2399 for (id = 0 ; id < pctrl->bank_num ; id++) { in npcm8xx_gpio_register()
2402 girq = &pctrl->gpio_bank[id].gc.irq; in npcm8xx_gpio_register()
2403 girq->chip = &pctrl->gpio_bank[id].irq_chip; in npcm8xx_gpio_register()
2404 girq->parent_handler = npcmgpio_irq_handler; in npcm8xx_gpio_register()
2405 girq->num_parents = 1; in npcm8xx_gpio_register()
2406 girq->parents = devm_kcalloc(pctrl->dev, girq->num_parents, in npcm8xx_gpio_register()
2407 sizeof(*girq->parents), in npcm8xx_gpio_register()
2409 if (!girq->parents) in npcm8xx_gpio_register()
2410 return -ENOMEM; in npcm8xx_gpio_register()
2412 girq->parents[0] = pctrl->gpio_bank[id].irq; in npcm8xx_gpio_register()
2413 girq->default_type = IRQ_TYPE_NONE; in npcm8xx_gpio_register()
2414 girq->handler = handle_level_irq; in npcm8xx_gpio_register()
2415 ret = devm_gpiochip_add_data(pctrl->dev, in npcm8xx_gpio_register()
2416 &pctrl->gpio_bank[id].gc, in npcm8xx_gpio_register()
2417 &pctrl->gpio_bank[id]); in npcm8xx_gpio_register()
2419 return dev_err_probe(pctrl->dev, ret, "Failed to add GPIO chip %u\n", id); in npcm8xx_gpio_register()
2427 struct device *dev = &pdev->dev; in npcm8xx_pinctrl_probe()
2428 struct npcm8xx_pinctrl *pctrl; in npcm8xx_pinctrl_probe() local
2431 pctrl = devm_kzalloc(dev, sizeof(*pctrl), GFP_KERNEL); in npcm8xx_pinctrl_probe()
2432 if (!pctrl) in npcm8xx_pinctrl_probe()
2433 return -ENOMEM; in npcm8xx_pinctrl_probe()
2435 pctrl->dev = dev; in npcm8xx_pinctrl_probe()
2436 platform_set_drvdata(pdev, pctrl); in npcm8xx_pinctrl_probe()
2438 pctrl->gcr_regmap = in npcm8xx_pinctrl_probe()
2439 syscon_regmap_lookup_by_phandle(dev->of_node, "nuvoton,sysgcr"); in npcm8xx_pinctrl_probe()
2440 if (IS_ERR(pctrl->gcr_regmap)) in npcm8xx_pinctrl_probe()
2441 return dev_err_probe(dev, PTR_ERR(pctrl->gcr_regmap), in npcm8xx_pinctrl_probe()
2444 ret = npcm8xx_gpio_fw(pctrl); in npcm8xx_pinctrl_probe()
2447 "Failed to gpio dt-binding\n"); in npcm8xx_pinctrl_probe()
2449 pctrl->pctldev = devm_pinctrl_register(dev, &npcm8xx_pinctrl_desc, pctrl); in npcm8xx_pinctrl_probe()
2450 if (IS_ERR(pctrl->pctldev)) in npcm8xx_pinctrl_probe()
2451 return dev_err_probe(dev, PTR_ERR(pctrl->pctldev), in npcm8xx_pinctrl_probe()
2454 ret = npcm8xx_gpio_register(pctrl); in npcm8xx_pinctrl_probe()
2462 { .compatible = "nuvoton,npcm845-pinctrl" },
2470 .name = "npcm8xx-pinctrl",