blob: f62d899063a336a8e265f747d7a754744307c486 [file] [log] [blame]
Yunzhi Li64d11402014-12-12 23:07:46 +08001/*
2 * Rockchip usb PHY driver
3 *
4 * Copyright (C) 2014 Yunzhi Li <lyz@rock-chips.com>
5 * Copyright (C) 2014 ROCKCHIP, Inc.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17#include <linux/clk.h>
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +010018#include <linux/clk-provider.h>
Yunzhi Li64d11402014-12-12 23:07:46 +080019#include <linux/io.h>
20#include <linux/kernel.h>
21#include <linux/module.h>
22#include <linux/mutex.h>
23#include <linux/of.h>
24#include <linux/of_address.h>
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +010025#include <linux/of_platform.h>
Yunzhi Li64d11402014-12-12 23:07:46 +080026#include <linux/phy/phy.h>
27#include <linux/platform_device.h>
28#include <linux/regulator/consumer.h>
29#include <linux/reset.h>
30#include <linux/regmap.h>
31#include <linux/mfd/syscon.h>
32
Heiko Stuebner605df8a2016-02-22 12:55:01 +010033static int enable_usb_uart;
34
35#define HIWORD_UPDATE(val, mask) \
36 ((val) | (mask) << 16)
37
38#define UOC_CON0_SIDDQ BIT(13)
Yunzhi Li64d11402014-12-12 23:07:46 +080039
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +010040struct rockchip_usb_phys {
41 int reg;
42 const char *pll_name;
43};
44
Heiko Stuebner605df8a2016-02-22 12:55:01 +010045struct rockchip_usb_phy_base;
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +010046struct rockchip_usb_phy_pdata {
47 struct rockchip_usb_phys *phys;
Heiko Stuebner605df8a2016-02-22 12:55:01 +010048 int (*init_usb_uart)(struct regmap *grf);
49 int usb_uart_phy;
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +010050};
51
Heiko Stuebner5fdbb972015-11-19 22:22:23 +010052struct rockchip_usb_phy_base {
53 struct device *dev;
54 struct regmap *reg_base;
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +010055 const struct rockchip_usb_phy_pdata *pdata;
Heiko Stuebner5fdbb972015-11-19 22:22:23 +010056};
57
Yunzhi Li64d11402014-12-12 23:07:46 +080058struct rockchip_usb_phy {
Heiko Stuebner5fdbb972015-11-19 22:22:23 +010059 struct rockchip_usb_phy_base *base;
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +010060 struct device_node *np;
Yunzhi Li64d11402014-12-12 23:07:46 +080061 unsigned int reg_offset;
Yunzhi Li64d11402014-12-12 23:07:46 +080062 struct clk *clk;
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +010063 struct clk *clk480m;
64 struct clk_hw clk480m_hw;
Yunzhi Li64d11402014-12-12 23:07:46 +080065 struct phy *phy;
Heiko Stuebner605df8a2016-02-22 12:55:01 +010066 bool uart_enabled;
Yunzhi Li64d11402014-12-12 23:07:46 +080067};
68
69static int rockchip_usb_phy_power(struct rockchip_usb_phy *phy,
70 bool siddq)
71{
Heiko Stuebner605df8a2016-02-22 12:55:01 +010072 u32 val = HIWORD_UPDATE(siddq ? UOC_CON0_SIDDQ : 0, UOC_CON0_SIDDQ);
73
74 return regmap_write(phy->base->reg_base, phy->reg_offset, val);
Yunzhi Li64d11402014-12-12 23:07:46 +080075}
76
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +010077static unsigned long rockchip_usb_phy480m_recalc_rate(struct clk_hw *hw,
78 unsigned long parent_rate)
79{
80 return 480000000;
81}
82
83static void rockchip_usb_phy480m_disable(struct clk_hw *hw)
84{
85 struct rockchip_usb_phy *phy = container_of(hw,
86 struct rockchip_usb_phy,
87 clk480m_hw);
88
89 /* Power down usb phy analog blocks by set siddq 1 */
90 rockchip_usb_phy_power(phy, 1);
91}
92
93static int rockchip_usb_phy480m_enable(struct clk_hw *hw)
94{
95 struct rockchip_usb_phy *phy = container_of(hw,
96 struct rockchip_usb_phy,
97 clk480m_hw);
98
99 /* Power up usb phy analog blocks by set siddq 0 */
100 return rockchip_usb_phy_power(phy, 0);
101}
102
103static int rockchip_usb_phy480m_is_enabled(struct clk_hw *hw)
104{
105 struct rockchip_usb_phy *phy = container_of(hw,
106 struct rockchip_usb_phy,
107 clk480m_hw);
108 int ret;
109 u32 val;
110
111 ret = regmap_read(phy->base->reg_base, phy->reg_offset, &val);
112 if (ret < 0)
113 return ret;
114
Heiko Stuebner605df8a2016-02-22 12:55:01 +0100115 return (val & UOC_CON0_SIDDQ) ? 0 : 1;
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100116}
117
118static const struct clk_ops rockchip_usb_phy480m_ops = {
119 .enable = rockchip_usb_phy480m_enable,
120 .disable = rockchip_usb_phy480m_disable,
121 .is_enabled = rockchip_usb_phy480m_is_enabled,
122 .recalc_rate = rockchip_usb_phy480m_recalc_rate,
123};
124
Yunzhi Li64d11402014-12-12 23:07:46 +0800125static int rockchip_usb_phy_power_off(struct phy *_phy)
126{
127 struct rockchip_usb_phy *phy = phy_get_drvdata(_phy);
Yunzhi Li64d11402014-12-12 23:07:46 +0800128
Heiko Stuebner605df8a2016-02-22 12:55:01 +0100129 if (phy->uart_enabled)
130 return -EBUSY;
131
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100132 clk_disable_unprepare(phy->clk480m);
Yunzhi Li64d11402014-12-12 23:07:46 +0800133
134 return 0;
135}
136
137static int rockchip_usb_phy_power_on(struct phy *_phy)
138{
139 struct rockchip_usb_phy *phy = phy_get_drvdata(_phy);
Yunzhi Li64d11402014-12-12 23:07:46 +0800140
Heiko Stuebner605df8a2016-02-22 12:55:01 +0100141 if (phy->uart_enabled)
142 return -EBUSY;
143
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100144 return clk_prepare_enable(phy->clk480m);
Yunzhi Li64d11402014-12-12 23:07:46 +0800145}
146
Axel Lin4a9e5ca2015-07-15 15:33:51 +0800147static const struct phy_ops ops = {
Yunzhi Li64d11402014-12-12 23:07:46 +0800148 .power_on = rockchip_usb_phy_power_on,
149 .power_off = rockchip_usb_phy_power_off,
150 .owner = THIS_MODULE,
151};
152
Heiko Stuebner75d390f2015-11-19 22:22:22 +0100153static void rockchip_usb_phy_action(void *data)
154{
155 struct rockchip_usb_phy *rk_phy = data;
156
Heiko Stuebner605df8a2016-02-22 12:55:01 +0100157 if (!rk_phy->uart_enabled) {
158 of_clk_del_provider(rk_phy->np);
159 clk_unregister(rk_phy->clk480m);
160 }
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100161
Heiko Stuebner75d390f2015-11-19 22:22:22 +0100162 if (rk_phy->clk)
163 clk_put(rk_phy->clk);
164}
165
Heiko Stuebner97dd9102015-11-19 22:22:24 +0100166static int rockchip_usb_phy_init(struct rockchip_usb_phy_base *base,
167 struct device_node *child)
168{
169 struct rockchip_usb_phy *rk_phy;
170 unsigned int reg_offset;
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100171 const char *clk_name;
172 struct clk_init_data init;
173 int err, i;
Heiko Stuebner97dd9102015-11-19 22:22:24 +0100174
175 rk_phy = devm_kzalloc(base->dev, sizeof(*rk_phy), GFP_KERNEL);
176 if (!rk_phy)
177 return -ENOMEM;
178
179 rk_phy->base = base;
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100180 rk_phy->np = child;
Heiko Stuebner97dd9102015-11-19 22:22:24 +0100181
182 if (of_property_read_u32(child, "reg", &reg_offset)) {
183 dev_err(base->dev, "missing reg property in node %s\n",
184 child->name);
185 return -EINVAL;
186 }
187
188 rk_phy->reg_offset = reg_offset;
189
Heiko Stuebner97dd9102015-11-19 22:22:24 +0100190 rk_phy->clk = of_clk_get_by_name(child, "phyclk");
191 if (IS_ERR(rk_phy->clk))
192 rk_phy->clk = NULL;
193
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100194 i = 0;
195 init.name = NULL;
196 while (base->pdata->phys[i].reg) {
197 if (base->pdata->phys[i].reg == reg_offset) {
198 init.name = base->pdata->phys[i].pll_name;
199 break;
200 }
201 i++;
202 }
203
204 if (!init.name) {
205 dev_err(base->dev, "phy data not found\n");
206 return -EINVAL;
207 }
208
Heiko Stuebner605df8a2016-02-22 12:55:01 +0100209 if (enable_usb_uart && base->pdata->usb_uart_phy == i) {
210 dev_dbg(base->dev, "phy%d used as uart output\n", i);
211 rk_phy->uart_enabled = true;
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100212 } else {
Heiko Stuebner605df8a2016-02-22 12:55:01 +0100213 if (rk_phy->clk) {
214 clk_name = __clk_get_name(rk_phy->clk);
215 init.flags = 0;
216 init.parent_names = &clk_name;
217 init.num_parents = 1;
218 } else {
219 init.flags = CLK_IS_ROOT;
220 init.parent_names = NULL;
221 init.num_parents = 0;
222 }
223
224 init.ops = &rockchip_usb_phy480m_ops;
225 rk_phy->clk480m_hw.init = &init;
226
227 rk_phy->clk480m = clk_register(base->dev, &rk_phy->clk480m_hw);
228 if (IS_ERR(rk_phy->clk480m)) {
229 err = PTR_ERR(rk_phy->clk480m);
230 goto err_clk;
231 }
232
233 err = of_clk_add_provider(child, of_clk_src_simple_get,
234 rk_phy->clk480m);
235 if (err < 0)
236 goto err_clk_prov;
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100237 }
238
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100239 err = devm_add_action(base->dev, rockchip_usb_phy_action, rk_phy);
240 if (err)
241 goto err_devm_action;
242
Heiko Stuebner97dd9102015-11-19 22:22:24 +0100243 rk_phy->phy = devm_phy_create(base->dev, child, &ops);
244 if (IS_ERR(rk_phy->phy)) {
245 dev_err(base->dev, "failed to create PHY\n");
246 return PTR_ERR(rk_phy->phy);
247 }
248 phy_set_drvdata(rk_phy->phy, rk_phy);
249
Heiko Stuebner605df8a2016-02-22 12:55:01 +0100250 /*
251 * When acting as uart-pipe, just keep clock on otherwise
252 * only power up usb phy when it use, so disable it when init
253 */
254 if (rk_phy->uart_enabled)
255 return clk_prepare_enable(rk_phy->clk);
256 else
257 return rockchip_usb_phy_power(rk_phy, 1);
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100258
259err_devm_action:
Heiko Stuebner605df8a2016-02-22 12:55:01 +0100260 if (!rk_phy->uart_enabled)
261 of_clk_del_provider(child);
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100262err_clk_prov:
Heiko Stuebner605df8a2016-02-22 12:55:01 +0100263 if (!rk_phy->uart_enabled)
264 clk_unregister(rk_phy->clk480m);
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100265err_clk:
266 if (rk_phy->clk)
267 clk_put(rk_phy->clk);
268 return err;
Heiko Stuebner97dd9102015-11-19 22:22:24 +0100269}
270
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100271static const struct rockchip_usb_phy_pdata rk3066a_pdata = {
272 .phys = (struct rockchip_usb_phys[]){
273 { .reg = 0x17c, .pll_name = "sclk_otgphy0_480m" },
274 { .reg = 0x188, .pll_name = "sclk_otgphy1_480m" },
275 { /* sentinel */ }
276 },
277};
278
279static const struct rockchip_usb_phy_pdata rk3188_pdata = {
280 .phys = (struct rockchip_usb_phys[]){
281 { .reg = 0x10c, .pll_name = "sclk_otgphy0_480m" },
282 { .reg = 0x11c, .pll_name = "sclk_otgphy1_480m" },
283 { /* sentinel */ }
284 },
285};
286
Heiko Stuebner605df8a2016-02-22 12:55:01 +0100287#define RK3288_UOC0_CON0 0x320
288#define RK3288_UOC0_CON0_COMMON_ON_N BIT(0)
289#define RK3288_UOC0_CON0_DISABLE BIT(4)
290
291#define RK3288_UOC0_CON2 0x328
292#define RK3288_UOC0_CON2_SOFT_CON_SEL BIT(2)
293
294#define RK3288_UOC0_CON3 0x32c
295#define RK3288_UOC0_CON3_UTMI_SUSPENDN BIT(0)
296#define RK3288_UOC0_CON3_UTMI_OPMODE_NODRIVING (1 << 1)
297#define RK3288_UOC0_CON3_UTMI_OPMODE_MASK (3 << 1)
298#define RK3288_UOC0_CON3_UTMI_XCVRSEELCT_FSTRANSC (1 << 3)
299#define RK3288_UOC0_CON3_UTMI_XCVRSEELCT_MASK (3 << 3)
300#define RK3288_UOC0_CON3_UTMI_TERMSEL_FULLSPEED BIT(5)
301#define RK3288_UOC0_CON3_BYPASSDMEN BIT(6)
302#define RK3288_UOC0_CON3_BYPASSSEL BIT(7)
303
304/*
305 * Enable the bypass of uart2 data through the otg usb phy.
306 * Original description in the TRM.
307 * 1. Disable the OTG block by setting OTGDISABLE0 to 1’b1.
308 * 2. Disable the pull-up resistance on the D+ line by setting
309 * OPMODE0[1:0] to 2’b01.
310 * 3. To ensure that the XO, Bias, and PLL blocks are powered down in Suspend
311 * mode, set COMMONONN to 1’b1.
312 * 4. Place the USB PHY in Suspend mode by setting SUSPENDM0 to 1’b0.
313 * 5. Set BYPASSSEL0 to 1’b1.
314 * 6. To transmit data, controls BYPASSDMEN0, and BYPASSDMDATA0.
315 * To receive data, monitor FSVPLUS0.
316 *
317 * The actual code in the vendor kernel does some things differently.
318 */
319static int __init rk3288_init_usb_uart(struct regmap *grf)
320{
321 u32 val;
322 int ret;
323
324 /*
325 * COMMON_ON and DISABLE settings are described in the TRM,
326 * but were not present in the original code.
327 * Also disable the analog phy components to save power.
328 */
329 val = HIWORD_UPDATE(RK3288_UOC0_CON0_COMMON_ON_N
330 | RK3288_UOC0_CON0_DISABLE
331 | UOC_CON0_SIDDQ,
332 RK3288_UOC0_CON0_COMMON_ON_N
333 | RK3288_UOC0_CON0_DISABLE
334 | UOC_CON0_SIDDQ);
335 ret = regmap_write(grf, RK3288_UOC0_CON0, val);
336 if (ret)
337 return ret;
338
339 val = HIWORD_UPDATE(RK3288_UOC0_CON2_SOFT_CON_SEL,
340 RK3288_UOC0_CON2_SOFT_CON_SEL);
341 ret = regmap_write(grf, RK3288_UOC0_CON2, val);
342 if (ret)
343 return ret;
344
345 val = HIWORD_UPDATE(RK3288_UOC0_CON3_UTMI_OPMODE_NODRIVING
346 | RK3288_UOC0_CON3_UTMI_XCVRSEELCT_FSTRANSC
347 | RK3288_UOC0_CON3_UTMI_TERMSEL_FULLSPEED,
348 RK3288_UOC0_CON3_UTMI_SUSPENDN
349 | RK3288_UOC0_CON3_UTMI_OPMODE_MASK
350 | RK3288_UOC0_CON3_UTMI_XCVRSEELCT_MASK
351 | RK3288_UOC0_CON3_UTMI_TERMSEL_FULLSPEED);
352 ret = regmap_write(grf, RK3288_UOC0_CON3, val);
353 if (ret)
354 return ret;
355
356 val = HIWORD_UPDATE(RK3288_UOC0_CON3_BYPASSSEL
357 | RK3288_UOC0_CON3_BYPASSDMEN,
358 RK3288_UOC0_CON3_BYPASSSEL
359 | RK3288_UOC0_CON3_BYPASSDMEN);
360 ret = regmap_write(grf, RK3288_UOC0_CON3, val);
361 if (ret)
362 return ret;
363
364 return 0;
365}
366
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100367static const struct rockchip_usb_phy_pdata rk3288_pdata = {
368 .phys = (struct rockchip_usb_phys[]){
369 { .reg = 0x320, .pll_name = "sclk_otgphy0_480m" },
370 { .reg = 0x334, .pll_name = "sclk_otgphy1_480m" },
371 { .reg = 0x348, .pll_name = "sclk_otgphy2_480m" },
372 { /* sentinel */ }
373 },
Heiko Stuebner605df8a2016-02-22 12:55:01 +0100374 .init_usb_uart = rk3288_init_usb_uart,
375 .usb_uart_phy = 0,
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100376};
377
Yunzhi Li64d11402014-12-12 23:07:46 +0800378static int rockchip_usb_phy_probe(struct platform_device *pdev)
379{
380 struct device *dev = &pdev->dev;
Heiko Stuebner5fdbb972015-11-19 22:22:23 +0100381 struct rockchip_usb_phy_base *phy_base;
Yunzhi Li64d11402014-12-12 23:07:46 +0800382 struct phy_provider *phy_provider;
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100383 const struct of_device_id *match;
Yunzhi Li64d11402014-12-12 23:07:46 +0800384 struct device_node *child;
huang lin08db7e52015-07-17 15:29:25 +0800385 int err;
Yunzhi Li64d11402014-12-12 23:07:46 +0800386
Heiko Stuebner5fdbb972015-11-19 22:22:23 +0100387 phy_base = devm_kzalloc(dev, sizeof(*phy_base), GFP_KERNEL);
388 if (!phy_base)
389 return -ENOMEM;
390
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100391 match = of_match_device(dev->driver->of_match_table, dev);
392 if (!match || !match->data) {
393 dev_err(dev, "missing phy data\n");
394 return -EINVAL;
395 }
396
397 phy_base->pdata = match->data;
398
Heiko Stuebner5fdbb972015-11-19 22:22:23 +0100399 phy_base->dev = dev;
400 phy_base->reg_base = syscon_regmap_lookup_by_phandle(dev->of_node,
401 "rockchip,grf");
402 if (IS_ERR(phy_base->reg_base)) {
Yunzhi Li64d11402014-12-12 23:07:46 +0800403 dev_err(&pdev->dev, "Missing rockchip,grf property\n");
Heiko Stuebner5fdbb972015-11-19 22:22:23 +0100404 return PTR_ERR(phy_base->reg_base);
Yunzhi Li64d11402014-12-12 23:07:46 +0800405 }
406
407 for_each_available_child_of_node(dev->of_node, child) {
Heiko Stuebner97dd9102015-11-19 22:22:24 +0100408 err = rockchip_usb_phy_init(phy_base, child);
409 if (err) {
410 of_node_put(child);
Heiko Stuebner75d390f2015-11-19 22:22:22 +0100411 return err;
Yunzhi Li64d11402014-12-12 23:07:46 +0800412 }
Yunzhi Li64d11402014-12-12 23:07:46 +0800413 }
414
415 phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);
416 return PTR_ERR_OR_ZERO(phy_provider);
417}
418
419static const struct of_device_id rockchip_usb_phy_dt_ids[] = {
Heiko Stuebnerb74fe7c2015-11-19 22:22:26 +0100420 { .compatible = "rockchip,rk3066a-usb-phy", .data = &rk3066a_pdata },
421 { .compatible = "rockchip,rk3188-usb-phy", .data = &rk3188_pdata },
422 { .compatible = "rockchip,rk3288-usb-phy", .data = &rk3288_pdata },
Yunzhi Li64d11402014-12-12 23:07:46 +0800423 {}
424};
425
426MODULE_DEVICE_TABLE(of, rockchip_usb_phy_dt_ids);
427
428static struct platform_driver rockchip_usb_driver = {
429 .probe = rockchip_usb_phy_probe,
430 .driver = {
431 .name = "rockchip-usb-phy",
Yunzhi Li64d11402014-12-12 23:07:46 +0800432 .of_match_table = rockchip_usb_phy_dt_ids,
433 },
434};
435
436module_platform_driver(rockchip_usb_driver);
437
Heiko Stuebner605df8a2016-02-22 12:55:01 +0100438#ifndef MODULE
439static int __init rockchip_init_usb_uart(void)
440{
441 const struct of_device_id *match;
442 const struct rockchip_usb_phy_pdata *data;
443 struct device_node *np;
444 struct regmap *grf;
445 int ret;
446
447 if (!enable_usb_uart)
448 return 0;
449
450 np = of_find_matching_node_and_match(NULL, rockchip_usb_phy_dt_ids,
451 &match);
452 if (!np) {
453 pr_err("%s: failed to find usbphy node\n", __func__);
454 return -ENOTSUPP;
455 }
456
457 pr_debug("%s: using settings for %s\n", __func__, match->compatible);
458 data = match->data;
459
460 if (!data->init_usb_uart) {
461 pr_err("%s: usb-uart not available on %s\n",
462 __func__, match->compatible);
463 return -ENOTSUPP;
464 }
465
466 grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf");
467 if (IS_ERR(grf)) {
468 pr_err("%s: Missing rockchip,grf property, %lu\n",
469 __func__, PTR_ERR(grf));
470 return PTR_ERR(grf);
471 }
472
473 ret = data->init_usb_uart(grf);
474 if (ret) {
475 pr_err("%s: could not init usb_uart, %d\n", __func__, ret);
476 enable_usb_uart = 0;
477 return ret;
478 }
479
480 return 0;
481}
482early_initcall(rockchip_init_usb_uart);
483
484static int __init rockchip_usb_uart(char *buf)
485{
486 enable_usb_uart = true;
487 return 0;
488}
489early_param("rockchip.usb_uart", rockchip_usb_uart);
490#endif
491
Yunzhi Li64d11402014-12-12 23:07:46 +0800492MODULE_AUTHOR("Yunzhi Li <lyz@rock-chips.com>");
493MODULE_DESCRIPTION("Rockchip USB 2.0 PHY driver");
494MODULE_LICENSE("GPL v2");