Skip to content

Commit 94dd85b

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 0daf2ec commit 94dd85b

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 {
@@ -848,6 +859,32 @@
848859
status = "disabled";
849860
};
850861

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

902+
dpaudio0: audio-controller@238330000 {
903+
compatible = "apple,t8103-dpaudio", "apple,dpaudio";
904+
reg = <0x2 0x38330000 0x0 0x4000>;
905+
dmas = <&sio 0x64>;
906+
dma-names = "tx";
907+
power-domains = <&ps_dpa0>;
908+
reset-domains = <&ps_dpa0>;
909+
status = "disabled";
910+
911+
ports {
912+
#address-cells = <1>;
913+
#size-cells = <0>;
914+
port@0 {
915+
reg = <0>;
916+
dpaudio0_dcp: endpoint {
917+
remote-endpoint = <&dcp_audio>;
918+
};
919+
};
920+
};
921+
};
922+
923+
dpaudio1: audio-controller@238334000 {
924+
compatible = "apple,t8103-dpaudio", "apple,dpaudio";
925+
reg = <0x2 0x38334000 0x0 0x4000>;
926+
dmas = <&sio 0x66>;
927+
dma-names = "tx";
928+
power-domains = <&ps_dpa1>;
929+
reset-domains = <&ps_dpa1>;
930+
status = "disabled";
931+
932+
ports {
933+
#address-cells = <1>;
934+
#size-cells = <0>;
935+
port@0 {
936+
reg = <0>;
937+
dpaudio1_dcp: endpoint {
938+
remote-endpoint = <&dcpext_audio>;
939+
};
940+
};
941+
};
942+
};
943+
865944
mca: i2s@238400000 {
866945
compatible = "apple,t8103-mca", "apple,mca";
867946
reg = <0x2 0x38400000 0x0 0x18000>,
@@ -1265,6 +1344,17 @@
12651344
piodma {
12661345
iommus = <&dispext0_dart 4>;
12671346
};
1347+
1348+
ports {
1349+
#address-cells = <1>;
1350+
#size-cells = <0>;
1351+
port@0 {
1352+
reg = <0>;
1353+
dcpext_audio: endpoint {
1354+
remote-endpoint = <&dpaudio1_dcp>;
1355+
};
1356+
};
1357+
};
12681358
};
12691359

12701360
ans_mbox: mbox@277408000 {

0 commit comments

Comments
 (0)