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

ARM: dts: uniphier: Add ahci controller nodes for Pro4

Add ahci controller, glue layer, and clock nodes for Pro4 SoC. The glue
layer includes reset and phy, and the clock node is used for handling ahci
clocks on SoC-glue.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/20220913042249.4708-7-hayashi.kunihiko@socionext.com'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Kunihiko Hayashi and committed by
Arnd Bergmann
d5566de5 c9c50dfd

+113
+8
arch/arm/boot/dts/uniphier-pro4-ace.dts
··· 99 99 &usb1 { 100 100 status = "okay"; 101 101 }; 102 + 103 + &ahci0 { 104 + status = "okay"; 105 + }; 106 + 107 + &ahci1 { 108 + status = "okay"; 109 + };
+8
arch/arm/boot/dts/uniphier-pro4-ref.dts
··· 108 108 reg = <0>; 109 109 }; 110 110 }; 111 + 112 + &ahci0 { 113 + status = "okay"; 114 + }; 115 + 116 + &ahci1 { 117 + status = "okay"; 118 + };
+97
arch/arm/boot/dts/uniphier-pro4.dtsi
··· 411 411 vbus-supply = <&usb1_vbus>; 412 412 }; 413 413 }; 414 + 415 + sg_clk: clock { 416 + compatible = "socionext,uniphier-pro4-sg-clock"; 417 + #clock-cells = <1>; 418 + }; 414 419 }; 415 420 416 421 soc-glue@5f900000 { ··· 515 510 mdio: mdio { 516 511 #address-cells = <1>; 517 512 #size-cells = <0>; 513 + }; 514 + }; 515 + 516 + ahci0: sata@65600000 { 517 + compatible = "socionext,uniphier-pro4-ahci", 518 + "generic-ahci"; 519 + status = "disabled"; 520 + reg = <0x65600000 0x10000>; 521 + interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>; 522 + clocks = <&sys_clk 12>, <&sys_clk 28>; 523 + resets = <&sys_rst 12>, <&sys_rst 28>, <&ahci0_rst 3>; 524 + ports-implemented = <1>; 525 + phys = <&ahci0_phy>; 526 + assigned-clocks = <&sg_clk 0>; 527 + assigned-clock-rates = <25000000>; 528 + }; 529 + 530 + sata-controller@65700000 { 531 + compatible = "socionext,uniphier-pxs2-ahci-glue", 532 + "simple-mfd"; 533 + #address-cells = <1>; 534 + #size-cells = <1>; 535 + ranges = <0 0x65700000 0x100>; 536 + 537 + ahci0_rst: reset-controller@0 { 538 + compatible = "socionext,uniphier-pro4-ahci-reset"; 539 + reg = <0x0 0x4>; 540 + clock-names = "gio", "link"; 541 + clocks = <&sys_clk 12>, <&sys_clk 28>; 542 + reset-names = "gio", "link"; 543 + resets = <&sys_rst 12>, <&sys_rst 28>; 544 + #reset-cells = <1>; 545 + }; 546 + 547 + ahci0_phy: sata-phy@10 { 548 + compatible = "socionext,uniphier-pro4-ahci-phy"; 549 + reg = <0x10 0x40>; 550 + clock-names = "link", "gio"; 551 + clocks = <&sys_clk 28>, <&sys_clk 12>; 552 + reset-names = "link", "gio", "phy", 553 + "pm", "tx", "rx"; 554 + resets = <&sys_rst 28>, <&sys_rst 12>, 555 + <&sys_rst 30>, 556 + <&ahci0_rst 0>, <&ahci0_rst 1>, 557 + <&ahci0_rst 2>; 558 + #phy-cells = <0>; 559 + }; 560 + }; 561 + 562 + ahci1: sata@65800000 { 563 + compatible = "socionext,uniphier-pro4-ahci", 564 + "generic-ahci"; 565 + status = "disabled"; 566 + reg = <0x65800000 0x10000>; 567 + interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; 568 + clocks = <&sys_clk 12>, <&sys_clk 29>; 569 + resets = <&sys_rst 12>, <&sys_rst 29>, <&ahci1_rst 3>; 570 + ports-implemented = <1>; 571 + phys = <&ahci1_phy>; 572 + assigned-clocks = <&sg_clk 0>; 573 + assigned-clock-rates = <25000000>; 574 + }; 575 + 576 + sata-controller@65900000 { 577 + compatible = "socionext,uniphier-pro4-ahci-glue", 578 + "simple-mfd"; 579 + #address-cells = <1>; 580 + #size-cells = <1>; 581 + ranges = <0 0x65900000 0x100>; 582 + 583 + ahci1_rst: reset-controller@0 { 584 + compatible = "socionext,uniphier-pro4-ahci-reset"; 585 + reg = <0x0 0x4>; 586 + clock-names = "gio", "link"; 587 + clocks = <&sys_clk 12>, <&sys_clk 29>; 588 + reset-names = "gio", "link"; 589 + resets = <&sys_rst 12>, <&sys_rst 29>; 590 + #reset-cells = <1>; 591 + }; 592 + 593 + ahci1_phy: sata-phy@10 { 594 + compatible = "socionext,uniphier-pro4-ahci-phy"; 595 + reg = <0x10 0x40>; 596 + clock-names = "link", "gio"; 597 + clocks = <&sys_clk 29>, <&sys_clk 12>; 598 + reset-names = "link", "gio", "phy", 599 + "pm", "tx", "rx"; 600 + resets = <&sys_rst 29>, <&sys_rst 12>, 601 + <&sys_rst 30>, 602 + <&ahci1_rst 0>, <&ahci1_rst 1>, 603 + <&ahci1_rst 2>; 604 + #phy-cells = <0>; 518 605 }; 519 606 }; 520 607