Commit 350753bf authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Simon Horman

sh-pfc: r8a7779: Don't group USB OVC and PENC pins

The USB_OVCn pins are alternate options for USB over-current detection
when using a 3.3V USB interface. As they're not mandatory they can be
used independently of the USB PENC pins. Don't group the USB_OVCn and
PENC pins to avoid conflicts when the USB_OVCn pins are used by another
function.
Reported-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent c7788792
...@@ -2357,27 +2357,48 @@ static const unsigned int sdhi3_wp_mux[] = { ...@@ -2357,27 +2357,48 @@ static const unsigned int sdhi3_wp_mux[] = {
}; };
/* - USB0 ------------------------------------------------------------------- */ /* - USB0 ------------------------------------------------------------------- */
static const unsigned int usb0_pins[] = { static const unsigned int usb0_pins[] = {
/* OVC */ /* PENC */
150, 154, 154,
}; };
static const unsigned int usb0_mux[] = { static const unsigned int usb0_mux[] = {
USB_OVC0_MARK, USB_PENC0_MARK, USB_PENC0_MARK,
};
static const unsigned int usb0_ovc_pins[] = {
/* USB_OVC */
150
};
static const unsigned int usb0_ovc_mux[] = {
USB_OVC0_MARK,
}; };
/* - USB1 ------------------------------------------------------------------- */ /* - USB1 ------------------------------------------------------------------- */
static const unsigned int usb1_pins[] = { static const unsigned int usb1_pins[] = {
/* OVC */ /* PENC */
152, 155, 155,
}; };
static const unsigned int usb1_mux[] = { static const unsigned int usb1_mux[] = {
USB_OVC1_MARK, USB_PENC1_MARK, USB_PENC1_MARK,
};
static const unsigned int usb1_ovc_pins[] = {
/* USB_OVC */
152,
};
static const unsigned int usb1_ovc_mux[] = {
USB_OVC1_MARK,
}; };
/* - USB2 ------------------------------------------------------------------- */ /* - USB2 ------------------------------------------------------------------- */
static const unsigned int usb2_pins[] = { static const unsigned int usb2_pins[] = {
/* OVC, PENC */ /* PENC */
125, 156, 156,
}; };
static const unsigned int usb2_mux[] = { static const unsigned int usb2_mux[] = {
USB_OVC2_MARK, USB_PENC2_MARK, USB_PENC2_MARK,
};
static const unsigned int usb2_ovc_pins[] = {
/* USB_OVC */
125,
};
static const unsigned int usb2_ovc_mux[] = {
USB_OVC2_MARK,
}; };
static const struct sh_pfc_pin_group pinmux_groups[] = { static const struct sh_pfc_pin_group pinmux_groups[] = {
...@@ -2501,8 +2522,11 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { ...@@ -2501,8 +2522,11 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
SH_PFC_PIN_GROUP(sdhi3_cd), SH_PFC_PIN_GROUP(sdhi3_cd),
SH_PFC_PIN_GROUP(sdhi3_wp), SH_PFC_PIN_GROUP(sdhi3_wp),
SH_PFC_PIN_GROUP(usb0), SH_PFC_PIN_GROUP(usb0),
SH_PFC_PIN_GROUP(usb0_ovc),
SH_PFC_PIN_GROUP(usb1), SH_PFC_PIN_GROUP(usb1),
SH_PFC_PIN_GROUP(usb1_ovc),
SH_PFC_PIN_GROUP(usb2), SH_PFC_PIN_GROUP(usb2),
SH_PFC_PIN_GROUP(usb2_ovc),
}; };
static const char * const du0_groups[] = { static const char * const du0_groups[] = {
...@@ -2683,14 +2707,17 @@ static const char * const sdhi3_groups[] = { ...@@ -2683,14 +2707,17 @@ static const char * const sdhi3_groups[] = {
static const char * const usb0_groups[] = { static const char * const usb0_groups[] = {
"usb0", "usb0",
"usb0_ovc",
}; };
static const char * const usb1_groups[] = { static const char * const usb1_groups[] = {
"usb1", "usb1",
"usb1_ovc",
}; };
static const char * const usb2_groups[] = { static const char * const usb2_groups[] = {
"usb2", "usb2",
"usb2_ovc",
}; };
static const struct sh_pfc_function pinmux_functions[] = { static const struct sh_pfc_function pinmux_functions[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment