Skip to content

Commit ccd4ca9

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

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
@@ -739,6 +739,17 @@
739739
iommus = <&disp0_dart 4>;
740740
phandle = <&disp0_piodma>;
741741
};
742+
743+
ports {
744+
#address-cells = <1>;
745+
#size-cells = <0>;
746+
port@0 {
747+
reg = <0>;
748+
dcp_audio: endpoint {
749+
remote-endpoint = <&dpaudio0_dcp>;
750+
};
751+
};
752+
};
742753
};
743754

744755
display: display-subsystem {
@@ -893,6 +904,32 @@
893904
status = "disabled";
894905
};
895906

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

947+
dpaudio0: audio-controller@238330000 {
948+
compatible = "apple,t8112-dpaudio", "apple,dpaudio";
949+
reg = <0x2 0x38330000 0x0 0x4000>;
950+
dmas = <&sio 0x64>;
951+
dma-names = "tx";
952+
power-domains = <&ps_dpa0>;
953+
reset-domains = <&ps_dpa0>;
954+
status = "disabled";
955+
956+
ports {
957+
#address-cells = <1>;
958+
#size-cells = <0>;
959+
port@0 {
960+
reg = <0>;
961+
dpaudio0_dcp: endpoint {
962+
remote-endpoint = <&dcp_audio>;
963+
};
964+
};
965+
};
966+
};
967+
968+
dpaudio1: audio-controller@238334000 {
969+
compatible = "apple,t8112-dpaudio", "apple,dpaudio";
970+
reg = <0x2 0x38334000 0x0 0x4000>;
971+
dmas = <&sio 0x66>;
972+
dma-names = "tx";
973+
power-domains = <&ps_dpa1>;
974+
reset-domains = <&ps_dpa1>;
975+
status = "disabled";
976+
977+
ports {
978+
#address-cells = <1>;
979+
#size-cells = <0>;
980+
port@0 {
981+
reg = <0>;
982+
dpaudio1_dcp: endpoint {
983+
remote-endpoint = <&dcpext_audio>;
984+
};
985+
};
986+
};
987+
};
988+
910989
mca: i2s@238400000 {
911990
compatible = "apple,t8112-mca", "apple,mca";
912991
reg = <0x2 0x38400000 0x0 0x18000>,
@@ -1474,6 +1553,17 @@
14741553
piodma {
14751554
iommus = <&dispext0_dart 4>;
14761555
};
1556+
1557+
ports {
1558+
#address-cells = <1>;
1559+
#size-cells = <0>;
1560+
port@0 {
1561+
reg = <0>;
1562+
dcpext_audio: endpoint {
1563+
remote-endpoint = <&dpaudio1_dcp>;
1564+
};
1565+
};
1566+
};
14771567
};
14781568

14791569
ans_mbox: mbox@277408000 {

0 commit comments

Comments
 (0)