Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4492928rwb; Mon, 31 Jul 2023 07:42:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlEz9Who3Kt6/PhFIomEVKKI5tUfKnRSB6eXyTr7GfmXShgDT3L792PGGR8aD8IXuO43It4S X-Received: by 2002:a05:6512:2383:b0:4f8:752f:371f with SMTP id c3-20020a056512238300b004f8752f371fmr13917lfv.51.1690814572197; Mon, 31 Jul 2023 07:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690814572; cv=none; d=google.com; s=arc-20160816; b=t/gISx6P+lGQiBipmWPuPImQMBjLNH31NvIBnWlMLmBtGhvw/IjNP3mVomElglRl+W +sy9YPmTH7ohSwpqkafWoXPDsZ3uFNDnCBBvqaZ2eyrb/jCYrqc515DLpdpZVSbbphHs ITq5GVaz9StS08HbBRoydo24c4mKKqxSbC/VvBOAkuJYUfd0t1DTyra46RsiucYyaW+E kz+NmWvWO3AD6ZYh2yD2XOOtF3p2Ai6a42K4AbttCts9KATrjoGjF4F56eizeaZWGnyy QTSGZcy9CKi06AZozFs/PYTxt6ux03CNbuuayTKAvNNquGdZKLeR1D3xLVKH4xa0vY4k tQ/w== 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=lJIAWg3Iq9qtupBdnle0AIuGU3qOmthV2Ku0Et8ygug=; fh=yQOlfVuAygRLudEwWtVhjHurBOGTT/pkEGbFNDTloFY=; b=DJP1paOeKejzkOxtg04R43Apu0ab2PFgApGGsIahCqUi12U0k5CORScJAY1a7dcZP4 mB+Dv8KP9Od1fiwx3X40gUkeeVvZIELhkiBGXkG8xQxLVljY32hflmsN08+VI2UbKmxD GiZ1+Jy9cpsYNbl7PSHniCtfdW0bscH8W+FVxw2SAKRmjwiFyBfn6KfPHS9kKU+sNqjO rUebS6B92QchmKTO1z7jcoHxzOH+huctCiOTQg2tTAE1x45eAuGM550lByW3rV4KIyn7 hO7ZIW5mqnd3KReDQ6EuVRSJemXBoT3nGdd1TXUNTGXiLd4FpzhK89vWRg8pgiqMiYkJ KyBA== 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 p25-20020aa7d319000000b00522b9b3ffa9si3187928edq.430.2023.07.31.07.42.26; Mon, 31 Jul 2023 07:42:52 -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 S232443AbjGaOWH (ORCPT + 99 others); Mon, 31 Jul 2023 10:22:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230049AbjGaOV5 (ORCPT ); Mon, 31 Jul 2023 10:21:57 -0400 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 504DA133; Mon, 31 Jul 2023 07:21:53 -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 B43D9211CC; Mon, 31 Jul 2023 16:21:50 +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 Subject: [PATCH v1 4/4] arm64: dts: ti: verdin-am62: dahlia: add sound card Date: Mon, 31 Jul 2023 16:21:35 +0200 Message-Id: <20230731142135.108477-5-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230731142135.108477-1-francesco@dolcini.it> References: <20230731142135.108477-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,T_SCC_BODY_TEXT_LINE 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. 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 3abd8d1d6761..e59235d6a8e6 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