Home
last modified time | relevance | path

Searched refs:pctrl (Results 1 – 25 of 37) sorted by relevance

12

/Linux-v5.4/drivers/pinctrl/qcom/
Dpinctrl-msm.c52 struct pinctrl_dev *pctrl; member
70 static u32 msm_readl_##name(struct msm_pinctrl *pctrl, \
73 return readl(pctrl->regs[g->tile] + g->name##_reg); \
75 static void msm_writel_##name(u32 val, struct msm_pinctrl *pctrl, \
78 writel(val, pctrl->regs[g->tile] + g->name##_reg); \
89 struct msm_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in MSM_ACCESSOR() local
91 return pctrl->soc->ngroups; in MSM_ACCESSOR()
97 struct msm_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in msm_get_group_name() local
99 return pctrl->soc->groups[group].name; in msm_get_group_name()
107 struct msm_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in msm_get_group_pins() local
[all …]
Dpinctrl-ssbi-gpio.c91 struct pinctrl_dev *pctrl; member
130 static int pm8xxx_read_bank(struct pm8xxx_gpio *pctrl, in pm8xxx_read_bank() argument
136 ret = regmap_write(pctrl->regmap, pin->reg, val); in pm8xxx_read_bank()
138 dev_err(pctrl->dev, "failed to select bank %d\n", bank); in pm8xxx_read_bank()
142 ret = regmap_read(pctrl->regmap, pin->reg, &val); in pm8xxx_read_bank()
144 dev_err(pctrl->dev, "failed to read register %d\n", bank); in pm8xxx_read_bank()
151 static int pm8xxx_write_bank(struct pm8xxx_gpio *pctrl, in pm8xxx_write_bank() argument
161 ret = regmap_write(pctrl->regmap, pin->reg, val); in pm8xxx_write_bank()
163 dev_err(pctrl->dev, "failed to write register\n"); in pm8xxx_write_bank()
170 struct pm8xxx_gpio *pctrl = pinctrl_dev_get_drvdata(pctldev); in pm8xxx_get_groups_count() local
[all …]
Dpinctrl-ssbi-mpp.c127 struct pinctrl_dev *pctrl; member
164 static int pm8xxx_mpp_update(struct pm8xxx_mpp *pctrl, in pm8xxx_mpp_update() argument
233 ret = regmap_write(pctrl->regmap, pin->reg, val); in pm8xxx_mpp_update()
235 dev_err(pctrl->dev, "failed to write register\n"); in pm8xxx_mpp_update()
242 struct pm8xxx_mpp *pctrl = pinctrl_dev_get_drvdata(pctldev); in pm8xxx_get_groups_count() local
244 return pctrl->npins; in pm8xxx_get_groups_count()
259 struct pm8xxx_mpp *pctrl = pinctrl_dev_get_drvdata(pctldev); in pm8xxx_get_group_pins() local
261 *pins = &pctrl->desc.pins[group].number; in pm8xxx_get_group_pins()
291 struct pm8xxx_mpp *pctrl = pinctrl_dev_get_drvdata(pctldev); in pm8xxx_get_function_groups() local
294 *num_groups = pctrl->npins; in pm8xxx_get_function_groups()
[all …]
/Linux-v5.4/drivers/pinctrl/actions/
Dpinctrl-owl.c65 static u32 owl_read_field(struct owl_pinctrl *pctrl, u32 reg, in owl_read_field() argument
70 tmp = readl_relaxed(pctrl->base + reg); in owl_read_field()
76 static void owl_write_field(struct owl_pinctrl *pctrl, u32 reg, u32 arg, in owl_write_field() argument
84 owl_update_bits(pctrl->base + reg, mask, (arg << bit)); in owl_write_field()
89 struct owl_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrldev); in owl_get_groups_count() local
91 return pctrl->soc->ngroups; in owl_get_groups_count()
97 struct owl_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrldev); in owl_get_group_name() local
99 return pctrl->soc->groups[group].name; in owl_get_group_name()
107 struct owl_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrldev); in owl_get_group_pins() local
109 *pins = pctrl->soc->groups[group].pads; in owl_get_group_pins()
[all …]
/Linux-v5.4/drivers/pinctrl/intel/
Dpinctrl-intel.c124 static struct intel_community *intel_get_community(struct intel_pinctrl *pctrl, in intel_get_community() argument
130 for (i = 0; i < pctrl->ncommunities; i++) { in intel_get_community()
131 community = &pctrl->communities[i]; in intel_get_community()
137 dev_warn(pctrl->dev, "failed to find community for pin %u\n", pin); in intel_get_community()
157 static void __iomem *intel_get_padcfg(struct intel_pinctrl *pctrl, in intel_get_padcfg() argument
164 community = intel_get_community(pctrl, pin); in intel_get_padcfg()
177 static bool intel_pad_owned_by_host(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_owned_by_host() argument
184 community = intel_get_community(pctrl, pin); in intel_pad_owned_by_host()
202 static bool intel_pad_acpi_mode(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_acpi_mode() argument
209 community = intel_get_community(pctrl, pin); in intel_pad_acpi_mode()
[all …]
Dpinctrl-cherryview.c666 static void __iomem *chv_padreg(struct chv_pinctrl *pctrl, unsigned int offset, in chv_padreg() argument
675 return pctrl->regs + offset + reg; in chv_padreg()
686 static bool chv_pad_locked(struct chv_pinctrl *pctrl, unsigned int offset) in chv_pad_locked() argument
690 reg = chv_padreg(pctrl, offset, CHV_PADCTRL1); in chv_pad_locked()
696 struct chv_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in chv_get_groups_count() local
698 return pctrl->community->ngroups; in chv_get_groups_count()
704 struct chv_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in chv_get_group_name() local
706 return pctrl->community->groups[group].name; in chv_get_group_name()
712 struct chv_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in chv_get_group_pins() local
714 *pins = pctrl->community->groups[group].pins; in chv_get_group_pins()
[all …]
/Linux-v5.4/drivers/pinctrl/berlin/
Dberlin.c37 struct berlin_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrl_dev); in berlin_pinctrl_get_group_count() local
39 return pctrl->desc->ngroups; in berlin_pinctrl_get_group_count()
45 struct berlin_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrl_dev); in berlin_pinctrl_get_group_name() local
47 return pctrl->desc->groups[group].name; in berlin_pinctrl_get_group_name()
55 struct berlin_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrl_dev); in berlin_pinctrl_dt_node_to_map() local
66 dev_err(pctrl->dev, in berlin_pinctrl_dt_node_to_map()
73 dev_err(pctrl->dev, in berlin_pinctrl_dt_node_to_map()
81 dev_err(pctrl->dev, "can't reserve map: %d\n", ret); in berlin_pinctrl_dt_node_to_map()
90 dev_err(pctrl->dev, "can't add map: %d\n", ret); in berlin_pinctrl_dt_node_to_map()
107 struct berlin_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrl_dev); in berlin_pinmux_get_functions_count() local
[all …]
/Linux-v5.4/drivers/pinctrl/
Dpinctrl-zynq.c41 struct pinctrl_dev *pctrl; member
826 struct zynq_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynq_pctrl_get_groups_count() local
828 return pctrl->ngroups; in zynq_pctrl_get_groups_count()
834 struct zynq_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynq_pctrl_get_group_name() local
836 return pctrl->groups[selector].name; in zynq_pctrl_get_group_name()
844 struct zynq_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynq_pctrl_get_group_pins() local
846 *pins = pctrl->groups[selector].pins; in zynq_pctrl_get_group_pins()
847 *num_pins = pctrl->groups[selector].npins; in zynq_pctrl_get_group_pins()
863 struct zynq_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynq_pmux_get_functions_count() local
865 return pctrl->nfuncs; in zynq_pmux_get_functions_count()
[all …]
Dpinctrl-bm1880.c918 struct bm1880_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in bm1880_pctrl_get_groups_count() local
920 return pctrl->ngroups; in bm1880_pctrl_get_groups_count()
926 struct bm1880_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in bm1880_pctrl_get_group_name() local
928 return pctrl->groups[selector].name; in bm1880_pctrl_get_group_name()
936 struct bm1880_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in bm1880_pctrl_get_group_pins() local
938 *pins = pctrl->groups[selector].pins; in bm1880_pctrl_get_group_pins()
939 *num_pins = pctrl->groups[selector].npins; in bm1880_pctrl_get_group_pins()
955 struct bm1880_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in bm1880_pmux_get_functions_count() local
957 return pctrl->nfuncs; in bm1880_pmux_get_functions_count()
963 struct bm1880_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in bm1880_pmux_get_function_name() local
[all …]
Dpinctrl-lantiq.c337 info->pctrl = devm_pinctrl_register(&pdev->dev, desc, info); in ltq_pinctrl_register()
338 if (IS_ERR(info->pctrl)) { in ltq_pinctrl_register()
340 return PTR_ERR(info->pctrl); in ltq_pinctrl_register()
Dpinctrl-amd.c782 const struct pin_desc *pd = pin_desc_get(gpio_dev->pctrl, pin); in amd_gpio_should_save()
801 struct pinctrl_desc *desc = gpio_dev->pctrl->desc; in amd_gpio_suspend()
819 struct pinctrl_desc *desc = gpio_dev->pctrl->desc; in amd_gpio_resume()
908 gpio_dev->pctrl = devm_pinctrl_register(&pdev->dev, &amd_pinctrl_desc, in amd_gpio_probe()
910 if (IS_ERR(gpio_dev->pctrl)) { in amd_gpio_probe()
912 return PTR_ERR(gpio_dev->pctrl); in amd_gpio_probe()
Dpinctrl-lantiq.h64 struct pinctrl_dev *pctrl; member
Dpinctrl-amd.h95 struct pinctrl_dev *pctrl; member
/Linux-v5.4/drivers/pinctrl/nuvoton/
Dpinctrl-npcm7xx.c1862 static int npcm7xx_gpio_of(struct npcm7xx_pinctrl *pctrl) in npcm7xx_gpio_of() argument
1870 for_each_available_child_of_node(pctrl->dev->of_node, np) in npcm7xx_gpio_of()
1874 dev_err(pctrl->dev, in npcm7xx_gpio_of()
1879 pctrl->gpio_bank[id].base = in npcm7xx_gpio_of()
1884 dev_err(pctrl->dev, in npcm7xx_gpio_of()
1890 ret = bgpio_init(&pctrl->gpio_bank[id].gc, in npcm7xx_gpio_of()
1891 pctrl->dev, 4, in npcm7xx_gpio_of()
1892 pctrl->gpio_bank[id].base + in npcm7xx_gpio_of()
1894 pctrl->gpio_bank[id].base + in npcm7xx_gpio_of()
1898 pctrl->gpio_bank[id].base + in npcm7xx_gpio_of()
[all …]
/Linux-v5.4/drivers/phy/hisilicon/
Dphy-hi3660-usb3.c60 struct regmap *pctrl; member
78 ret = regmap_write(priv->pctrl, PCTRL_PERI_CTRL3, val); in hi3660_phy_init()
154 ret = regmap_write(priv->pctrl, PCTRL_PERI_CTRL3, val); in hi3660_phy_exit()
189 priv->pctrl = syscon_regmap_lookup_by_phandle(dev->of_node, in hi3660_phy_probe()
191 if (IS_ERR(priv->pctrl)) { in hi3660_phy_probe()
193 return PTR_ERR(priv->pctrl); in hi3660_phy_probe()
/Linux-v5.4/Documentation/devicetree/bindings/phy/
Dphy-hi3660-usb3.txt8 - hisilicon,pctrl-syscon: phandle of syscon used to control phy.
23 hisilicon,pctrl-syscon = <&pctrl>;
/Linux-v5.4/Documentation/devicetree/bindings/arm/hisilicon/
Dhisilicon.txt292 - compatible: "hisilicon,pctrl"
293 - reg: Address and size of pctrl.
298 pctrl: pctrl@fca09000 {
299 compatible = "hisilicon,pctrl";
/Linux-v5.4/drivers/pinctrl/mediatek/
Dpinctrl-moore.c554 err = pinctrl_generic_add_group(hw->pctrl, group->name, in mtk_build_groups()
574 err = pinmux_generic_add_function(hw->pctrl, func->name, in mtk_build_functions()
650 &hw->pctrl); in mtk_moore_pinctrl_probe()
671 err = pinctrl_enable(hw->pctrl); in mtk_moore_pinctrl_probe()
Dpinctrl-mtk-common-v2.h240 struct pinctrl_dev *pctrl; member
/Linux-v5.4/drivers/mtd/devices/
Ddocg3.c1618 int pctrl, mode; in asic_mode_show() local
1621 pctrl = doc_register_readb(docg3, DOC_ASICMODE); in asic_mode_show()
1622 mode = pctrl & 0x03; in asic_mode_show()
1627 pctrl, in asic_mode_show()
1628 pctrl & DOC_ASICMODE_RAM_WE ? 1 : 0, in asic_mode_show()
1629 pctrl & DOC_ASICMODE_RSTIN_RESET ? 1 : 0, in asic_mode_show()
1630 pctrl & DOC_ASICMODE_BDETCT_RESET ? 1 : 0, in asic_mode_show()
1631 pctrl & DOC_ASICMODE_MDWREN ? 1 : 0, in asic_mode_show()
1632 pctrl & DOC_ASICMODE_POWERDOWN ? 1 : 0, in asic_mode_show()
/Linux-v5.4/Documentation/devicetree/bindings/clock/
Dhi3670-clock.txt12 - "hisilicon,hi3670-pctrl"
Dhi3660-clock.txt12 - "hisilicon,hi3660-pctrl"
/Linux-v5.4/drivers/media/platform/exynos4-is/
Dfimc-is.h247 struct pinctrl *pctrl; member
/Linux-v5.4/drivers/i2c/busses/
Di2c-s3c2410.c117 struct pinctrl *pctrl; member
1112 i2c->pctrl = devm_pinctrl_get_select_default(i2c->dev); in s3c24xx_i2c_probe()
1117 else if (IS_ERR(i2c->pctrl) && s3c24xx_i2c_parse_dt_gpio(i2c)) in s3c24xx_i2c_probe()
/Linux-v5.4/arch/arm64/boot/dts/hisilicon/
Dhi3670.dtsi161 pctrl: pctrl@e8a09000 { label
162 compatible = "hisilicon,hi3670-pctrl", "syscon";

12