Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3554211ybt; Tue, 30 Jun 2020 05:59:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6KLmVrjeklfP0rj9qjEUpHmtHohZ37NShRoXMQJlnnAe85S38FnHejpOcIPu4bOM8qojM X-Received: by 2002:a17:906:fcb7:: with SMTP id qw23mr17134820ejb.229.1593521966757; Tue, 30 Jun 2020 05:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593521966; cv=none; d=google.com; s=arc-20160816; b=0K9/+Hl62aFgi7QmaddQ29kvnbtIm1PKkPPH7odacis1FWc6GtviOGNC55zckdngr1 J4yGDZg+8c2DJhx2N2sAlcM20CWeEZHhfY4xUuXqVCCn8xB8hoCkIMqqhCbLeEcNn03T 22bYhoh5kWtMwP4xznGs8NDpXmQ8C+eLEZ7wSFgcPC+HyI7n1Gm2+RzlmZIo+xaOlwDh NnM0YrbV3uwScjnAUEsyeGJY81WjsrGGCMIYALeKYakk8Ev796wY59w1B0f3YYLNW+6F oLHQjuyeTPpDGZs2buhR/oGr5/7z8ZSqb39/bpv2Kg2/UDYqc5vEf+cjKwI6pYPJFfHr I0wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=N4st7905B306yEUjTON3RZKPjzNz1qXCxAYNaV7aO7s=; b=ggnt9uBo/O8gsS/aZHbC0Jt3I5H7RFjps+ratRjdNcwmzUviwEHU0coEWjiKNN8/+o tDWxZ3OszZZXEDtDFeGOPn7fUHXxMpnpW96ZP2dhoByi3rqu/Sw7frCF3nxbmIMGLues fWkHykvzlnxjIDuOb6aQVFdLN0RKIgrMEAxFpZ0XDIP/g2P1cFUaQV/X/IzkDCfGnjU2 0mZWFcdbqbbEfb4QHkTRWeObH1PUrjq4R0TOO99CwG85dJ54hpG6jFGOEfQyOo9dl0vA sqKRWe+/eWl3uZZfSLRlPu+vVm+mYT8aMu1bRhloGsxIWI2YJm5Da18Y3yl6k0oxO+vU QGBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AHtX7lz4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ot18si1685579ejb.303.2020.06.30.05.59.03; Tue, 30 Jun 2020 05:59:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AHtX7lz4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2388096AbgF3M6M (ORCPT + 99 others); Tue, 30 Jun 2020 08:58:12 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:44844 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388063AbgF3M57 (ORCPT ); Tue, 30 Jun 2020 08:57:59 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 05UCvpUM102757; Tue, 30 Jun 2020 07:57:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1593521871; bh=N4st7905B306yEUjTON3RZKPjzNz1qXCxAYNaV7aO7s=; h=From:To:CC:Subject:Date; b=AHtX7lz4p8PXl8Eo+59XSYDbqUC8BnPlSpQ/pmAA2jroAECF38uciT6P5qFNe0QKl 8R3KsLNzZ/+4Q8gBnIm1cCMJxi/IdktlHAguip5nCNA604/mwGvL6wJwwl0zrunIr6 hFpWGzY8a3ERjxCDQFStDoORQVPjnh1YBgZ6ikfc= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 05UCvklX055812 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 30 Jun 2020 07:57:51 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 30 Jun 2020 07:57:47 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 30 Jun 2020 07:57:47 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 05UCviAI084334; Tue, 30 Jun 2020 07:57:45 -0500 From: Peter Ujfalusi To: , , CC: , , Subject: [PATCH v4 0/3] ASoC: ti: Add support for audio on J721e EVM Date: Tue, 30 Jun 2020 15:58:40 +0300 Message-ID: <20200630125843.11561-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Changes since v3: - Fix the single clock source handling and typo Changes since v2: - DT binding: - use proper (?) patch subject for the binding docuemtn patch - drop pll4 and pll15 from DT - driver should check the rate via clk_get_parent. If it is not available (as it is not currently) then use the match_data provided rates. - add simple explanation for the clocking setup - Use descriptive names for clocks: cpb/ivi-mcasp-auxclk and cpb/ivi-codec-scki - dt_binding_check shows no errors/warnings - ASoC machine driver: - Try to read the PLL4/15 rate with clk API (parent of the two clock divider) if it is not available then use the match_data provided numbers. - Support for single PLL setup Changes since v1: - Fixed DT binding documentation errors - Rebased on ASoC head and updated the driver to compile and work This series adds support for the analog audio setup on the j721e EVM. The audio setup of the EVM is: Common Processor Board (CPB): McASP10 <-> pcm3168a Infotainment Expansion Board (IVI): McASP0 <-> 2x pcm3168a Both CPB and IVI wired in parallel serializer setup. The first patch adds the stream_name for McASP driver as it is needed in multicodec (and would be needed in DPCM) setup for proper DAPM handling. The second patch adds two DT schema, one for the cpb and one for the cpb+ivi card. Regards, Peter --- Peter Ujfalusi (3): ASoC: ti: davinci-mcasp: Specify stream_name for playback/capture ASoC: dt-bindings: Add documentation for TI j721e EVM (CPB and IVI) ASoC: ti: Add custom machine driver for j721e EVM (CPB and IVI) .../bindings/sound/ti,j721e-cpb-audio.yaml | 95 ++ .../sound/ti,j721e-cpb-ivi-audio.yaml | 150 +++ sound/soc/ti/Kconfig | 8 + sound/soc/ti/Makefile | 2 + sound/soc/ti/davinci-mcasp.c | 3 + sound/soc/ti/j721e-evm.c | 896 ++++++++++++++++++ 6 files changed, 1154 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/ti,j721e-cpb-audio.yaml create mode 100644 Documentation/devicetree/bindings/sound/ti,j721e-cpb-ivi-audio.yaml create mode 100644 sound/soc/ti/j721e-evm.c -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki