Home
last modified time | relevance | path

Searched refs:pins (Results 1 - 14 of 14) sorted by relevance

/device/soc/rockchip/rk3588/kernel/drivers/mfd/
H A Drk806-core.c394 rk806->pins = devm_kzalloc(dev, in rk806_pinctrl_init()
397 if (!rk806->pins) in rk806_pinctrl_init()
400 rk806->pins->p = devm_pinctrl_get(dev); in rk806_pinctrl_init()
401 if (IS_ERR(rk806->pins->p)) { in rk806_pinctrl_init()
402 rk806->pins->p = NULL; in rk806_pinctrl_init()
407 rk806->pins->default_st = pinctrl_lookup_state(rk806->pins->p, in rk806_pinctrl_init()
410 if (IS_ERR(rk806->pins->default_st)) in rk806_pinctrl_init()
413 rk806->pins->power_off = pinctrl_lookup_state(rk806->pins in rk806_pinctrl_init()
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/mfd/
H A Drk808.c781 if (rk808->pins && rk808->pins->p && rk808->pins->power_off) { in rk817_shutdown_prepare()
793 ret = pinctrl_select_state(rk808->pins->p, rk808->pins->power_off); in rk817_shutdown_prepare()
973 if (dev->pins && !IS_ERR(dev->pins->p)) { in rk817_pinctrl_init()
978 rk808->pins = devm_kzalloc(dev, sizeof(struct rk808_pin_info), GFP_KERNEL); in rk817_pinctrl_init()
979 if (!rk808->pins) { in rk817_pinctrl_init()
983 rk808->pins in rk817_pinctrl_init()
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/pinctrl/
H A Dpinctrl-rk805.c41 const unsigned int pins[1]; member
52 * all necessary for every PMIC. For example, RK805 has 2 pins that can be used
74 const struct pinctrl_pin_desc *pins; member
112 .pins = {RK805_GPIO0},
117 .pins = {RK805_GPIO1},
171 .pins = {RK816_GPIO0},
233 .pins = {RK817_GPIO_SLP},
238 .pins = {RK817_GPIO_TS},
243 .pins = {RK817_GPIO_GT},
392 static int rk805_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, unsigned int group, const unsigned int **pins, in rk805_pinctrl_get_group_pins() argument
[all...]
H A Dpinctrl-rockchip.c91 #define PIN_BANK(id, pins, label) \
93 .bank_num = (id), .nr_pins = (pins), .name = (label), \
102 #define PIN_BANK_IOMUX_FLAGS(id, pins, label, iom0, iom1, iom2, iom3) \
104 .bank_num = (id), .nr_pins = (pins), .name = (label), \
113 #define PIN_BANK_IOMUX_FLAGS_OFFSET(id, pins, label, iom0, iom1, iom2, iom3, offset0, offset1, offset2, offset3) \
115 .bank_num = (id), .nr_pins = (pins), .name = (label), \
124 #define PIN_BANK_DRV_FLAGS(id, pins, label, type0, type1, type2, type3) \
126 .bank_num = (id), .nr_pins = (pins), .name = (label), \
142 #define PIN_BANK_DRV_FLAGS_PULL_FLAGS(id, pins, label, drv0, drv1, drv2, drv3, pull0, pull1, pull2, pull3) \
144 .bank_num = (id), .nr_pins = (pins),
282 rockchip_get_group_pins(struct pinctrl_dev *pctldev, unsigned selector, const unsigned **pins, unsigned *npins) rockchip_get_group_pins() argument
2931 const unsigned int *pins = info->groups[group].pins; rockchip_pmx_set() local
[all...]
H A Dpinctrl-rockchip.h114 * @nr_pins: number of pins in this bank
126 * @route_mask: bits describing the routing pins of per bank
223 * struct rockchip_pin_group: represent group of pins of a pinmux function.
225 * @pins: the pins included in this group.
226 * @npins: number of pins included in this group.
234 unsigned int *pins; member
/device/soc/rockchip/rk3588/kernel/drivers/pinctrl/
H A Dpinctrl-rk806.c36 const unsigned int pins[1]; member
47 * all necessary for every PMIC. For example, RK805 has 2 pins that can be used
70 const struct pinctrl_pin_desc *pins; member
155 .pins = { RK806_GPIO_DVS1 },
160 .pins = { RK806_GPIO_DVS2 },
165 .pins = { RK806_GPIO_DVS3 },
302 const unsigned int **pins, in rk806_pinctrl_get_group_pins()
307 *pins = pci->groups[group].pins; in rk806_pinctrl_get_group_pins()
512 pci->pins in rk806_pinctrl_probe()
300 rk806_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, unsigned int group, const unsigned int **pins, unsigned int *num_pins) rk806_pinctrl_get_group_pins() argument
[all...]
H A Dcore.h37 * @hog_default: default state for pins hogged by this device
38 * @hog_sleep: sleep state for pins hogged by this device
190 * @pins: array of pins that belong to the group
191 * @num_pins: number of pins in the group
196 int *pins; member
208 const unsigned int **pins,
H A Dpinctrl-rockchip.h296 * @nr_pins: number of pins in this bank
311 * @route_mask: bits describing the routing pins of per bank
432 * struct rockchip_pin_group: represent group of pins of a pinmux function.
434 * @pins: the pins included in this group.
435 * @npins: number of pins included in this group.
441 unsigned int *pins; member
/device/soc/hisilicon/common/platform/pin/
H A Dpin_hi35xx.c279 hi35xx->cntlr.pins[index].pinName = hi35xx->desc[index].pinName; in Hi35xxPinParsePinNode()
280 hi35xx->cntlr.pins[index].priv = (void *)node; in Hi35xxPinParsePinNode()
327 hi35xx->cntlr.pins = (struct PinDesc *)OsalMemCalloc(sizeof(struct PinDesc) * hi35xx->pinCount); in Hi35xxPinCntlrInit()
328 if (hi35xx->cntlr.pins == NULL) { in Hi35xxPinCntlrInit()
329 HDF_LOGE("%s: malloc pins failed:%d", __func__, ret); in Hi35xxPinCntlrInit()
/device/soc/rockchip/rk3588/kernel/drivers/regulator/
H A Drk806-regulator.c1182 if ((rk806->pins->p) && (rk806->pins->power_off)) in rk806_regulator_shutdown()
1183 pinctrl_select_state(rk806->pins->p, rk806->pins->power_off); in rk806_regulator_shutdown()
1186 if ((rk806->pins->p) && (rk806->pins->power_off)) in rk806_regulator_shutdown()
1187 pinctrl_select_state(rk806->pins->p, rk806->pins->reset); in rk806_regulator_shutdown()
/device/soc/rockchip/rk3588/kernel/include/linux/
H A Dpinctrl-rockchip.h296 * @nr_pins: number of pins in this bank
311 * @route_mask: bits describing the routing pins of per bank
432 * struct rockchip_pin_group: represent group of pins of a pinmux function.
434 * @pins: the pins included in this group.
435 * @npins: number of pins included in this group.
441 unsigned int *pins; member
/device/soc/rockchip/common/sdk_linux/drivers/spi/
H A Dspi-rockchip.c599 pinctrl_select_state(rs->dev->pins->p, rs->high_speed_state); in rockchip_spi_config()
601 pinctrl_select_state(rs->dev->pins->p, rs->dev->pins->default_state); in rockchip_spi_config()
/device/soc/rockchip/rk3588/kernel/include/linux/mfd/
H A Drk806.h517 struct rk806_pin_info *pins; member
/device/soc/rockchip/common/sdk_linux/include/linux/mfd/
H A Drk808.h1093 struct rk808_pin_info *pins; member

Completed in 20 milliseconds