Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3444509rwb; Mon, 7 Aug 2023 13:45:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIQDosEbmNfDh3wsmau0wIGqFq9HBv8NOsrSTI+IQnrLVZcYxlbejvwWPr/uZulgOWCkNv X-Received: by 2002:a05:6512:239d:b0:4fe:958:88ad with SMTP id c29-20020a056512239d00b004fe095888admr8965220lfv.10.1691441107247; Mon, 07 Aug 2023 13:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691441107; cv=none; d=google.com; s=arc-20160816; b=acqkcez4Sa9cjpvN5wJM/AKCZWEJcOrgSJIB86oWi3fMO4XRCcFLOcUJIBLg3A0S5P 3aYbFbY7Fq0RhU8L1XUg2g7ekrpzvW6IY+SbU04V0uzqnp9DCBrCcMKjwjnYUdlYiCpY 88YadKWGCgbaWfLvJrikCXxvwwUrZZ203BjGXEgi/XKG7MTtsftsd42rdhvOGDNTnBby f9akNlBMpSWpsylCNSXgmb7TRynB8gWwnplbnJdNbW+xIgE6DD6xP6Sm0B0YrvYOCjkD Awpd/1PRKVx7MYreYVxbVqsdoYZ3ZNTv5bjUddsmp4lwfgS9KnVU7jpLKNtxG6izqRSb li+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IVJtz6YFx2m9Ss532dQHk/Jr+sFI9va0QsdjlLfZvf0=; fh=9pMZi9GXUJoyz+KKdLSUSQbDAXDuUfNOupwT0He1AXw=; b=S3taWfIB2snzFzATd2Ay5b9p77aUbZdIlrTn5Hk007CrZLfQTzX0do5XLqxS6WJUT7 CyJAEhuAfM92apHa+QzrQu25MqL0DjN3AfYy5AaRV26s+H/97EmlIQyoKS5UNXJqK8As wLgNBo0CNxOyu5KaHEywAJHxDnH7h/e996jNvbhwd5EH7TJBP5tHaRMocSpolR1oM0YN lygxrac1bydJ//cykNoJExXZUazs2BDq0sALt9ZHFxnnmfN7+jUapzvIWJw83Urw0lzX bNAjCNsEcvVZ4PABfNfEjAr05sx4p0s49aNc7l4yLD+ZSdNr5xREcwcQDlghiop35RAb nmMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020aa7d8c2000000b005232287f318si5059337eds.552.2023.08.07.13.44.41; Mon, 07 Aug 2023 13:45:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231367AbjHGUWO (ORCPT + 99 others); Mon, 7 Aug 2023 16:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbjHGUWK (ORCPT ); Mon, 7 Aug 2023 16:22:10 -0400 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2742D10F6; Mon, 7 Aug 2023 13:22:09 -0700 (PDT) Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 2EEBF209F0; Mon, 7 Aug 2023 22:22:07 +0200 (CEST) From: Francesco Dolcini To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Francesco Dolcini , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jai Luthra Subject: [PATCH v3 4/4] arm64: dts: ti: verdin-am62: dahlia: add sound card Date: Mon, 7 Aug 2023 22:21:59 +0200 Message-Id: <20230807202159.13095-5-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230807202159.13095-1-francesco@dolcini.it> References: <20230807202159.13095-1-francesco@dolcini.it> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Francesco Dolcini Add WM8904 based analog sound card to Dahlia carrier board. Reviewed-by: Jai Luthra Signed-off-by: Francesco Dolcini --- .../boot/dts/ti/k3-am62-verdin-dahlia.dtsi | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-verdin-dahlia.dtsi b/arch/arm64/boot/dts/ti/k3-am62-verdin-dahlia.dtsi index 33c8f6ffaa30..013357d17d48 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-verdin-dahlia.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-verdin-dahlia.dtsi @@ -8,6 +8,43 @@ * https://www.toradex.com/products/carrier-board/dahlia-carrier-board-kit */ +/ { + reg_1v8_sw: regulator-1v8-sw { + compatible = "regulator-fixed"; + regulator-max-microvolt = <1800000>; + regulator-min-microvolt = <1800000>; + regulator-name = "On-carrier +V1.8_SW"; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,bitclock-master = <&codec_dai>; + simple-audio-card,format = "i2s"; + simple-audio-card,frame-master = <&codec_dai>; + simple-audio-card,name = "verdin-wm8904"; + simple-audio-card,routing = + "Headphone Jack", "HPOUTL", + "Headphone Jack", "HPOUTR", + "IN2L", "Line In Jack", + "IN2R", "Line In Jack", + "Headphone Jack", "MICBIAS", + "IN1L", "Headphone Jack"; + simple-audio-card,widgets = + "Microphone", "Headphone Jack", + "Headphone", "Headphone Jack", + "Line", "Line In Jack"; + + codec_dai: simple-audio-card,codec { + clocks = <&audio_refclk1>; + sound-dai = <&wm8904_1a>; + }; + + simple-audio-card,cpu { + sound-dai = <&mcasp0>; + }; + }; +}; + /* Verdin ETHs */ &cpsw3g { status = "okay"; @@ -46,6 +83,22 @@ &main_gpio0 { &main_i2c1 { status = "okay"; + /* Audio Codec */ + wm8904_1a: audio-codec@1a { + compatible = "wlf,wm8904"; + reg = <0x1a>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2s1_mclk>; + #sound-dai-cells = <0>; + clocks = <&audio_refclk1>; + clock-names = "mclk"; + AVDD-supply = <®_1v8_sw>; + CPVDD-supply = <®_1v8_sw>; + DBVDD-supply = <®_1v8_sw>; + DCVDD-supply = <®_1v8_sw>; + MICVDD-supply = <®_1v8_sw>; + }; + /* Current measurement into module VCC */ hwmon@40 { compatible = "ti,ina219"; -- 2.25.1