1 From 5d1972f99f893ac9394d2a795a3b21385b9e34a5 Mon Sep 17 00:00:00 2001
2 From: j-schambacher <joerg@hifiberry.com>
3 Date: Wed, 13 Mar 2024 10:11:27 +0100
4 Subject: [PATCH 1293/1295] overlays: Sets i2s_clk_producer as default for
7 As we have never released a (standard) DACplusADC board with onboard
8 clocks, we can simply use a fixed setup avoiding incompatibilities
9 with Pi5 during driver init. Setting 'hifiberry-dacplusadc,slave' in
10 the overlays disables the failing clock probing mechanism.
12 Removes 'slave' parameter description from README which is still
13 supported but not needed.
15 Signed-off-by: j-schambacher <joerg@hifiberry.com>
17 arch/arm/boot/dts/overlays/README | 4 +---
18 .../dts/overlays/hifiberry-dacplusadc-overlay.dts | 12 +++++-------
19 2 files changed, 6 insertions(+), 10 deletions(-)
21 --- a/arch/arm/boot/dts/overlays/README
22 +++ b/arch/arm/boot/dts/overlays/README
23 @@ -1773,7 +1773,7 @@ Params: <None>
27 -Info: Configures the HifiBerry DAC8X audio cards (only on PI5)
28 +Info: Configures the HifiBerry DAC8X audio cards (only on Pi5)
29 Load: dtoverlay=hifiberry-dac8x
32 @@ -1860,8 +1860,6 @@ Params: 24db_digital_gain Allow ga
33 responsibility of the user to ensure that
34 the Digital volume control is set to a value
35 that does not result in clipping/distortion!)
36 - slave Force DAC+ADC into slave mode, using Pi as
37 - master for bit clock and frame clock.
38 leds_off If set to 'true' the onboard indicator LEDs
39 are switched off at all times.
41 --- a/arch/arm/boot/dts/overlays/hifiberry-dacplusadc-overlay.dts
42 +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplusadc-overlay.dts
44 -// Definitions for HiFiBerry DAC+ADC
45 +// Definitions for HiFiBerry DAC+ADC, no onboard clocks
54 - target = <&i2s_clk_consumer>;
56 + target = <&i2s_clk_producer>;
62 hifiberry_dacplusadc: __overlay__ {
63 compatible = "hifiberry,hifiberry-dacplusadc";
64 - i2s-controller = <&i2s_clk_consumer>;
65 + i2s-controller = <&i2s_clk_producer>;
66 + hifiberry-dacplusadc,slave;
73 <&hifiberry_dacplusadc>,"hifiberry,24db_digital_gain?";
74 - slave = <&hifiberry_dacplusadc>,"hifiberry-dacplusadc,slave?",
75 - <&frag1>,"target:0=",<&i2s_clk_producer>,
76 - <&hifiberry_dacplusadc>,"i2s-controller:0=",<&i2s_clk_producer>;
77 leds_off = <&hifiberry_dacplusadc>,"hifiberry-dacplusadc,leds_off?";