Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2781547ybf; Mon, 2 Mar 2020 15:37:55 -0800 (PST) X-Google-Smtp-Source: ADFU+vsN0IPzcFEiJhrveQFt/MavGq+MXk8lEY+cdOVtrEGFWyGeBzcFqzgCuU1HgGcqihFATbkf X-Received: by 2002:aca:d0a:: with SMTP id 10mr610131oin.50.1583192275406; Mon, 02 Mar 2020 15:37:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583192275; cv=none; d=google.com; s=arc-20160816; b=sgfhap8jOcTom3Egyd255EsEc3CUm0A32bv4cHfrGcYzZwOqFkYdQn10cEYhW8ipgV GRV/1oxnehqZWmI93+vR4DMPXFvf+j/fezg4MbglF92yI4ZDt9u4rVpb2TAcu+JuuL+9 65y3oqpEukR/2yErlbu19JSnxp6MzUkQI73LHww3s6UJKkbxhdv/6kNlGrdgYVcBpMPO IhpsDhF3GsoXl+kK2oKtdLDTDVvv+dsEB9mxwlhjDzrrSe5+AaC+cszYGDXN5tqPtBAW AqlDS9QgMC03zeJqrVBGeH6AhCWfv9RkpgFvPMY7SXtSCq1K+HeLUQ2dlUizDwPTDAY/ E4uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=yFtkRGnfBiqCKQ/AHJ5vc+ttuYQAJORgEqP2QzLRI4E=; b=GWkaXIb+NvN8KbcJJL/QDb6nCx/JhiKyhc1+qVGfSCMtrzVq+d0ABaVUKgh77mGYWw eG1wPoDta3KZyyz0wOeHZk6/Of77RqfrMxQ4OdZgYolencD9asVbSm3wioZbcZEvXTF2 3SpdKAhRhZF1U+dObrKXXcagHSce+CgH/P8GBth5/R8grtExEB2ywS3PUI3A25Y9M9JW sYfpLbHAOMYZPEsC7qzbonqXVhWexqKGofKOjioiEjf0zWJe95SUOnOSaBmfJdrFyvct UWw9VzFwaPSCKjuqhNDd09T11XdHseCR7ZnszbRVexoLzsiHoYcBcUMM6iuIncarqRy6 2LGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b80si1264648oii.199.2020.03.02.15.37.42; Mon, 02 Mar 2020 15:37:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726831AbgCBXhW (ORCPT + 99 others); Mon, 2 Mar 2020 18:37:22 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:42276 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726728AbgCBXhV (ORCPT ); Mon, 2 Mar 2020 18:37:21 -0500 Received: by mail-ot1-f67.google.com with SMTP id 66so1142517otd.9; Mon, 02 Mar 2020 15:37:20 -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:user-agent; bh=yFtkRGnfBiqCKQ/AHJ5vc+ttuYQAJORgEqP2QzLRI4E=; b=n3zhpsC3f1AOAXkAdiocLac52qGRBSX97s30ELQnVn2vVZ1WABZLQ8aZBpfX6QOaX9 0Wc7rOjmxYCMfPUifmLuIoBCGV5wJGkcyMGqbj1GtmXGhi6DBtTmEfg973mBjljLZ+9y FaMq4q3yqU2ygk3b5bg3EYSMQi+R2MQVPQAB01qfvClYEFsV1q7+mthXxuvsBYC126Hp 0PM5sHgHz6rnxv3Pwk0U7S28lz+4iYUbxKnqxA2ICr1+3g4uKBsRtS8zTp0FTZXACa06 tHGC8gEmlmsa8vMMbT6hknLInQHwD2rv/SjlQ4vp0W6f0G8PjOG+omiWvxVt8qP6DIvI 2i/Q== X-Gm-Message-State: ANhLgQ0B4AtbztUCBLFJgTumXxHqu0yYoGnmFcbF78s6ULSUkomttCMo FVmVowAr8gpHjjqCs+5mkA== X-Received: by 2002:a9d:638f:: with SMTP id w15mr1297268otk.239.1583192240162; Mon, 02 Mar 2020 15:37:20 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id r205sm6920647oih.54.2020.03.02.15.37.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2020 15:37:19 -0800 (PST) Received: (nullmailer pid 16189 invoked by uid 1000); Mon, 02 Mar 2020 23:37:18 -0000 Date: Mon, 2 Mar 2020 17:37:18 -0600 From: Rob Herring To: Jitao Shi Cc: Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srv_heupstream@mediatek.com, yingjoe.chen@mediatek.com, eddie.huang@mediatek.com, cawa.cheng@mediatek.com, bibby.hsieh@mediatek.com, ck.hu@mediatek.com, stonea168@163.com, huijuan.xie@mediatek.com Subject: Re: [PATCH v11 4/6] dt-bindings: display: mediatek: convert the document format from txt to yaml Message-ID: <20200302233718.GA5639@bogus> References: <20200228081441.88179-1-jitao.shi@mediatek.com> <20200228081441.88179-5-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200228081441.88179-5-jitao.shi@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 28, 2020 at 04:14:39PM +0800, Jitao Shi wrote: > Signed-off-by: Jitao Shi > --- > .../display/mediatek/mediatek,dpi.txt | 45 -------- > .../display/mediatek/mediatek,dpi.yaml | 100 ++++++++++++++++++ > 2 files changed, 100 insertions(+), 45 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt > create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml > > diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt > deleted file mode 100644 > index 4eeead1d39db..000000000000 > --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt > +++ /dev/null > @@ -1,45 +0,0 @@ > -Mediatek DPI Device > -=================== > - > -The Mediatek DPI function block is a sink of the display subsystem and > -provides 8-bit RGB/YUV444 or 8/10/10-bit YUV422 pixel data on a parallel > -output bus. > - > -Required properties: > -- compatible: "mediatek,-dpi" > - the supported chips are mt2701 , mt8173 and mt8183. > -- reg: Physical base address and length of the controller's registers > -- interrupts: The interrupt signal from the function block. > -- clocks: device clocks > - See Documentation/devicetree/bindings/clock/clock-bindings.txt for details. > -- clock-names: must contain "pixel", "engine", and "pll" > -- port: Output port node with endpoint definitions as described in > - Documentation/devicetree/bindings/graph.txt. This port should be connected > - to the input port of an attached HDMI or LVDS encoder chip. > - > -Optional properties: > -- pinctrl-names: Contain "gpiomode" and "dpimode". > - pinctrl-names see Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt > -- pclk-sample: refer Documentation/devicetree/bindings/media/video-interfaces.txt. > - > -Example: > - > -dpi0: dpi@1401d000 { > - compatible = "mediatek,mt8173-dpi"; > - reg = <0 0x1401d000 0 0x1000>; > - interrupts = ; > - clocks = <&mmsys CLK_MM_DPI_PIXEL>, > - <&mmsys CLK_MM_DPI_ENGINE>, > - <&apmixedsys CLK_APMIXED_TVDPLL>; > - clock-names = "pixel", "engine", "pll"; > - pinctrl-names = "active", "idle"; > - pinctrl-0 = <&dpi_pin_func>; > - pinctrl-1 = <&dpi_pin_idle>; > - > - port { > - dpi0_out: endpoint { > - pclk-sample = <0>; > - remote-endpoint = <&hdmi0_in>; > - }; > - }; > -}; > diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml > new file mode 100644 > index 000000000000..9878e9f2b12e > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml > @@ -0,0 +1,100 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/mediatek,dpi.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: mediatek DPI Controller Device Tree Bindings > + > +maintainers: > + - CK Hu > + - Rob Herring > + - Mark Rutland Should be the owner of this device/driver, not Mark or me. > + > +description: | > + The Mediatek DPI function block is a sink of the display subsystem and > + provides 8-bit RGB/YUV444 or 8/10/10-bit YUV422 pixel data on a parallel > + output bus. > + > +properties: > + compatible: > + enum: > + - mediatek,mt2701-dpi > + - mediatek,mt8173-dpi > + - mediatek,mt8183-dpi > + > + reg: > + maxItems: 1 > + description: Physical base address and length of the controller's registers Drop, that's every 'reg'. Plus there's an error in indentation. > + > + interrupts: > + maxItems: 1 > + description: The interrupt signal from the function block. Drop 'description'. > + > + clocks: > + minItems: 3 > + maxItems: 3 Drop minItems/maxItems. Redundant with the items list. > + items: > + - description: Pixel Clock > + - description: Engine Clock > + - description: DPI PLL > + > + clock-names: > + items: > + - const: pixel > + - const: engine > + - const: pll > + > + pinctrl-names: > + description: pinctrl-names refe Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt Drop. > + minItems: 2 > + maxItems: 2 Drop. > + items: > + - const: active > + - const: idle See my comment on patch 2 of v9. > + > + port: > + type: object > + description: > + Output port node with endpoint definitions as described in > + Documentation/devicetree/bindings/graph.txt. This port should be connected > + to the input port of an attached HDMI or LVDS encoder chip. > + > + pclk-sample: > + description: refer Documentation/devicetree/bindings/media/video-interfaces.txt. > + maxItems: 1 Not an array, so maxItems isn't right. If there's no constraints on the values, then just drop maxItems. This also in the wrong place. It has to be under port and endpoint. > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + - port > + > +additionalProperties: false > + > +examples: > + - | > + dpi0: dpi@1401d000 { > + compatible = "mediatek,mt8173-dpi"; > + reg = <0 0x1401d000 0 0x1000>; > + interrupts = ; > + clocks = <&mmsys CLK_MM_DPI_PIXEL>, > + <&mmsys CLK_MM_DPI_ENGINE>, > + <&apmixedsys CLK_APMIXED_TVDPLL>; > + clock-names = "pixel", "engine", "pll"; > + pinctrl-names = "active", "idle"; > + pinctrl-0 = <&dpi_pin_func>; > + pinctrl-1 = <&dpi_pin_idle>; > + > + port { > + reg = <0>; Wrong indentation. > + dpi0_out: endpoint { > + pclk-sample = <0>; > + remote-endpoint = <&hdmi0_in>; > + }; > + }; > + }; > + > +... > -- > 2.21.0