From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0CD3C4741F for ; Wed, 4 Nov 2020 19:11:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 59B6E206D4 for ; Wed, 4 Nov 2020 19:11:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604517086; bh=sQ6mxUe5dIMB8ePuYnws1WD2iqV2yB0ZsTTZ3Hx+OX0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=E2srOnEBe7njtLPJSNXQSkRZI54FffN2QoFcFCksj23G2qZtTyN0xzwmGjqDPzNqZ LwzDVnoHC9a98nUMayIW3S4hBMtNBhWNv3KrHqPOwmx1uwg5xFCGDGvycwJp+4upL4 lnbNCKUsq3F5cUveogIEy7s8bDCBxsOivGZQS8Bo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730262AbgKDTLZ (ORCPT ); Wed, 4 Nov 2020 14:11:25 -0500 Received: from mail-oo1-f67.google.com ([209.85.161.67]:35463 "EHLO mail-oo1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731341AbgKDTLY (ORCPT ); Wed, 4 Nov 2020 14:11:24 -0500 Received: by mail-oo1-f67.google.com with SMTP id n16so5352625ooj.2 for ; Wed, 04 Nov 2020 11:11:22 -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=kUkrGaIC+6uDuIfeuIQSYAIatv4vnLAo8WozxbkcPyg=; b=sMz9cxdfqPmfjihRRXyE4ic+9hI82C7kAWepIYvADv23wjPpm41onypdJEvRcIE3ZI x2oIb+Qk+ymTntFR8IaWn/D4KaKO2VLCu6xoEV/yeD8Id1beTgGRdf3ZUoZHN32D6SY/ QT+UlwTqy065shPdtRoCG2BHKJdiJvX9vZV2sy+Hm+5QoNd+LOUQKU1Lj/MUVqHwLO1z 7Y0eF57qbVUlb0qc9OmDeK0aBEdSjt2EM5y1SxsKeQnuod54yKgpsCruMb0MCxDUnTVN I2JHcZ8uidjnjWnWQPwdnVzBVCuqipLw8lv9+vaaa4rYQKiolwVEJIg1/rhsFhH/firX bijw== X-Gm-Message-State: AOAM530fLI4j1eUQDw7WnMeyJ9zHE3S8eNQ/3UL9NtXyh/F9SdfPwd2T neN5OntufhYY5Z1F1L37jQ== X-Google-Smtp-Source: ABdhPJwFpwgersXSX2VXXaLS/A62lNSk2a3yZJe/Z7StU7lSSV+EQ+vj3vr9ZP1nuOtuWwdQH2P4Lg== X-Received: by 2002:a4a:b601:: with SMTP id z1mr19874936oon.83.1604517082404; Wed, 04 Nov 2020 11:11:22 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id h3sm722686oom.18.2020.11.04.11.11.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 11:11:21 -0800 (PST) Received: (nullmailer pid 3966731 invoked by uid 1000); Wed, 04 Nov 2020 19:11:21 -0000 Date: Wed, 4 Nov 2020 13:11:21 -0600 From: Rob Herring To: Linus Walleij Cc: dri-devel@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , Sean Paul , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH] dt-bindings: display: mcde: Convert to YAML schema Message-ID: <20201104191121.GC3959462@bogus> References: <20201104133709.1373147-1-linus.walleij@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201104133709.1373147-1-linus.walleij@linaro.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Wed, Nov 04, 2020 at 02:37:09PM +0100, Linus Walleij wrote: > This moves the MCDE bindings over to using the YAML schema > to describe the ST-Ericsson MCDE display controller, > making use of the generic DSI controller schema. > > We also add the "port" node, we will use this when adding > LCD panels using the direct parallel interface DPI instead > of DSI. > > Cc: devicetree@vger.kernel.org > Signed-off-by: Linus Walleij > --- > .../devicetree/bindings/display/ste,mcde.txt | 104 ----------- > .../devicetree/bindings/display/ste,mcde.yaml | 167 ++++++++++++++++++ > 2 files changed, 167 insertions(+), 104 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/display/ste,mcde.txt > create mode 100644 Documentation/devicetree/bindings/display/ste,mcde.yaml > > diff --git a/Documentation/devicetree/bindings/display/ste,mcde.txt b/Documentation/devicetree/bindings/display/ste,mcde.txt > deleted file mode 100644 > index 4c33c692bd5f..000000000000 > --- a/Documentation/devicetree/bindings/display/ste,mcde.txt > +++ /dev/null > @@ -1,104 +0,0 @@ > -ST-Ericsson Multi Channel Display Engine MCDE > - > -The ST-Ericsson MCDE is a display controller with support for compositing > -and displaying several channels memory resident graphics data on DSI or > -LCD displays or bridges. It is used in the ST-Ericsson U8500 platform. > - > -Required properties: > - > -- compatible: must be: > - "ste,mcde" > -- reg: register base for the main MCDE control registers, should be > - 0x1000 in size > -- interrupts: the interrupt line for the MCDE > -- epod-supply: a phandle to the EPOD regulator > -- vana-supply: a phandle to the analog voltage regulator > -- clocks: an array of the MCDE clocks in this strict order: > - MCDECLK (main MCDE clock), LCDCLK (LCD clock), PLLDSI > - (HDMI clock), DSI0ESCLK (DSI0 energy save clock), > - DSI1ESCLK (DSI1 energy save clock), DSI2ESCLK (DSI2 energy > - save clock) > -- clock-names: must be the following array: > - "mcde", "lcd", "hdmi" > - to match the required clock inputs above. > -- #address-cells: should be <1> (for the DSI hosts that will be children) > -- #size-cells: should be <1> (for the DSI hosts that will be children) > -- ranges: this should always be stated > - > -Required subnodes: > - > -The devicetree must specify subnodes for the DSI host adapters. > -These must have the following characteristics: > - > -- compatible: must be: > - "ste,mcde-dsi" > -- reg: must specify the register range for the DSI host > -- vana-supply: phandle to the VANA voltage regulator > -- clocks: phandles to the high speed and low power (energy save) clocks > - the high speed clock is not present on the third (dsi2) block, so it > - should only have the "lp" clock > -- clock-names: "hs" for the high speed clock and "lp" for the low power > - (energy save) clock > -- #address-cells: should be <1> > -- #size-cells: should be <0> > - > -Display panels and bridges will appear as children on the DSI hosts, and > -the displays are connected to the DSI hosts using the common binding > -for video transmitter interfaces; see > -Documentation/devicetree/bindings/media/video-interfaces.txt > - > -If a DSI host is unused (not connected) it will have no children defined. > - > -Example: > - > -mcde@a0350000 { > - compatible = "ste,mcde"; > - reg = <0xa0350000 0x1000>; > - interrupts = ; > - epod-supply = <&db8500_b2r2_mcde_reg>; > - vana-supply = <&ab8500_ldo_ana_reg>; > - clocks = <&prcmu_clk PRCMU_MCDECLK>, /* Main MCDE clock */ > - <&prcmu_clk PRCMU_LCDCLK>, /* LCD clock */ > - <&prcmu_clk PRCMU_PLLDSI>; /* HDMI clock */ > - clock-names = "mcde", "lcd", "hdmi"; > - #address-cells = <1>; > - #size-cells = <1>; > - ranges; > - > - dsi0: dsi@a0351000 { > - compatible = "ste,mcde-dsi"; > - reg = <0xa0351000 0x1000>; > - vana-supply = <&ab8500_ldo_ana_reg>; > - clocks = <&prcmu_clk PRCMU_DSI0CLK>, <&prcmu_clk PRCMU_DSI0ESCCLK>; > - clock-names = "hs", "lp"; > - #address-cells = <1>; > - #size-cells = <0>; > - > - panel { > - compatible = "samsung,s6d16d0"; > - reg = <0>; > - vdd1-supply = <&ab8500_ldo_aux1_reg>; > - reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; > - }; > - > - }; > - dsi1: dsi@a0352000 { > - compatible = "ste,mcde-dsi"; > - reg = <0xa0352000 0x1000>; > - vana-supply = <&ab8500_ldo_ana_reg>; > - clocks = <&prcmu_clk PRCMU_DSI1CLK>, <&prcmu_clk PRCMU_DSI1ESCCLK>; > - clock-names = "hs", "lp"; > - #address-cells = <1>; > - #size-cells = <0>; > - }; > - dsi2: dsi@a0353000 { > - compatible = "ste,mcde-dsi"; > - reg = <0xa0353000 0x1000>; > - vana-supply = <&ab8500_ldo_ana_reg>; > - /* This DSI port only has the Low Power / Energy Save clock */ > - clocks = <&prcmu_clk PRCMU_DSI2ESCCLK>; > - clock-names = "lp"; > - #address-cells = <1>; > - #size-cells = <0>; > - }; > -}; > diff --git a/Documentation/devicetree/bindings/display/ste,mcde.yaml b/Documentation/devicetree/bindings/display/ste,mcde.yaml > new file mode 100644 > index 000000000000..a00333acd9a1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/ste,mcde.yaml > @@ -0,0 +1,167 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/ste,mcde.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: ST-Ericsson Multi Channel Display Engine MCDE > + > +maintainers: > + - Linus Walleij > + > +properties: > + compatible: > + const: ste,mcde > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + description: the interrupt line for the MCDE Kind of generic description. Can drop. > + > + clocks: > + maxItems: 3 Can drop this. Implied with 'items'. > + description: an array of the MCDE clocks > + items: > + - description: MCDECLK (main MCDE clock) > + - description: LCDCLK (LCD clock) > + - description: PLLDSI (HDMI clock) > + > + clock-names: > + maxItems: 3 ditto > + items: > + - const: mcde > + - const: lcd > + - const: hdmi > + > + epod-supply: > + description: a phandle to the EPOD regulator > + > + vana-supply: > + description: a phandle to the analog voltage regulator > + > + port: > + type: object > + description: > + A DPI port node with endpoint definitions as defined in > + Documentation/devicetree/bindings/media/video-interfaces.txt > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 1 > + > + ranges: true > + > +patternProperties: > + "^dsi@[0-9a-f]+$": > + description: subnodes for the three DSI host adapters > + type: object > + allOf: > + - $ref: dsi-controller.yaml# > + properties: > + compatible: > + const: ste,mcde-dsi > + > + reg: > + maxItems: 1 > + > + vana-supply: > + description: a phandle to the analog voltage regulator > + > + clocks: > + description: phandles to the high speed and low power (energy save) clocks > + the high speed clock is not present on the third (dsi2) block, so it > + should only have the "lp" clock > + minItems: 1 > + maxItems: 2 > + > + clock-names: > + oneOf: > + - items: > + - const: hs > + - const: lp > + - items: > + - const: lp > + > + required: > + - compatible > + - reg > + - vana-supply > + - clocks > + - clock-names unevaluatedProperties: false > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + - epod-supply > + - vana-supply > + > +unevaluatedProperties: false The meta-schema has gotten stricter recently, so this has to be 'additionalProperties' since there's no other schema referenced. Moving target. :) Rob