Lines Matching +full:ext +full:- +full:26 +full:m

1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2009-2011 ST-Ericsson AB
25 #include <linux/pinctrl/pinconf-generic.h>
26 #include "pinctrl-coh901.h"
170 #define DRIVER_NAME "pinctrl-u300"
215 PINCTRL_PIN(26, "PO DAC Q POS"),
221 PINCTRL_PIN(32, "PI PLL 26 FILTVDD"),
222 PINCTRL_PIN(33, "PI PLL 26 VCONT"),
229 PINCTRL_PIN(40, "PWR AGNDPLL2V5 26 60"),
230 PINCTRL_PIN(41, "PWR AVDDPLL2V5 26 60"),
231 PINCTRL_PIN(42, "PWR AVDDPLL2V5 26 208"),
232 PINCTRL_PIN(43, "PWR AGNDPLL2V5 26 208"),
264 PINCTRL_PIN(75, "PO M CLKRQ"),
265 PINCTRL_PIN(76, "PI M CLK"),
285 PINCTRL_PIN(96, "PI EXT IRQ1 N"),
286 PINCTRL_PIN(97, "PI EXT IRQ0 N"),
334 PINCTRL_PIN(144, "PO PDI EXT RST N"),
389 PINCTRL_PIN(199, "PI CI EXT CLK"),
390 PINCTRL_PIN(200, "PO CI EXT RST N"),
405 PINCTRL_PIN(215, "P PAD VDDIO 26"),
408 PINCTRL_PIN(218, "P PAD VSSIO 26"),
520 PINCTRL_PIN(329, "P PAD VDD 26"),
521 PINCTRL_PIN(330, "P PAD GND 26"),
672 * u300_pmx_registers - the array of registers read/written for each pinmux
684 * struct u300_pin_group - describes a U300 pin group
687 * from the driver-local pin enumeration space
698 * struct pmx_onmask - mask bits to enable/disable padmux
877 * struct u300_pmx_func - describes U300 pinmux functions
945 val = upmx_mask->bits; in u300_pmx_endisable()
949 mask = upmx_mask->mask; in u300_pmx_endisable()
951 regval = readw(upmx->virtbase + u300_pmx_registers[i]); in u300_pmx_endisable()
954 writew(regval, upmx->virtbase + u300_pmx_registers[i]); in u300_pmx_endisable()
1010 return -ENOTSUPP; in u300_pin_config_get()
1012 return u300_gpio_config_get(range->gc, in u300_pin_config_get()
1013 (pin - range->pin_base + range->base), in u300_pin_config_get()
1025 return -EINVAL; in u300_pin_config_set()
1029 ret = u300_gpio_config_set(range->gc, in u300_pin_config_set()
1030 (pin - range->pin_base + range->base), in u300_pin_config_set()
1060 upmx = devm_kzalloc(&pdev->dev, sizeof(*upmx), GFP_KERNEL); in u300_pmx_probe()
1062 return -ENOMEM; in u300_pmx_probe()
1064 upmx->dev = &pdev->dev; in u300_pmx_probe()
1066 upmx->virtbase = devm_platform_ioremap_resource(pdev, 0); in u300_pmx_probe()
1067 if (IS_ERR(upmx->virtbase)) in u300_pmx_probe()
1068 return PTR_ERR(upmx->virtbase); in u300_pmx_probe()
1070 upmx->pctl = devm_pinctrl_register(&pdev->dev, &u300_pmx_desc, upmx); in u300_pmx_probe()
1071 if (IS_ERR(upmx->pctl)) { in u300_pmx_probe()
1072 dev_err(&pdev->dev, "could not register U300 pinmux driver\n"); in u300_pmx_probe()
1073 return PTR_ERR(upmx->pctl); in u300_pmx_probe()
1078 dev_info(&pdev->dev, "initialized U300 pin control driver\n"); in u300_pmx_probe()
1084 { .compatible = "stericsson,pinctrl-u300" },