Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1210504ybj; Tue, 5 May 2020 15:30:29 -0700 (PDT) X-Google-Smtp-Source: APiQypI980hJG5uqnmkGbS4TAy2/sUY0r+V4Ln5S9dOq/WlbvkOuRQVJQgV+AasldHFCDiRVMov3 X-Received: by 2002:a17:906:3c8:: with SMTP id c8mr4885716eja.66.1588717828953; Tue, 05 May 2020 15:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588717828; cv=none; d=google.com; s=arc-20160816; b=SlQS8aD9nYitFaw+Po+fIF7oagIkjO8PFQ124r8HBOUJ1JqRUsbnAlK+oQlOtN9Klc 7BCRheudO+HjDXe5n8Y56y7lWNsuievz24kxCYwOxVwlLkg9l0Ga2fX3NKdzcp4C2aH0 RdVXV1mnqHtyvZATnkBx+QpXzBdKDI4OmCE4nR7dNq+04HDpf5fwgDrx0fLRR6e8GlRG QBQ3ONuNSIUm6rxLvrf7RtUFalBzQKlDPIRBa4sXuh/O7npB9EclXCRjW0VB9goGNJ/G is8IJZWFl+3Tou3V55zXIx6Y4v5xjBJ2GkQLXztUVlW6tIn4AoKfFT7SI0KB44LEn58J dkTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=lnXVcC4PmkkaSlygdgSA58xD9NRnNWBO39vWxCfGzbo=; b=fBDLCiM2c/NWm2kx3F3r7SI8M1VdQfld6606yLvwQEvwpaBglsLRARQrdx4O1aNAKQ s0vln2aS+F8hBux5OncPu1MJqTi545se3PunmmxE4RYIeJlgNUDLctJAjIBPgpOYoa5g uy7YDMPMfWxRVvtlLVIkfMcro2q8CC1e7S965w/6Kkx3djhVUooFmTEZKyVt+C1E46k8 KQm/LlMvls1gESIrlpxsU8TREXpUpsQbtYZAD7NnOwNzjXEMQ432gnYT8vuR0mz5EFYO RPPiShcgrfd2q1JvhvmtSWbk/M+Ewnu/Byg/9tmUY610H5xNkl85YYXUcL3kvP0oK3eU OMQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="aE/K4RGC"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j12si42358ejs.153.2020.05.05.15.30.06; Tue, 05 May 2020 15:30:28 -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 header.i=@chromium.org header.s=google header.b="aE/K4RGC"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729256AbgEEW0Z (ORCPT + 99 others); Tue, 5 May 2020 18:26:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728969AbgEEW0Z (ORCPT ); Tue, 5 May 2020 18:26:25 -0400 Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDB2DC061A0F for ; Tue, 5 May 2020 15:26:24 -0700 (PDT) Received: by mail-ot1-x330.google.com with SMTP id i27so392063ota.7 for ; Tue, 05 May 2020 15:26:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lnXVcC4PmkkaSlygdgSA58xD9NRnNWBO39vWxCfGzbo=; b=aE/K4RGCwL5H8pGJiV/vdQLvVaJd9tXpnqvrytbKm6od9bvlfy0siwTVw2G2gAkcMA uO3RZAk+bNNenRLYNiW2Jej3t/+oZ7b80undk7JNleUvpaSGcciLBDWp+IQrSI/emWjW Y7/hn/eopBxIWfGIF7HgcYXyEboo8UR1BLcL4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lnXVcC4PmkkaSlygdgSA58xD9NRnNWBO39vWxCfGzbo=; b=KkNvrazZGAv1tDH2mbP8VmwMxyNBkqfM7EOXQLtRU+FkJkeif/djWPgAlvqehyplde WaA5w4/ooKMJCsM/8lEdtFBdHrI/i8I0OP6R0u4/1mNtvf2UJjv7nKMRnGImzoSK8HM/ 4LZbm8psk7/UGuiwtA4qhRkr2xdVPQ5rggwNoCAa57P6rOdoKPcG/jYic2KfT1xJKhDs 7KMXp5040wpgghhWOvFfnIaVEmjMRL0Eo5mVl4INH9eYAAYEARIJuzNgdZJVkL5HeBcw Wn9wV/7ouFhnhzYHd+psgdCroNCqaX3tzJopisvbrPuaZ7zUdJbLPugEqbYgEdJFLcFN QXmw== X-Gm-Message-State: AGi0PuZ/4NWWGdjdsbPfcHYPsncSTJ1kU/I/Fe41tQvZTG+OvLD7qHcW fPXLEr373zXHAc6feH5Dz6EUIsYEqlE= X-Received: by 2002:a9d:708c:: with SMTP id l12mr3975727otj.335.1588717583984; Tue, 05 May 2020 15:26:23 -0700 (PDT) Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com. [209.85.210.49]) by smtp.gmail.com with ESMTPSA id r23sm35989otc.81.2020.05.05.15.26.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 May 2020 15:26:23 -0700 (PDT) Received: by mail-ot1-f49.google.com with SMTP id j4so3123710otr.11 for ; Tue, 05 May 2020 15:26:23 -0700 (PDT) X-Received: by 2002:ab0:375a:: with SMTP id i26mr4534579uat.120.1588717280132; Tue, 05 May 2020 15:21:20 -0700 (PDT) MIME-Version: 1.0 References: <20200430194617.197510-1-dianders@chromium.org> <20200430124442.v4.4.Ifcdc4ecb12742a27862744ee1e8753cb95a38a7f@changeid> <20200505213450.GA8640@pendragon.ideasonboard.com> In-Reply-To: <20200505213450.GA8640@pendragon.ideasonboard.com> From: Doug Anderson Date: Tue, 5 May 2020 15:21:08 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 4/6] dt-bindings: drm/bridge: ti-sn65dsi86: Convert to yaml To: Laurent Pinchart Cc: LinusW , Bartosz Golaszewski , David Airlie , Daniel Vetter , Rob Herring , Neil Armstrong , Andrzej Hajda , Sandeep Panda , "open list:GPIO SUBSYSTEM" , Jonas Karlman , Rob Clark , Bjorn Andersson , Jeffrey Hugo , Jernej Skrabec , dri-devel , linux-arm-msm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Stephen Boyd , Krzysztof Kozlowski , Paul Walmsley , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Laurent, On Tue, May 5, 2020 at 2:35 PM Laurent Pinchart wrote: > > Hi Doug, > > Thank you for the patch. > > On Thu, Apr 30, 2020 at 12:46:15PM -0700, Douglas Anderson wrote: > > This moves the bindings over, based a lot on toshiba,tc358768.yaml. > > Unless there's someone known to be better, I've set the maintainer in > > the yaml as the first person to submit bindings. > > > > Signed-off-by: Douglas Anderson > > Reviewed-by: Stephen Boyd > > --- > > > > Changes in v4: None > > Changes in v3: None > > Changes in v2: > > - specification => specifier. > > - power up => power. > > - Added back missing suspend-gpios. > > - data-lanes and lane-polarities are are the right place now. > > - endpoints don't need to be patternProperties. > > - Specified more details for data-lanes and lane-polarities. > > - Added old example back in, fixing bugs in it. > > - Example i2c bus is just called "i2c", not "i2c1" now. > > > > .../bindings/display/bridge/ti,sn65dsi86.txt | 87 ------ > > .../bindings/display/bridge/ti,sn65dsi86.yaml | 279 ++++++++++++++++++ > > 2 files changed, 279 insertions(+), 87 deletions(-) > > delete mode 100644 Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.txt > > create mode 100644 Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.yaml > > > > diff --git a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.txt b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.txt > > deleted file mode 100644 > > index 8ec4a7f2623a..000000000000 > > --- a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.txt > > +++ /dev/null > > @@ -1,87 +0,0 @@ > > -SN65DSI86 DSI to eDP bridge chip > > --------------------------------- > > - > > -This is the binding for Texas Instruments SN65DSI86 bridge. > > -http://www.ti.com/general/docs/lit/getliterature.tsp?genericPartNumber=sn65dsi86&fileType=pdf > > - > > -Required properties: > > -- compatible: Must be "ti,sn65dsi86" > > -- reg: i2c address of the chip, 0x2d as per datasheet > > -- enable-gpios: gpio specification for bridge_en pin (active high) > > - > > -- vccio-supply: A 1.8V supply that powers up the digital IOs. > > -- vpll-supply: A 1.8V supply that powers up the displayport PLL. > > -- vcca-supply: A 1.2V supply that powers up the analog circuits. > > -- vcc-supply: A 1.2V supply that powers up the digital core. > > - > > -Optional properties: > > -- interrupts-extended: Specifier for the SN65DSI86 interrupt line. > > - > > -- gpio-controller: Marks the device has a GPIO controller. > > -- #gpio-cells : Should be two. The first cell is the pin number and > > - the second cell is used to specify flags. > > - See ../../gpio/gpio.txt for more information. > > -- #pwm-cells : Should be one. See ../../pwm/pwm.yaml for description of > > - the cell formats. > > - > > -- clock-names: should be "refclk" > > -- clocks: Specification for input reference clock. The reference > > - clock rate must be 12 MHz, 19.2 MHz, 26 MHz, 27 MHz or 38.4 MHz. > > - > > -- data-lanes: See ../../media/video-interface.txt > > -- lane-polarities: See ../../media/video-interface.txt > > - > > -- suspend-gpios: specification for GPIO1 pin on bridge (active low) > > - > > -Required nodes: > > -This device has two video ports. Their connections are modelled using the > > -OF graph bindings specified in Documentation/devicetree/bindings/graph.txt. > > - > > -- Video port 0 for DSI input > > -- Video port 1 for eDP output > > - > > -Example > > -------- > > - > > -edp-bridge@2d { > > - compatible = "ti,sn65dsi86"; > > - #address-cells = <1>; > > - #size-cells = <0>; > > - reg = <0x2d>; > > - > > - enable-gpios = <&msmgpio 33 GPIO_ACTIVE_HIGH>; > > - suspend-gpios = <&msmgpio 34 GPIO_ACTIVE_LOW>; > > - > > - interrupts-extended = <&gpio3 4 IRQ_TYPE_EDGE_FALLING>; > > - > > - vccio-supply = <&pm8916_l17>; > > - vcca-supply = <&pm8916_l6>; > > - vpll-supply = <&pm8916_l17>; > > - vcc-supply = <&pm8916_l6>; > > - > > - clock-names = "refclk"; > > - clocks = <&input_refclk>; > > - > > - ports { > > - #address-cells = <1>; > > - #size-cells = <0>; > > - > > - port@0 { > > - reg = <0>; > > - > > - edp_bridge_in: endpoint { > > - remote-endpoint = <&dsi_out>; > > - }; > > - }; > > - > > - port@1 { > > - reg = <1>; > > - > > - edp_bridge_out: endpoint { > > - data-lanes = <2 1 3 0>; > > - lane-polarities = <0 1 0 1>; > > - remote-endpoint = <&edp_panel_in>; > > - }; > > - }; > > - }; > > -} > > diff --git a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.yaml b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.yaml > > new file mode 100644 > > index 000000000000..6d7d40ad45ac > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.yaml > > @@ -0,0 +1,279 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi86.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: SN65DSI86 DSI to eDP bridge chip > > + > > +maintainers: > > + - Sandeep Panda > > + > > +description: | > > + The Texas Instruments SN65DSI86 bridge takes MIPI DSI in and outputs eDP. > > + http://www.ti.com/general/docs/lit/getliterature.tsp?genericPartNumber=sn65dsi86&fileType=pdf > > + > > +properties: > > + compatible: > > + const: ti,sn65dsi86 > > + > > + reg: > > + const: 0x2d > > + > > + enable-gpios: > > + maxItems: 1 > > + description: GPIO specifier for bridge_en pin (active high). > > + > > + suspend-gpios: > > + maxItems: 1 > > + description: GPIO specifier for GPIO1 pin on bridge (active low). > > + > > + vccio-supply: > > + description: A 1.8V supply that powers the digital IOs. > > + > > + vpll-supply: > > + description: A 1.8V supply that powers the DisplayPort PLL. > > + > > + vcca-supply: > > + description: A 1.2V supply that powers the analog circuits. > > + > > + vcc-supply: > > + description: A 1.2V supply that powers the digital core. > > + > > + interrupts: > > + maxItems: 1 > > + > > + clocks: > > + maxItems: 1 > > + description: > > + Clock specifier for input reference clock. The reference clock rate must > > + be 12 MHz, 19.2 MHz, 26 MHz, 27 MHz or 38.4 MHz. > > + > > + clock-names: > > + const: refclk > > + > > + gpio-controller: true > > + '#gpio-cells': > > + const: 2 > > + description: > > + First cell is pin number, second cell is flags. GPIO pin numbers are > > + 1-based to match the datasheet. See ../../gpio/gpio.txt for more > > + information. > > + > > + '#pwm-cells': > > + const: 1 > > + description: See ../../pwm/pwm.yaml for description of the cell formats. > > + > > + ports: > > + type: object > > Maybe > > additionalProperties: false > > here ? Ah, this is to keep people from adding "additionalProperties" under the ports node. I will hold off on sending v5 for now. If there happens to be nothing else wrong I'm happy for this to be added by a maintainer when landing or I can quickly spin a v5. > > + > > + properties: > > + "#address-cells": > > + const: 1 > > + > > + "#size-cells": > > + const: 0 > > + > > + port@0: > > + type: object > > + additionalProperties: false > > + > > + description: > > + Video port for MIPI DSI input > > + > > + properties: > > + reg: > > + const: 0 > > + > > + endpoint: > > + type: object > > + additionalProperties: false > > + > > + properties: > > + remote-endpoint: true > > + > > + data-lanes: > > + minItems: 1 > > + maxItems: 4 > > + items: > > + enum: > > + - 0 > > + - 1 > > + - 2 > > + - 3 > > + description: See ../../media/video-interface.txt > > And maybe > uniqueItems: true > > ? Same for port@1. Sounds good. Again, I'll hold off on sending v5 for now and (if no other problems) happy if this gets done when applied. > Reviewed-by: Laurent Pinchart Thanks! -Doug