From patchwork Mon Aug 3 08:18:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 1340192 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=VYiY6bDT; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4BKrQ85YF3z9sTY for ; Mon, 3 Aug 2020 18:19:12 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725951AbgHCITL (ORCPT ); Mon, 3 Aug 2020 04:19:11 -0400 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:7841 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725806AbgHCITL (ORCPT ); Mon, 3 Aug 2020 04:19:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1596442751; x=1627978751; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=SGEcvZSOFRJblJ2NNtHSQW6ePv1d9zPxcHnZaXeLFiU=; b=VYiY6bDTuBXp6xOxHQy2k6cGjppwxlhr2n89UkX9ExqmVB9bFr8IaoLx geMYfGJFkciI1467VX+yB52Dz+r+c+UERe0v2Ww2zXpe9AqMIjvQNwMIj M6QbE2oZXTv9zKmMQ/YPzIK8xn79qkcf6hthNe9d8HFPgtiut11ijjDYI cZEeLwDaVpPWNpxubu1u7C57dk88Lv3yN9EEjA9ni/5qhYSI/kdC6KH6a v4WBrV3Lm6FNVtyJqsBYTv1YZs3SiqIEuN7iSg+UUPVTMHT4KBhuZg8BL E1maenwrs/XWkUoXuUIl6eajf73vYiveXlYEIWQlS9miONFJ9EPvJHGmf Q==; IronPort-SDR: ArdU2Nv5C0JvSFp9vuMfJ520kxKJg7pI/l8khOhEDbMavYbsspqKkytDq+NTOYYtw2i2whfNSZ OE2bVLLDkDlaYsbWDrFFOZxOnv4dae1B0PPLkEiV/A6lAIX5Lgn1UzHXHrsTUahN3xMJ8gvzvj 9zOrLVAgp0o+tvPOF+tfUKL47cvFjGdTIuQUQvihuqH+xtWqk9oMcXERLsxTcsNWPxiHOuvGtv izr6Na9AbMicbRJWamuv+UGlFVcut9We19gA0I2bvcwT+MStUm60Q0j8KyZWPcnQ8gA0NLGGiV 6jY= X-IronPort-AV: E=Sophos;i="5.75,429,1589266800"; d="scan'208";a="85586189" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Aug 2020 01:19:11 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) 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; Mon, 3 Aug 2020 01:19:09 -0700 Received: from rob-ult-m19940.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Mon, 3 Aug 2020 01:19:03 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , , "Codrin Ciubotariu" Subject: [PATCH v3 1/2] dt-bindings: sound: add DT bindings for Microchip S/PDIF TX Controller Date: Mon, 3 Aug 2020 11:18:50 +0300 Message-ID: <20200803081851.102570-1-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 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>; + };