Received: by 2002:ac8:3b51:0:b0:3f3:9eb6:4eb6 with SMTP id r17csp5096171qtf; Thu, 22 Jun 2023 08:18:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6XR+GGbKDxQMbB6DZ1ZWnZSzbnP/JXVC7GShawNKZ/FIYiLGGOYZJc8sXzB4ol84mF00aK X-Received: by 2002:a05:6a21:1085:b0:117:eaef:4d with SMTP id nl5-20020a056a21108500b00117eaef004dmr12345592pzb.36.1687447104120; Thu, 22 Jun 2023 08:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687447104; cv=none; d=google.com; s=arc-20160816; b=RzOHWexL0wp68C3uFpfVuIqZ9GV5DtftYExrR0n23C4KKzoqclX/ceCgo4S94vgOin oPpElgMexwqNdmkHckqj7CvxnHEPHAXLipFjW4RVHlnjvZxW8bSrkPPQjLMZizEKiite 4KwKIfgtywtxJl4BZ+sCeuKlVdC9tQuZtoRS3OhbVj8ImyxvORTHqdQzzP733r7xoe/e Ptp1yzpxFAM4rOxNxd1rqMwr2l9/sjEESW2z/1hs8irt7SI3Y4zCpXnC6XIx7qYVuIKs w8FM6pC+lcdpHVGeZ/RdqlakyQ+bIu4Qjd9+cG8FQOhGjqh2fe6fznvk9dW/Ops9fyHN sUYQ== 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=W4H+n+jEYNR1xv2zwH8+yE3Do/Uus/NRBa8ilWuur2s=; b=rMwSeFUz6ef6nWJ/VRPZ6vo7MWBLZZVvglEpl3zO4jjrpW00ehB0/ifJQLd7duTaSK FAb40nnBsXMuGsgrRPUuABtD0e/CtvoRb+c4TkDNvxBo9v9E1QQKkUtTLskxqY7ybEEa Rh5spe+PYVMfyEwOKuOJbyTjn4l5Zw6VqdiiIJpBws7ye0ICOKAvGfNAnoV2nHOS88dI bzXtXZBPud+y5Wbo+ek3LkkWrTitcqV5Q/TiwTSr0UPRbymQEwpPCAX5iEB3boi91bPv 03VXm3++UkQcyGcZfHXoqTk3IbNR4qQ46IyKH47D+NYdRdf3U2H5iiBKI1T4qWWWTpyv I+Qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020aa7950d000000b0063b8f0a6f51si5208327pfp.117.2023.06.22.08.18.11; Thu, 22 Jun 2023 08:18:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232000AbjFVOwW (ORCPT + 99 others); Thu, 22 Jun 2023 10:52:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232004AbjFVOwS (ORCPT ); Thu, 22 Jun 2023 10:52:18 -0400 Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBFD61BF9; Thu, 22 Jun 2023 07:52:16 -0700 (PDT) Received: by mail-io1-f51.google.com with SMTP id ca18e2360f4ac-780c8df59caso45785539f.3; Thu, 22 Jun 2023 07:52:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687445536; x=1690037536; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=W4H+n+jEYNR1xv2zwH8+yE3Do/Uus/NRBa8ilWuur2s=; b=WCPRwwaRUBIzcVqN/8VVvOC1Pp8FhkVG1qPI7diVTAVdByhFQeP7tby2mNZWB13IvX kSuQToJ9ULC48Lqk0AIqBzjVSPpXo5NNLUwWpD7rRFTywyEiuNyHdI/5tyaSmW0T9knO vgMRnz/Z7zGP6X7ara1NFIOjKL1DSu8tRWu7aFdeQYzdxe0vhyK1GZX7ZnzLZ9OXdBbL 1l1mt6oCkK6L06uW/xgP+nIRM0Q6A7jbHhVJrgfGiXbWrhl0S81cSaLU3sxGPTPX6z+b 58h4MtTPsEcmqxJ4DZPanGWuhVb+C2sTz9z26LzC0ySkFwcUjzETElCU9/JWVMH4y6+5 PeoA== X-Gm-Message-State: AC+VfDxiI0MULIN/1IOvbeOl76VGk7S/PTmmypGaOxqXXDdcvEbnJ/m/ R+jMJ8gslsTvBsUD7ilgmgnjeH9HjA== X-Received: by 2002:a5e:c012:0:b0:77a:c741:b73d with SMTP id u18-20020a5ec012000000b0077ac741b73dmr19569132iol.3.1687445535953; Thu, 22 Jun 2023 07:52:15 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id eq1-20020a0566384e2100b00420ce233bfesm2049529jab.22.2023.06.22.07.52.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 07:52:15 -0700 (PDT) Received: (nullmailer pid 1685842 invoked by uid 1000); Thu, 22 Jun 2023 14:52:13 -0000 Date: Thu, 22 Jun 2023 08:52:13 -0600 From: Rob Herring To: Geert Uytterhoeven Cc: Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter , Thomas Zimmermann , Magnus Damm , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org Subject: Re: [PATCH 01/39] dt-bindings: display: Add Renesas SH-Mobile LCDC bindings Message-ID: <20230622145213.GA1678457-robh@kernel.org> References: <2259ff548f007afcb5a315a4c95c83a0ee4b7e03.1687423204.git.geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2259ff548f007afcb5a315a4c95c83a0ee4b7e03.1687423204.git.geert+renesas@glider.be> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 22, 2023 at 11:21:13AM +0200, Geert Uytterhoeven wrote: > Add device tree bindings for the LCD Controller (LCDC) found in Renesas > SuperH SH-Mobile and ARM SH/R-Mobile SOCs. > > Based on a plain text prototype by Laurent Pinchart. > > Signed-off-by: Geert Uytterhoeven > Cc: Rob Herring > Cc: Krzysztof Kozlowski > Cc: Conor Dooley > Cc: devicetree@vger.kernel.org > --- > Changes compared to Laurent's original: > - Convert to json-schema, > - Rename compatible values from "renesas,lcdc-" to > "renesas,-lcdc", > - Add power-domains property, > - Add MIPI-DSI port on SH-Mobile AG5, > - Update example to reflect reality, > - Add to MAINTAINERS. > --- > .../display/renesas,shmobile-lcdc.yaml | 108 ++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 109 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/renesas,shmobile-lcdc.yaml > > diff --git a/Documentation/devicetree/bindings/display/renesas,shmobile-lcdc.yaml b/Documentation/devicetree/bindings/display/renesas,shmobile-lcdc.yaml > new file mode 100644 > index 0000000000000000..72a39fce7294d56d > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/renesas,shmobile-lcdc.yaml > @@ -0,0 +1,108 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/renesas,shmobile-lcdc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Renesas SH-Mobile LCD Controller (LCDC) > + > +maintainers: > + - Laurent Pinchart > + > +properties: > + compatible: > + enum: > + - renesas,r8a7740-lcdc # R-Mobile A1 > + - renesas,sh73a0-lcdc # SH-Mobile AG5 > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + minItems: 1 > + maxItems: 5 > + description: > + Only the functional clock is mandatory. > + Some of the optional clocks are model-dependent (e.g. "video" (a.k.a. > + "vou" or "dv_clk") is available on R-Mobile A1 only). > + > + clock-names: > + minItems: 1 > + maxItems: 5 > + items: > + enum: [ fck, media, lclk, hdmi, video ] > + > + power-domains: > + maxItems: 1 > + > + ports: > + $ref: /schemas/graph.yaml#/properties/ports > + description: | > + The connections to the output video ports are modeled using the OF graph > + bindings specified in Documentation/devicetree/bindings/graph.txt. Please read this file. > + The number of ports and their assignment are model-dependent. > + Each port shall have a single endpoint. I'd just drop the whole description. > + > + properties: > + port@0: > + $ref: /schemas/graph.yaml#/properties/port > + description: LCD port (R-Mobile A1 and SH-Mobile AG5) > + unevaluatedProperties: false Don't need this. > + > + port@1: > + $ref: /schemas/graph.yaml#/properties/port > + description: HDMI port (R-Mobile A1 LCDC1 and SH-Mobile AG5) > + unevaluatedProperties: false > + > + port@2: > + $ref: /schemas/graph.yaml#/properties/port > + description: MIPI-DSI port (SH-Mobile AG5) > + unevaluatedProperties: false > + > + required: > + - port@0 > + > + unevaluatedProperties: false > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + - power-domains > + - ports > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + lcdc0: lcd-controller@fe940000 { Drop label. > + compatible = "renesas,r8a7740-lcdc"; > + reg = <0xfe940000 0x4000>; > + interrupts = ; > + clocks = <&mstp1_clks R8A7740_CLK_LCDC0>, > + <&cpg_clocks R8A7740_CLK_M3>, <&lcdlclk0_clk>, > + <&vou_clk>; > + clock-names = "fck", "media", "lclk", "video"; > + power-domains = <&pd_a4lc>; > + status = "disabled"; Drop. > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + > + lcdc0_rgb: endpoint { > + }; > + }; > + }; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 83e9f4ac6bedaa9f..dc1935c196cb0e0b 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -7023,6 +7023,7 @@ F: Documentation/devicetree/bindings/display/bridge/renesas,dsi-csi2-tx.yaml > F: Documentation/devicetree/bindings/display/bridge/renesas,dw-hdmi.yaml > F: Documentation/devicetree/bindings/display/bridge/renesas,lvds.yaml > F: Documentation/devicetree/bindings/display/renesas,du.yaml > +F: Documentation/devicetree/bindings/display/renesas,shmobile-lcdc.yaml > F: drivers/gpu/drm/renesas/ > F: include/linux/platform_data/shmob_drm.h > > -- > 2.34.1 >