Describe the PCM1773 playback DAC in the common OpenPandora device tree.
The DAC is supplied by VSIM and enabled through GPIO118. This allows
the PCM1773 codec driver to bind without platform-data registration.

Suggested-by: Grond <[email protected]>
Signed-off-by: H. Nikolaus Schaller <[email protected]>
---

Notes:
    Changes against V1:
    - Historical origin: 13b32c8cd102 (Grond, 2021-12-15).
    - The current DTS node has been reviewed for the PCM1773 binding and 
GPIO/supply properties.
    - Code and commit-message review assisted by ChatGPT.

 arch/arm/boot/dts/ti/omap/omap3-pandora-common.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/ti/omap/omap3-pandora-common.dtsi 
b/arch/arm/boot/dts/ti/omap/omap3-pandora-common.dtsi
index 2a5e8ba5714da..6e349f7ae6936 100644
--- a/arch/arm/boot/dts/ti/omap/omap3-pandora-common.dtsi
+++ b/arch/arm/boot/dts/ti/omap/omap3-pandora-common.dtsi
@@ -64,6 +64,13 @@ tv_connector_in: endpoint {
                };
        };
 
+       dac: pcm1773-codec {
+               compatible = "ti,pcm1773";
+               vcc-supply = <&vsim>;
+               enable-gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>; /* GPIO 118 */
+               status = "okay";
+       };
+
        gpio-leds {
 
                compatible = "gpio-leds";
-- 
2.56.0

Reply via email to