Skip to content

Commit 1d0562a

Browse files
committed
arm64: apple: t8112: Add SIO, DPA nodes; hook up to DCP
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent daa89d8 commit 1d0562a

2 files changed

Lines changed: 95 additions & 0 deletions

File tree

arch/arm64/boot/dts/apple/t8112-j473.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
/delete-property/ dcp;
2222
dcpext = &dcpext;
2323
ethernet0 = &ethernet0;
24+
sio = &sio;
2425
wifi0 = &wifi0;
2526
};
2627
};
@@ -64,6 +65,10 @@
6465
apple,dptx-phy = <5>;
6566
};
6667

68+
&dpaudio1 {
69+
status = "okay";
70+
};
71+
6772
/*
6873
* Provide labels for the USB type C ports.
6974
*/

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

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,17 @@
702702
iommus = <&disp0_dart 4>;
703703
phandle = <&disp0_piodma>;
704704
};
705+
706+
ports {
707+
#address-cells = <1>;
708+
#size-cells = <0>;
709+
port@0 {
710+
reg = <0>;
711+
dcp_audio: endpoint {
712+
remote-endpoint = <&dpaudio0_dcp>;
713+
};
714+
};
715+
};
705716
};
706717

707718
display: display-subsystem {
@@ -856,6 +867,32 @@
856867
status = "disabled";
857868
};
858869

870+
sio_mbox: mbox@236408000 {
871+
compatible = "apple,t8112-asc-mailbox", "apple,asc-mailbox-v4";
872+
reg = <0x2 0x36408000 0x0 0x4000>;
873+
interrupt-parent = <&aic>;
874+
interrupts = <AIC_IRQ 774 IRQ_TYPE_LEVEL_HIGH>,
875+
<AIC_IRQ 775 IRQ_TYPE_LEVEL_HIGH>,
876+
<AIC_IRQ 776 IRQ_TYPE_LEVEL_HIGH>,
877+
<AIC_IRQ 777 IRQ_TYPE_LEVEL_HIGH>;
878+
interrupt-names = "send-empty", "send-not-empty",
879+
"recv-empty", "recv-not-empty";
880+
#mbox-cells = <0>;
881+
power-domains = <&ps_sio_cpu>;
882+
};
883+
884+
sio: sio@236400000 {
885+
compatible = "apple,t8112-sio", "apple,sio";
886+
reg = <0x2 0x36400000 0x0 0x8000>;
887+
dma-channels = <128>;
888+
#dma-cells = <1>;
889+
mboxes = <&sio_mbox>;
890+
iommus = <&sio_dart 0>;
891+
power-domains = <&ps_sio_cpu>;
892+
resets = <&ps_sio>; /* TODO: verify reset does something */
893+
status = "disabled";
894+
};
895+
859896
admac: dma-controller@238200000 {
860897
compatible = "apple,t8112-admac", "apple,admac";
861898
reg = <0x2 0x38200000 0x0 0x34000>;
@@ -870,6 +907,48 @@
870907
resets = <&ps_audio_p>;
871908
};
872909

910+
dpaudio0: audio-controller@238330000 {
911+
compatible = "apple,t8112-dpaudio", "apple,dpaudio";
912+
reg = <0x2 0x38330000 0x0 0x4000>;
913+
dmas = <&sio 0x64>;
914+
dma-names = "tx";
915+
power-domains = <&ps_dpa0>;
916+
reset-domains = <&ps_dpa0>;
917+
status = "disabled";
918+
919+
ports {
920+
#address-cells = <1>;
921+
#size-cells = <0>;
922+
port@0 {
923+
reg = <0>;
924+
dpaudio0_dcp: endpoint {
925+
remote-endpoint = <&dcp_audio>;
926+
};
927+
};
928+
};
929+
};
930+
931+
dpaudio1: audio-controller@238334000 {
932+
compatible = "apple,t8112-dpaudio", "apple,dpaudio";
933+
reg = <0x2 0x38334000 0x0 0x4000>;
934+
dmas = <&sio 0x66>;
935+
dma-names = "tx";
936+
power-domains = <&ps_dpa1>;
937+
reset-domains = <&ps_dpa1>;
938+
status = "disabled";
939+
940+
ports {
941+
#address-cells = <1>;
942+
#size-cells = <0>;
943+
port@0 {
944+
reg = <0>;
945+
dpaudio1_dcp: endpoint {
946+
remote-endpoint = <&dcpext_audio>;
947+
};
948+
};
949+
};
950+
};
951+
873952
mca: i2s@238400000 {
874953
compatible = "apple,t8112-mca", "apple,mca";
875954
reg = <0x2 0x38400000 0x0 0x18000>,
@@ -1455,6 +1534,17 @@
14551534
piodma {
14561535
iommus = <&dispext0_dart 4>;
14571536
};
1537+
1538+
ports {
1539+
#address-cells = <1>;
1540+
#size-cells = <0>;
1541+
port@0 {
1542+
reg = <0>;
1543+
dcpext_audio: endpoint {
1544+
remote-endpoint = <&dpaudio1_dcp>;
1545+
};
1546+
};
1547+
};
14581548
};
14591549

14601550
ans_mbox: mbox@277408000 {

0 commit comments

Comments
 (0)