Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1515096ybt; Thu, 2 Jul 2020 07:23:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2qyB1Xj57LbmZoSN8048kYruGz+YgoqaG1JlH3PB4xgH7ZYYRx4fhqKvVfKQPpZMLp5NH X-Received: by 2002:a17:906:6d0e:: with SMTP id m14mr27489073ejr.251.1593699822828; Thu, 02 Jul 2020 07:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593699822; cv=none; d=google.com; s=arc-20160816; b=GPrKChNXew+IWal8juYLwZCbfRFWPmLKWYy6JV+tIb3jqMxp93KYh5wRWSE//2SRs2 J/5ArFqGrnBFacunhYkPaByTeg4XvwKC3c8KIuA4Gfx+sMTokwk4G+8aLrpSuZko9Lnf hKKhpDrpdfr5d+oqL1eIGSbT+NfecC7GoW1t6nc6WmbSIcMEPJtBva1hX0kFkzSk2ugq jGPS3Ka8iVEGLKbN4yz7R3JSzOZjY3VaPZyH+KsaDcdTTnJAMDQCL38j4EzxpQHq+4ve CaPU3er2gz0mAsbnbI9DjM3iq8w0qI9HU+EIcCQopWJzKXeoEexSN/11EI7705JJEZox 5dPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from; bh=oU/cMRN7iorbgmw2jF45BaP54dn6SVWo3YHzEeQapZ8=; b=LPg4DUNONrzJcoQjdTnzenols6rIiL4y4gJ6geN8azsbul3Be9y2LtEU+3Y+YscNBO tI34uuHufql4pLnJmRERR5R/GQLlD6JSZPvQqgPSVvJSa2kL31RH7+j2ehLeAo2Mx6ac cOWSrddgPEIWiwoZ798R68JNwyy2hGvM7qAFgi0GI7fQ9OxNAI2QrJAW7m1jZ52TQOqq HZIFkhbIWxl07F3Cgy4X8qri4BuRbUl193txw61bIfAMH1n8sNi5N9jlqRFl52Z3I3c9 JDPhcp/O80bXDAhtHOjmBKaWoSOi1tJuPLqCWT/meQhK+wc2kU6/vgNcuctnqt/rhCmk 7iZQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si5823142edv.119.2020.07.02.07.23.20; Thu, 02 Jul 2020 07:23:42 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729765AbgGBOXG (ORCPT + 99 others); Thu, 2 Jul 2020 10:23:06 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:59300 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729399AbgGBOXG (ORCPT ); Thu, 2 Jul 2020 10:23:06 -0400 Received: from xps.home (unknown [IPv6:2a01:e35:2fb5:1510:315a:ecf0:6250:a3ed]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aferraris) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id B97AB2A1D11; Thu, 2 Jul 2020 15:23:04 +0100 (BST) From: Arnaud Ferraris Cc: kernel@collabora.com, Arnaud Ferraris , Liam Girdwood , Mark Brown , Rob Herring , Timur Tabi , Nicolin Chen , Xiubo Li , Fabio Estevam , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 1/4] dt-bindings: sound: fsl,asrc: add properties to select in/out clocks Date: Thu, 2 Jul 2020 16:22:32 +0200 Message-Id: <20200702142235.235869-2-arnaud.ferraris@collabora.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200702142235.235869-1-arnaud.ferraris@collabora.com> References: <20200702142235.235869-1-arnaud.ferraris@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ASRC peripheral accepts a wide range of input and output clocks, but no mechanism exists at the moment to define those as they are currently hardcoded in the driver. This commit adds new properties allowing selection of arbitrary input and output clocks. Signed-off-by: Arnaud Ferraris --- Documentation/devicetree/bindings/sound/fsl,asrc.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/fsl,asrc.txt b/Documentation/devicetree/bindings/sound/fsl,asrc.txt index 998b4c8a7f78..e26ce9bad617 100644 --- a/Documentation/devicetree/bindings/sound/fsl,asrc.txt +++ b/Documentation/devicetree/bindings/sound/fsl,asrc.txt @@ -55,6 +55,12 @@ Optional properties: Ends, which can replace the fsl,asrc-width. The value is 2 (S16_LE), or 6 (S24_LE). + - fsl,asrc-input-clock : Input clock ID, defaults to INCLK_NONE + (see enum asrc_inclk in fsl_asrc.h) + + - fsl,asrc-output-clock : Output clock ID, defaults to OUTCLK_ASRCK1_CLK + (see enum asrc_outclk in fsl_asrc.h) + Example: asrc: asrc@2034000 { @@ -77,4 +83,6 @@ asrc: asrc@2034000 { "txa", "txb", "txc"; fsl,asrc-rate = <48000>; fsl,asrc-width = <16>; + fsl,asrc-input-clock = <0x3>; + fsl,asrc-output-clock = <0xf>; }; -- 2.27.0