Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3739227ybz; Mon, 4 May 2020 08:50:06 -0700 (PDT) X-Google-Smtp-Source: APiQypLYt73NocNKqvKQ5JFVEqhLj7AWcH5cfTeXvfl/F2D0zzUIVIhSSfDqOmNlzcCU1g05ZLeS X-Received: by 2002:aa7:dcc3:: with SMTP id w3mr14433387edu.231.1588607406465; Mon, 04 May 2020 08:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588607406; cv=none; d=google.com; s=arc-20160816; b=w39APXYS+MYRki5Eqsc10SjmrRddizJpkUB0PWVb4ypBerF/GRwAOkwKTuD/2dkHhr Cx7E6qUCwY36Y6Kk+PpLwtLpoOY297ZBtXBkHvM8ODPOJlyWCBmI+f6vdBGeMDSY81+W 9XnMC5cUoQAtvzLWoAiVrxIV52oODnWLWcdFVMX4PWeZQsEKWz7nWlVpfpke9RW1Ni/M haE/YvjHPKrCZk7nuKkhFZX1DDd9NMYY87xdDAmREGYpnffaW3OBNR+KwsJAQ3fiGb3l VWFZMlxhvi7/lorFv/RMesFoMa5IF1Fh2AsNTG4V8+Cpqky0w00ry41jQmIPsFfPv65g mmRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=1Ggk2BIJytvJuALTrGUMfblqMAMj1YflKy4YfvgqcPQ=; b=Jw7V6L4To7L1nV5SEM6L5Llxu9mt5apy6dAqqtSEhhh0BWsPXkl1W1Z3Ftf9fmJ0Sl Uc6CF4/3GoJBycwOlIF+Ec262D8/0EwWno4N/nDrcVRGZn8HUnCWM9UKR6+6+tDCypEp 4MOsZG2GgFpIV5HpO3Hnx8jCquZZJoZlW1x3S/zODO56F27sNrluSnHKg2TJPc8DlBqi i0lr//A5ctzPm25f3IXHzNCZoUlmV5vEHqxSkzmgnNdssWe2pWk7MV90lOwdj7bvDmxm LOKurvSd/z0IN2u9xL9aO/Ed1rnAINqhwKQqLxKTWZrWel/b155Wwh5Ve65lPdDKcRjz /Y5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=n2AewZD5; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si7439399ejy.37.2020.05.04.08.49.43; Mon, 04 May 2020 08:50:06 -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=@cirrus.com header.s=PODMain02222019 header.b=n2AewZD5; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728990AbgEDPsV (ORCPT + 99 others); Mon, 4 May 2020 11:48:21 -0400 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:32702 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbgEDPsV (ORCPT ); Mon, 4 May 2020 11:48:21 -0400 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 044FfANr013282; Mon, 4 May 2020 10:47:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=PODMain02222019; bh=1Ggk2BIJytvJuALTrGUMfblqMAMj1YflKy4YfvgqcPQ=; b=n2AewZD5Wc4WhZ69UF17/fCenMKW3D6g6UCJ4ugMiVvDTusTHGBsmyQkMTjGkIlMpnbB +tpQmM7/ff8hS5MSB5rVKGdleqJn9oXPxMN/FOQ4ffaaGUR/GnKZjnFrATfH5tD/z0TY minvOisL/n8+U5U5khZR0HegEdfNSyeN7trnVUUzEFlCuL75AFAcx97uMlI0s8vaMavd OLplRL14UGSMj/J32lTQgmstKyCXrCTlZB2MPjie8W7jBJzRPt9nyBOTm6IACi4dOZ88 pnhCpFptVQ0ts7F8mHGCTAexIjkapNXEor5O9hfbknAk9ce9us6m5hPdWElRHUrHrNNV rQ== Authentication-Results: ppops.net; spf=fail smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0b-001ae601.pphosted.com with ESMTP id 30s59pkefj-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 04 May 2020 10:47:59 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Mon, 4 May 2020 16:47:57 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Mon, 4 May 2020 16:47:57 +0100 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 2FA282C8; Mon, 4 May 2020 15:47:57 +0000 (UTC) From: Charles Keepax To: , , , , , , , CC: , , , Subject: [PATCH v2 2/5] ASoC: lochnagar: Move binding over to dtschema Date: Mon, 4 May 2020 16:47:54 +0100 Message-ID: <20200504154757.17519-2-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200504154757.17519-1-ckeepax@opensource.cirrus.com> References: <20200504154757.17519-1-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-SPF-Result: fail X-Proofpoint-SPF-Record: v=spf1 include:spf-001ae601.pphosted.com include:spf.protection.outlook.com ip4:5.172.152.52 -all X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 clxscore=1015 phishscore=0 adultscore=0 spamscore=0 priorityscore=1501 mlxlogscore=999 suspectscore=0 lowpriorityscore=0 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005040126 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Charles Keepax --- Changes since v1: - Moved sub-node into MFD file leaving just the properties in here - Removed contains on the compatible - Removed some pointless descriptions Thanks, Charles .../devicetree/bindings/sound/cirrus,lochnagar.txt | 39 ---------------- .../bindings/sound/cirrus,lochnagar.yaml | 52 ++++++++++++++++++++++ 2 files changed, 52 insertions(+), 39 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/cirrus,lochnagar.txt create mode 100644 Documentation/devicetree/bindings/sound/cirrus,lochnagar.yaml diff --git a/Documentation/devicetree/bindings/sound/cirrus,lochnagar.txt b/Documentation/devicetree/bindings/sound/cirrus,lochnagar.txt deleted file mode 100644 index 41ae2699f07a9..0000000000000 --- a/Documentation/devicetree/bindings/sound/cirrus,lochnagar.txt +++ /dev/null @@ -1,39 +0,0 @@ -Cirrus Logic Lochnagar Audio Development Board - -Lochnagar is an evaluation and development board for Cirrus Logic -Smart CODEC and Amp devices. It allows the connection of most Cirrus -Logic devices on mini-cards, as well as allowing connection of -various application processor systems to provide a full evaluation -platform. Audio system topology, clocking and power can all be -controlled through the Lochnagar, allowing the device under test -to be used in a variety of possible use cases. - -This binding document describes the binding for the audio portion -of the driver. - -This binding must be part of the Lochnagar MFD binding: - [4] ../mfd/cirrus,lochnagar.txt - -Required properties: - - - compatible : One of the following strings: - "cirrus,lochnagar2-soundcard" - - - #sound-dai-cells : Must be set to 1. - - - clocks : Contains an entry for each entry in clock-names. - - clock-names : Must include the following clocks: - "mclk" Master clock source for the sound card, should normally - be set to LOCHNAGAR_SOUNDCARD_MCLK provided by the Lochnagar - clock driver. - -Example: - -lochnagar-sc { - compatible = "cirrus,lochnagar2-soundcard"; - - #sound-dai-cells = <1>; - - clocks = <&lochnagar_clk LOCHNAGAR_SOUNDCARD_MCLK>; - clock-names = "mclk"; -}; diff --git a/Documentation/devicetree/bindings/sound/cirrus,lochnagar.yaml b/Documentation/devicetree/bindings/sound/cirrus,lochnagar.yaml new file mode 100644 index 0000000000000..cea612d3d4a7d --- /dev/null +++ b/Documentation/devicetree/bindings/sound/cirrus,lochnagar.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/cirrus,lochnagar.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logic Lochnagar Audio Development Board + +maintainers: + - patches@opensource.cirrus.com + +description: | + Lochnagar is an evaluation and development board for Cirrus Logic + Smart CODEC and Amp devices. It allows the connection of most Cirrus + Logic devices on mini-cards, as well as allowing connection of various + application processor systems to provide a full evaluation platform. + Audio system topology, clocking and power can all be controlled through + the Lochnagar, allowing the device under test to be used in a variety of + possible use cases. + + This binding document describes the binding for the audio portion of the + driver. + + This binding must be part of the Lochnagar MFD binding: + [1] ../mfd/cirrus,lochnagar.yaml + +properties: + compatible: + enum: + - cirrus,lochnagar2-soundcard + + '#sound-dai-cells': + description: + The first cell indicating the audio interface. + const: 1 + + clocks: + description: + Master clock source for the sound card, should normally be set to + LOCHNAGAR_SOUNDCARD_MCLK provided by the Lochnagar clock driver. + maxItems: 1 + + clock-names: + const: mclk + +required: + - compatible + - '#sound-dai-cells' + - clocks + - clock-names + +additionalProperties: false -- 2.11.0