Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp183818ybz; Tue, 21 Apr 2020 18:15:20 -0700 (PDT) X-Google-Smtp-Source: APiQypKl2DcODwHlBa/J1Pxzxf75xArd9MqXjr7J8Hb1EN3PS92FKrU8kBzXNAkPopMGCDGPUrVs X-Received: by 2002:a17:906:c06:: with SMTP id s6mr23033719ejf.198.1587518120063; Tue, 21 Apr 2020 18:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587518120; cv=none; d=google.com; s=arc-20160816; b=I1eN+nnflCD+OV0fE5L4RIGeBknB17O3zUJSqCguDj9nnKskFBMBpCnIX63oyYYJ1j bsMeSXFU4xLcqxNcGEYISlHF3+Ago9JjdcwyhrzS+BGp7AH9YjhwfaCs7MMYObUdCry4 6YxhfbiX2Uj+yOroZEOXbIWxt+XZiRAHUbLX5OZb6exAbK0KRwcMCyAhfleWXrUoZLZk SJ9iVWkLoYvCmbPdYjJtjiZWA75HDCCIx/0srfnLH1wadvTgWIOZ4lLnSYYxAuwXpGjd 5gz4Qc70Et9AOrrnwCB1unFCI+X4Mpc8by625UObEaoCexiZFbrs0Bb/6/c3UVjrH78y +HQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/MQHbkEF9WqzGkIhMV+A7/Ho2fexhrVE+Fp2xg9G5vw=; b=bwXUMfVqGYURYTXkRwdL0SgZF7ab3ulUZcn89LKcq6jou9sfyXAOXKcqARBNmh3VyH I4Z3x3BBh4SykzXAJMyC/rWQzhzbFDJaACCeouW89UGcEUyWNLoMyJZZtho2DD3TjebO DbA0MHKcFHahkIntst4udnjvfc6Zu2jUL6ZW43Z/MRTgKfocBUtG2BC+8KwMRFF3L+H7 G9GnErUJDQCyUB3p4d52SEcRJL3YOYq/vAatmLWAIg9iUkQt1izRPaUuN+fIyvu/+Qow rtlOLB2uxhGnGZv1938c8FRd/WMD4zTsuDKRmb4uzGstjOhzV/hhHy0tKIwddG5ZnJD4 59bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=D2sXE9yC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qq2si2535050ejb.426.2020.04.21.18.14.57; Tue, 21 Apr 2020 18:15:20 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=D2sXE9yC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726335AbgDVBLv (ORCPT + 99 others); Tue, 21 Apr 2020 21:11:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726024AbgDVBLv (ORCPT ); Tue, 21 Apr 2020 21:11:51 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B28BC0610D5; Tue, 21 Apr 2020 18:11:51 -0700 (PDT) Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 90A24528; Wed, 22 Apr 2020 03:11:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1587517909; bh=JttfiURhrIhVwSVufhA9ryuXfJIG3R4ryYcC3Ir96HU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D2sXE9yCZ0iY3aB6GQ2crR2lHriVzkBs1ATtZFAyXdVX6dyyGq9ibhhNqn9eYQ1cE uw7Jug73O0bv5f2gxT6ifTLbclhqFsys5nrzaVjsmCiMLzaZg3aUeYe5LMf6IdPCrU m1LyltkPtBTCjX0pGYA6BGkh5GR2YcMcTA7G+eP0= Date: Wed, 22 Apr 2020 04:11:36 +0300 From: Laurent Pinchart To: Adrian Ratiu Cc: devicetree@vger.kernel.org, dri-devel , linux-kernel@vger.kernel.org, kernel@collabora.com, Rob Herring , Philippe CORNU Subject: Re: [PATCH v2] dt-bindings: display: dw_mipi_dsi.txt: convert to yaml Message-ID: <20200422011136.GN5983@pendragon.ideasonboard.com> References: <20200421105814.1364900-1-adrian.ratiu@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200421105814.1364900-1-adrian.ratiu@collabora.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adrian, Thank you for the patch. On Tue, Apr 21, 2020 at 01:58:14PM +0300, Adrian Ratiu wrote: > 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 I think you can also add the ports property and its child port@0 and port@1, as they're required in all cases. > + > +patternProperties: > + "^panel@[0-3]$": > + type: object > + > +required: > + - reg > + - clocks > + - clock-names -- Regards, Laurent Pinchart