From patchwork Wed Sep 9 14:53:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 11765571 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6AFB1138E for ; Wed, 9 Sep 2020 14:54:33 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 3B5E720768 for ; Wed, 9 Sep 2020 14:54:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="j5Kulkz8"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="Wl0pXc61" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B5E720768 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=5Go0Ep3TlgG7i4H/IH2LO8mZfp3HXCZJUVh/eovlSzI=; b=j5Kulkz8Ix6/5hI6v2dnvlAF32 b12zIk9wordupDw1xSsAskvobQLvzexXXhvYkJQvAmgFABKLTN2lcsQBNTPfCrigD81DijHKcv1rJ /KhIte2ud2oN++lpslc0UcT3SGoxtrbJLQ/WTIek+NAA2Gw5VMfk5tEoQDd2g8kWMmLmSkPuAKCIC BM6IASgd/5aMV6r3/osIas34J8IS3m07BeSeqtJEpB/ppTctMoofMdLdTqlmS8uONe0o+7LSZF47W 9gRVDlr3dboon0mWBrnAJ0Ikm1/XaqttbqCrI7G3ZxZXoUOMawoV3nxFSg/1tP6pb3iQ2+OgOZfGD nAmrFQOg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG1UL-0006VZ-LY; Wed, 09 Sep 2020 14:54:21 +0000 Received: from esa3.microchip.iphmx.com ([68.232.153.233]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG1UJ-0006US-4K for linux-arm-kernel@lists.infradead.org; Wed, 09 Sep 2020 14:54:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1599663258; x=1631199258; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=lgjF0qlCa2/wQXads/woBQepb5ar/T8sZ1QP8YDHF0E=; b=Wl0pXc61OmHeOTHe/JUNgLbiSYcYuf5vNpRtfjFQcCLTuHycZvVQFcn0 5C9cN+2bkRdDYt8ByKLS5yu/ynlbzd2mYe0ki/+hsBxHTlwFVjhKdymsE 1EwRuVWbc1js+Mmz7ONPt7bvSOOwie1gUWWbuNQn4w1G9t+/4JKfd2/TT 7Z6oOvhsriZWSg2YT2FedS7FtIlWM3ghfm0NxwW8bvulRMcSHfcigzaW2 BPUqpLn16hF3MWxYe7owvn82kwbOcxQD4kPr2kRvdWgngegT4zVEhV5EW uRHYBGfz0A9xMc997dwAMThor1RqmvJPryzpjEWGPTUUgIkZBv0PhOJEj w==; IronPort-SDR: ANPmC6FDYG/kTHlVsDWN0lqWHvAqGCWqG9lwf/OkcUkyqKM6RMN9VY6JHreb91mVz/Mwm3AIxw WkwQk+wQRvQIdsHpX7nWukEhUodpOj+wnaZPE3ECiZftveqFWwjjIBpytDtjbfvc5BAOCRVHYo 0fkHNPSi+n1SP8+fBvdWEtpjHLNLV6Ghrj61GcgXZan7uEUW0Knq+BPYIuPxVmZ29ifRn3Zwde BA2929HzE3A0CV1bS0erfF+QmwLWY7OE8chIwpZJuvIEVbIybU/leljCCUec4xpegxXHPBcIxh jIQ= X-IronPort-AV: E=Sophos;i="5.76,409,1592895600"; d="scan'208";a="91160126" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 Sep 2020 07:54:16 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Wed, 9 Sep 2020 07:54:13 -0700 Received: from rob-ult-m19940.amer.actel.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Wed, 9 Sep 2020 07:53:37 -0700 From: Codrin Ciubotariu To: , , , Subject: [PATCH v4 1/2] dt-bindings: sound: add DT bindings for Microchip S/PDIF TX Controller Date: Wed, 9 Sep 2020 17:53:47 +0300 Message-ID: <20200909145348.367033-1-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200909_105419_376613_582B58C0 X-CRM114-Status: GOOD ( 13.22 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [68.232.153.233 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [68.232.153.233 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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: Rob Herring , alexandre.belloni@bootlin.com, lgirdwood@gmail.com, robh+dt@kernel.org, tiwai@suse.com, ludovic.desroches@microchip.com, broonie@kernel.org, Codrin Ciubotariu , perex@perex.cz Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch adds DT bindings for the new Microchip S/PDIF TX Controller embedded inside sama7g5 SoCs. Signed-off-by: Codrin Ciubotariu Reviewed-by: Rob Herring --- Changes in v4: - added 'Reviewed-by' tag from Rob Changes in v3: - removed 'oneOf' from 'compatible' property; - added 'maxItems: 1' to 'dmas' property; - removed pinctrl related properties; Changes in v2: - replaced https with http; - reworked example, included bindings; .../bindings/sound/mchp,spdiftx.yaml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/mchp,spdiftx.yaml diff --git a/Documentation/devicetree/bindings/sound/mchp,spdiftx.yaml b/Documentation/devicetree/bindings/sound/mchp,spdiftx.yaml new file mode 100644 index 000000000000..a03b0b871fc9 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/mchp,spdiftx.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/mchp,spdiftx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip S/PDIF Tx Controller Device Tree Bindings + +maintainers: + - Codrin Ciubotariu + +description: + The Microchip Sony/Philips Digital Interface Transmitter is a + serial port compliant with the IEC-60958 standard. + +properties: + "#sound-dai-cells": + const: 0 + + compatible: + const: microchip,sama7g5-spdiftx + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Peripheral Bus Clock + - description: Generic Clock + + clock-names: + items: + - const: pclk + - const: gclk + + dmas: + description: TX DMA Channel + maxItems: 1 + + dma-names: + const: tx + +required: + - "#sound-dai-cells" + - compatible + - reg + - interrupts + - clocks + - clock-names + - dmas + - dma-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + + spdiftx@e1618000 { + #sound-dai-cells = <0>; + compatible = "microchip,sama7g5-spdiftx"; + reg = <0xe1618000 0x4000>; + interrupts = ; + dmas = <&dma0 AT91_XDMAC_DT_PERID(50)>; + dma-names = "tx"; + clocks = <&pmc PMC_TYPE_PERIPHERAL 85>, <&pmc PMC_TYPE_GCK 85>; + clock-names = "pclk", "gclk"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spdiftx_default>; + };