Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3535113imw; Thu, 7 Jul 2022 03:30:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tQ/0eogaKPy0t3CtpjzxaSr/uznJWCHyPTPTIKpcWcrcqFvirQ9mJJMyDWSYIHEu6belAs X-Received: by 2002:a05:6402:51ce:b0:435:c7f8:2a87 with SMTP id r14-20020a05640251ce00b00435c7f82a87mr60121273edd.411.1657189856293; Thu, 07 Jul 2022 03:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657189856; cv=none; d=google.com; s=arc-20160816; b=zetUg3JjngbeqNco88Qf5uwEhi+4CjPszYvqN0vildr54t1Z8f8IOnCGjVLKde0LMn ARi/n4woolwtRvKuoLCk3aKv9rZGzX7qblUG2fkqhRyZOdJaP+uBsgRJb7vVmfeyIPBl ++2cwgPoyd+fNt9iWk/gT+GmRnoMEfyaprC1h3PPdeCqEBeUY1l3CP1dnjR7dQWRd/Yp PldMPMhqy70NGaR3FVs0nRPmn2bFf2puvP54Mq9V0a1zBVfP5SZ9kc99OJxfjE/vWlLV UMvMr/G4a9ZhbnUF5hcSid1dnlmEq4P/EfacTW2htr71KIOI3LV3Hp06ybz3JPK6pw4F KCAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Jepz6OuuyAWvwKOJycB5LtyA1jATTcmeYeTh2OeZJpE=; b=UEMXBIRXwDFzxnpfS00zB6ajui0DIwcLz94j/tX+NJ/XI+Xf9DBawygJtmLC2y4gBV Wgs0K6EpSXQTZz/1wDn45xQT0GgGAgzvu8tDMbdn4TkILl71Q7a1YbbvB/OSzwvmthT+ D2weUTAoVANPYTTzR68zgRpkllJo5Rr7ff57rDQUaO0XR7al8dmNcoJT3yt3hmKj/yi8 jOHdaFDeQZqGQC3pVRTy0rvQ3BCPLMu8400WjiqSRhcunRvq/n46nkFaXwr5pKXAKd7T X43K5NuBP1t+UOfu5vOUMrMWcuNFuQg8JVn9gG6HAcTd6jGRPdYQFCMvJP+we4riJDo+ mVQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=TgOGo7Wj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x95-20020a50bae8000000b0043565bae501si49713037ede.210.2022.07.07.03.30.30; Thu, 07 Jul 2022 03:30:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=TgOGo7Wj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235266AbiGGKUU (ORCPT + 99 others); Thu, 7 Jul 2022 06:20:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234396AbiGGKUS (ORCPT ); Thu, 7 Jul 2022 06:20:18 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E95B61B8; Thu, 7 Jul 2022 03:20:16 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 267AJtQh094463; Thu, 7 Jul 2022 05:19:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1657189195; bh=Jepz6OuuyAWvwKOJycB5LtyA1jATTcmeYeTh2OeZJpE=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=TgOGo7Wj8xofhJjIbdBcTEPrpu6wWKpc6iXg7SFCaiw53kxGi3aOpLWKvDuw4Uja4 zUbxWlBRVwWQNlo2naSCGBhye3EtGYX89l91NAbqB1qK6NZ1SFi5RNKOikSOE0L0Iq PdgDvIEdiSz2D4o7aI6FAnSgi7NMfBpEqiLoNVD0= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 267AJt4K109824 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 7 Jul 2022 05:19:55 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 7 Jul 2022 05:19:55 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Thu, 7 Jul 2022 05:19:54 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 267AJrXc129445; Thu, 7 Jul 2022 05:19:54 -0500 Date: Thu, 7 Jul 2022 15:49:53 +0530 From: Rahul T R To: Rob Herring CC: , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v5 1/5] dt-bindings: display: bridge: Convert cdns,dsi.txt to yaml Message-ID: <20220707101952.v5ua3k2nfdnovsjc@uda0490373> References: <20220706114053.3454-1-r-ravikumar@ti.com> <20220706114053.3454-2-r-ravikumar@ti.com> <20220706145807.GA22662-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220706145807.GA22662-robh@kernel.org> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 08:58-20220706, Rob Herring wrote: > On Wed, Jul 06, 2022 at 05:10:49PM +0530, Rahul T R wrote: > > Convert cdns,dsi.txt binding to yaml format > > > > Signed-off-by: Rahul T R > > --- > > .../bindings/display/bridge/cdns,dsi.txt | 112 ---------- > > .../bindings/display/bridge/cdns,dsi.yaml | 195 ++++++++++++++++++ > > 2 files changed, 195 insertions(+), 112 deletions(-) > > delete mode 100644 Documentation/devicetree/bindings/display/bridge/cdns,dsi.txt > > create mode 100644 Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml > > > > diff --git a/Documentation/devicetree/bindings/display/bridge/cdns,dsi.txt b/Documentation/devicetree/bindings/display/bridge/cdns,dsi.txt > > deleted file mode 100644 > > index 525a4bfd8634..000000000000 > > --- a/Documentation/devicetree/bindings/display/bridge/cdns,dsi.txt > > +++ /dev/null > > @@ -1,112 +0,0 @@ > > -Cadence DSI bridge > > -================== > > - > > -The Cadence DSI bridge is a DPI to DSI bridge supporting up to 4 DSI lanes. > > - > > -Required properties: > > -- compatible: should be set to "cdns,dsi". > > -- reg: physical base address and length of the controller's registers. > > -- interrupts: interrupt line connected to the DSI bridge. > > -- clocks: DSI bridge clocks. > > -- clock-names: must contain "dsi_p_clk" and "dsi_sys_clk". > > -- phys: phandle link to the MIPI D-PHY controller. > > -- phy-names: must contain "dphy". > > -- #address-cells: must be set to 1. > > -- #size-cells: must be set to 0. > > - > > -Optional properties: > > -- resets: DSI reset lines. > > -- reset-names: can contain "dsi_p_rst". > > - > > -Required subnodes: > > -- ports: Ports as described in Documentation/devicetree/bindings/graph.txt. > > - 2 ports are available: > > - * port 0: this port is only needed if some of your DSI devices are > > - controlled through an external bus like I2C or SPI. Can have at > > - most 4 endpoints. The endpoint number is directly encoding the > > - DSI virtual channel used by this device. > > - * port 1: represents the DPI input. > > - Other ports will be added later to support the new kind of inputs. > > - > > -- one subnode per DSI device connected on the DSI bus. Each DSI device should > > - contain a reg property encoding its virtual channel. > > - > > -Example: > > - dsi0: dsi@fd0c0000 { > > - compatible = "cdns,dsi"; > > - reg = <0x0 0xfd0c0000 0x0 0x1000>; > > - clocks = <&pclk>, <&sysclk>; > > - clock-names = "dsi_p_clk", "dsi_sys_clk"; > > - interrupts = <1>; > > - phys = <&dphy0>; > > - phy-names = "dphy"; > > - #address-cells = <1>; > > - #size-cells = <0>; > > - > > - ports { > > - #address-cells = <1>; > > - #size-cells = <0>; > > - > > - port@1 { > > - reg = <1>; > > - dsi0_dpi_input: endpoint { > > - remote-endpoint = <&xxx_dpi_output>; > > - }; > > - }; > > - }; > > - > > - panel: dsi-dev@0 { > > - compatible = ""; > > - reg = <0>; > > - }; > > - }; > > - > > -or > > - > > - dsi0: dsi@fd0c0000 { > > - compatible = "cdns,dsi"; > > - reg = <0x0 0xfd0c0000 0x0 0x1000>; > > - clocks = <&pclk>, <&sysclk>; > > - clock-names = "dsi_p_clk", "dsi_sys_clk"; > > - interrupts = <1>; > > - phys = <&dphy1>; > > - phy-names = "dphy"; > > - #address-cells = <1>; > > - #size-cells = <0>; > > - > > - ports { > > - #address-cells = <1>; > > - #size-cells = <0>; > > - > > - port@0 { > > - reg = <0>; > > - #address-cells = <1>; > > - #size-cells = <0>; > > - > > - dsi0_output: endpoint@0 { > > - reg = <0>; > > - remote-endpoint = <&dsi_panel_input>; > > - }; > > - }; > > - > > - port@1 { > > - reg = <1>; > > - dsi0_dpi_input: endpoint { > > - remote-endpoint = <&xxx_dpi_output>; > > - }; > > - }; > > - }; > > - }; > > - > > - i2c@xxx { > > - panel: panel@59 { > > - compatible = ""; > > - reg = <0x59>; > > - > > - port { > > - dsi_panel_input: endpoint { > > - remote-endpoint = <&dsi0_output>; > > - }; > > - }; > > - }; > > - }; > > diff --git a/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml b/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml > > new file mode 100644 > > index 000000000000..865b3005c091 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml > > @@ -0,0 +1,195 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/display/bridge/cdns,dsi.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Cadence DSI bridge > > + > > +maintainers: > > + - Boris Brezillon > > + > > +description: | > > + CDNS DSI is a bridge device which converts DPI to DSI > > + > > +properties: > > + compatible: > > + enum: > > + - cdns,dsi > > + > > + reg: > > + items: > > + - description: > > + Register block for controller's registers. > > No need for generic descriptions. Just 'maxItems: 1' when there's only 1 > entry. > > > + > > + clocks: > > + items: > > + - description: PSM clock, used by the IP > > + - description: sys clock, used by the IP > > + > > + clock-names: > > + items: > > + - const: dsi_p_clk > > + - const: dsi_sys_clk > > + > > + phys: > > + maxItems: 1 > > + description: phandle link to the MIPI D-PHY controller. > > Drop > > > + > > + phy-names: > > + const: dphy > > + > > + interrupts: > > + maxItems: 1 > > + > > + resets: > > + maxItems: 1 > > + description: PHY reset. > > Drop > > > + > > + reset-names: > > + const: dsi_p_rst > > + > > + ports: > > + $ref: /schemas/graph.yaml#/properties/ports > > + > > + properties: > > + port@0: > > + $ref: /schemas/graph.yaml#/properties/port > > + description: > > + Output port representing the DSI output. It can have > > + most 4 endpoints. The endpoint number is directly encoding > > at most > > > + the DSI virtual channel used by this device. > > + > > + port@1: > > + $ref: /schemas/graph.yaml#/properties/port > > + description: > > + Input port representing the DP bridge input. > > DP? > > s/DP bridge/parallel/ > > > + > > + required: > > + - port@1 > > + > > +allOf: > > + - $ref: ../dsi-controller.yaml# > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > + - clocks > > + - clock-names > > + - phys > > + - phy-names > > + - ports > > + > > +unevaluatedProperties: false > > + > > +examples: > > + - | > > + bus { > > + #address-cells = <2>; > > + #size-cells = <2>; > > + > > + dsi@fd0c0000 { > > + compatible = "cdns,dsi"; > > + reg = <0x0 0xfd0c0000 0x0 0x1000>; > > + clocks = <&pclk>, <&sysclk>; > > + clock-names = "dsi_p_clk", "dsi_sys_clk"; > > + interrupts = <1>; > > + phys = <&dphy0>; > > + phy-names = "dphy"; > > + > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + ports { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + port@1 { > > + reg = <1>; > > + endpoint { > > + remote-endpoint = <&xxx_dpi_output>; > > + }; > > + }; > > + }; > > + > > + panel@0 { > > + compatible = "panasonic,vvx10f034n00"; > > + reg = <0>; > > + power-supply = <&vcc_lcd_reg>; > > + }; > > + }; > > + }; > > + > > + - | > > + bus { > > + #address-cells = <2>; > > + #size-cells = <2>; > > + > > + dsi@fd0c0000 { > > + compatible = "cdns,dsi"; > > + reg = <0x0 0xfd0c0000 0x0 0x1000>; > > + clocks = <&pclk>, <&sysclk>; > > + clock-names = "dsi_p_clk", "dsi_sys_clk"; > > + interrupts = <1>; > > + phys = <&dphy1>; > > + phy-names = "dphy"; > > + > > + ports { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + port@0 { > > + reg = <0>; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + dsi0_output: endpoint@0 { > > + reg = <0>; > > + remote-endpoint = <&dsi_panel_input>; > > + }; > > + }; > > + > > + port@1 { > > + reg = <1>; > > + endpoint { > > + remote-endpoint = <&xxx_dpi_output>; > > + }; > > + }; > > + }; > > + }; > > + > > + i2c { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + bridge@2d { > > + compatible = "ti,sn65dsi86"; > > + reg = <0x2d>; > > This device isn't relevant to the example. Drop. > Thanks for the review ! I have sent a v6 with the fixes please review Regards Rahul T R > > + > > + vpll-supply = <&src_pp1800_s4a>; > > + vccio-supply = <&src_pp1800_s4a>; > > + vcca-supply = <&src_pp1200_l2a>; > > + vcc-supply = <&src_pp1200_l2a>; > > + > > + ports { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + port@0 { > > + reg = <0>; > > + dsi_panel_input: endpoint { > > + remote-endpoint = <&dsi0_output>; > > + }; > > + }; > > + > > + port@1 { > > + reg = <1>; > > + endpoint { > > + remote-endpoint = <&panel_in_edp>; > > + }; > > + }; > > + }; > > + }; > > + }; > > + }; > > -- > > 2.36.1 > > > >