Skip to content

Commit bd7e3e7

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 32b1884 commit bd7e3e7

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
@@ -628,6 +628,17 @@
628628
iommus = <&disp0_dart 4>;
629629
phandle = <&disp0_piodma>;
630630
};
631+
632+
ports {
633+
#address-cells = <1>;
634+
#size-cells = <0>;
635+
port@0 {
636+
reg = <0>;
637+
dcp_audio: endpoint {
638+
remote-endpoint = <&dpaudio0_dcp>;
639+
};
640+
};
641+
};
631642
};
632643

633644
display: display-subsystem {
@@ -846,6 +857,32 @@
846857
status = "disabled";
847858
};
848859

860+
sio_mbox: mbox@236408000 {
861+
compatible = "apple,t8103-asc-mailbox", "apple,asc-mailbox-v4";
862+
reg = <0x2 0x36408000 0x0 0x4000>;
863+
interrupt-parent = <&aic>;
864+
interrupts = <AIC_IRQ 640 IRQ_TYPE_LEVEL_HIGH>,
865+
<AIC_IRQ 641 IRQ_TYPE_LEVEL_HIGH>,
866+
<AIC_IRQ 642 IRQ_TYPE_LEVEL_HIGH>,
867+
<AIC_IRQ 643 IRQ_TYPE_LEVEL_HIGH>;
868+
interrupt-names = "send-empty", "send-not-empty",
869+
"recv-empty", "recv-not-empty";
870+
#mbox-cells = <0>;
871+
power-domains = <&ps_sio>;
872+
};
873+
874+
sio: sio@236400000 {
875+
compatible = "apple,t8103-sio", "apple,sio";
876+
reg = <0x2 0x36400000 0x0 0x8000>;
877+
dma-channels = <128>;
878+
#dma-cells = <1>;
879+
mboxes = <&sio_mbox>;
880+
iommus = <&sio_dart 0>;
881+
power-domains = <&ps_sio_cpu>;
882+
resets = <&ps_sio>; /* TODO: verify reset does something */
883+
status = "disabled";
884+
};
885+
849886
admac: dma-controller@238200000 {
850887
compatible = "apple,t8103-admac", "apple,admac";
851888
reg = <0x2 0x38200000 0x0 0x34000>;
@@ -860,6 +897,48 @@
860897
resets = <&ps_audio_p>;
861898
};
862899

900+
dpaudio0: audio-controller@238330000 {
901+
compatible = "apple,t8103-dpaudio", "apple,dpaudio";
902+
reg = <0x2 0x38330000 0x0 0x4000>;
903+
dmas = <&sio 0x64>;
904+
dma-names = "tx";
905+
power-domains = <&ps_dpa0>;
906+
reset-domains = <&ps_dpa0>;
907+
status = "disabled";
908+
909+
ports {
910+
#address-cells = <1>;
911+
#size-cells = <0>;
912+
port@0 {
913+
reg = <0>;
914+
dpaudio0_dcp: endpoint {
915+
remote-endpoint = <&dcp_audio>;
916+
};
917+
};
918+
};
919+
};
920+
921+
dpaudio1: audio-controller@238334000 {
922+
compatible = "apple,t8103-dpaudio", "apple,dpaudio";
923+
reg = <0x2 0x38334000 0x0 0x4000>;
924+
dmas = <&sio 0x66>;
925+
dma-names = "tx";
926+
power-domains = <&ps_dpa1>;
927+
reset-domains = <&ps_dpa1>;
928+
status = "disabled";
929+
930+
ports {
931+
#address-cells = <1>;
932+
#size-cells = <0>;
933+
port@0 {
934+
reg = <0>;
935+
dpaudio1_dcp: endpoint {
936+
remote-endpoint = <&dcpext_audio>;
937+
};
938+
};
939+
};
940+
};
941+
863942
mca: i2s@238400000 {
864943
compatible = "apple,t8103-mca", "apple,mca";
865944
reg = <0x2 0x38400000 0x0 0x18000>,
@@ -1257,6 +1336,17 @@
12571336
piodma {
12581337
iommus = <&dispext0_dart 4>;
12591338
};
1339+
1340+
ports {
1341+
#address-cells = <1>;
1342+
#size-cells = <0>;
1343+
port@0 {
1344+
reg = <0>;
1345+
dcpext_audio: endpoint {
1346+
remote-endpoint = <&dpaudio1_dcp>;
1347+
};
1348+
};
1349+
};
12601350
};
12611351

12621352
ans_mbox: mbox@277408000 {

0 commit comments

Comments
 (0)