Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3455363rwb; Mon, 7 Aug 2023 13:59:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzCnhXNv9pxbHU5xPPHCxnkNMQa4bplvmwNaf5dxzGmF7lnuF//ClYXj6mmZzPIDkKbbBB X-Received: by 2002:a17:902:f68e:b0:1bc:7e37:e832 with SMTP id l14-20020a170902f68e00b001bc7e37e832mr660279plg.19.1691441968922; Mon, 07 Aug 2023 13:59:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691441968; cv=none; d=google.com; s=arc-20160816; b=vDIoNDHEiaTcum8V0Vnl3rb10RU+mN/r403fqargd0IM9XCPn9q1brKWVOjbKKv05N Y05VjWPWt7Lym79cKKQVDwTRL0oFq9zw5HvvPQwaIQwDGmxiLp9WH4iiz8NPuuuLspU0 o89Qh5YS1WGLzYHZGEqyW7H2Kxp1IIQ0t3Rq3NUofN1Nlo/QPBn9v+85z7xMOZNESB0G MfqgaxEdqnIgMy40iWfrxKGsNI4Xoh6BRwaEY5qfUwUrfMXXFPeCDXH+7PcU+FhQ/sL5 PsPtCG17agG3lgc3WLRzCSTfFl7Q94JNVwi/qdWOFXGduVMUkEx0rulQY5u5xi/J3kvT i/dA== 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=QesLXcpEwbMw27A/wwrj2lqQ4wF33tZLNOwS0gOS5jA=; fh=9pMZi9GXUJoyz+KKdLSUSQbDAXDuUfNOupwT0He1AXw=; b=RLMmA6Hcq9H3l7TMr4OblPKGdGjrIJDkGQkPIZ+z9HlVfuu/3DE8j91SLoEAGv86Wu B83pRI8f92M5UWHa+d/aHDlNn0HutTTr/+DFIZp3s5B0IBj+RsGiJDShNLnAI4q60F7L 2mWYffq6PlZqV7eubBrry/nCbSjH2Iv0jVBID6wi6PC0MNqvY4oJ5k/oNdRJ3dQNTDyh vPfUm96645vdq9DLSMmmDk5OsdwMcWvF/LAybq0qzmo3U2+hHx61G9OrJI9wWqeH+Rhw A0U7sO/Hh8sBDxSM1Q4YaKGKXiFfY2PlGlotO4cOqBZSY8lbcze7w9ql5D7r3z+ufT+2 smlQ== 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 le4-20020a170902fb0400b001b55d413790si6017760plb.269.2023.08.07.13.59.16; Mon, 07 Aug 2023 13:59:28 -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 S229645AbjHGUWX (ORCPT + 99 others); Mon, 7 Aug 2023 16:22:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231180AbjHGUWK (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 8637F10E9; Mon, 7 Aug 2023 13:22:08 -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 AF8B8207CE; Mon, 7 Aug 2023 22:22:06 +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 3/4] arm64: dts: ti: verdin-am62: dev: add sound card Date: Mon, 7 Aug 2023 22:21:58 +0200 Message-Id: <20230807202159.13095-4-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 NAU8822 based analog sound card to Development carrier board. Reviewed-by: Jai Luthra 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 8205081fda33..6701cb8974bb 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