Skip to content

Commit ac9aae0

Browse files
anupbrcmffainelli
authored andcommitted
arm64: dts: Add SATA3 AHCI and SATA3 PHY DT nodes for NS2
We have one dual-port SATA3 AHCI controller present in NS2 SoC. This patch enables SATA3 AHCI controller and SATA3 PHY for NS2 SoC in NS2 DT. Signed-off-by: Anup Patel <anup.patel@broadcom.com> Reviewed-by: Ray Jui <rjui@broadcom.com> Reviewed-by: Scott Branden <sbranden@broadcom.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
1 parent 6e62688 commit ac9aae0

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

arch/arm64/boot/dts/broadcom/ns2-svk.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,18 @@
117117
};
118118
};
119119

120+
&sata_phy0 {
121+
status = "ok";
122+
};
123+
124+
&sata_phy1 {
125+
status = "ok";
126+
};
127+
128+
&sata {
129+
status = "ok";
130+
};
131+
120132
&sdio0 {
121133
status = "ok";
122134
};

arch/arm64/boot/dts/broadcom/ns2.dtsi

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,49 @@
368368
reg = <0x66220000 0x28>;
369369
};
370370

371+
sata_phy: sata_phy@663f0100 {
372+
compatible = "brcm,iproc-ns2-sata-phy";
373+
reg = <0x663f0100 0x1f00>,
374+
<0x663f004c 0x10>;
375+
reg-names = "phy", "phy-ctrl";
376+
#address-cells = <1>;
377+
#size-cells = <0>;
378+
379+
sata_phy0: sata-phy@0 {
380+
reg = <0>;
381+
#phy-cells = <0>;
382+
status = "disabled";
383+
};
384+
385+
sata_phy1: sata-phy@1 {
386+
reg = <1>;
387+
#phy-cells = <0>;
388+
status = "disabled";
389+
};
390+
};
391+
392+
sata: ahci@663f2000 {
393+
compatible = "brcm,iproc-ahci", "generic-ahci";
394+
reg = <0x663f2000 0x1000>;
395+
reg-names = "ahci";
396+
interrupts = <GIC_SPI 438 IRQ_TYPE_LEVEL_HIGH>;
397+
#address-cells = <1>;
398+
#size-cells = <0>;
399+
status = "disabled";
400+
401+
sata0: sata-port@0 {
402+
reg = <0>;
403+
phys = <&sata_phy0>;
404+
phy-names = "sata-phy";
405+
};
406+
407+
sata1: sata-port@1 {
408+
reg = <1>;
409+
phys = <&sata_phy1>;
410+
phy-names = "sata-phy";
411+
};
412+
};
413+
371414
sdio0: sdhci@66420000 {
372415
compatible = "brcm,sdhci-iproc-cygnus";
373416
reg = <0x66420000 0x100>;

0 commit comments

Comments
 (0)