Skip to content

Commit 103a27d

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 2af82a7 commit 103a27d

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
@@ -666,6 +666,17 @@
666666
iommus = <&disp0_dart 4>;
667667
phandle = <&disp0_piodma>;
668668
};
669+
670+
ports {
671+
#address-cells = <1>;
672+
#size-cells = <0>;
673+
port@0 {
674+
reg = <0>;
675+
dcp_audio: endpoint {
676+
remote-endpoint = <&dpaudio0_dcp>;
677+
};
678+
};
679+
};
669680
};
670681

671682
display: display-subsystem {
@@ -886,6 +897,32 @@
886897
status = "disabled";
887898
};
888899

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

940+
dpaudio0: audio-controller@238330000 {
941+
compatible = "apple,t8103-dpaudio", "apple,dpaudio";
942+
reg = <0x2 0x38330000 0x0 0x4000>;
943+
dmas = <&sio 0x64>;
944+
dma-names = "tx";
945+
power-domains = <&ps_dpa0>;
946+
reset-domains = <&ps_dpa0>;
947+
status = "disabled";
948+
949+
ports {
950+
#address-cells = <1>;
951+
#size-cells = <0>;
952+
port@0 {
953+
reg = <0>;
954+
dpaudio0_dcp: endpoint {
955+
remote-endpoint = <&dcp_audio>;
956+
};
957+
};
958+
};
959+
};
960+
961+
dpaudio1: audio-controller@238334000 {
962+
compatible = "apple,t8103-dpaudio", "apple,dpaudio";
963+
reg = <0x2 0x38334000 0x0 0x4000>;
964+
dmas = <&sio 0x66>;
965+
dma-names = "tx";
966+
power-domains = <&ps_dpa1>;
967+
reset-domains = <&ps_dpa1>;
968+
status = "disabled";
969+
970+
ports {
971+
#address-cells = <1>;
972+
#size-cells = <0>;
973+
port@0 {
974+
reg = <0>;
975+
dpaudio1_dcp: endpoint {
976+
remote-endpoint = <&dcpext_audio>;
977+
};
978+
};
979+
};
980+
};
981+
903982
mca: i2s@238400000 {
904983
compatible = "apple,t8103-mca", "apple,mca";
905984
reg = <0x2 0x38400000 0x0 0x18000>,
@@ -1306,6 +1385,17 @@
13061385
piodma {
13071386
iommus = <&dispext0_dart 4>;
13081387
};
1388+
1389+
ports {
1390+
#address-cells = <1>;
1391+
#size-cells = <0>;
1392+
port@0 {
1393+
reg = <0>;
1394+
dcpext_audio: endpoint {
1395+
remote-endpoint = <&dpaudio1_dcp>;
1396+
};
1397+
};
1398+
};
13091399
};
13101400

13111401
ans_mbox: mbox@277408000 {

0 commit comments

Comments
 (0)