From patchwork Tue Jun 30 12:58:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 192072 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp3790498ilg; Tue, 30 Jun 2020 05:58:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyR+nFIIExZkbuXFokgg5j5VanAFddCG2M+lu7t9LUtY718maZGVG5r1xeqN+85T/FR1ULA X-Received: by 2002:a17:906:7208:: with SMTP id m8mr18927185ejk.544.1593521892834; Tue, 30 Jun 2020 05:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593521892; cv=none; d=google.com; s=arc-20160816; b=V1mlehMVRUy4ismuyFkQJL882/e2TuSh74nMr0AeWFKYY7SxelH5lVfDdOEJq+VtIW OTqslr2JWlFWDg9U5cKa5L/rdL/D4UmEGGHX3SxglWnpD18vvRnzIhvyx648uqTFFJMV FiuzQgwyQCr1ggU2oL1qFzQTTkW5BlVYd9WMnI9oTaMLRnJ61VHOVbfrWWI7KnIh4dow LpsaU3IMOJ+vADwoe0IxLcCvW6OmSdthbReUvz9IoVWNoBj5MJ2pwSeXMmAewXyGDvB8 hugpc6TLLFWQWKRfIcApCclgyNxFIWS0DM3f4lay+X889FZGkNlwPsQ6wwwa+vlczKxn ztIw== 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=CF1G5uFQgguBI8i64sPAXI2UAdkI5NMr546g/I9Pmy/P9/IR+6BRneHC7O4b+3nE07 KNX9vk4aQ9jlcbVC2UZBibxH2B1e8+Gu1rAfe2vKwI6jNNDtzWVGCOvqHWUWyYB5HFxH 12JhLz5OTZBtBs+zGH4DvQUkNKolhluKgYcpflxXMGZm6l0cfiSW9h5xe7gNUH/0PoAS smQwZNb9+l8qLUOyQl3FJhPBIOvdJRBUsC/5iadRGs6EWCxUT1RQoqiqn6xdbvhky/IH 5PDvX8jE5dvX60651fDyhVcDzFCIj5Jqcz0C+bE/SwIdtSmqIPu1cb4Gnfr10ZLeVg94 FKMQ== 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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 h22si1749317ejf.256.2020.06.30.05.58.12; Tue, 30 Jun 2020 05:58:12 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S2388054AbgF3M6M (ORCPT + 6 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 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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