Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2705307pxu; Mon, 7 Dec 2020 13:23:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJyp0BLgrruI5U+2QTjoNsP3D9j+RMC5oLN+PJv/6GTaaMM3ygekI/eeijv0zq63CgMgJjkk X-Received: by 2002:aa7:db01:: with SMTP id t1mr21959885eds.185.1607376194294; Mon, 07 Dec 2020 13:23:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607376194; cv=none; d=google.com; s=arc-20160816; b=Er1FCPjRviMbcFPFYTWcDvD7Ctz+S7LZ8TtBu2rMUoYD/wV5ZSD5nMKwyEUJUPfuYT CzDl1akdKUrdXm2OCEDql3jstOQoQjx2Pqjz9WkQkYJWe20e+7XL3up1PWT93kOMoo91 grjbNUJDDMyTycs3v5eQBF5YlwCrUSoaHvnXOgnG77/npEjQ4LYotVgyasRi+NcRVH1w RS045N0OuRVm7D94K/akscSdpcdd7EThS45Zc1SJlR0Ys7y/rIQgShoyap+b8qH2s4U4 wL5y5aAh2ZWu/ayDQepL1WFqGkcMoJJ6QxJSrvmBRRC7/5C9qOoWO1lONMU+bPv3iSFn u9MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=SbwIEIDsfJusH7q4FbfrkA5Ki4JFFsWymqArfWeiFAM=; b=T4Q9p17hAvXbrWhTKIIVThvgd2ZmbzmXNNS9xAyhWJyOmok5Y2K5z9q4SqWxGHu+Mk ctCsReDggCZajv5bJQX/rrUJnmbF9Or2KWkyEPgb7Wx1zT/gfH/FhRAxO5/TcDGQng1M YETDIJXhhu8v3o0I/3y/ExBRKy98k25xQkZ0FW7KwRquodWUw/TFxWbG8MVP7KCBhuXU EqGDUKcCPBJMH9dAozzltfuSqlaNAzgwTDhJtEBDLBhFx0H88As6eIBVB9qBVqoQnnSj 1msGBmiVFkC75YqP7wA6Wi6nHpsgjhJbPcupSTqKtZ9fcuRLrQaePliePM0C+yeV4iD6 fk0A== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay25si9151534edb.8.2020.12.07.13.22.46; Mon, 07 Dec 2020 13:23:14 -0800 (PST) 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726289AbgLGVUG (ORCPT + 99 others); Mon, 7 Dec 2020 16:20:06 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:43088 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725881AbgLGVUE (ORCPT ); Mon, 7 Dec 2020 16:20:04 -0500 Received: by mail-ot1-f65.google.com with SMTP id q25so2121184otn.10; Mon, 07 Dec 2020 13:19:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=SbwIEIDsfJusH7q4FbfrkA5Ki4JFFsWymqArfWeiFAM=; b=a8HH2Dt9VYcR7uLWoIfZk6na4WzRm4wRgUE+CvYPmBTTgnfc5XeD9Me7OwFLiWPgbE qngKA8borrYbvhCgPAzfhqzQ6S84bv+xotfMH5YzcGmauW9M1tajGQfBpwLE/ylmz5cY wGarsGfjOJnRgVsjHPWKq3YBfcPqVblzI0Y2itg/axijw7cECYZcByvUSCkiZwAeXr2/ XI35sPoJULCfZpQc373eC7a1IutFfM1mg/wM1/djOvoZTpjvrdJJlKUfibzwb3XwiN3Z IIBHD97S7Yk/uvNoGGNZK3Hc+69OE45F3jDFlPmRKf3+rIN5DobazZg9PuFmM501mf8i W7tw== X-Gm-Message-State: AOAM532N9kWX0pJ4xDOLwGJhaMd+af8rCTuh8d64w0N+nIpuZmLCVf0V xw249kzz3sICJl/Gg8s68A== X-Received: by 2002:a05:6830:1501:: with SMTP id k1mr9393799otp.12.1607375963123; Mon, 07 Dec 2020 13:19:23 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k5sm2863341oot.30.2020.12.07.13.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 13:19:22 -0800 (PST) Received: (nullmailer pid 844274 invoked by uid 1000); Mon, 07 Dec 2020 21:19:20 -0000 Date: Mon, 7 Dec 2020 15:19:20 -0600 From: Rob Herring To: Chunfeng Yun Cc: Serge Semin , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , "David S . Miller" , Jakub Kicinski , Kishon Vijay Abraham I , Vinod Koul , Matthias Brugger , Greg Kroah-Hartman , Stanley Chu , Min Guo , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v3 07/11] dt-bindings: phy: convert MIP DSI PHY binding to YAML schema Message-ID: <20201207211920.GA841059@robh.at.kernel.org> References: <20201118082126.42701-1-chunfeng.yun@mediatek.com> <20201118082126.42701-7-chunfeng.yun@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201118082126.42701-7-chunfeng.yun@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 18, 2020 at 04:21:22PM +0800, Chunfeng Yun wrote: > Convert MIPI DSI PHY binding to YAML schema mediatek,dsi-phy.yaml > > Cc: Chun-Kuang Hu > Signed-off-by: Chunfeng Yun > --- > v3: new patch > --- > .../display/mediatek/mediatek,dsi.txt | 18 +--- > .../bindings/phy/mediatek,dsi-phy.yaml | 83 +++++++++++++++++++ > 2 files changed, 84 insertions(+), 17 deletions(-) > create mode 100644 Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml > > diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.txt b/Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.txt > index f06f24d405a5..8238a86686be 100644 > --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.txt > +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.txt > @@ -22,23 +22,7 @@ Required properties: > MIPI TX Configuration Module > ============================ > > -The MIPI TX configuration module controls the MIPI D-PHY. > - > -Required properties: > -- compatible: "mediatek,-mipi-tx" > -- the supported chips are mt2701, 7623, mt8173 and mt8183. > -- reg: Physical base address and length of the controller's registers > -- clocks: PLL reference clock > -- clock-output-names: name of the output clock line to the DSI encoder > -- #clock-cells: must be <0>; > -- #phy-cells: must be <0>. > - > -Optional properties: > -- drive-strength-microamp: adjust driving current, should be 3000 ~ 6000. And > - the step is 200. > -- nvmem-cells: A phandle to the calibration data provided by a nvmem device. If > - unspecified default values shall be used. > -- nvmem-cell-names: Should be "calibration-data" > +See phy/mediatek,dsi-phy.yaml > > Example: > > diff --git a/Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml b/Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml > new file mode 100644 > index 000000000000..87f8df251ab0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml > @@ -0,0 +1,83 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright (c) 2020 MediaTek > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/mediatek,dsi-phy.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek MIPI Display Serial Interface (DSI) PHY binding > + > +maintainers: > + - Chun-Kuang Hu > + - Chunfeng Yun > + > +description: The MIPI DSI PHY supports up to 4-lane output. > + > +properties: > + $nodename: > + pattern: "^dsi-phy@[0-9a-f]+$" > + > + compatible: > + enum: > + - mediatek,mt2701-mipi-tx > + - mediatek,mt7623-mipi-tx > + - mediatek,mt8173-mipi-tx > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: PLL reference clock > + > + clock-output-names: > + maxItems: 1 > + > + "#phy-cells": > + const: 0 > + > + "#clock-cells": > + const: 0 > + > + nvmem-cells: > + maxItems: 1 > + description: A phandle to the calibration data provided by a nvmem device, > + if unspecified, default values shall be used. > + > + nvmem-cell-names: > + items: > + - const: calibration-data > + > + drive-strength-microamp: > + description: adjust driving current, the step is 200. multipleOf: 200 > + $ref: /schemas/types.yaml#/definitions/uint32 Can drop. Standard unit suffixes have a type already. > + minimum: 2000 > + maximum: 6000 > + default: 4600 > + > +required: > + - compatible > + - reg > + - clocks > + - clock-output-names > + - "#phy-cells" > + - "#clock-cells" > + > +additionalProperties: false > + > +examples: > + - | > + #include > + dsi-phy@10215000 { > + compatible = "mediatek,mt8173-mipi-tx"; > + reg = <0x10215000 0x1000>; > + clocks = <&clk26m>; > + clock-output-names = "mipi_tx0_pll"; > + drive-strength-microamp = <4000>; > + nvmem-cells= <&mipi_tx_calibration>; > + nvmem-cell-names = "calibration-data"; > + #clock-cells = <0>; > + #phy-cells = <0>; > + }; > + > +... > -- > 2.18.0 >