Skip to content

Commit 24461dc

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

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
@@ -741,6 +741,17 @@
741741
iommus = <&disp0_dart 4>;
742742
phandle = <&disp0_piodma>;
743743
};
744+
745+
ports {
746+
#address-cells = <1>;
747+
#size-cells = <0>;
748+
port@0 {
749+
reg = <0>;
750+
dcp_audio: endpoint {
751+
remote-endpoint = <&dpaudio0_dcp>;
752+
};
753+
};
754+
};
744755
};
745756

746757
display: display-subsystem {
@@ -895,6 +906,32 @@
895906
status = "disabled";
896907
};
897908

909+
sio_mbox: mbox@236408000 {
910+
compatible = "apple,t8112-asc-mailbox", "apple,asc-mailbox-v4";
911+
reg = <0x2 0x36408000 0x0 0x4000>;
912+
interrupt-parent = <&aic>;
913+
interrupts = <AIC_IRQ 774 IRQ_TYPE_LEVEL_HIGH>,
914+
<AIC_IRQ 775 IRQ_TYPE_LEVEL_HIGH>,
915+
<AIC_IRQ 776 IRQ_TYPE_LEVEL_HIGH>,
916+
<AIC_IRQ 777 IRQ_TYPE_LEVEL_HIGH>;
917+
interrupt-names = "send-empty", "send-not-empty",
918+
"recv-empty", "recv-not-empty";
919+
#mbox-cells = <0>;
920+
power-domains = <&ps_sio_cpu>;
921+
};
922+
923+
sio: sio@236400000 {
924+
compatible = "apple,t8112-sio", "apple,sio";
925+
reg = <0x2 0x36400000 0x0 0x8000>;
926+
dma-channels = <128>;
927+
#dma-cells = <1>;
928+
mboxes = <&sio_mbox>;
929+
iommus = <&sio_dart 0>;
930+
power-domains = <&ps_sio_cpu>;
931+
resets = <&ps_sio>; /* TODO: verify reset does something */
932+
status = "disabled";
933+
};
934+
898935
admac: dma-controller@238200000 {
899936
compatible = "apple,t8112-admac", "apple,admac";
900937
reg = <0x2 0x38200000 0x0 0x34000>;
@@ -909,6 +946,48 @@
909946
resets = <&ps_audio_p>;
910947
};
911948

949+
dpaudio0: audio-controller@238330000 {
950+
compatible = "apple,t8112-dpaudio", "apple,dpaudio";
951+
reg = <0x2 0x38330000 0x0 0x4000>;
952+
dmas = <&sio 0x64>;
953+
dma-names = "tx";
954+
power-domains = <&ps_dpa0>;
955+
reset-domains = <&ps_dpa0>;
956+
status = "disabled";
957+
958+
ports {
959+
#address-cells = <1>;
960+
#size-cells = <0>;
961+
port@0 {
962+
reg = <0>;
963+
dpaudio0_dcp: endpoint {
964+
remote-endpoint = <&dcp_audio>;
965+
};
966+
};
967+
};
968+
};
969+
970+
dpaudio1: audio-controller@238334000 {
971+
compatible = "apple,t8112-dpaudio", "apple,dpaudio";
972+
reg = <0x2 0x38334000 0x0 0x4000>;
973+
dmas = <&sio 0x66>;
974+
dma-names = "tx";
975+
power-domains = <&ps_dpa1>;
976+
reset-domains = <&ps_dpa1>;
977+
status = "disabled";
978+
979+
ports {
980+
#address-cells = <1>;
981+
#size-cells = <0>;
982+
port@0 {
983+
reg = <0>;
984+
dpaudio1_dcp: endpoint {
985+
remote-endpoint = <&dcpext_audio>;
986+
};
987+
};
988+
};
989+
};
990+
912991
mca: i2s@238400000 {
913992
compatible = "apple,t8112-mca", "apple,mca";
914993
reg = <0x2 0x38400000 0x0 0x18000>,
@@ -1497,6 +1576,17 @@
14971576
piodma {
14981577
iommus = <&dispext0_dart 4>;
14991578
};
1579+
1580+
ports {
1581+
#address-cells = <1>;
1582+
#size-cells = <0>;
1583+
port@0 {
1584+
reg = <0>;
1585+
dcpext_audio: endpoint {
1586+
remote-endpoint = <&dpaudio1_dcp>;
1587+
};
1588+
};
1589+
};
15001590
};
15011591

15021592
ans_mbox: mbox@277408000 {

0 commit comments

Comments
 (0)