Skip to content

Commit 253468e

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 6363b15 commit 253468e

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
@@ -18,13 +18,18 @@
1818

1919
aliases {
2020
ethernet0 = &ethernet0;
21+
sio = &sio;
2122
};
2223
};
2324

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

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

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

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,17 @@
664664
iommus = <&disp0_dart 4>;
665665
phandle = <&disp0_piodma>;
666666
};
667+
668+
ports {
669+
#address-cells = <1>;
670+
#size-cells = <0>;
671+
port@0 {
672+
reg = <0>;
673+
dcp_audio: endpoint {
674+
remote-endpoint = <&dpaudio0_dcp>;
675+
};
676+
};
677+
};
667678
};
668679

669680
display: display-subsystem {
@@ -884,6 +895,32 @@
884895
status = "disabled";
885896
};
886897

898+
sio_mbox: mbox@236408000 {
899+
compatible = "apple,t8103-asc-mailbox", "apple,asc-mailbox-v4";
900+
reg = <0x2 0x36408000 0x0 0x4000>;
901+
interrupt-parent = <&aic>;
902+
interrupts = <AIC_IRQ 640 IRQ_TYPE_LEVEL_HIGH>,
903+
<AIC_IRQ 641 IRQ_TYPE_LEVEL_HIGH>,
904+
<AIC_IRQ 642 IRQ_TYPE_LEVEL_HIGH>,
905+
<AIC_IRQ 643 IRQ_TYPE_LEVEL_HIGH>;
906+
interrupt-names = "send-empty", "send-not-empty",
907+
"recv-empty", "recv-not-empty";
908+
#mbox-cells = <0>;
909+
power-domains = <&ps_sio>;
910+
};
911+
912+
sio: sio@236400000 {
913+
compatible = "apple,t8103-sio", "apple,sio";
914+
reg = <0x2 0x36400000 0x0 0x8000>;
915+
dma-channels = <128>;
916+
#dma-cells = <1>;
917+
mboxes = <&sio_mbox>;
918+
iommus = <&sio_dart 0>;
919+
power-domains = <&ps_sio_cpu>;
920+
resets = <&ps_sio>; /* TODO: verify reset does something */
921+
status = "disabled";
922+
};
923+
887924
admac: dma-controller@238200000 {
888925
compatible = "apple,t8103-admac", "apple,admac";
889926
reg = <0x2 0x38200000 0x0 0x34000>;
@@ -898,6 +935,48 @@
898935
resets = <&ps_audio_p>;
899936
};
900937

938+
dpaudio0: audio-controller@238330000 {
939+
compatible = "apple,t8103-dpaudio", "apple,dpaudio";
940+
reg = <0x2 0x38330000 0x0 0x4000>;
941+
dmas = <&sio 0x64>;
942+
dma-names = "tx";
943+
power-domains = <&ps_dpa0>;
944+
reset-domains = <&ps_dpa0>;
945+
status = "disabled";
946+
947+
ports {
948+
#address-cells = <1>;
949+
#size-cells = <0>;
950+
port@0 {
951+
reg = <0>;
952+
dpaudio0_dcp: endpoint {
953+
remote-endpoint = <&dcp_audio>;
954+
};
955+
};
956+
};
957+
};
958+
959+
dpaudio1: audio-controller@238334000 {
960+
compatible = "apple,t8103-dpaudio", "apple,dpaudio";
961+
reg = <0x2 0x38334000 0x0 0x4000>;
962+
dmas = <&sio 0x66>;
963+
dma-names = "tx";
964+
power-domains = <&ps_dpa1>;
965+
reset-domains = <&ps_dpa1>;
966+
status = "disabled";
967+
968+
ports {
969+
#address-cells = <1>;
970+
#size-cells = <0>;
971+
port@0 {
972+
reg = <0>;
973+
dpaudio1_dcp: endpoint {
974+
remote-endpoint = <&dcpext_audio>;
975+
};
976+
};
977+
};
978+
};
979+
901980
mca: i2s@238400000 {
902981
compatible = "apple,t8103-mca", "apple,mca";
903982
reg = <0x2 0x38400000 0x0 0x18000>,
@@ -1286,6 +1365,17 @@
12861365
piodma {
12871366
iommus = <&dispext0_dart 4>;
12881367
};
1368+
1369+
ports {
1370+
#address-cells = <1>;
1371+
#size-cells = <0>;
1372+
port@0 {
1373+
reg = <0>;
1374+
dcpext_audio: endpoint {
1375+
remote-endpoint = <&dpaudio1_dcp>;
1376+
};
1377+
};
1378+
};
12891379
};
12901380

12911381
ans_mbox: mbox@277408000 {

0 commit comments

Comments
 (0)