Home
last modified time | relevance | path

Searched full:rsel (Results 1 – 17 of 17) sorted by relevance

/Linux-v6.1/Documentation/devicetree/bindings/pinctrl/
Dpinctrl-mt8195.yaml54 mediatek,rsel-resistance-in-si-unit:
57 Identifying i2c pins pull up/down type which is RSEL. It can support
58 RSEL define or si unit value(ohm) to set different resistance.
112 description: mt8195 pull down RSEL type define value.
114 description: mt8195 pull down RSEL type si unit value(ohm).
116 For pull down type is normal, it don't need add RSEL & R1R0 define
122 For pull down type is RSEL, it can add RSEL define & resistance
124 "mediatek,rsel-resistance-in-si-unit".
132 An example of using RSEL define:
143 mediatek,rsel-resistance-in-si-unit;
[all …]
Dpinctrl-mt8186.yaml61 mediatek,rsel-resistance-in-si-unit:
64 Identifying i2c pins pull up/down type which is RSEL. It can support
65 RSEL define or si unit value(ohm) to set different resistance.
119 description: mt8186 pull down RSEL type define value.
121 description: mt8186 pull down RSEL type si unit value(ohm).
123 For pull down type is normal, it don't need add RSEL & R1R0 define
129 For pull down type is RSEL, it can add RSEL define & resistance
131 "mediatek,rsel-resistance-in-si-unit".
136 An example of using RSEL define:
147 mediatek,rsel-resistance-in-si-unit;
[all …]
Dmediatek,mt8188-pinctrl.yaml60 mediatek,rsel-resistance-in-si-unit:
64 The first is by RSEL definition value, another one is by resistance value(ohm).
105 description: mt8188 pull down RSEL type define value.
107 description: mt8188 pull down RSEL type si unit value(ohm).
109 For pull down type is normal, it doesn't need add RSEL & R1R0 define
115 For pull down type is RSEL, it can add RSEL define & resistance value(ohm)
116 … to set different resistance by identifying property "mediatek,rsel-resistance-in-si-unit".
128 description: mt8188 pull up RSEL type define value.
130 description: mt8188 pull up RSEL type si unit value(ohm).
132 For pull up type is normal, it don't need add RSEL & R1R0 define
[all …]
Dpinctrl-mt8192.yaml94 description: RSEL pull down type. See MTK_PULL_SET_RSEL_
105 description: RSEL pull up type. See MTK_PULL_SET_RSEL_
/Linux-v6.1/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common-v2.c672 const struct mtk_pin_rsel *rsel; in mtk_hw_pin_rsel_lookup() local
676 rsel = hw->soc->pin_rsel; in mtk_hw_pin_rsel_lookup()
679 if (desc->number >= rsel[check].s_pin && in mtk_hw_pin_rsel_lookup()
680 desc->number <= rsel[check].e_pin) { in mtk_hw_pin_rsel_lookup()
682 if (rsel[check].up_rsel == arg) { in mtk_hw_pin_rsel_lookup()
684 *rsel_val = rsel[check].rsel_index; in mtk_hw_pin_rsel_lookup()
688 if (rsel[check].down_rsel == arg) { in mtk_hw_pin_rsel_lookup()
690 *rsel_val = rsel[check].rsel_index; in mtk_hw_pin_rsel_lookup()
698 dev_err(hw->dev, "Not support rsel value %d Ohm for pin = %d (%s)\n", in mtk_hw_pin_rsel_lookup()
785 const struct mtk_pin_rsel *rsel; in mtk_rsel_get_si_unit() local
[all …]
Dpinctrl-mtk-common-v2.h159 * @s_pin: the start pin within the rsel range
160 * @e_pin: the end pin within the rsel range
161 * @rsel_index: the rsel bias resistance index
162 * @up_rsel: the pullup rsel bias resistance value
163 * @down_rsel: the pulldown rsel bias resistance value
301 /* identify rsel setting by si unit or rsel define in dts node */
Dpinctrl-paris.c638 int pinmux, pullup, pullen, len = 0, r1 = -1, r0 = -1, rsel = -1; in mtk_pctrl_show_one_pin() local
659 rsel = pullen; in mtk_pctrl_show_one_pin()
681 /* Case for: RSEL */ in mtk_pctrl_show_one_pin()
684 rsel = pullen - MTK_PULL_SET_RSEL_000; in mtk_pctrl_show_one_pin()
703 else if (rsel != -1) in mtk_pctrl_show_one_pin()
704 len += scnprintf(buf + len, buf_len - len, " (%1d)", rsel); in mtk_pctrl_show_one_pin()
1062 "mediatek,rsel-resistance-in-si-unit", NULL)) in mtk_paris_pinctrl_probe()
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dnv50.c57 u32 rsel = nvkm_rd32(device, 0x00e18c); in read_pll_src() local
65 case 0x4028: id = !!(rsel & 0x00000004); break; in read_pll_src()
66 case 0x4008: id = !!(rsel & 0x00000008); break; in read_pll_src()
90 rsel = nvkm_rd32(device, 0x00c050); in read_pll_src()
92 case 0x4020: rsel = (rsel & 0x00000003) >> 0; break; in read_pll_src()
93 case 0x4008: rsel = (rsel & 0x0000000c) >> 2; break; in read_pll_src()
94 case 0x4028: rsel = (rsel & 0x00001800) >> 11; break; in read_pll_src()
95 case 0x4030: rsel = 3; break; in read_pll_src()
101 switch (rsel) { in read_pll_src()
/Linux-v6.1/drivers/rtc/
Drtc-sunplus.c183 u32 ohms, rsel; in sp_rtc_set_trickle_charger() local
194 rsel = BAT_CHARGE_RSEL_2K_OHM; in sp_rtc_set_trickle_charger()
197 rsel = BAT_CHARGE_RSEL_250_OHM; in sp_rtc_set_trickle_charger()
200 rsel = BAT_CHARGE_RSEL_50_OHM; in sp_rtc_set_trickle_charger()
203 rsel = BAT_CHARGE_RSEL_0_OHM; in sp_rtc_set_trickle_charger()
210 writel(BAT_CHARGE_RSEL_MASK_BIT | rsel, sp_rtc->reg_base + RTC_BATT_CHARGE_CTRL); in sp_rtc_set_trickle_charger()
/Linux-v6.1/drivers/media/dvb-frontends/
Dmb86a16.c35 int rsel; member
148 state->rsel) < 0) in smrt_set()
344 state->deci = 0; state->csel = 0; state->rsel = 0; in smrt_info_get()
346 state->deci = 0; state->csel = 0; state->rsel = 1; in smrt_info_get()
348 state->deci = 0; state->csel = 1; state->rsel = 0; in smrt_info_get()
350 state->deci = 0; state->csel = 1; state->rsel = 1; in smrt_info_get()
352 state->deci = 1; state->csel = 0; state->rsel = 0; in smrt_info_get()
354 state->deci = 1; state->csel = 0; state->rsel = 1; in smrt_info_get()
356 state->deci = 1; state->csel = 1; state->rsel = 0; in smrt_info_get()
358 state->deci = 1; state->csel = 1; state->rsel = 1; in smrt_info_get()
[all …]
/Linux-v6.1/drivers/clk/
Dclk-cs2000-cp.c41 #define RSEL(x) (((x) & 0x3) << 3) macro
42 #define RSEL_MASK RSEL(0x3)
281 ret = regmap_update_bits(priv->regmap, DEVICE_CFG1, RSEL_MASK, RSEL(ch)); in cs2000_ratio_select()
/Linux-v6.1/drivers/scsi/
Dsun3_scsi.c82 unsigned short rsel; /* select regs to load */ member
288 udc_regs->rsel = UDC_RSEL_SEND; in sun3scsi_dma_setup()
291 udc_regs->rsel = UDC_RSEL_RECV; in sun3scsi_dma_setup()
DFlashPoint.c495 #define RSEL BIT(1) macro
1764 (BUS_FREE | RSEL))) ; in FlashPoint_HandleInterrupt()
1805 (BUS_FREE | RSEL)) in FlashPoint_HandleInterrupt()
1818 (BUS_FREE | RSEL))) { in FlashPoint_HandleInterrupt()
1830 else if (hp_int & RSEL) { in FlashPoint_HandleInterrupt()
1833 (PROG_HLT | RSEL | PHASE | BUS_FREE)); in FlashPoint_HandleInterrupt()
3762 (BUS_FREE | RSEL))) ; in FPT_sxfrp()
4463 (RDW_HARPOON((port + hp_intstat)) & RSEL)) { in FPT_phaseBusFree()
6427 FPT_default_intena = RESET | RSEL | PROG_HLT | TIMEOUT | in FPT_XbowInit()
Ddc395x.c2985 "Arb lost but Resel win rsel=%i stat=0x%04x\n", in reselect()
/Linux-v6.1/arch/parisc/kernel/
Dmodule.c122 /* rsel: select right 11 bits */
123 #define rsel(v,a) (((v)+(a))&0x7ff) macro
/Linux-v6.1/drivers/media/platform/chips-media/
Dcoda-common.c1025 struct v4l2_rect r, *rsel; in coda_g_selection() local
1035 rsel = &q_data->rect; in coda_g_selection()
1040 rsel = &r; in coda_g_selection()
1049 rsel = &r; in coda_g_selection()
1061 s->r = *rsel; in coda_g_selection()
/Linux-v6.1/arch/arm64/boot/dts/mediatek/
Dmt8195-cherry.dtsi312 mediatek,rsel-resistance-in-si-unit;