/Linux-v4.19/drivers/pinctrl/spear/ |
D | pinctrl-spear.c | 31 static void muxregs_endisable(struct spear_pmx *pmx, in muxregs_endisable() argument 40 val = pmx_readl(pmx, muxreg->reg); in muxregs_endisable() 49 pmx_writel(pmx, val, muxreg->reg); in muxregs_endisable() 53 static int set_mode(struct spear_pmx *pmx, int mode) in set_mode() argument 59 if (!pmx->machdata->pmx_modes || !pmx->machdata->npmx_modes) in set_mode() 62 for (i = 0; i < pmx->machdata->npmx_modes; i++) { in set_mode() 63 if (pmx->machdata->pmx_modes[i]->mode == (1 << mode)) { in set_mode() 64 pmx_mode = pmx->machdata->pmx_modes[i]; in set_mode() 72 val = pmx_readl(pmx, pmx_mode->reg); in set_mode() 75 pmx_writel(pmx, val, pmx_mode->reg); in set_mode() [all …]
|
/Linux-v4.19/drivers/pinctrl/tegra/ |
D | pinctrl-tegra.c | 36 static inline u32 pmx_readl(struct tegra_pmx *pmx, u32 bank, u32 reg) in pmx_readl() argument 38 return readl(pmx->regs[bank] + reg); in pmx_readl() 41 static inline void pmx_writel(struct tegra_pmx *pmx, u32 val, u32 bank, u32 reg) in pmx_writel() argument 43 writel(val, pmx->regs[bank] + reg); in pmx_writel() 48 struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tegra_pinctrl_get_groups_count() local 50 return pmx->soc->ngroups; in tegra_pinctrl_get_groups_count() 56 struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tegra_pinctrl_get_group_name() local 58 return pmx->soc->groups[group].name; in tegra_pinctrl_get_group_name() 66 struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tegra_pinctrl_get_group_pins() local 68 *pins = pmx->soc->groups[group].pins; in tegra_pinctrl_get_group_pins() [all …]
|
/Linux-v4.19/drivers/pinctrl/sh-pfc/ |
D | pinctrl.c | 51 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_get_groups_count() local 53 return pmx->pfc->info->nr_groups; in sh_pfc_get_groups_count() 59 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_get_group_name() local 61 return pmx->pfc->info->groups[selector].name; in sh_pfc_get_group_name() 67 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_get_group_pins() local 69 *pins = pmx->pfc->info->groups[selector].pins; in sh_pfc_get_group_pins() 70 *num_pins = pmx->pfc->info->groups[selector].nr_pins; in sh_pfc_get_group_pins() 108 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_dt_subnode_to_map() local 109 struct device *dev = pmx->pfc->dev; in sh_pfc_dt_subnode_to_map() 127 if (!pmx->func_prop_name) { in sh_pfc_dt_subnode_to_map() [all …]
|
/Linux-v4.19/drivers/pinctrl/ |
D | pinctrl-artpec6.c | 660 struct artpec6_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in artpec6_pmx_select_func() local 684 regval = readl(pmx->base + reg); in artpec6_pmx_select_func() 687 writel(regval, pmx->base + reg); in artpec6_pmx_select_func() 694 struct artpec6_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in artpec6_pmx_enable() local 696 dev_dbg(pmx->dev, "enabling %s function for pin group %s\n", in artpec6_pmx_enable() 708 struct artpec6_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in artpec6_pmx_disable() local 710 dev_dbg(pmx->dev, "disabling %s function for pin group %s\n", in artpec6_pmx_disable() 721 struct artpec6_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in artpec6_pmx_request_gpio() local 728 val = readl_relaxed(pmx->base + reg); in artpec6_pmx_request_gpio() 731 writel_relaxed(val, pmx->base + reg); in artpec6_pmx_request_gpio() [all …]
|
D | pinctrl-gemini.c | 1930 struct gemini_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in gemini_get_groups_count() local 1932 if (pmx->is_3512) in gemini_get_groups_count() 1934 if (pmx->is_3516) in gemini_get_groups_count() 1942 struct gemini_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in gemini_get_group_name() local 1944 if (pmx->is_3512) in gemini_get_group_name() 1946 if (pmx->is_3516) in gemini_get_group_name() 1956 struct gemini_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in gemini_get_group_pins() local 1959 if (pmx->flash_pin && in gemini_get_group_pins() 1960 pmx->is_3512 && in gemini_get_group_pins() 1966 if (pmx->flash_pin && in gemini_get_group_pins() [all …]
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | kirkwood-dnskw.dtsi | 61 pmx_sata0: pmx-sata0 { 65 pmx_sata1: pmx-sata1 { 69 pmx_led_power: pmx-led-power { 73 pmx_led_red_right_hdd: pmx-led-red-right-hdd { 77 pmx_led_red_left_hdd: pmx-led-red-left-hdd { 81 pmx_led_red_usb_325: pmx-led-red-usb-325 { 85 pmx_button_power: pmx-button-power { 89 pmx_led_red_usb_320: pmx-led-red-usb-320 { 93 pmx_power_off: pmx-power-off { 97 pmx_power_back_on: pmx-power-back-on { [all …]
|
D | kirkwood-iomega_ix2_200.dts | 35 pmx_button_reset: pmx-button-reset { 39 pmx_button_power: pmx-button-power { 43 pmx_led_backup: pmx-led-backup { 47 pmx_led_power: pmx-led-power { 51 pmx_button_otb: pmx-button-otb { 55 pmx_led_rebuild: pmx-led-rebuild { 59 pmx_led_health: pmx-led_health { 63 pmx_led_sata_brt_ctrl_1: pmx-led-sata-brt-ctrl-1 { 67 pmx_led_sata_brt_ctrl_2: pmx-led-sata-brt-ctrl-2 { 71 pmx_led_backup_brt_ctrl_1: pmx-led-backup-brt-ctrl-1 { [all …]
|
D | dove.dtsi | 484 pmx_gpio_0: pmx-gpio-0 { 489 pmx_gpio_1: pmx-gpio-1 { 494 pmx_gpio_2: pmx-gpio-2 { 499 pmx_gpio_3: pmx-gpio-3 { 504 pmx_gpio_4: pmx-gpio-4 { 509 pmx_gpio_5: pmx-gpio-5 { 514 pmx_gpio_6: pmx-gpio-6 { 519 pmx_gpio_7: pmx-gpio-7 { 524 pmx_gpio_8: pmx-gpio-8 { 529 pmx_gpio_9: pmx-gpio-9 { [all …]
|
D | kirkwood-linkstation-6282.dtsi | 16 pmx_power_hdd0: pmx-power-hdd0 { 20 pmx_usb_vbus: pmx-usb-vbus { 24 pmx_fan_high: pmx-fan-high { 28 pmx_fan_low: pmx-fan-low { 32 pmx_led_alarm: pmx-led-alarm { 36 pmx_led_function_red: pmx-led-function-red { 40 pmx_led_info: pmx-led-info { 44 pmx_led_function_blue: pmx-led-function-blue { 48 pmx_led_power: pmx-led-power { 52 pmx_fan_lock: pmx-fan-lock { [all …]
|
D | kirkwood-nsa320.dts | 32 pmx_sata0: pmx-sata0 { 37 pmx_sata1: pmx-sata1 { 42 pmx_led_hdd2_green: pmx-led-hdd2-green { 47 pmx_led_hdd2_red: pmx-led-hdd2-red { 52 pmx_mcu_data: pmx-mcu-data { 57 pmx_led_usb_green: pmx-led-usb-green { 62 pmx_mcu_clk: pmx-mcu-clk { 67 pmx_mcu_act: pmx-mcu-act { 72 pmx_led_sys_green: pmx-led-sys-green { 77 pmx_led_sys_orange: pmx-led-sys-orange { [all …]
|
D | kirkwood-nsa325.dts | 32 pmx_led_hdd2_green: pmx-led-hdd2-green { 37 pmx_led_hdd2_red: pmx-led-hdd2-red { 42 pmx_mcu_data: pmx-mcu-data { 47 pmx_led_usb_green: pmx-led-usb-green { 52 pmx_mcu_clk: pmx-mcu-clk { 57 pmx_mcu_act: pmx-mcu-act { 62 pmx_led_sys_green: pmx-led-sys-green { 67 pmx_led_sys_orange: pmx-led-sys-orange { 72 pmx_led_hdd1_green: pmx-led-hdd1-green { 77 pmx_led_hdd1_red: pmx-led-hdd1-red { [all …]
|
D | kirkwood-linkstation-duo-6281.dtsi | 16 pmx_power_hdd0: pmx-power-hdd0 { 20 pmx_power_hdd1: pmx-power-hdd1 { 24 pmx_usb_vbus: pmx-usb-vbus { 28 pmx_led_alarm: pmx-led-alarm { 32 pmx_led_function_red: pmx-led-function-red { 36 pmx_led_function_blue: pmx-led-function-blue { 40 pmx_led_info: pmx-led-info { 44 pmx_led_power: pmx-led-power { 48 pmx_button_function: pmx-button-function { 52 pmx_power_switch: pmx-power-switch { [all …]
|
D | kirkwood-synology.dtsi | 13 pmx_alarmled_12: pmx-alarmled-12 { 18 pmx_fanctrl_15: pmx-fanctrl-15 { 23 pmx_fanctrl_16: pmx-fanctrl-16 { 28 pmx_fanctrl_17: pmx-fanctrl-17 { 33 pmx_fanalarm_18: pmx-fanalarm-18 { 38 pmx_hddled_20: pmx-hddled-20 { 43 pmx_hddled_21: pmx-hddled-21 { 48 pmx_hddled_22: pmx-hddled-22 { 53 pmx_hddled_23: pmx-hddled-23 { 58 pmx_hddled_24: pmx-hddled-24 { [all …]
|
D | kirkwood-lsxl.dtsi | 13 pmx_power_hdd: pmx-power-hdd { 17 pmx_usb_vbus: pmx-usb-vbus { 21 pmx_fan_high: pmx-fan-high { 25 pmx_fan_low: pmx-fan-low { 29 pmx_led_function_blue: pmx-led-function-blue { 33 pmx_led_alarm: pmx-led-alarm { 37 pmx_led_info: pmx-led-info { 41 pmx_led_power: pmx-led-power { 45 pmx_fan_lock: pmx-fan-lock { 49 pmx_button_function: pmx-button-function { [all …]
|
D | kirkwood-linkstation.dtsi | 17 pmx_power_hdd0: pmx-power-hdd0 { 20 pmx_usb_vbus: pmx-usb-vbus { 23 pmx_led_alarm: pmx-led-alarm { 26 pmx_led_function_red: pmx-led-function-red { 29 pmx_led_function_blue: pmx-led-function-blue { 32 pmx_led_info: pmx-led-info { 35 pmx_led_power: pmx-led-power { 38 pmx_button_function: pmx-button-function { 41 pmx_power_switch: pmx-power-switch { 44 pmx_power_auto_switch: pmx-power-auto-switch {
|
D | kirkwood-goflexnet.dts | 23 pmx_usb_power_enable: pmx-usb-power-enable { 27 pmx_led_right_cap_0: pmx-led_right_cap_0 { 31 pmx_led_right_cap_1: pmx-led_right_cap_1 { 35 pmx_led_right_cap_2: pmx-led_right_cap_2 { 39 pmx_led_right_cap_3: pmx-led_right_cap_3 { 43 pmx_led_left_cap_0: pmx-led_left_cap_0 { 47 pmx_led_left_cap_1: pmx-led_left_cap_1 { 51 pmx_led_left_cap_2: pmx-led_left_cap_2 { 55 pmx_led_left_cap_3: pmx-led_left_cap_3 { 59 pmx_led_green: pmx-led_green { [all …]
|
D | kirkwood-iconnect.dts | 25 pmx_button_reset: pmx-button-reset { 29 pmx_button_otb: pmx-button-otb { 33 pmx_led_level: pmx-led-level { 37 pmx_led_power_blue: pmx-led-power-blue { 41 pmx_led_power_red: pmx-power-red { 45 pmx_led_usb1: pmx-led-usb1 { 49 pmx_led_usb2: pmx-led-usb2 { 53 pmx_led_usb3: pmx-led-usb3 { 57 pmx_led_usb4: pmx-led-usb4 { 61 pmx_led_otb: pmx-led-otb {
|
D | kirkwood-nsa310.dts | 24 pmx_led_esata_green: pmx-led-esata-green { 29 pmx_led_esata_red: pmx-led-esata-red { 34 pmx_led_usb_green: pmx-led-usb-green { 39 pmx_led_usb_red: pmx-led-usb-red { 44 pmx_led_sys_green: pmx-led-sys-green { 49 pmx_led_sys_red: pmx-led-sys-red { 54 pmx_led_hdd_green: pmx-led-hdd-green { 59 pmx_led_hdd_red: pmx-led-hdd-red { 64 pmx_unknown: pmx-unknown {
|
D | kirkwood-topkick.dts | 38 pmx_led_disk_yellow: pmx-led-disk-yellow { 43 pmx_sata0_pwr_enable: pmx-sata0-pwr-enable { 48 pmx_led_sys_red: pmx-led-sys-red { 53 pmx_led_sys_blue: pmx-led-sys-blue { 58 pmx_led_wifi_green: pmx-led-wifi-green { 63 pmx_sw_left: pmx-sw-left { 68 pmx_sw_right: pmx-sw-right { 73 pmx_sw_idle: pmx-sw-idle { 78 pmx_sw_left2: pmx-sw-left2 { 83 pmx_led_wifi_yellow: pmx-led-wifi-yellow {
|
D | kirkwood-mplcec4.dts | 23 pmx_led_health: pmx-led-health { 28 pmx_sata1: pmx-sata1 { 33 pmx_sata0: pmx-sata0 { 38 pmx_led_user1o: pmx-led-user1o { 43 pmx_led_user1g: pmx-led-user1g { 48 pmx_led_user0o: pmx-led-user0o { 53 pmx_led_user0g: pmx-led-user0g { 58 pmx_led_misc: pmx-led-misc { 63 pmx_sdio_cd: pmx-sdio-cd {
|
D | kirkwood-openblocks_a6.dts | 48 pmx_uart0: pmx-uart0 { 54 pmx_uart1: pmx-uart1 { 60 pmx_sysrst: pmx-sysrst { 65 pmx_dip_switches: pmx-dip-switches { 70 pmx_gpio_header: pmx-gpio-header { 76 pmx_gpio_init: pmx-init { 81 pmx_usb_oc: pmx-usb-oc { 86 pmx_leds: pmx-leds {
|
D | kirkwood-nsa310a.dts | 28 pmx_led_esata_green: pmx-led-esata-green { 33 pmx_led_esata_red: pmx-led-esata-red { 38 pmx_led_usb_green: pmx-led-usb-green { 43 pmx_led_sys_green: pmx-led-sys-green { 48 pmx_led_sys_red: pmx-led-sys-red { 53 pmx_led_hdd_green: pmx-led-hdd-green { 58 pmx_led_hdd_red: pmx-led-hdd-red {
|
D | kirkwood-netgear_readynas_nv+_v2.dts | 29 pmx_button_power: pmx-button-power { 34 pmx_button_backup: pmx-button-backup { 39 pmx_button_reset: pmx-button-reset { 44 pmx_led_blue_power: pmx-led-blue-power { 49 pmx_led_blue_backup: pmx-led-blue-backup { 54 pmx_led_blue_disk1: pmx-led-blue-disk1 { 59 pmx_led_blue_disk2: pmx-led-blue-disk2 { 64 pmx_led_blue_disk3: pmx-led-blue-disk3 { 69 pmx_led_blue_disk4: pmx-led-blue-disk4 { 74 pmx_poweroff: pmx-poweroff {
|
D | kirkwood-nsa3x0-common.dtsi | 11 pmx_usb_power: pmx-usb-power { 16 pmx_pwr_off: pmx-pwr-off { 21 pmx_btn_reset: pmx-btn-reset { 26 pmx_btn_copy: pmx-btn-copy { 31 pmx_btn_power: pmx-btn-power { 36 pmx_led_copy_green: pmx-led-copy-green { 41 pmx_led_copy_red: pmx-led-copy-red {
|
D | orion5x-linkstation-lschl.dts | 108 pmx_led_power: pmx-leds { 113 pmx_power_hdd: pmx-power-hdd { 118 pmx_led_alarm: pmx-leds { 123 pmx_led_info: pmx-leds { 128 pmx_fan_lock: pmx-fan-lock { 133 pmx_power_switch: pmx-power-switch { 138 pmx_power_usb: pmx-power-usb { 143 pmx_fan_high: pmx-fan-high { 148 pmx_fan_low: pmx-fan-low { 153 pmx_led_func: pmx-leds { [all …]
|