diff options
| author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2017-07-26 07:28:11 -0400 |
|---|---|---|
| committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-08-16 04:21:12 -0400 |
| commit | 933ddbe5f52fbd6bdb03b976b7b1b80230b3b9a9 (patch) | |
| tree | 2720d6a63318d175bcb3dff4b188e2d1e1e9e67b /drivers/pinctrl | |
| parent | f9d130808c9aa74c34a6ed5eb536e19872065313 (diff) | |
pinctrl: sh-pfc: r8a7795: Add USB 2.0 pins, groups and functions
Add pins, groups, and functions for USB 2.0 on R-Car H3 ES2.0.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'drivers/pinctrl')
| -rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-r8a7795.c | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c index 947abbd94e6b..d5eddcccebff 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c | |||
| @@ -2754,6 +2754,39 @@ static const unsigned int scif_clk_b_mux[] = { | |||
| 2754 | SCIF_CLK_B_MARK, | 2754 | SCIF_CLK_B_MARK, |
| 2755 | }; | 2755 | }; |
| 2756 | 2756 | ||
| 2757 | /* - USB0 ------------------------------------------------------------------- */ | ||
| 2758 | static const unsigned int usb0_pins[] = { | ||
| 2759 | /* PWEN, OVC */ | ||
| 2760 | RCAR_GP_PIN(6, 24), RCAR_GP_PIN(6, 25), | ||
| 2761 | }; | ||
| 2762 | static const unsigned int usb0_mux[] = { | ||
| 2763 | USB0_PWEN_MARK, USB0_OVC_MARK, | ||
| 2764 | }; | ||
| 2765 | /* - USB1 ------------------------------------------------------------------- */ | ||
| 2766 | static const unsigned int usb1_pins[] = { | ||
| 2767 | /* PWEN, OVC */ | ||
| 2768 | RCAR_GP_PIN(6, 26), RCAR_GP_PIN(6, 27), | ||
| 2769 | }; | ||
| 2770 | static const unsigned int usb1_mux[] = { | ||
| 2771 | USB1_PWEN_MARK, USB1_OVC_MARK, | ||
| 2772 | }; | ||
| 2773 | /* - USB2 ------------------------------------------------------------------- */ | ||
| 2774 | static const unsigned int usb2_pins[] = { | ||
| 2775 | /* PWEN, OVC */ | ||
| 2776 | RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 15), | ||
| 2777 | }; | ||
| 2778 | static const unsigned int usb2_mux[] = { | ||
| 2779 | USB2_PWEN_MARK, USB2_OVC_MARK, | ||
| 2780 | }; | ||
| 2781 | /* - USB2_CH3 --------------------------------------------------------------- */ | ||
| 2782 | static const unsigned int usb2_ch3_pins[] = { | ||
| 2783 | /* PWEN, OVC */ | ||
| 2784 | RCAR_GP_PIN(6, 30), RCAR_GP_PIN(6, 31), | ||
| 2785 | }; | ||
| 2786 | static const unsigned int usb2_ch3_mux[] = { | ||
| 2787 | USB2_CH3_PWEN_MARK, USB2_CH3_OVC_MARK, | ||
| 2788 | }; | ||
| 2789 | |||
| 2757 | static const struct sh_pfc_pin_group pinmux_groups[] = { | 2790 | static const struct sh_pfc_pin_group pinmux_groups[] = { |
| 2758 | SH_PFC_PIN_GROUP(avb_link), | 2791 | SH_PFC_PIN_GROUP(avb_link), |
| 2759 | SH_PFC_PIN_GROUP(avb_magic), | 2792 | SH_PFC_PIN_GROUP(avb_magic), |
| @@ -2914,6 +2947,10 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { | |||
| 2914 | SH_PFC_PIN_GROUP(scif5_clk_b), | 2947 | SH_PFC_PIN_GROUP(scif5_clk_b), |
| 2915 | SH_PFC_PIN_GROUP(scif_clk_a), | 2948 | SH_PFC_PIN_GROUP(scif_clk_a), |
| 2916 | SH_PFC_PIN_GROUP(scif_clk_b), | 2949 | SH_PFC_PIN_GROUP(scif_clk_b), |
| 2950 | SH_PFC_PIN_GROUP(usb0), | ||
| 2951 | SH_PFC_PIN_GROUP(usb1), | ||
| 2952 | SH_PFC_PIN_GROUP(usb2), | ||
| 2953 | SH_PFC_PIN_GROUP(usb2_ch3), | ||
| 2917 | }; | 2954 | }; |
| 2918 | 2955 | ||
| 2919 | static const char * const avb_groups[] = { | 2956 | static const char * const avb_groups[] = { |
| @@ -3135,6 +3172,22 @@ static const char * const scif_clk_groups[] = { | |||
| 3135 | "scif_clk_b", | 3172 | "scif_clk_b", |
| 3136 | }; | 3173 | }; |
| 3137 | 3174 | ||
| 3175 | static const char * const usb0_groups[] = { | ||
| 3176 | "usb0", | ||
| 3177 | }; | ||
| 3178 | |||
| 3179 | static const char * const usb1_groups[] = { | ||
| 3180 | "usb1", | ||
| 3181 | }; | ||
| 3182 | |||
| 3183 | static const char * const usb2_groups[] = { | ||
| 3184 | "usb2", | ||
| 3185 | }; | ||
| 3186 | |||
| 3187 | static const char * const usb2_ch3_groups[] = { | ||
| 3188 | "usb2_ch3", | ||
| 3189 | }; | ||
| 3190 | |||
| 3138 | static const struct sh_pfc_function pinmux_functions[] = { | 3191 | static const struct sh_pfc_function pinmux_functions[] = { |
| 3139 | SH_PFC_FUNCTION(avb), | 3192 | SH_PFC_FUNCTION(avb), |
| 3140 | SH_PFC_FUNCTION(du), | 3193 | SH_PFC_FUNCTION(du), |
| @@ -3156,6 +3209,10 @@ static const struct sh_pfc_function pinmux_functions[] = { | |||
| 3156 | SH_PFC_FUNCTION(scif4), | 3209 | SH_PFC_FUNCTION(scif4), |
| 3157 | SH_PFC_FUNCTION(scif5), | 3210 | SH_PFC_FUNCTION(scif5), |
| 3158 | SH_PFC_FUNCTION(scif_clk), | 3211 | SH_PFC_FUNCTION(scif_clk), |
| 3212 | SH_PFC_FUNCTION(usb0), | ||
| 3213 | SH_PFC_FUNCTION(usb1), | ||
| 3214 | SH_PFC_FUNCTION(usb2), | ||
| 3215 | SH_PFC_FUNCTION(usb2_ch3), | ||
| 3159 | }; | 3216 | }; |
| 3160 | 3217 | ||
| 3161 | static const struct pinmux_cfg_reg pinmux_config_regs[] = { | 3218 | static const struct pinmux_cfg_reg pinmux_config_regs[] = { |
