From patchwork Fri Jun 12 08:59:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 187832 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp215547ilo; Fri, 12 Jun 2020 01:58:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUvcsDVTVx5TM+fjlESc+GoKyx6G2hiCwvQowY7n0d4GTc94iJz8kGYIPPHfFaKL7VmxnP X-Received: by 2002:a17:906:2dc7:: with SMTP id h7mr12659322eji.15.1591952313349; Fri, 12 Jun 2020 01:58:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591952313; cv=none; d=google.com; s=arc-20160816; b=UfPSVoKhd6IHCtErLtOrFGnORx3eniejeIJ0T6mD0J2K0A4ZK070N8sR++TWMA/prw ZVgP+mZAQcX7RHLQZPJWo1lJm449fWHGljCslG1Tr65X7e7H/egp2QFUAUTR7b/qdVuP pIM90/Nb8EI7qMnwNwATmfvjexgVUBM/Q70CPidoqklsP7rZ5IlfJ11s8ks7z9HDaXqm apodLLC+TVZnz/Kd74dkG/PLfSHDUajmkIwuTGFlZovke6iHHvIGtBt5kK+G3Mti0kze iptgosuidhV+qGaiEsy4u9mNHW/Aa2PRa9AvshLVePmNHUjA5NrbIG5fRHfvPBHfB8fC HP6A== 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=NBDf0YaA1YfALk0ATaTtdnHy3hK4L7pWE3/OLak5WNo=; b=IxTWbI6+5H69tV67y/bWTM/ujILBlBiapZA9nDwzbNwDOi14R6V387yKpdBbNpldog DcpISSgRbZCHsDjsUcEQLQ4ygQ8M68HsFa+k69ulX+VnZSmhV2gVd7/iwAaq+/881JBP uXg+yY3LUJsS1F/YCvSRf1rdYYshlTl20jq0sQaiqE/woMgUxmXUd0UzVP2ULEHLuXF+ c5TxbWExtmGXWb16qEn9XbAOr4Tbj70yx+NlP5wbaNcVv93HRdeecO4wKcSg5JFNjP1O hPUyxbSMGt8+luyah41wWk06Af3hdfW7IirDXGEsaGeCezbhE/kdvk3EtsGCuUUFA95K vT6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oUSY+0Ig; 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 w11si3062288ede.55.2020.06.12.01.58.33; Fri, 12 Jun 2020 01:58:33 -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=oUSY+0Ig; 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 S1726362AbgFLI6c (ORCPT + 6 others); Fri, 12 Jun 2020 04:58:32 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:37436 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726319AbgFLI6c (ORCPT ); Fri, 12 Jun 2020 04:58:32 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 05C8wPPS034203; Fri, 12 Jun 2020 03:58:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1591952305; bh=NBDf0YaA1YfALk0ATaTtdnHy3hK4L7pWE3/OLak5WNo=; h=From:To:CC:Subject:Date; b=oUSY+0IgWeRsNy2KUsBOfjE1c+2yGkVx/l7JpLv6ZCz37sRlaeGNEEB2x2P5WPD1/ GLDX5VTzcHtNluO3Hp67fyRSG0X3Pc94peDxuC8wPsoDs9MaHjR9rc0ovt8SxubmXv 2YmuCXEOyUOZjNiGrp7Qjyx7eGaRCRsdpCShAKAI= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 05C8wP1W124701 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 12 Jun 2020 03:58:25 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 12 Jun 2020 03:58:24 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE112.ent.ti.com (157.170.170.23) 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; Fri, 12 Jun 2020 03:58:24 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 05C8wMMJ036678; Fri, 12 Jun 2020 03:58:23 -0500 From: Peter Ujfalusi To: , , CC: , , Subject: [PATCH v3 0/3] ASoC: ti: Add support for audio on J721e EVM Date: Fri, 12 Jun 2020 11:59:06 +0300 Message-ID: <20200612085909.15018-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 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 | 887 ++++++++++++++++++ 6 files changed, 1145 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