Skip to content

Commit 12ae72a

Browse files
povikjannau
authored andcommitted
arm64: apple: t8103: Add SIO, DPA nodes; hook up to DCP
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
1 parent 254f3c4 commit 12ae72a

2 files changed

Lines changed: 95 additions & 0 deletions

File tree

arch/arm64/boot/dts/apple/t8103-j274.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,18 @@
1919

2020
aliases {
2121
ethernet0 = &ethernet0;
22+
sio = &sio;
2223
};
2324
};
2425

2526
&dcp {
2627
apple,connector-type = "HDMI-A";
2728
};
2829

30+
&dpaudio0 {
31+
status = "okay";
32+
};
33+
2934
&bluetooth0 {
3035
brcm,board-type = "apple,atlantisb";
3136
};

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

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,17 @@
671671
iommus = <&disp0_dart 4>;
672672
phandle = <&disp0_piodma>;
673673
};
674+
675+
ports {
676+
#address-cells = <1>;
677+
#size-cells = <0>;
678+
port@0 {
679+
reg = <0>;
680+
dcp_audio: endpoint {
681+
remote-endpoint = <&dpaudio0_dcp>;
682+
};
683+
};
684+
};
674685
};
675686

676687
display: display-subsystem {
@@ -891,6 +902,32 @@
891902
status = "disabled";
892903
};
893904

905+
sio_mbox: mbox@236408000 {
906+
compatible = "apple,t8103-asc-mailbox", "apple,asc-mailbox-v4";
907+
reg = <0x2 0x36408000 0x0 0x4000>;
908+
interrupt-parent = <&aic>;
909+
interrupts = <AIC_IRQ 640 IRQ_TYPE_LEVEL_HIGH>,
910+
<AIC_IRQ 641 IRQ_TYPE_LEVEL_HIGH>,
911+
<AIC_IRQ 642 IRQ_TYPE_LEVEL_HIGH>,
912+
<AIC_IRQ 643 IRQ_TYPE_LEVEL_HIGH>;
913+
interrupt-names = "send-empty", "send-not-empty",
914+
"recv-empty", "recv-not-empty";
915+
#mbox-cells = <0>;
916+
power-domains = <&ps_sio>;
917+
};
918+
919+
sio: sio@236400000 {
920+
compatible = "apple,t8103-sio", "apple,sio";
921+
reg = <0x2 0x36400000 0x0 0x8000>;
922+
dma-channels = <128>;
923+
#dma-cells = <1>;
924+
mboxes = <&sio_mbox>;
925+
iommus = <&sio_dart 0>;
926+
power-domains = <&ps_sio_cpu>;
927+
resets = <&ps_sio>; /* TODO: verify reset does something */
928+
status = "disabled";
929+
};
930+
894931
admac: dma-controller@238200000 {
895932
compatible = "apple,t8103-admac", "apple,admac";
896933
reg = <0x2 0x38200000 0x0 0x34000>;
@@ -905,6 +942,48 @@
905942
resets = <&ps_audio_p>;
906943
};
907944

945+
dpaudio0: audio-controller@238330000 {
946+
compatible = "apple,t8103-dpaudio", "apple,dpaudio";
947+
reg = <0x2 0x38330000 0x0 0x4000>;
948+
dmas = <&sio 0x64>;
949+
dma-names = "tx";
950+
power-domains = <&ps_dpa0>;
951+
reset-domains = <&ps_dpa0>;
952+
status = "disabled";
953+
954+
ports {
955+
#address-cells = <1>;
956+
#size-cells = <0>;
957+
port@0 {
958+
reg = <0>;
959+
dpaudio0_dcp: endpoint {
960+
remote-endpoint = <&dcp_audio>;
961+
};
962+
};
963+
};
964+
};
965+
966+
dpaudio1: audio-controller@238334000 {
967+
compatible = "apple,t8103-dpaudio", "apple,dpaudio";
968+
reg = <0x2 0x38334000 0x0 0x4000>;
969+
dmas = <&sio 0x66>;
970+
dma-names = "tx";
971+
power-domains = <&ps_dpa1>;
972+
reset-domains = <&ps_dpa1>;
973+
status = "disabled";
974+
975+
ports {
976+
#address-cells = <1>;
977+
#size-cells = <0>;
978+
port@0 {
979+
reg = <0>;
980+
dpaudio1_dcp: endpoint {
981+
remote-endpoint = <&dcpext_audio>;
982+
};
983+
};
984+
};
985+
};
986+
908987
mca: i2s@238400000 {
909988
compatible = "apple,t8103-mca", "apple,mca";
910989
reg = <0x2 0x38400000 0x0 0x18000>,
@@ -1297,6 +1376,17 @@
12971376
piodma {
12981377
iommus = <&dispext0_dart 4>;
12991378
};
1379+
1380+
ports {
1381+
#address-cells = <1>;
1382+
#size-cells = <0>;
1383+
port@0 {
1384+
reg = <0>;
1385+
dcpext_audio: endpoint {
1386+
remote-endpoint = <&dpaudio1_dcp>;
1387+
};
1388+
};
1389+
};
13001390
};
13011391

13021392
ans_mbox: mbox@277408000 {

0 commit comments

Comments
 (0)