Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3269813ybh; Mon, 5 Aug 2019 15:20:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb64NGN6FCFHfgKSW4HPnfv7WYVnL+Mp7F/X5OG1GVVvEOIl55oIQa1Bh1eZ9BmOuSz+Qx X-Received: by 2002:a17:902:8a8a:: with SMTP id p10mr63716plo.88.1565043617753; Mon, 05 Aug 2019 15:20:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565043617; cv=none; d=google.com; s=arc-20160816; b=wJ68xYhquTL4YGO8i/fIeVaW2trar1Exp/6JhHFD1nLN5yNTMq6J5pwKRnDTCCVjH6 39MMZqfc+/93rbW+3bPjZH4c1Ts6fRf9dsoFcwJluEk974g9VXgzTPenGuEmY6NwA4nj AoMbd1HznXXGIMCWYIswiIIc+KVNGwpDfAzz6q+MRcrhmS3HzrIXYjWCUiwPxRxo5hYM l4+7V2OXN89W86dCONzSe72BMxgNva3kXYbd1hD7LaYwzuf5TV9Q2PTWrK38X6jFo2FE p6wLID/3WijePn/f4pSKTjJfWHa9XV0scqunfx4YRMu4tuQtDNyNhfGAKhmVOoQcAx9u fo3g== 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=4CRBk8NfwEcMMD2CQTlkVhy1FSWzZ7R/NuhFCHSuBRQ=; b=0zpCqOCtGtQWRhe9N24fkszOAdJmGY9f0aFvR7COJfXXQ6uJqNSVL4v84PxYtU+5wK tqPtOSbNKR6mpY+/uCf6xRdJ9ovNXyrMp9KpkwbwpoNslSgyE31Nz9otqkR/7h43SHiB ZhjmpViZ9g2tACXlHWAX+0eI3gkUiGGisHAU0zqgLs5UNMYE7gnRQF9DrNlU++egsW1B fKsWaO3SWUSl2GmMIHARLMcd+w97nFK2EnMqH8EdiP6rqoG9BpQUmVbQaZas3Pa9jZx3 8VaIecV9fH6icKEGNhU+F19NZHJ0MUA/qhWUgF4cGcInOolxmeZ/rMUNGFF08UBcQiNk 8mgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MMsu+oJb; 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=pass (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 cf16si41005748plb.346.2019.08.05.15.20.02; Mon, 05 Aug 2019 15:20:17 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=MMsu+oJb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730707AbfHEWTY (ORCPT + 99 others); Mon, 5 Aug 2019 18:19:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:58364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727928AbfHEWTY (ORCPT ); Mon, 5 Aug 2019 18:19:24 -0400 Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C08E4216B7; Mon, 5 Aug 2019 22:19:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565043562; bh=DAJwXEw19Gb3M6Oq5kBaOup970MTSVSAKhmz3GBuXtk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MMsu+oJbyvDnQfp/3Sqw52yu3oTmDrGx7JSFykZCahzUkH1ZG3cT518XVsjvF2OJS wrJNhvBMBvhL9qo5jubI/JdMWLyhn0H3wjlPddG0iWsyQSXDXUnV4AH+eFK/e+qLSz sptjIsYR7y1qbYOgBXVRxXn+5b/AmGXSWCHqWxuM= Received: by mail-qk1-f182.google.com with SMTP id t8so61388163qkt.1; Mon, 05 Aug 2019 15:19:22 -0700 (PDT) X-Gm-Message-State: APjAAAV5L2M6cZynI7nqUFJSxmF53hSWoKW8wQctT+skutIaF1Ro1MTy aUZQEagcA7H+ooLd0tNiKaGwBa67cJrr4z4+7w== X-Received: by 2002:a37:a010:: with SMTP id j16mr575745qke.152.1565043561946; Mon, 05 Aug 2019 15:19:21 -0700 (PDT) MIME-Version: 1.0 References: <20190805134319.737-1-narmstrong@baylibre.com> <20190805134319.737-3-narmstrong@baylibre.com> In-Reply-To: <20190805134319.737-3-narmstrong@baylibre.com> From: Rob Herring Date: Mon, 5 Aug 2019 16:19:10 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] dt-bindings: display: amlogic,meson-vpu: convert to yaml To: Neil Armstrong Cc: devicetree@vger.kernel.org, dri-devel , linux-amlogic@lists.infradead.org, "linux-kernel@vger.kernel.org" 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 On Mon, Aug 5, 2019 at 7:43 AM Neil Armstrong wrote: > > Now that we have the DT validation in place, let's convert the device tree > bindings for the Amlogic Display Controller over to YAML schemas. > > The original example has a leftover "dmc" memory cell, that has been > removed in the yaml rewrite. > > Signed-off-by: Neil Armstrong > --- > .../bindings/display/amlogic,meson-vpu.txt | 121 -------------- > .../bindings/display/amlogic,meson-vpu.yaml | 153 ++++++++++++++++++ > 2 files changed, 153 insertions(+), 121 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/display/amlogic,meson-vpu.txt > create mode 100644 Documentation/devicetree/bindings/display/amlogic,meson-vpu.yaml > diff --git a/Documentation/devicetree/bindings/display/amlogic,meson-vpu.yaml b/Documentation/devicetree/bindings/display/amlogic,meson-vpu.yaml > new file mode 100644 > index 000000000000..9eba13031998 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/amlogic,meson-vpu.yaml > @@ -0,0 +1,153 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright 2019 BayLibre, SAS > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/display/amlogic,meson-vpu.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: Amlogic Meson Display Controller > + > +maintainers: > + - Neil Armstrong > + > +description: | > + The Amlogic Meson Display controller is composed of several components > + that are going to be documented below > + > + DMC|---------------VPU (Video Processing Unit)----------------|------HHI------| > + | vd1 _______ _____________ _________________ | | > + D |-------| |----| | | | | HDMI PLL | > + D | vd2 | VIU | | Video Post | | Video Encoders |<---|-----VCLK | > + R |-------| |----| Processing | | | | | > + | osd2 | | | |---| Enci ----------|----|-----VDAC------| > + R |-------| CSC |----| Scalers | | Encp ----------|----|----HDMI-TX----| > + A | osd1 | | | Blenders | | Encl ----------|----|---------------| > + M |-------|______|----|____________| |________________| | | > + ___|__________________________________________________________|_______________| > + > + > + VIU: Video Input Unit > + --------------------- > + > + The Video Input Unit is in charge of the pixel scanout from the DDR memory. > + It fetches the frames addresses, stride and parameters from the "Canvas" memory. > + This part is also in charge of the CSC (Colorspace Conversion). > + It can handle 2 OSD Planes and 2 Video Planes. > + > + VPP: Video Post Processing > + -------------------------- > + > + The Video Post Processing is in charge of the scaling and blending of the > + various planes into a single pixel stream. > + There is a special "pre-blending" used by the video planes with a dedicated > + scaler and a "post-blending" to merge with the OSD Planes. > + The OSD planes also have a dedicated scaler for one of the OSD. > + > + VENC: Video Encoders > + -------------------- > + > + The VENC is composed of the multiple pixel encoders > + - ENCI : Interlace Video encoder for CVBS and Interlace HDMI > + - ENCP : Progressive Video Encoder for HDMI > + - ENCL : LCD LVDS Encoder > + The VENC Unit gets a Pixel Clocks (VCLK) from a dedicated HDMI PLL and clock > + tree and provides the scanout clock to the VPP and VIU. > + The ENCI is connected to a single VDAC for Composite Output. > + The ENCI and ENCP are connected to an on-chip HDMI Transceiver. > + > + The following table lists for each supported model the port number > + corresponding to each VPU output. > + > + Port 0 Port 1 > + ----------------------------------------- > + S905 (GXBB) CVBS VDAC HDMI-TX > + S905X (GXL) CVBS VDAC HDMI-TX > + S905D (GXL) CVBS VDAC HDMI-TX > + S912 (GXM) CVBS VDAC HDMI-TX > + S905X2 (G12A) CVBS VDAC HDMI-TX > + S905Y2 (G12A) CVBS VDAC HDMI-TX > + S905D2 (G12A) CVBS VDAC HDMI-TX > + > +properties: > + compatible: > + oneOf: > + - items: > + - enum: > + - amlogic,meson-gxbb-vpu # GXBB (S905) > + - amlogic,meson-gxl-vpu # GXL (S905X, S905D) > + - amlogic,meson-gxm-vpu # GXM (S912) > + - const: amlogic,meson-gx-vpu > + - enum: > + - amlogic,meson-g12a-vpu # G12A (S905X2, S905Y2, S905D2) > + > + reg: > + maxItems: 2 > + > + reg-names: > + items: > + - const: vpu > + - const: hhi > + > + interrupts: > + maxItems: 1 > + > + power-domains: > + description: phandle to the associated power domain > + allOf: > + - $ref: /schemas/types.yaml#/definitions/phandle Common properties don't need a type definition. As this can be an array, you just need 'maxItems: 1'. Same comments on patch 1 apply here too. Rob