Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4502167rwb; Mon, 31 Jul 2023 07:51:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlELABaxFYXnsR5M6ZFi+QsDSprGgUe/9w6HLmqajl6xRnBgzMZwTZ2/56zMW3Fcv7nSL2UV X-Received: by 2002:a05:6402:128c:b0:522:2add:5841 with SMTP id w12-20020a056402128c00b005222add5841mr73378edv.7.1690815078557; Mon, 31 Jul 2023 07:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690815078; cv=none; d=google.com; s=arc-20160816; b=xWgVFxRzjhDaaohiZuE5APTzKMI0BFN0vZ0+PPYZMvcBhs187FK/wIdw1DbFa33fGs VfAMRUOOgtFeZ78PZNWVAGH9Mk7i5qk0MZvC+Ea+ofm1lewZ8hy6X8np440t4zGNMDPO 0dlrIVnjIXzUPbgg2gHrwjc3JAF5SwU/yJ/zgvputwCGS99EoBiswEBdRlksRQJdJki+ WkPsAd1vSvjWbsLau9Uuesr2MfhA12PKCDbLMJNYzhtomIRupiCjAvtiwNjhfHDS50GP E8fo9h2zMse4733Caea7d2J2GhGZPxFIRXC2Wn9FXWHswzdGO7/3ygRubfocySXojHFj LGRA== 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=iwFLURUB30xvtPV0rLPtWEb+8dLNcrcJZ0Zfy0Q6ol8=; fh=yQOlfVuAygRLudEwWtVhjHurBOGTT/pkEGbFNDTloFY=; b=L0bDcxSHiojjZySAOFUJ2IP4ps6Rm+dmDIvcmBvBaVpzmS/byjuHOE6EQRRY5ORHQH NyXx1gSFUlXxpUPBWZadM3eOGJpjcBdbQj6o/CNn5PGiL6SHsd5nZ4GejkxXrIN1DOUG kAptBq3KpbKMrkia1YO3zu51fQN55uwEyTVqQGV+JuOG8mM7qvx5spgEBrePJg6IevKL yefota/kzE0MCD+A+8HEVZmM0MOF3YiNaEp6XB9+gIBvCWeH+nWlmS2DZgrgf6fpjLzH 9qNo/Sz4nQ3MlP7tGs0Gte5xK9s4DpW/4FFeUEg8Y6wXDlOBNDBGjjITcMC8Jg1Q5B24 No7Q== 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 n10-20020aa7c44a000000b0051e26de2e9dsi6566879edr.93.2023.07.31.07.50.53; Mon, 31 Jul 2023 07:51:18 -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 S232159AbjGaOV7 (ORCPT + 99 others); Mon, 31 Jul 2023 10:21:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbjGaOV5 (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 50834186; 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 3D26620F45; 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 3/4] arm64: dts: ti: verdin-am62: dev: add sound card Date: Mon, 31 Jul 2023 16:21:34 +0200 Message-Id: <20230731142135.108477-4-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 NAU8822 based analog sound card to Development carrier board. Signed-off-by: Francesco Dolcini --- .../arm64/boot/dts/ti/k3-am62-verdin-dev.dtsi | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-verdin-dev.dtsi b/arch/arm64/boot/dts/ti/k3-am62-verdin-dev.dtsi index 846caee7dfa4..8f4ca7d3cad5 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-verdin-dev.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-verdin-dev.dtsi @@ -8,6 +8,42 @@ * https://www.toradex.com/products/carrier-board/verdin-development-board-kit */ +/ { + 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-nau8822"; + simple-audio-card,routing = + "Headphones", "LHP", + "Headphones", "RHP", + "Speaker", "LSPK", + "Speaker", "RSPK", + "Line Out", "AUXOUT1", + "Line Out", "AUXOUT2", + "LAUX", "Line In", + "RAUX", "Line In", + "LMICP", "Mic In", + "RMICP", "Mic In"; + simple-audio-card,widgets = + "Headphones", "Headphones", + "Line Out", "Line Out", + "Speaker", "Speaker", + "Microphone", "Mic In", + "Line", "Line In"; + + codec_dai: simple-audio-card,codec { + clocks = <&audio_refclk1>; + sound-dai = <&nau8822_1a>; + }; + + simple-audio-card,cpu { + sound-dai = <&mcasp0>; + }; + }; +}; + /* Verdin ETHs */ &cpsw3g { pinctrl-names = "default"; @@ -65,6 +101,15 @@ &main_gpio0 { &main_i2c1 { status = "okay"; + /* Audio Codec */ + nau8822_1a: audio-codec@1a { + compatible = "nuvoton,nau8822"; + reg = <0x1a>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2s1_mclk>; + #sound-dai-cells = <0>; + }; + /* IO Expander */ gpio_expander_21: gpio@21 { compatible = "nxp,pcal6416"; -- 2.25.1