Skip to content

Commit a54bfe2

Browse files
arm64: dts: First go at adding 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 0b540ff commit a54bfe2

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

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

Lines changed: 22 additions & 1 deletion
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,21 @@
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+
pinctrl-names = "default";
394+
pinctrl-0 = <&rp1_audio_out_12_13>;
395+
status = "disabled";
396+
};
397+
383398
rp1_pwm0: pwm@98000 {
384399
compatible = "raspberrypi,rp1-pwm";
385400
reg = <0xc0 0x40098000 0x0 0x100>;
@@ -974,6 +989,12 @@
974989
pins = "gpio52", "gpio53";
975990
bias-pull-up;
976991
};
992+
993+
rp1_audio_out_12_13: rp1_audio_out_12_13 {
994+
function = "aaud";
995+
pins = "gpio12", "gpio13";
996+
bias-disable;
997+
};
977998
};
978999

9791000
rp1_eth: ethernet@100000 {

0 commit comments

Comments
 (0)