Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: qcom: msm8974: clean up USB nodes

Rename "otg" label to "usb" to group it with other usb nodes and also
because "usb" makes more sense for a USB controller.

And now we can also better use the usb_hsX_phy labels instead of having
the ulpi -> phy@X structure in every dts.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221128171623.825572-1-luca@z3ntu.xyz

authored by

Luca Weiss and committed by
Bjorn Andersson
08b37b2a 1477cca8

+135 -147
+20 -22
arch/arm/boot/dts/qcom-apq8074-dragonboard.dts
··· 35 35 }; 36 36 }; 37 37 38 - &otg { 39 - status = "okay"; 40 - 41 - phys = <&usb_hs2_phy>; 42 - phy-select = <&tcsr 0xb000 1>; 43 - extcon = <&smbb>, <&usb_id>; 44 - vbus-supply = <&chg_otg>; 45 - hnp-disable; 46 - srp-disable; 47 - adp-disable; 48 - 49 - ulpi { 50 - phy@b { 51 - status = "okay"; 52 - v3p3-supply = <&pm8941_l24>; 53 - v1p8-supply = <&pm8941_l6>; 54 - extcon = <&smbb>; 55 - qcom,init-seq = /bits/ 8 <0x1 0x63>; 56 - }; 57 - }; 58 - }; 59 - 60 38 &rpm_requests { 61 39 regulators-0 { 62 40 compatible = "qcom,rpm-pm8841-regulators"; ··· 284 306 bias-disable; 285 307 }; 286 308 }; 309 + }; 310 + 311 + &usb { 312 + status = "okay"; 313 + 314 + phys = <&usb_hs2_phy>; 315 + phy-select = <&tcsr 0xb000 1>; 316 + extcon = <&smbb>, <&usb_id>; 317 + vbus-supply = <&chg_otg>; 318 + hnp-disable; 319 + srp-disable; 320 + adp-disable; 321 + }; 322 + 323 + &usb_hs2_phy { 324 + status = "okay"; 325 + v3p3-supply = <&pm8941_l24>; 326 + v1p8-supply = <&pm8941_l6>; 327 + extcon = <&smbb>; 328 + qcom,init-seq = /bits/ 8 <0x1 0x63>; 287 329 };
+23 -25
arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
··· 248 248 status = "okay"; 249 249 }; 250 250 251 - &otg { 252 - status = "okay"; 253 - 254 - phys = <&usb_hs1_phy>; 255 - phy-select = <&tcsr 0xb000 0>; 256 - 257 - extcon = <&charger>, <&usb_id>; 258 - vbus-supply = <&usb_otg_vbus>; 259 - 260 - hnp-disable; 261 - srp-disable; 262 - adp-disable; 263 - 264 - ulpi { 265 - phy@a { 266 - status = "okay"; 267 - 268 - v1p8-supply = <&pm8941_l6>; 269 - v3p3-supply = <&pm8941_l24>; 270 - 271 - qcom,init-seq = /bits/ 8 <0x1 0x64>; 272 - }; 273 - }; 274 - }; 275 - 276 251 &pm8941_gpios { 277 252 gpio_keys_pin_a: gpio-keys-active-state { 278 253 pins = "gpio2", "gpio3"; ··· 626 651 function = "gpio"; 627 652 }; 628 653 }; 654 + }; 655 + 656 + &usb { 657 + status = "okay"; 658 + 659 + phys = <&usb_hs1_phy>; 660 + phy-select = <&tcsr 0xb000 0>; 661 + 662 + extcon = <&charger>, <&usb_id>; 663 + vbus-supply = <&usb_otg_vbus>; 664 + 665 + hnp-disable; 666 + srp-disable; 667 + adp-disable; 668 + }; 669 + 670 + &usb_hs1_phy { 671 + status = "okay"; 672 + 673 + v1p8-supply = <&pm8941_l6>; 674 + v3p3-supply = <&pm8941_l24>; 675 + 676 + qcom,init-seq = /bits/ 8 <0x1 0x64>; 629 677 };
+23 -25
arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi
··· 132 132 /* sii8334 MHL HDMI bridge */ 133 133 }; 134 134 135 - &otg { 136 - status = "okay"; 137 - 138 - phys = <&usb_hs1_phy>; 139 - phy-select = <&tcsr 0xb000 0>; 140 - extcon = <&smbb>, <&usb_id>; 141 - vbus-supply = <&chg_otg>; 142 - 143 - hnp-disable; 144 - srp-disable; 145 - adp-disable; 146 - 147 - ulpi { 148 - phy@a { 149 - status = "okay"; 150 - 151 - v1p8-supply = <&pm8941_l6>; 152 - v3p3-supply = <&pm8941_l24>; 153 - 154 - extcon = <&smbb>; 155 - qcom,init-seq = /bits/ 8 <0x1 0x64>; 156 - }; 157 - }; 158 - }; 159 - 160 135 &pm8941_coincell { 161 136 status = "okay"; 162 137 qcom,rset-ohms = <2100>; ··· 459 484 bias-disable; 460 485 }; 461 486 }; 487 + }; 488 + 489 + &usb { 490 + status = "okay"; 491 + 492 + phys = <&usb_hs1_phy>; 493 + phy-select = <&tcsr 0xb000 0>; 494 + extcon = <&smbb>, <&usb_id>; 495 + vbus-supply = <&chg_otg>; 496 + 497 + hnp-disable; 498 + srp-disable; 499 + adp-disable; 500 + }; 501 + 502 + &usb_hs1_phy { 503 + status = "okay"; 504 + 505 + v1p8-supply = <&pm8941_l6>; 506 + v3p3-supply = <&pm8941_l24>; 507 + 508 + extcon = <&smbb>; 509 + qcom,init-seq = /bits/ 8 <0x1 0x64>; 462 510 };
+3 -3
arch/arm/boot/dts/qcom-msm8974.dtsi
··· 653 653 #size-cells = <0>; 654 654 }; 655 655 656 - otg: usb@f9a55000 { 656 + usb: usb@f9a55000 { 657 657 compatible = "qcom,ci-hdrc"; 658 658 reg = <0xf9a55000 0x200>, 659 659 <0xf9a55200 0x200>; ··· 679 679 #phy-cells = <0>; 680 680 clocks = <&xo_board>, <&gcc GCC_USB2A_PHY_SLEEP_CLK>; 681 681 clock-names = "ref", "sleep"; 682 - resets = <&gcc GCC_USB2A_PHY_BCR>, <&otg 0>; 682 + resets = <&gcc GCC_USB2A_PHY_BCR>, <&usb 0>; 683 683 reset-names = "phy", "por"; 684 684 status = "disabled"; 685 685 }; ··· 690 690 #phy-cells = <0>; 691 691 clocks = <&xo_board>, <&gcc GCC_USB2B_PHY_SLEEP_CLK>; 692 692 clock-names = "ref", "sleep"; 693 - resets = <&gcc GCC_USB2B_PHY_BCR>, <&otg 1>; 693 + resets = <&gcc GCC_USB2B_PHY_BCR>, <&usb 1>; 694 694 reset-names = "phy", "por"; 695 695 status = "disabled"; 696 696 };
+23 -25
arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts
··· 86 86 }; 87 87 }; 88 88 89 - &otg { 90 - status = "okay"; 91 - 92 - phys = <&usb_hs1_phy>; 93 - phy-select = <&tcsr 0xb000 0>; 94 - extcon = <&smbb>, <&usb_id>; 95 - vbus-supply = <&chg_otg>; 96 - 97 - hnp-disable; 98 - srp-disable; 99 - adp-disable; 100 - 101 - ulpi { 102 - phy@a { 103 - status = "okay"; 104 - 105 - v1p8-supply = <&pm8941_l6>; 106 - v3p3-supply = <&pm8941_l24>; 107 - 108 - extcon = <&smbb>; 109 - qcom,init-seq = /bits/ 8 <0x1 0x64>; 110 - }; 111 - }; 112 - }; 113 - 114 89 &pm8941_gpios { 115 90 gpio_keys_pin_a: gpio-keys-active-state { 116 91 pins = "gpio1", "gpio2", "gpio5"; ··· 437 462 bias-pull-down; 438 463 }; 439 464 }; 465 + }; 466 + 467 + &usb { 468 + status = "okay"; 469 + 470 + phys = <&usb_hs1_phy>; 471 + phy-select = <&tcsr 0xb000 0>; 472 + extcon = <&smbb>, <&usb_id>; 473 + vbus-supply = <&chg_otg>; 474 + 475 + hnp-disable; 476 + srp-disable; 477 + adp-disable; 478 + }; 479 + 480 + &usb_hs1_phy { 481 + status = "okay"; 482 + 483 + v1p8-supply = <&pm8941_l6>; 484 + v3p3-supply = <&pm8941_l24>; 485 + 486 + extcon = <&smbb>; 487 + qcom,init-seq = /bits/ 8 <0x1 0x64>; 440 488 };
+20 -22
arch/arm/boot/dts/qcom-msm8974pro-samsung-klte.dts
··· 376 376 status = "okay"; 377 377 }; 378 378 379 - &otg { 380 - status = "okay"; 381 - 382 - phys = <&usb_hs1_phy>; 383 - phy-select = <&tcsr 0xb000 0>; 384 - 385 - hnp-disable; 386 - srp-disable; 387 - adp-disable; 388 - 389 - ulpi { 390 - phy@a { 391 - status = "okay"; 392 - 393 - v1p8-supply = <&pma8084_l6>; 394 - v3p3-supply = <&pma8084_l24>; 395 - 396 - qcom,init-seq = /bits/ 8 <0x1 0x64>; 397 - }; 398 - }; 399 - }; 400 - 401 379 &pma8084_gpios { 402 380 gpio_keys_pin_a: gpio-keys-active-state { 403 381 pins = "gpio2", "gpio3", "gpio5"; ··· 791 813 drive-strength = <2>; 792 814 bias-disable; 793 815 }; 816 + }; 817 + 818 + &usb { 819 + status = "okay"; 820 + 821 + phys = <&usb_hs1_phy>; 822 + phy-select = <&tcsr 0xb000 0>; 823 + 824 + hnp-disable; 825 + srp-disable; 826 + adp-disable; 827 + }; 828 + 829 + &usb_hs1_phy { 830 + status = "okay"; 831 + 832 + v1p8-supply = <&pma8084_l6>; 833 + v3p3-supply = <&pma8084_l24>; 834 + 835 + qcom,init-seq = /bits/ 8 <0x1 0x64>; 794 836 };
+23 -25
arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts
··· 213 213 }; 214 214 }; 215 215 216 - &otg { 217 - status = "okay"; 218 - 219 - phys = <&usb_hs1_phy>; 220 - phy-select = <&tcsr 0xb000 0>; 221 - extcon = <&smbb>, <&usb_id>; 222 - vbus-supply = <&chg_otg>; 223 - 224 - hnp-disable; 225 - srp-disable; 226 - adp-disable; 227 - 228 - ulpi { 229 - phy@a { 230 - status = "okay"; 231 - 232 - v1p8-supply = <&pm8941_l6>; 233 - v3p3-supply = <&pm8941_l24>; 234 - 235 - extcon = <&smbb>; 236 - qcom,init-seq = /bits/ 8 <0x1 0x64>; 237 - }; 238 - }; 239 - }; 240 - 241 216 &pm8941_coincell { 242 217 status = "okay"; 243 218 ··· 612 637 drive-strength = <2>; 613 638 bias-disable; 614 639 }; 640 + }; 641 + 642 + &usb { 643 + status = "okay"; 644 + 645 + phys = <&usb_hs1_phy>; 646 + phy-select = <&tcsr 0xb000 0>; 647 + extcon = <&smbb>, <&usb_id>; 648 + vbus-supply = <&chg_otg>; 649 + 650 + hnp-disable; 651 + srp-disable; 652 + adp-disable; 653 + }; 654 + 655 + &usb_hs1_phy { 656 + status = "okay"; 657 + 658 + v1p8-supply = <&pm8941_l6>; 659 + v3p3-supply = <&pm8941_l24>; 660 + 661 + extcon = <&smbb>; 662 + qcom,init-seq = /bits/ 8 <0x1 0x64>; 615 663 };