From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E74DAC3A59E for ; Mon, 2 Sep 2019 13:42:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B4BBB216C8 for ; Mon, 2 Sep 2019 13:42:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="HAVzs5z4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B4BBB216C8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/+87x1t/F52wbCwqWSNbH4SOcOwZi3ZYj4LYd5dWWdc=; b=HAVzs5z4d4NvcA 0dXy9kp3m/dTKEyuCtkppLBV96CbSNArN7VwS3YDdtuFqJzEfm9Yjg8XcLQJ9rDeQbqHBIrotZXdp s4sbEs0fSzl10fSVrbVSjVfHAcD4UxsSmktlm1VurN76lvL+KJNkoqSm0tam+k+PzZSJahtLz9MsQ MILzOUwwiW5bSobig6zX/Lz0xFrF6xy+UrH5mOgvE6KUEIg9areBUhaF56Cma1+r7Y5AJ6zw7b4uN 2FaFkNOe+jSsxjM+sG5PumaBGmm8eZmtjQyiJCYtJw9EGEXEW6uG/myDX7GlpIM4t1TxVX5toz0PZ BwxaW5nnnx1SvOAxpX/A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i4man-0005lp-QF; Mon, 02 Sep 2019 13:42:01 +0000 Received: from mail-wm1-f66.google.com ([209.85.128.66]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i4mY4-0001aH-CP for linux-arm-kernel@lists.infradead.org; Mon, 02 Sep 2019 13:39:14 +0000 Received: by mail-wm1-f66.google.com with SMTP id k1so14646654wmi.1 for ; Mon, 02 Sep 2019 06:39:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=viDwZpOARz1cFM6lOwQ1Yo70h5ns2nY224fON3ziGZ0=; b=L+hwTCq2/tYJCmxMcjPFpAR+MJxIL3jey02POtGNj7DFBK1WEc5H1y5I2rmuqhe7tr /0r5Ln+gC6hqeheW2I/bw3RrNvAikziK5WXYydGYbFzarH/9M4GMtyVlzmmWa0LeW7Ny 6iTKqKKVreTPkJmrMXMRqn7xZHAxSlBBmG2+Zr6R/B2tmBAK+iZE958ZikdlEi/BuAoj suL7jyi/PcRMJmLjxgI48sbe19tOsVIQMWtKfkdDMCulE1rv+azFD18XyuOX2dG3+ycH qMPP35xj9WvFVW2/91Y59twE3mUTJ1Tt3mfAH9B+gIgydWnDLAUSwBv7UTmEw30sPRfC bSiA== X-Gm-Message-State: APjAAAWAZRpBVFqiFmJvsoKV0PWeopPwHKGfnet971ItoPbVkaEWAWbR RnAQtmu1zRiKTnj9BhW9gop/IxmmJg== X-Google-Smtp-Source: APXvYqxdFPgNrwKSJzlloeKFZWB965JRx6jQia5i73v3szd87dRMibiKtLQqdaSZgMepWZVR2jwaZw== X-Received: by 2002:a7b:c7cc:: with SMTP id z12mr16711817wmk.80.1567431551009; Mon, 02 Sep 2019 06:39:11 -0700 (PDT) Received: from localhost ([212.187.182.166]) by smtp.gmail.com with ESMTPSA id m23sm19628786wml.41.2019.09.02.06.39.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2019 06:39:10 -0700 (PDT) Date: Mon, 02 Sep 2019 14:39:09 +0100 From: Rob Herring To: Miquel Raynal Subject: Re: [PATCH 2/3] dt-bindings: sound: Add Xilinx logicPD-I2S FPGA IP bindings Message-ID: <20190902044231.GA17348@bogus> References: <20190830210607.22644-1-miquel.raynal@bootlin.com> <20190830210607.22644-2-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190830210607.22644-2-miquel.raynal@bootlin.com> X-Mutt-References: <20190830210607.22644-2-miquel.raynal@bootlin.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190902_063912_527491_15A099A2 X-CRM114-Status: GOOD ( 17.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Takashi Iwai , Liam Girdwood , Mark Brown , alexandre@bootlin.com, Thomas Petazzoni , Jaroslav Kysela , Michal Simek , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Aug 30, 2019 at 11:06:06PM +0200, Miquel Raynal wrote: > Document the logicPD I2S FPGA block bindings in yaml. > > Syntax verified with dt-doc-validate. > > Signed-off-by: Miquel Raynal > --- > .../bindings/sound/xlnx,logicpd-i2s.yaml | 57 +++++++++++++++++++ > 1 file changed, 57 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/xlnx,logicpd-i2s.yaml > > diff --git a/Documentation/devicetree/bindings/sound/xlnx,logicpd-i2s.yaml b/Documentation/devicetree/bindings/sound/xlnx,logicpd-i2s.yaml > new file mode 100644 > index 000000000000..cbff641af199 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/xlnx,logicpd-i2s.yaml > @@ -0,0 +1,57 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/xlnx,logicpd-i2s.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Device-Tree bindings for Xilinx logicPD I2S FPGA block > + > +maintainers: > + - Miquel Raynal > + > +description: | > + The IP supports I2S playback/capture audio. It acts as a slave and > + clocks should come from the codec. It only supports two channels and > + S16_LE format. > + > +properties: > + compatible: > + items: > + - const: xlnx,logicpd-i2s > + > + reg: > + maxItems: 1 > + description: > + Base address and size of the IP core instance. > + > + interrupts: > + minItems: 1 > + maxItems: 2 > + items: > + - description: tx interrupt > + - description: rx interrupt > + description: > + Either the Tx interruption or the Rx interruption or both. The schema says either tx or both. Doesn't really matter here as it's just numbers. > + > + interrupt-names: > + minItems: 1 > + maxItems: 2 > + items: > + - const: tx > + - const: rx But here it does matter. The easiest way to express this is: oneOf: - items: - enum: [ tx, rx ] - items: - const: tx - const: rx > + > +required: > + - compatible > + - reg > + - interrupts > + - interrupts-controller > + > +examples: > + - | > + logii2s_dai: logii2s-dai@43c10000 { > + reg = <0x43c10000 0x1000>; > + compatible = "xlnx,logicpd-i2s-dai"; > + interrupt-parent = <&intc>; > + interrupts = <0 29 IRQ_TYPE_LEVEL_HIGH>, <0 30 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "rx", "tx"; > + }; > -- > 2.20.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel