Home
last modified time | relevance | path

Searched full:pupd (Results 1 – 21 of 21) sorted by relevance

/linux/drivers/pinctrl/
H A Dpinctrl-stmfx.c177 u32 pupd, mask = get_mask(offset); in stmfx_pinconf_get_pupd() local
180 ret = regmap_read(pctl->stmfx->map, reg, &pupd); in stmfx_pinconf_get_pupd()
184 return !!(pupd & mask); in stmfx_pinconf_get_pupd()
188 unsigned int offset, u32 pupd) in stmfx_pinconf_set_pupd() argument
193 return regmap_write_bits(pctl->stmfx->map, reg, mask, pupd ? mask : 0); in stmfx_pinconf_set_pupd()
226 int ret, dir, type, pupd; in stmfx_pinconf_get() local
245 pupd = stmfx_pinconf_get_pupd(pctl, pin); in stmfx_pinconf_get()
246 if (pupd < 0) in stmfx_pinconf_get()
247 return pupd; in stmfx_pinconf_get()
251 if ((!dir && (!type || !pupd)) || (dir && !type)) in stmfx_pinconf_get()
[all …]
H A Dpinctrl-da850-pupd.c177 { .compatible = "ti,da850-pupd" },
184 .name = "ti-da850-pupd",
H A DMakefile23 obj-$(CONFIG_PINCTRL_DA850_PUPD) += pinctrl-da850-pupd.o
/linux/Documentation/devicetree/bindings/pinctrl/
H A Dmediatek,mt8189-pinctrl.yaml107 description: mt8189 pull down PUPD/R0/R1 type define value.
114 For pull down type is PUPD/R0/R1 type, it can add R1R0 define to
127 description: mt8189 pull up PUPD/R0/R1 type define value.
134 For pull up type is PUPD/R0/R1 type, it can add R1R0 define to
H A Dmediatek,mt6795-pinctrl.yaml101 description: mt6795 pull down PUPD/R0/R1 type define value.
104 values; When pull down type is PUPD/R0/R1, adding R1R0 defines
111 description: mt6795 pull up PUPD/R0/R1 type define value.
114 values; When pull up type is PUPD/R0/R1, adding R1R0 defines will
H A Dmediatek,mt8188-pinctrl.yaml104 description: mt8188 pull down PUPD/R0/R1 type define value.
112 For pull down type is PUPD/R0/R1 type, it can add R1R0 define to
130 description: mt8188 pull up PUPD/R0/R1 type define value.
138 For pull up type is PUPD/R0/R1 type, it can add R1R0 define to set
H A Dmediatek,mt8196-pinctrl.yaml124 description: mt8196 pull down PUPD/R0/R1 type define value.
130 For pull down type is PUPD/R0/R1 type, it can add R1R0 define to
143 description: mt8196 pull up PUPD/R0/R1 type define value.
149 For pull up type is PUPD/R0/R1 type, it can add R1R0 define to
H A Dmediatek,mt8186-pinctrl.yaml116 description: mt8186 pull down PUPD/R0/R1 type define value.
124 For pull down type is PUPD/R0/R1 type, it can add R1R0 define to
161 description: mt8186 pull up PUPD/R0/R1 type define value.
169 For pull up type is PUPD/R0/R1 type, it can add R1R0 define to
H A Dmediatek,mt8195-pinctrl.yaml109 description: mt8195 pull down PUPD/R0/R1 type define value.
117 For pull down type is PUPD/R0/R1 type, it can add R1R0 define to
157 description: mt8195 pull up PUPD/R0/R1 type define value.
165 For pull up type is PUPD/R0/R1 type, it can add R1R0 define to
H A Dti,da850-pupd.txt8 - compatible: Must be "ti,da850-pupd"
31 compatible = "ti,da850-pupd";
H A Dmediatek,mt8192-pinctrl.yaml92 description: PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0_
103 description: PUPD/R1/R0 pull up type. See MTK_PUPD_SET_R1R0_
H A Dmediatek,mt7986-pinctrl.yaml303 PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0 defines in
312 PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0 defines in
H A Dmediatek,mt7981-pinctrl.yaml357 PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0 defines in
366 PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0 defines in
/linux/drivers/pinctrl/renesas/
H A Dpinctrl-rzv2m.c90 #define PUPD(n) (0x24 + (n) * 0x40) macro
492 /* PUPD uses 2-bits per pin */ in rzv2m_pinctrl_pinconf_get()
495 switch ((readl(pctrl->base + PUPD(port)) >> bit) & PUPD_MASK) { in rzv2m_pinctrl_pinconf_get()
596 /* PUPD uses 2-bits per pin */ in rzv2m_pinctrl_pinconf_set()
610 rzv2m_rmw_pin_config(pctrl, PUPD(port), bit, PUPD_MASK, val); in rzv2m_pinctrl_pinconf_set()
H A Dpinctrl-rzg2l.c142 #define PUPD(off) (0x1C00 + (off) * 8) macro
321 * @pupd: PUPD registers cache
335 u32 *pupd[2]; member
1338 arg = rzg2l_read_pin_config(pctrl, PUPD(off), bit, PUPD_MASK); in rzg2l_pinctrl_pinconf_get()
1502 rzg2l_rmw_pin_config(pctrl, PUPD(off), bit, PUPD_MASK, ret); in rzg2l_pinctrl_pinconf_set()
2735 cache->pupd[i] = devm_kcalloc(pctrl->dev, nports, sizeof(*cache->pupd[i]), in rzg2l_pinctrl_reg_cache_alloc()
2737 if (!cache->pupd[i]) in rzg2l_pinctrl_reg_cache_alloc()
3015 RZG2L_PCTRL_REG_ACCESS32(suspend, pctrl->base + PUPD(off), in rzg2l_pinctrl_pm_setup_regs()
3016 cache->pupd[0][port]); in rzg2l_pinctrl_pm_setup_regs()
3018 RZG2L_PCTRL_REG_ACCESS32(suspend, pctrl->base + PUPD(off), in rzg2l_pinctrl_pm_setup_regs()
[all …]
/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-mtk-common-v2.c600 * 3. PUPD + R0 + R1
679 /* MTK HW PUPD bit: 1 for pull-down, 0 for pull-up */ in mtk_pinconf_bias_set_pupd_r1_r0()
961 /* MTK HW PUPD bit: 1 for pull-down, 0 for pull-up */ in mtk_pinconf_bias_get_pupd_r1_r0()
1164 /* If PUPD register is not supported for that pin, let's fallback to in mtk_pinconf_adv_pull_set()
1192 /* If PUPD register is not supported for that pin, let's fallback to in mtk_pinconf_adv_pull_get()
/linux/drivers/pinctrl/tegra/
H A Dpinctrl-tegra234.c1425 #define PIN_PINGROUP_ENTRY_Y(r, bank, pupd, e_io_hv, e_lpbk, e_input, \ argument
1434 .pupd_reg = PINGROUP_REG_##pupd(r), \
1615 #define PINGROUP(pg_name, f0, f1, f2, f3, r, bank, pupd, e_io_hv, e_lpbk, e_input, e_lpdr, e_pbias_… argument
1627 PIN_PINGROUP_ENTRY_Y(r, bank, pupd, e_io_hv, e_lpbk, \
H A Dpinctrl-tegra194.c1324 #define PIN_PINGROUP_ENTRY_Y(r, bank, pupd, e_io_hv, e_lpbk, e_input, \ argument
1334 .pupd_reg = PINGROUP_REG_##pupd(r), \
1571 #define PINGROUP(pg_name, f0, f1, f2, f3, r, bank, pupd, e_io_hv, e_lpbk, e_input, e_lpdr, e_pbias_… argument
1583 PIN_PINGROUP_ENTRY_Y(r, bank, pupd, e_io_hv, e_lpbk, \
H A Dpinctrl-tegra20.c2045 /* name, f0, f1, f2, f3, tri r/b, mux r/b, pupd r/b */
/linux/arch/arm/boot/dts/ti/davinci/
H A Dda850.dtsi911 compatible = "ti,da850-pupd";
/linux/arch/arm64/boot/dts/mediatek/
H A Dmt8195-cherry.dtsi1203 pins-low-power-pupd {