From patchwork Tue Jul 28 10:07:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 1337735 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=tk5Nowcr; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4BGCCy3qKRz9sTC for ; Tue, 28 Jul 2020 20:12:46 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728446AbgG1KMo (ORCPT ); Tue, 28 Jul 2020 06:12:44 -0400 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:58054 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728445AbgG1KMn (ORCPT ); Tue, 28 Jul 2020 06:12:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1595931163; x=1627467163; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=qWRJyT7ofYqitA7J7pY2TzLOv0iLUhqR8zqJooNWb/Y=; b=tk5NowcrWeAcifg/ynpsUyLC10AUZI3k8yLIZGvGQUvGTVcvtHXzd6OE bSdVf1j/J2zrnYJFHzlmNHiw4VwXrfcIv8JFtLdxFV7sqcG9l5k8ZeYrQ l2CiZrgYdGcj0vcB3PdfGNdN+iesE1EstGfU0J1IiiM6nsAGbvi9n4wwF 1R5qDU6H9TtI3sgagLWymT62SHeGgDxr6PcYaGZN43H+J2fsXtLET82NK 5H47VuHFGxm3GtaO/FXVaBYF3dBqWyL709uFRd784hdxZlINgWHg/AY1b C3Sge9af6tVO/zxvc2BJH7ueckzBss30VDKkPSZHJ+OCOSHwgo9NKFHSx w==; IronPort-SDR: gdPgaWcpufmrKHTg82I5mspqkRip8bEW8aDNhKJEbccH4P1o17eWwqZ3rgBxFEptjbsvhJbRsh UXvbrECR/Li40jtK4QxamVLOoFYeHfR4u/TMu3fmYOQ2OpjKU+QFXNZZspfZlXMByfGdfAdzIb ImCSyAMUO0Fyoni426xHqToRiKkOvN75wShDuuM9bgAcvPPILsJjaWfXSMVDk90ZynqrKba0oz Od6psfDfZiRdhNr1Nknmq/spaeqbLDRR8yrgbnBKmezGbCy+/RbUsJuCI4/ShSEP8bWZH6/BN8 L/4= X-IronPort-AV: E=Sophos;i="5.75,406,1589266800"; d="scan'208";a="85607370" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Jul 2020 03:12:42 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 28 Jul 2020 03:12:42 -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; Tue, 28 Jul 2020 03:11:53 -0700 From: Codrin Ciubotariu To: , , , CC: , , , , , , , , "Codrin Ciubotariu" Subject: [PATCH 1/2] dt-bindings: sound: add DT bindings for Microchip S/PDIF TX Controller Date: Tue, 28 Jul 2020 13:07:43 +0300 Message-ID: <20200728100744.2820112-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 --- .../bindings/sound/mchp,spdiftx.yaml | 76 +++++++++++++++++++ 1 file changed, 76 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..8e2acfbbe621 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/mchp,spdiftx.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: https://devicetree.org/schemas/sound/mchp,spdiftx.yaml# +$schema: https://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: + oneOf: + - 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 + + dma-names: + const: tx + + pinctrl-0: true + + pinctrl-names: + const: default + +required: + - "#sound-dai-cells" + - compatible + - reg + - interrupts + - clocks + - clock-names + - dmas + - dma-names + +additionalProperties: false + +examples: + - | + spdiftx@e1618000 { + #sound-dai-cells = <0>; + compatible = "microchip,sama7g5-spdiftx"; + reg = <0xe1618000 0x100>; + interrupts = ; + dmas = <&dma0 AT91_XDMAC_DT_PERID(50)>; + dma-names = "tx"; + clocks = <&spdiftx_clk>, <&spdiftx_gclk>; + clock-names = "pclk", "gclk"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spdiftx_default>; + };