Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp23558ybz; Tue, 21 Apr 2020 04:01:16 -0700 (PDT) X-Google-Smtp-Source: APiQypJA04JW6e0J+mZ0XOY8ObgFDcqpy09w0eT0NcjbKgKnMKEX5zATKHi8FebaQbHiMBktjAAT X-Received: by 2002:a17:906:13d1:: with SMTP id g17mr21096320ejc.162.1587466876588; Tue, 21 Apr 2020 04:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587466876; cv=none; d=google.com; s=arc-20160816; b=llwsjwMTUpoDQOd+/R9D5nRTgFSuYgeNZvj8jtYQc+L8EEjVRtoerbUEqaaHNEy2SB f6gHINkoJIMXNEhAlbe7NlDnSP++urVJDgz9kdAwOmKgjvWIEEe/qIUxdsqLFS5OUDc9 DUFNtih+ZB9mNcBR/FFyGnpU3Enqn5UiuSda57HSAxsCLkDSj+cHE5RqQVkWAXiPCm9t LEpFsFUVn/qermD62vTn/LeUQUR7+2/ndqMK+OCCLSpBX69O7V9Jt5s+CM+u8pSDiYm3 5rnSvRJCTYeFs6X+OYYiTEzIDozG/mMCIwQMCwhxbK5Yxx9Trc3gL7WMGkOKLlIIUzbP QMFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=nA/m1ShfePw8/d8usjizzmWXfITac97H3Zdx2udq+ug=; b=AQdoCP1XyEVx31+PTe3c8HHyw4MH7GeRyJWCdIK8YfTogq/rgqRrAvUdZXXlQ0I7wL 6g01/qMwMJAgkY3BKFeSXiA35oxvC2uvgKTtjyl7QPR58aOtJX7KJPFTLiB1gcO6x/pE 3YAlveO6arWhHgbI6mSlVNtDzFhJOdcauYGsivD2bZq8lHM2+1gCgwYmoLnutK4MtxnE fS01kU7mCN36NowMN6oIc5kNnnzgW7TUE9/LDvf6D/v8GMRiUYMW4jdC0aWp3G2cMS1O N/BJ5FhglQuluAD29Cnbdq4Qf7MKUE4bDav5nrymuyBWZNH56SDCTVRmWc8vW5z1GO2M 6iRg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 30si1556073edr.255.2020.04.21.04.00.51; Tue, 21 Apr 2020 04:01:16 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728533AbgDUK5T (ORCPT + 99 others); Tue, 21 Apr 2020 06:57:19 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:60090 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726120AbgDUK5S (ORCPT ); Tue, 21 Apr 2020 06:57:18 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: aratiu) with ESMTPSA id E04372A1265 From: Adrian Ratiu To: devicetree@vger.kernel.org Cc: dri-devel , linux-kernel@vger.kernel.org, kernel@collabora.com, Rob Herring , Philippe CORNU , Laurent Pinchart Subject: [PATCH v2] dt-bindings: display: dw_mipi_dsi.txt: convert to yaml Date: Tue, 21 Apr 2020 13:58:14 +0300 Message-Id: <20200421105814.1364900-1-adrian.ratiu@collabora.com> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This converts the Synopsis MIPI DSI binding documentation to yaml and should be quite straightforward. I've added a missing ref clk and also added Philippe as maintainer b/c he's the original txt author following the algorithm provided in Message-ID 20200420175909.GA5810@ravnborg.org. Cc: Rob Herring Cc: Philippe CORNU Cc: devicetree@vger.kernel.org Suggested-by: Laurent Pinchart Signed-off-by: Adrian Ratiu --- Changes in v2: - Removed unnecessary descriptions and maxItems (Rob) - Changed maintainers entry / dropped Mark (Rob) - Added dsi-controller.yaml ref (Rob) --- .../bindings/display/bridge/dw_mipi_dsi.txt | 32 ----------- .../display/bridge/snps,dw-mipi-dsi.yaml | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 32 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt create mode 100644 Documentation/devicetree/bindings/display/bridge/snps,dw-mipi-dsi.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt b/Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt deleted file mode 100644 index b13adf30b8d3b..0000000000000 --- a/Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt +++ /dev/null @@ -1,32 +0,0 @@ -Synopsys DesignWare MIPI DSI host controller -============================================ - -This document defines device tree properties for the Synopsys DesignWare MIPI -DSI host controller. It doesn't constitue a device tree binding specification -by itself but is meant to be referenced by platform-specific device tree -bindings. - -When referenced from platform device tree bindings the properties defined in -this document are defined as follows. The platform device tree bindings are -responsible for defining whether each optional property is used or not. - -- reg: Memory mapped base address and length of the DesignWare MIPI DSI - host controller registers. (mandatory) - -- clocks: References to all the clocks specified in the clock-names property - as specified in [1]. (mandatory) - -- clock-names: - - "pclk" is the peripheral clock for either AHB and APB. (mandatory) - - "px_clk" is the pixel clock for the DPI/RGB input. (optional) - -- resets: References to all the resets specified in the reset-names property - as specified in [2]. (optional) - -- reset-names: string reset name, must be "apb" if used. (optional) - -- panel or bridge node: see [3]. (mandatory) - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt -[2] Documentation/devicetree/bindings/reset/reset.txt -[3] Documentation/devicetree/bindings/display/mipi-dsi-bus.txt diff --git a/Documentation/devicetree/bindings/display/bridge/snps,dw-mipi-dsi.yaml b/Documentation/devicetree/bindings/display/bridge/snps,dw-mipi-dsi.yaml new file mode 100644 index 0000000000000..d9ab464f79ff4 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/snps,dw-mipi-dsi.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/snps,dw-mipi-dsi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synopsys DesignWare MIPI DSI host controller + +maintainers: + - Philippe CORNU + +description: | + This document defines device tree properties for the Synopsys DesignWare MIPI + DSI host controller. It doesn't constitue a device tree binding specification + by itself but is meant to be referenced by platform-specific device tree + bindings. + + When referenced from platform device tree bindings the properties defined in + this document are defined as follows. The platform device tree bindings are + responsible for defining whether each property is required or optional. + +allOf: + - $ref: ../dsi-controller.yaml# + +properties: + reg: + maxItems: 1 + + clocks: + items: + - description: Module clock + - description: DSI bus clock for either AHB and APB + - description: Pixel clock for the DPI/RGB input + minItems: 2 + + clock-names: + items: + - const: ref + - const: pclk + - const: px_clk + minItems: 2 + + resets: + maxItems: 1 + + reset-names: + const: apb + +patternProperties: + "^panel@[0-3]$": + type: object + +required: + - reg + - clocks + - clock-names -- 2.26.0