Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1512209rwl; Wed, 29 Mar 2023 19:55:00 -0700 (PDT) X-Google-Smtp-Source: AKy350bLFmka6NlV1Q/i+138j2At7wqdwtQABDdG/FCDUG6DATo9vq7I9EvpwbjhD2SNY5a+r17U X-Received: by 2002:a17:90b:4b52:b0:231:24c1:8028 with SMTP id mi18-20020a17090b4b5200b0023124c18028mr23737389pjb.29.1680144900192; Wed, 29 Mar 2023 19:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680144900; cv=none; d=google.com; s=arc-20160816; b=LwbHBrwcNVeUmHUCUjl+PZk+AW/AcXfFu+G8WszrECzVAfHqOuiF3xa6DZKELEk7Gv 9lwpPYH1ybOrgFqY5obqdFm/oONbC9y/vZn4AURgb7JHfyatSahyX1uvS7zWoRHCtMMR oMBu9fJZ2Y4p+0zJXM+gDbX3mnt28DCqcSfT+LT8TkT6DWflBj4sO/YDcK81L7NkLLn7 ENVEJmTfnTPB+8F4+ebdhw/2TA6ZrLkdV3+xBKSWPH0oFgN+lL9YjL2HIMUzdUqjB+dW uIZiXSiUuUV4aITl5Zusrxm0micVZEeN+JvPmZsjf7qlGAQFy61/KFzIWZKYV4mhugF/ rTJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QratJsU65KCh7StfpvQc3utDLCIvnJUkTNE2SUyQnj4=; b=iA3wgCVBlCgIgM9Yp03AcH0TJ3QvLH5Ndms2ujcl9CceE852UVPouZIdAY21kMiY2P f3DIM9Hlw7J1cFJ3TGqoURwUvQcjbu+076IBtLA0u8OonK8EVWpniRraIFJmUIQg/2YY GYjI8YYSpqga111LuSkIQ8oeG6gv8eJlMLX12wnkQHsGTX7AKjBKl4RVhuJd48lr1dbi 4Jp7SXblRRrVcLJZSlY8U0pkoMlPyLtZtwCWgWDgZoxfLiRI52me+wepTSy5jd2Zx4Op NOglS+UvQ/7uYsb/7H67IADRo3h8dMsXH4Xpg+AC0GNNVlmmsyfHWtMk6dFpsPTLuLVe FPlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GX05q997; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o6-20020a17090ad20600b0023f9cb53c90si2789271pju.70.2023.03.29.19.54.47; Wed, 29 Mar 2023 19:55:00 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GX05q997; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229694AbjC3CvP (ORCPT + 99 others); Wed, 29 Mar 2023 22:51:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbjC3CvO (ORCPT ); Wed, 29 Mar 2023 22:51:14 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 850E34EEA; Wed, 29 Mar 2023 19:51:12 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32U2oxdu047180; Wed, 29 Mar 2023 21:50:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680144659; bh=QratJsU65KCh7StfpvQc3utDLCIvnJUkTNE2SUyQnj4=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=GX05q997NCB4r7qwdAT0GujILuNfv00cNynn679+f/zClztnWJHnXtv9bE7O0XHsP 08A7mTfhuh3RKNv22Oh2Wqo5qXTrfntAvxAW5Nh6WhZf6XI8DQmEotqc+P2JsiUvE6 WFzkrb1PmVoMK3QVNhXKGHHYijPbbSypdF6kATeQ= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32U2oxxb031164 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 29 Mar 2023 21:50:59 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Wed, 29 Mar 2023 21:50:58 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Wed, 29 Mar 2023 21:50:58 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32U2owe6093270; Wed, 29 Mar 2023 21:50:58 -0500 Date: Wed, 29 Mar 2023 21:50:58 -0500 From: Nishanth Menon To: Jai Luthra CC: Vignesh Raghavendra , Tero Kristo , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski , , , , Aradhya Bhatia , Devarsh Thakkar , Jayesh Choudhary , Andrew Davis Subject: Re: [PATCH v9 6/6] arm64: dts: ti: k3-am62a7-sk: Enable audio on AM62A Message-ID: <20230330025058.sum2yq2yaufxevfy@giver> References: <20230313-mcasp_upstream-v9-0-6d937efe4ec4@ti.com> <20230313-mcasp_upstream-v9-6-6d937efe4ec4@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230313-mcasp_upstream-v9-6-6d937efe4ec4@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS autolearn=unavailable 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 On 16:01-20230329, Jai Luthra wrote: > Add nodes for audio codec and sound card, enable the audio serializer > (McASP1) under use and update pinmux. > > The codec (TLV320AIC3106) is also supplied with a DVDD 1.8V supply from > the PMIC (TPS6593x) on the SK. [1] As the PMIC driver and devicetree > node is missing, skip describing DVDD for now and manually set the OCMV > voltage. Please drop the am62a7 series from this patch series. once you add PMIC device tree property, then lets add the dvdd properly rather than reworking this again. > > Link: https://www.ti.com/lit/zip/sprr459 [1] > Signed-off-by: Jai Luthra > Reviewed-by: Jayesh Choudhary > --- > arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 77 +++++++++++++++++++++++++++++++++ > 1 file changed, 77 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts > index 2296d656323c..8d7087e5f9e4 100644 > --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts > +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts > @@ -123,6 +123,41 @@ led-0 { > default-state = "off"; > }; > }; > + > + tlv320_mclk: clk-0 { > + #clock-cells = <0>; > + compatible = "fixed-clock"; > + clock-frequency = <12288000>; > + }; > + > + codec_audio: sound { > + compatible = "simple-audio-card"; > + simple-audio-card,name = "AM62Ax-SKEVM"; > + simple-audio-card,widgets = > + "Headphone", "Headphone Jack", > + "Line", "Line In", > + "Microphone", "Microphone Jack"; > + simple-audio-card,routing = > + "Headphone Jack", "HPLOUT", > + "Headphone Jack", "HPROUT", > + "LINE1L", "Line In", > + "LINE1R", "Line In", > + "MIC3R", "Microphone Jack", > + "Microphone Jack", "Mic Bias"; > + simple-audio-card,format = "dsp_b"; > + simple-audio-card,bitclock-master = <&sound_master>; > + simple-audio-card,frame-master = <&sound_master>; > + simple-audio-card,bitclock-inversion; > + > + simple-audio-card,cpu { > + sound-dai = <&mcasp1>; > + }; > + > + sound_master: simple-audio-card,codec { > + sound-dai = <&tlv320aic3106>; > + clocks = <&tlv320_mclk>; > + }; > + }; > }; > > &main_pmx0 { > @@ -201,6 +236,15 @@ AM62AX_IOPAD(0x130, PIN_INPUT, 0) /* (AB17) RGMII1_TXC */ > AM62AX_IOPAD(0x12c, PIN_INPUT, 0) /* (W16) RGMII1_TX_CTL */ > >; > }; > + > + main_mcasp1_pins_default: main-mcasp1-pins-default { > + pinctrl-single,pins = < > + AM62AX_IOPAD(0x090, PIN_INPUT, 2) /* (L19) GPMC0_BE0n_CLE.MCASP1_ACLKX */ > + AM62AX_IOPAD(0x098, PIN_INPUT, 2) /* (R18) GPMC0_WAIT0.MCASP1_AFSX */ > + AM62AX_IOPAD(0x08c, PIN_OUTPUT, 2) /* (K19) GPMC0_WEn.MCASP1_AXR0 */ > + AM62AX_IOPAD(0x084, PIN_INPUT, 2) /* (L18) GPMC0_ADVn_ALE.MCASP1_AXR2 */ > + >; > + }; > }; > > &main_i2c0 { > @@ -235,6 +279,19 @@ exp1: gpio@22 { > "MCASP1_FET_SEL", "UART1_FET_SEL", > "PD_I2C_IRQ", "IO_EXP_TEST_LED"; > }; > + > + tlv320aic3106: audio-codec@1b { > + #sound-dai-cells = <0>; > + compatible = "ti,tlv320aic3106"; > + reg = <0x1b>; > + ai3x-micbias-vg = <1>; /* 2.0V */ > + ai3x-ocmv = <1>; /* 1.5V */ > + > + /* Regulators */ > + AVDD-supply = <&vcc_3v3_sys>; > + IOVDD-supply = <&vcc_3v3_sys>; > + DRVDD-supply = <&vcc_3v3_sys>; > + }; > }; > > &sdhci1 { > @@ -303,3 +360,23 @@ cpsw3g_phy0: ethernet-phy@0 { > ti,min-output-impedance; > }; > }; > + > +&mcasp1 { > + status = "okay"; > + #sound-dai-cells = <0>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&main_mcasp1_pins_default>; > + > + op-mode = <0>; /* MCASP_IIS_MODE */ > + tdm-slots = <2>; > + > + serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ > + 1 0 2 0 > + 0 0 0 0 > + 0 0 0 0 > + 0 0 0 0 > + >; > + tx-num-evt = <32>; > + rx-num-evt = <32>; > +}; > > -- > 2.40.0 > -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D