Skip to content

Commit 6c35f29

Browse files
njhollinghurstpopcornmix
authored andcommitted
arm64: dts: Add the Audio Out block to rp1.dtsi
Change the standard rate of PLL_AUDIO_SEC from 192MHz to 153.6MHz to suit audio out. Declare audio out hardware and give it a named pin control. Signed-off-by: Nick Hollinghurst <[email protected]>
1 parent 421d93b commit 6c35f29

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

arch/arm64/boot/dts/broadcom/rp1.dtsi

+21-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<125000000>, // RP1_PLL_SYS_SEC
5050
<125000000>, // RP1_CLK_ETH
5151
<61440000>, // RP1_PLL_AUDIO
52-
<192000000>, // RP1_PLL_AUDIO_SEC
52+
<153600000>, // RP1_PLL_AUDIO_SEC
5353
<200000000>, // RP1_CLK_SYS
5454
<100000000>, // RP1_PLL_SYS_PRI_PH
5555
// Must match the XOSC frequency
@@ -380,6 +380,20 @@
380380
status = "disabled";
381381
};
382382

383+
rp1_audio_out: audio_out@94000 {
384+
compatible = "raspberrypi,rp1-audio-out";
385+
reg = <0xc0 0x40094000 0x0 0x4000>;
386+
clocks = <&rp1_clocks RP1_CLK_AUDIO_OUT>;
387+
assigned-clocks = <&rp1_clocks RP1_CLK_AUDIO_OUT>;
388+
assigned-clock-rates = <153600000>;
389+
assigned-clock-parents = <&rp1_clocks RP1_PLL_AUDIO_SEC>;
390+
dmas = <&rp1_dma RP1_DMA_AUDIO_OUT>;
391+
dma-maxburst = <4>;
392+
dma-names = "tx";
393+
#sound-dai-cells = <0>;
394+
status = "disabled";
395+
};
396+
383397
rp1_pwm0: pwm@98000 {
384398
compatible = "raspberrypi,rp1-pwm";
385399
reg = <0xc0 0x40098000 0x0 0x100>;
@@ -974,6 +988,12 @@
974988
pins = "gpio52", "gpio53";
975989
bias-pull-up;
976990
};
991+
992+
rp1_audio_out_12_13: rp1_audio_out_12_13 {
993+
function = "aaud";
994+
pins = "gpio12", "gpio13";
995+
bias-disable;
996+
};
977997
};
978998

979999
rp1_eth: ethernet@100000 {

0 commit comments

Comments
 (0)