phy-rockchip-naneng-combphy.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Rockchip USB3.0/PCIe Gen2/SATA/SGMII combphy driver
  4. *
  5. * Copyright (C) 2021 Rockchip Electronics Co., Ltd.
  6. */
  7. #include <common.h>
  8. #include <clk.h>
  9. #include <dm.h>
  10. #include <dm/lists.h>
  11. #include <dt-bindings/phy/phy.h>
  12. #include <generic-phy.h>
  13. #include <syscon.h>
  14. #include <asm/io.h>
  15. #include <asm/arch-rockchip/clock.h>
  16. #include <regmap.h>
  17. #include <reset-uclass.h>
  18. #include <dm/device_compat.h>
  19. #define BIT_WRITEABLE_SHIFT 16
  20. struct rockchip_combphy_priv;
  21. struct combphy_reg {
  22. u16 offset;
  23. u16 bitend;
  24. u16 bitstart;
  25. u16 disable;
  26. u16 enable;
  27. };
  28. struct rockchip_combphy_grfcfg {
  29. struct combphy_reg pcie_mode_set;
  30. struct combphy_reg usb_mode_set;
  31. struct combphy_reg sgmii_mode_set;
  32. struct combphy_reg qsgmii_mode_set;
  33. struct combphy_reg pipe_rxterm_set;
  34. struct combphy_reg pipe_txelec_set;
  35. struct combphy_reg pipe_txcomp_set;
  36. struct combphy_reg pipe_clk_25m;
  37. struct combphy_reg pipe_clk_100m;
  38. struct combphy_reg pipe_phymode_sel;
  39. struct combphy_reg pipe_rate_sel;
  40. struct combphy_reg pipe_rxterm_sel;
  41. struct combphy_reg pipe_txelec_sel;
  42. struct combphy_reg pipe_txcomp_sel;
  43. struct combphy_reg pipe_clk_ext;
  44. struct combphy_reg pipe_sel_usb;
  45. struct combphy_reg pipe_sel_qsgmii;
  46. struct combphy_reg pipe_phy_status;
  47. struct combphy_reg con0_for_pcie;
  48. struct combphy_reg con1_for_pcie;
  49. struct combphy_reg con2_for_pcie;
  50. struct combphy_reg con3_for_pcie;
  51. struct combphy_reg con0_for_sata;
  52. struct combphy_reg con1_for_sata;
  53. struct combphy_reg con2_for_sata;
  54. struct combphy_reg con3_for_sata;
  55. struct combphy_reg pipe_con0_for_sata;
  56. struct combphy_reg pipe_con1_for_sata;
  57. struct combphy_reg pipe_sgmii_mac_sel;
  58. struct combphy_reg pipe_xpcs_phy_ready;
  59. struct combphy_reg u3otg0_port_en;
  60. struct combphy_reg u3otg1_port_en;
  61. };
  62. struct rockchip_combphy_cfg {
  63. const struct rockchip_combphy_grfcfg *grfcfg;
  64. int (*combphy_cfg)(struct rockchip_combphy_priv *priv);
  65. };
  66. struct rockchip_combphy_priv {
  67. u32 mode;
  68. void __iomem *mmio;
  69. struct udevice *dev;
  70. struct regmap *pipe_grf;
  71. struct regmap *phy_grf;
  72. struct phy *phy;
  73. struct reset_ctl_bulk phy_rsts;
  74. struct clk ref_clk;
  75. const struct rockchip_combphy_cfg *cfg;
  76. };
  77. static int param_write(struct regmap *base,
  78. const struct combphy_reg *reg, bool en)
  79. {
  80. u32 val, mask, tmp;
  81. tmp = en ? reg->enable : reg->disable;
  82. mask = GENMASK(reg->bitend, reg->bitstart);
  83. val = (tmp << reg->bitstart) | (mask << BIT_WRITEABLE_SHIFT);
  84. return regmap_write(base, reg->offset, val);
  85. }
  86. static int rockchip_combphy_pcie_init(struct rockchip_combphy_priv *priv)
  87. {
  88. int ret = 0;
  89. if (priv->cfg->combphy_cfg) {
  90. ret = priv->cfg->combphy_cfg(priv);
  91. if (ret) {
  92. dev_err(priv->dev, "failed to init phy for pcie\n");
  93. return ret;
  94. }
  95. }
  96. return ret;
  97. }
  98. static int rockchip_combphy_usb3_init(struct rockchip_combphy_priv *priv)
  99. {
  100. int ret = 0;
  101. if (priv->cfg->combphy_cfg) {
  102. ret = priv->cfg->combphy_cfg(priv);
  103. if (ret) {
  104. dev_err(priv->dev, "failed to init phy for usb3\n");
  105. return ret;
  106. }
  107. }
  108. return ret;
  109. }
  110. static int rockchip_combphy_sata_init(struct rockchip_combphy_priv *priv)
  111. {
  112. int ret = 0;
  113. if (priv->cfg->combphy_cfg) {
  114. ret = priv->cfg->combphy_cfg(priv);
  115. if (ret) {
  116. dev_err(priv->dev, "failed to init phy for sata\n");
  117. return ret;
  118. }
  119. }
  120. return ret;
  121. }
  122. static int rockchip_combphy_sgmii_init(struct rockchip_combphy_priv *priv)
  123. {
  124. int ret = 0;
  125. if (priv->cfg->combphy_cfg) {
  126. ret = priv->cfg->combphy_cfg(priv);
  127. if (ret) {
  128. dev_err(priv->dev, "failed to init phy for sgmii\n");
  129. return ret;
  130. }
  131. }
  132. return ret;
  133. }
  134. static int rockchip_combphy_set_mode(struct rockchip_combphy_priv *priv)
  135. {
  136. switch (priv->mode) {
  137. case PHY_TYPE_PCIE:
  138. rockchip_combphy_pcie_init(priv);
  139. break;
  140. case PHY_TYPE_USB3:
  141. rockchip_combphy_usb3_init(priv);
  142. break;
  143. case PHY_TYPE_SATA:
  144. rockchip_combphy_sata_init(priv);
  145. break;
  146. case PHY_TYPE_SGMII:
  147. case PHY_TYPE_QSGMII:
  148. return rockchip_combphy_sgmii_init(priv);
  149. default:
  150. dev_err(priv->dev, "incompatible PHY type\n");
  151. return -EINVAL;
  152. }
  153. return 0;
  154. }
  155. static int rockchip_combphy_init(struct phy *phy)
  156. {
  157. struct rockchip_combphy_priv *priv = dev_get_priv(phy->dev);
  158. int ret;
  159. ret = clk_enable(&priv->ref_clk);
  160. if (ret < 0 && ret != -ENOSYS)
  161. return ret;
  162. ret = rockchip_combphy_set_mode(priv);
  163. if (ret)
  164. goto err_clk;
  165. reset_deassert_bulk(&priv->phy_rsts);
  166. return 0;
  167. err_clk:
  168. clk_disable(&priv->ref_clk);
  169. return ret;
  170. }
  171. static int rockchip_combphy_exit(struct phy *phy)
  172. {
  173. struct rockchip_combphy_priv *priv = dev_get_priv(phy->dev);
  174. clk_disable(&priv->ref_clk);
  175. reset_assert_bulk(&priv->phy_rsts);
  176. return 0;
  177. }
  178. static int rockchip_combphy_xlate(struct phy *phy, struct ofnode_phandle_args *args)
  179. {
  180. struct rockchip_combphy_priv *priv = dev_get_priv(phy->dev);
  181. if (args->args_count != 1) {
  182. pr_err("invalid number of arguments\n");
  183. return -EINVAL;
  184. }
  185. priv->mode = args->args[0];
  186. return 0;
  187. }
  188. static const struct phy_ops rochchip_combphy_ops = {
  189. .init = rockchip_combphy_init,
  190. .exit = rockchip_combphy_exit,
  191. .of_xlate = rockchip_combphy_xlate,
  192. };
  193. static int rockchip_combphy_parse_dt(struct udevice *dev,
  194. struct rockchip_combphy_priv *priv)
  195. {
  196. struct udevice *syscon;
  197. int ret;
  198. ret = uclass_get_device_by_phandle(UCLASS_SYSCON, dev, "rockchip,pipe-grf", &syscon);
  199. if (ret) {
  200. dev_err(dev, "failed to find peri_ctrl pipe-grf regmap");
  201. return ret;
  202. }
  203. priv->pipe_grf = syscon_get_regmap(syscon);
  204. ret = uclass_get_device_by_phandle(UCLASS_SYSCON, dev, "rockchip,pipe-phy-grf", &syscon);
  205. if (ret) {
  206. dev_err(dev, "failed to find peri_ctrl pipe-phy-grf regmap\n");
  207. return ret;
  208. }
  209. priv->phy_grf = syscon_get_regmap(syscon);
  210. ret = clk_get_by_index(dev, 0, &priv->ref_clk);
  211. if (ret) {
  212. dev_err(dev, "failed to find ref clock\n");
  213. return PTR_ERR(&priv->ref_clk);
  214. }
  215. ret = reset_get_bulk(dev, &priv->phy_rsts);
  216. if (ret) {
  217. dev_err(dev, "no phy reset control specified\n");
  218. return ret;
  219. }
  220. return 0;
  221. }
  222. static int rockchip_combphy_probe(struct udevice *udev)
  223. {
  224. struct rockchip_combphy_priv *priv = dev_get_priv(udev);
  225. const struct rockchip_combphy_cfg *phy_cfg;
  226. priv->mmio = (void __iomem *)dev_read_addr(udev);
  227. if (IS_ERR(priv->mmio))
  228. return PTR_ERR(priv->mmio);
  229. phy_cfg = (const struct rockchip_combphy_cfg *)dev_get_driver_data(udev);
  230. if (!phy_cfg) {
  231. dev_err(udev, "No OF match data provided\n");
  232. return -EINVAL;
  233. }
  234. priv->dev = udev;
  235. priv->mode = PHY_TYPE_SATA;
  236. priv->cfg = phy_cfg;
  237. return rockchip_combphy_parse_dt(udev, priv);
  238. }
  239. static int rk3568_combphy_cfg(struct rockchip_combphy_priv *priv)
  240. {
  241. const struct rockchip_combphy_grfcfg *cfg = priv->cfg->grfcfg;
  242. u32 val;
  243. switch (priv->mode) {
  244. case PHY_TYPE_PCIE:
  245. /* Set SSC downward spread spectrum */
  246. val = readl(priv->mmio + (0x1f << 2));
  247. val &= ~GENMASK(5, 4);
  248. val |= 0x01 << 4;
  249. writel(val, priv->mmio + 0x7c);
  250. param_write(priv->phy_grf, &cfg->con0_for_pcie, true);
  251. param_write(priv->phy_grf, &cfg->con1_for_pcie, true);
  252. param_write(priv->phy_grf, &cfg->con2_for_pcie, true);
  253. param_write(priv->phy_grf, &cfg->con3_for_pcie, true);
  254. break;
  255. case PHY_TYPE_USB3:
  256. /* Set SSC downward spread spectrum */
  257. val = readl(priv->mmio + (0x1f << 2));
  258. val &= ~GENMASK(5, 4);
  259. val |= 0x01 << 4;
  260. writel(val, priv->mmio + 0x7c);
  261. /* Enable adaptive CTLE for USB3.0 Rx */
  262. val = readl(priv->mmio + (0x0e << 2));
  263. val &= ~GENMASK(0, 0);
  264. val |= 0x01;
  265. writel(val, priv->mmio + (0x0e << 2));
  266. /* Set PLL KVCO fine tuning signals */
  267. val = readl(priv->mmio + (0x20 << 2));
  268. val &= ~(0x7 << 2);
  269. val |= 0x2 << 2;
  270. writel(val, priv->mmio + (0x20 << 2));
  271. /* Set PLL LPF R1 to su_trim[10:7]=1001 */
  272. writel(0x4, priv->mmio + (0xb << 2));
  273. /* Set PLL input clock divider 1/2 */
  274. val = readl(priv->mmio + (0x5 << 2));
  275. val &= ~(0x3 << 6);
  276. val |= 0x1 << 6;
  277. writel(val, priv->mmio + (0x5 << 2));
  278. /* Set PLL loop divider */
  279. writel(0x32, priv->mmio + (0x11 << 2));
  280. /* Set PLL KVCO to min and set PLL charge pump current to max */
  281. writel(0xf0, priv->mmio + (0xa << 2));
  282. param_write(priv->phy_grf, &cfg->pipe_sel_usb, true);
  283. param_write(priv->phy_grf, &cfg->pipe_txcomp_sel, false);
  284. param_write(priv->phy_grf, &cfg->pipe_txelec_sel, false);
  285. param_write(priv->phy_grf, &cfg->usb_mode_set, true);
  286. break;
  287. case PHY_TYPE_SATA:
  288. writel(0x41, priv->mmio + 0x38);
  289. writel(0x8F, priv->mmio + 0x18);
  290. param_write(priv->phy_grf, &cfg->con0_for_sata, true);
  291. param_write(priv->phy_grf, &cfg->con1_for_sata, true);
  292. param_write(priv->phy_grf, &cfg->con2_for_sata, true);
  293. param_write(priv->phy_grf, &cfg->con3_for_sata, true);
  294. param_write(priv->pipe_grf, &cfg->pipe_con0_for_sata, true);
  295. break;
  296. case PHY_TYPE_SGMII:
  297. param_write(priv->pipe_grf, &cfg->pipe_xpcs_phy_ready, true);
  298. param_write(priv->phy_grf, &cfg->pipe_phymode_sel, true);
  299. param_write(priv->phy_grf, &cfg->pipe_sel_qsgmii, true);
  300. param_write(priv->phy_grf, &cfg->sgmii_mode_set, true);
  301. break;
  302. case PHY_TYPE_QSGMII:
  303. param_write(priv->pipe_grf, &cfg->pipe_xpcs_phy_ready, true);
  304. param_write(priv->phy_grf, &cfg->pipe_phymode_sel, true);
  305. param_write(priv->phy_grf, &cfg->pipe_rate_sel, true);
  306. param_write(priv->phy_grf, &cfg->pipe_sel_qsgmii, true);
  307. param_write(priv->phy_grf, &cfg->qsgmii_mode_set, true);
  308. break;
  309. default:
  310. pr_err("%s, phy-type %d\n", __func__, priv->mode);
  311. return -EINVAL;
  312. }
  313. /* The default ref clock is 25Mhz */
  314. param_write(priv->phy_grf, &cfg->pipe_clk_25m, true);
  315. if (dev_read_bool(priv->dev, "rockchip,enable-ssc")) {
  316. val = readl(priv->mmio + (0x7 << 2));
  317. val |= BIT(4);
  318. writel(val, priv->mmio + (0x7 << 2));
  319. }
  320. return 0;
  321. }
  322. static const struct rockchip_combphy_grfcfg rk3568_combphy_grfcfgs = {
  323. /* pipe-phy-grf */
  324. .pcie_mode_set = { 0x0000, 5, 0, 0x00, 0x11 },
  325. .usb_mode_set = { 0x0000, 5, 0, 0x00, 0x04 },
  326. .sgmii_mode_set = { 0x0000, 5, 0, 0x00, 0x01 },
  327. .qsgmii_mode_set = { 0x0000, 5, 0, 0x00, 0x21 },
  328. .pipe_rxterm_set = { 0x0000, 12, 12, 0x00, 0x01 },
  329. .pipe_txelec_set = { 0x0004, 1, 1, 0x00, 0x01 },
  330. .pipe_txcomp_set = { 0x0004, 4, 4, 0x00, 0x01 },
  331. .pipe_clk_25m = { 0x0004, 14, 13, 0x00, 0x01 },
  332. .pipe_clk_100m = { 0x0004, 14, 13, 0x00, 0x02 },
  333. .pipe_phymode_sel = { 0x0008, 1, 1, 0x00, 0x01 },
  334. .pipe_rate_sel = { 0x0008, 2, 2, 0x00, 0x01 },
  335. .pipe_rxterm_sel = { 0x0008, 8, 8, 0x00, 0x01 },
  336. .pipe_txelec_sel = { 0x0008, 12, 12, 0x00, 0x01 },
  337. .pipe_txcomp_sel = { 0x0008, 15, 15, 0x00, 0x01 },
  338. .pipe_clk_ext = { 0x000c, 9, 8, 0x02, 0x01 },
  339. .pipe_sel_usb = { 0x000c, 14, 13, 0x00, 0x01 },
  340. .pipe_sel_qsgmii = { 0x000c, 15, 13, 0x00, 0x07 },
  341. .pipe_phy_status = { 0x0034, 6, 6, 0x01, 0x00 },
  342. .con0_for_pcie = { 0x0000, 15, 0, 0x00, 0x1000 },
  343. .con1_for_pcie = { 0x0004, 15, 0, 0x00, 0x0000 },
  344. .con2_for_pcie = { 0x0008, 15, 0, 0x00, 0x0101 },
  345. .con3_for_pcie = { 0x000c, 15, 0, 0x00, 0x0200 },
  346. .con0_for_sata = { 0x0000, 15, 0, 0x00, 0x0119 },
  347. .con1_for_sata = { 0x0004, 15, 0, 0x00, 0x0040 },
  348. .con2_for_sata = { 0x0008, 15, 0, 0x00, 0x80c3 },
  349. .con3_for_sata = { 0x000c, 15, 0, 0x00, 0x4407 },
  350. /* pipe-grf */
  351. .pipe_con0_for_sata = { 0x0000, 15, 0, 0x00, 0x2220 },
  352. .pipe_sgmii_mac_sel = { 0x0040, 1, 1, 0x00, 0x01 },
  353. .pipe_xpcs_phy_ready = { 0x0040, 2, 2, 0x00, 0x01 },
  354. .u3otg0_port_en = { 0x0104, 15, 0, 0x0181, 0x1100 },
  355. .u3otg1_port_en = { 0x0144, 15, 0, 0x0181, 0x1100 },
  356. };
  357. static const struct rockchip_combphy_cfg rk3568_combphy_cfgs = {
  358. .grfcfg = &rk3568_combphy_grfcfgs,
  359. .combphy_cfg = rk3568_combphy_cfg,
  360. };
  361. static int rk3588_combphy_cfg(struct rockchip_combphy_priv *priv)
  362. {
  363. const struct rockchip_combphy_grfcfg *cfg = priv->cfg->grfcfg;
  364. u32 val;
  365. switch (priv->mode) {
  366. case PHY_TYPE_PCIE:
  367. param_write(priv->phy_grf, &cfg->con0_for_pcie, true);
  368. param_write(priv->phy_grf, &cfg->con1_for_pcie, true);
  369. param_write(priv->phy_grf, &cfg->con2_for_pcie, true);
  370. param_write(priv->phy_grf, &cfg->con3_for_pcie, true);
  371. break;
  372. case PHY_TYPE_USB3:
  373. param_write(priv->phy_grf, &cfg->pipe_txcomp_sel, false);
  374. param_write(priv->phy_grf, &cfg->pipe_txelec_sel, false);
  375. param_write(priv->phy_grf, &cfg->usb_mode_set, true);
  376. break;
  377. case PHY_TYPE_SATA:
  378. param_write(priv->phy_grf, &cfg->con0_for_sata, true);
  379. param_write(priv->phy_grf, &cfg->con1_for_sata, true);
  380. param_write(priv->phy_grf, &cfg->con2_for_sata, true);
  381. param_write(priv->phy_grf, &cfg->con3_for_sata, true);
  382. param_write(priv->pipe_grf, &cfg->pipe_con0_for_sata, true);
  383. param_write(priv->pipe_grf, &cfg->pipe_con1_for_sata, true);
  384. break;
  385. case PHY_TYPE_SGMII:
  386. case PHY_TYPE_QSGMII:
  387. default:
  388. dev_err(priv->dev, "incompatible PHY type\n");
  389. return -EINVAL;
  390. }
  391. /* 100MHz refclock signal is good */
  392. clk_set_rate(&priv->ref_clk, 100000000);
  393. param_write(priv->phy_grf, &cfg->pipe_clk_100m, true);
  394. if (priv->mode == PHY_TYPE_PCIE) {
  395. /* PLL KVCO tuning fine */
  396. val = readl(priv->mmio + (0x20 << 2));
  397. val &= ~GENMASK(4, 2);
  398. val |= 0x4 << 2;
  399. writel(val, priv->mmio + (0x20 << 2));
  400. /* Set up rx_trim: PLL LPF C1 85pf R1 1.25kohm */
  401. val = 0x4c;
  402. writel(val, priv->mmio + (0x1b << 2));
  403. /* Set up su_trim: T3 */
  404. val = 0xb0;
  405. writel(val, priv->mmio + (0xa << 2));
  406. val = 0x47;
  407. writel(val, priv->mmio + (0xb << 2));
  408. val = 0x57;
  409. writel(val, priv->mmio + (0xd << 2));
  410. }
  411. return 0;
  412. }
  413. static const struct rockchip_combphy_grfcfg rk3588_combphy_grfcfgs = {
  414. /* pipe-phy-grf */
  415. .pcie_mode_set = { 0x0000, 5, 0, 0x00, 0x11 },
  416. .usb_mode_set = { 0x0000, 5, 0, 0x00, 0x04 },
  417. .pipe_rxterm_set = { 0x0000, 12, 12, 0x00, 0x01 },
  418. .pipe_txelec_set = { 0x0004, 1, 1, 0x00, 0x01 },
  419. .pipe_txcomp_set = { 0x0004, 4, 4, 0x00, 0x01 },
  420. .pipe_clk_25m = { 0x0004, 14, 13, 0x00, 0x01 },
  421. .pipe_clk_100m = { 0x0004, 14, 13, 0x00, 0x02 },
  422. .pipe_rxterm_sel = { 0x0008, 8, 8, 0x00, 0x01 },
  423. .pipe_txelec_sel = { 0x0008, 12, 12, 0x00, 0x01 },
  424. .pipe_txcomp_sel = { 0x0008, 15, 15, 0x00, 0x01 },
  425. .pipe_clk_ext = { 0x000c, 9, 8, 0x02, 0x01 },
  426. .pipe_phy_status = { 0x0034, 6, 6, 0x01, 0x00 },
  427. .con0_for_pcie = { 0x0000, 15, 0, 0x00, 0x1000 },
  428. .con1_for_pcie = { 0x0004, 15, 0, 0x00, 0x0000 },
  429. .con2_for_pcie = { 0x0008, 15, 0, 0x00, 0x0101 },
  430. .con3_for_pcie = { 0x000c, 15, 0, 0x00, 0x0200 },
  431. .con0_for_sata = { 0x0000, 15, 0, 0x00, 0x0129 },
  432. .con1_for_sata = { 0x0004, 15, 0, 0x00, 0x0040 },
  433. .con2_for_sata = { 0x0008, 15, 0, 0x00, 0x80c1 },
  434. .con3_for_sata = { 0x000c, 15, 0, 0x00, 0x0407 },
  435. /* pipe-grf */
  436. .pipe_con0_for_sata = { 0x0000, 11, 5, 0x00, 0x22 },
  437. .pipe_con1_for_sata = { 0x0000, 2, 0, 0x00, 0x2 },
  438. };
  439. static const struct rockchip_combphy_cfg rk3588_combphy_cfgs = {
  440. .grfcfg = &rk3588_combphy_grfcfgs,
  441. .combphy_cfg = rk3588_combphy_cfg,
  442. };
  443. static const struct udevice_id rockchip_combphy_ids[] = {
  444. {
  445. .compatible = "rockchip,rk3568-naneng-combphy",
  446. .data = (ulong)&rk3568_combphy_cfgs
  447. },
  448. {
  449. .compatible = "rockchip,rk3588-naneng-combphy",
  450. .data = (ulong)&rk3588_combphy_cfgs
  451. },
  452. { }
  453. };
  454. U_BOOT_DRIVER(rockchip_naneng_combphy) = {
  455. .name = "naneng-combphy",
  456. .id = UCLASS_PHY,
  457. .of_match = rockchip_combphy_ids,
  458. .ops = &rochchip_combphy_ops,
  459. .probe = rockchip_combphy_probe,
  460. .priv_auto = sizeof(struct rockchip_combphy_priv),
  461. };