Skip to content

Commit d5a52f0

Browse files
committed
arm64: apple: t8112: Add SIO, DPA nodes; hook up to DCP
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 12ae72a commit d5a52f0

2 files changed

Lines changed: 95 additions & 0 deletions

File tree

arch/arm64/boot/dts/apple/t8112-j473.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
/delete-property/ dcp;
2323
dcpext = &dcpext;
2424
ethernet0 = &ethernet0;
25+
sio = &sio;
2526
wifi0 = &wifi0;
2627
};
2728
};
@@ -65,6 +66,10 @@
6566
apple,dptx-phy = <5>;
6667
};
6768

69+
&dpaudio1 {
70+
status = "okay";
71+
};
72+
6873
/*
6974
* Keep the power-domains used for the HDMI port on.
7075
*/

arch/arm64/boot/dts/apple/t8112.dtsi

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,17 @@
745745
iommus = <&disp0_dart 4>;
746746
phandle = <&disp0_piodma>;
747747
};
748+
749+
ports {
750+
#address-cells = <1>;
751+
#size-cells = <0>;
752+
port@0 {
753+
reg = <0>;
754+
dcp_audio: endpoint {
755+
remote-endpoint = <&dpaudio0_dcp>;
756+
};
757+
};
758+
};
748759
};
749760

750761
display: display-subsystem {
@@ -899,6 +910,32 @@
899910
status = "disabled";
900911
};
901912

913+
sio_mbox: mbox@236408000 {
914+
compatible = "apple,t8112-asc-mailbox", "apple,asc-mailbox-v4";
915+
reg = <0x2 0x36408000 0x0 0x4000>;
916+
interrupt-parent = <&aic>;
917+
interrupts = <AIC_IRQ 774 IRQ_TYPE_LEVEL_HIGH>,
918+
<AIC_IRQ 775 IRQ_TYPE_LEVEL_HIGH>,
919+
<AIC_IRQ 776 IRQ_TYPE_LEVEL_HIGH>,
920+
<AIC_IRQ 777 IRQ_TYPE_LEVEL_HIGH>;
921+
interrupt-names = "send-empty", "send-not-empty",
922+
"recv-empty", "recv-not-empty";
923+
#mbox-cells = <0>;
924+
power-domains = <&ps_sio_cpu>;
925+
};
926+
927+
sio: sio@236400000 {
928+
compatible = "apple,t8112-sio", "apple,sio";
929+
reg = <0x2 0x36400000 0x0 0x8000>;
930+
dma-channels = <128>;
931+
#dma-cells = <1>;
932+
mboxes = <&sio_mbox>;
933+
iommus = <&sio_dart 0>;
934+
power-domains = <&ps_sio_cpu>;
935+
resets = <&ps_sio>; /* TODO: verify reset does something */
936+
status = "disabled";
937+
};
938+
902939
admac: dma-controller@238200000 {
903940
compatible = "apple,t8112-admac", "apple,admac";
904941
reg = <0x2 0x38200000 0x0 0x34000>;
@@ -913,6 +950,48 @@
913950
resets = <&ps_audio_p>;
914951
};
915952

953+
dpaudio0: audio-controller@238330000 {
954+
compatible = "apple,t8112-dpaudio", "apple,dpaudio";
955+
reg = <0x2 0x38330000 0x0 0x4000>;
956+
dmas = <&sio 0x64>;
957+
dma-names = "tx";
958+
power-domains = <&ps_dpa0>;
959+
reset-domains = <&ps_dpa0>;
960+
status = "disabled";
961+
962+
ports {
963+
#address-cells = <1>;
964+
#size-cells = <0>;
965+
port@0 {
966+
reg = <0>;
967+
dpaudio0_dcp: endpoint {
968+
remote-endpoint = <&dcp_audio>;
969+
};
970+
};
971+
};
972+
};
973+
974+
dpaudio1: audio-controller@238334000 {
975+
compatible = "apple,t8112-dpaudio", "apple,dpaudio";
976+
reg = <0x2 0x38334000 0x0 0x4000>;
977+
dmas = <&sio 0x66>;
978+
dma-names = "tx";
979+
power-domains = <&ps_dpa1>;
980+
reset-domains = <&ps_dpa1>;
981+
status = "disabled";
982+
983+
ports {
984+
#address-cells = <1>;
985+
#size-cells = <0>;
986+
port@0 {
987+
reg = <0>;
988+
dpaudio1_dcp: endpoint {
989+
remote-endpoint = <&dcpext_audio>;
990+
};
991+
};
992+
};
993+
};
994+
916995
mca: i2s@238400000 {
917996
compatible = "apple,t8112-mca", "apple,mca";
918997
reg = <0x2 0x38400000 0x0 0x18000>,
@@ -1483,6 +1562,17 @@
14831562
piodma {
14841563
iommus = <&dispext0_dart 4>;
14851564
};
1565+
1566+
ports {
1567+
#address-cells = <1>;
1568+
#size-cells = <0>;
1569+
port@0 {
1570+
reg = <0>;
1571+
dcpext_audio: endpoint {
1572+
remote-endpoint = <&dpaudio1_dcp>;
1573+
};
1574+
};
1575+
};
14861576
};
14871577

14881578
ans_mbox: mbox@277408000 {

0 commit comments

Comments
 (0)