[PATCH v3 4/9] reset: rzg2l-usbphy-ctrl: Add RZ/G3L support
Biju <[email protected]>
| Newsgroups | org.kernel.vger.linux-renesas-soc,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
From: Biju Das <[email protected]> Add the renesas,r9a08g046-usbphy-ctrl compatible string to the OF match table for the RZ/G3L (r9a08g046) SoC, using a dedicated rzg3l_info struct with pwr_rdy set, similar to RZ/G3S. The RZ/G3L SoC has 2 OTG controllers compared to one on RZ/G3S, so it uses a separate rzg3l-usb-vbus-regulator driver to handle the additional VBUSEN control for port 2. Signed-off-by: Biju Das <[email protected]> --- v2->v3: * No change. v1->v2: * No change. --- drivers/reset/reset-rzg2l-usbphy-ctrl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/reset/reset-rzg2l-usbphy-ctrl.c b/drivers/reset/reset-rzg2l-usbphy-ctrl.c index 1c4c8aae0e80..734255258b69 100644 --- a/drivers/reset/reset-rzg2l-usbphy-ctrl.c +++ b/drivers/reset/reset-rzg2l-usbphy-ctrl.c @@ -120,9 +120,15 @@ static const struct rzg2l_usbphy_ctrl_info rzg3s_info = { .pwrrdy = true, }; +static const struct rzg2l_usbphy_ctrl_info rzg3l_info = { + .regulator_driver_name = "rzg3l-usb-vbus-regulator", + .pwrrdy = true, +}; + static const struct of_device_id rzg2l_usbphy_ctrl_match_table[] = { { .compatible = "renesas,rzg2l-usbphy-ctrl", .data = &rzg2l_info }, { .compatible = "renesas,r9a08g045-usbphy-ctrl", .data = &rzg3s_info }, + { .compatible = "renesas,r9a08g046-usbphy-ctrl", .data = &rzg3l_info }, { /* Sentinel */ } }; MODULE_DEVICE_TABLE(of, rzg2l_usbphy_ctrl_match_table); -- 2.43.0