Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1772207iol; Fri, 10 Jun 2022 14:50:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7FXmICM89K+khdJAdW0oOAwgdsWI2YZz+pkhERsl4vX4mcmIO5hSMc9oJukumOk4mnZN8 X-Received: by 2002:a17:907:162c:b0:712:18e:33e4 with SMTP id hb44-20020a170907162c00b00712018e33e4mr9557237ejc.187.1654897850107; Fri, 10 Jun 2022 14:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654897850; cv=none; d=google.com; s=arc-20160816; b=iIuXDUs8CdLFnvfTBbgkf6m78+748CMy9RKL4dfG9+jXrPHvjSwuQInTQejc6T/XJM tU+OQ3lanHribBYjILAGAax3JKhFE+SABh7mVgSma9qQ/tJrJ2S/9B6G733VM5Gsn5Er INu93JPUjFCQ7Y1tYnR75djKfxzK5fazHovlfXaMVZ+OjITdrK7TTVFSme1cxpayp2nx GtXV2AVAaa7v1aSsvcb+ErgPOAFq1rnoVEo8ook7CBxRyJ5TSY/RowP/MYwKVJRFpzbN +7+Q6+0o4+6MnkipusiyYk9Y6W0DbygrWWBOzcsRiws2dY4Mvec3n312esQliygiL/Nl rToQ== 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:dkim-signature :dkim-signature; bh=ugwP4YVZPOfl7I8NlcUJ4PoWOuxr4pFDE0Rvq4PpdOQ=; b=BCPa27pTwjEFKNcEoL2OMOcAY5XpjWH9thfqYEWENPH9iajytu5iUR9gg3WOBxkn5x 7zXJOk+F9gyKNp26Mz8CMjP0+03veStOvBonmoXQxKD5PSPk6kpkfs8AS3AtjnZk2S1J cTNi7eG0CTNzDswAbs63u1NdrXFINgEqQh4Nwubf2kvRg91pJWTR+eHwtsAhaU9CnFIx tb99tuKJ2vv8gNbNRwko1cGMBbIlRAmoUd0jFHmt35I+ZnkAy3OKnLJuCnEuhVKl9IJi DcaqMZ2agHaEmf1cIWEQjtuG/ZehvOk2sRRWZ1TsTE9x8NXsp2b6TQZ6SSh9E6JAqZH9 /0YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=m61VyMMO; dkim=neutral (no key) header.i=@ravnborg.org; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he39-20020a1709073da700b00710fb1685ecsi268221ejc.272.2022.06.10.14.50.07; Fri, 10 Jun 2022 14:50:50 -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; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=m61VyMMO; dkim=neutral (no key) header.i=@ravnborg.org; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350750AbiFJUzC (ORCPT + 99 others); Fri, 10 Jun 2022 16:55:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347296AbiFJUzB (ORCPT ); Fri, 10 Jun 2022 16:55:01 -0400 Received: from mailrelay4-1.pub.mailoutpod1-cph3.one.com (mailrelay4-1.pub.mailoutpod1-cph3.one.com [46.30.210.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66FBE3E5DA for ; Fri, 10 Jun 2022 13:54:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=ugwP4YVZPOfl7I8NlcUJ4PoWOuxr4pFDE0Rvq4PpdOQ=; b=m61VyMMOwzs91nt0FyeHlH9a8ufZ1VEzusjmigaHlfGQ15HfLrSiVoab4Prb+PgrKa9m4JSBiyq4B HK+BHhsR+aSth99uYMNWjUyXYFw/AG0mOi8dsZqmOEawEEEL0wis4+s4eZ+QbAbsRXgyWjbS//yoUi qvJTKhpgR86R46mDzT/Xb1IJ7qGBFN1eacqyB0sZlPnPkNjlq1MoFMjdfQDRv/zEV1Pu8C/RjuS01V dLEAzwyInYgCGIUonG98klPKfxJtstbGuvzrPOL71vm+g5eOiZEPyN7fXJKUnHcW4sw1GIGAeAVl9e Ipf9UU/wemvXyF+tmeM4v28sfZXTZzg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=ugwP4YVZPOfl7I8NlcUJ4PoWOuxr4pFDE0Rvq4PpdOQ=; b=htMQzykLDALDHvy6Eimbys9kGXjx7p2vMdx4qstM1qYwYR2tZXI5iI7bxuSdYqHcuuqL5H4zvRKHb KoVkjmuCQ== X-HalOne-Cookie: 4d425857962da9de5131940648ecb171efa0ad46 X-HalOne-ID: 92ba4b04-e8ff-11ec-8231-d0431ea8bb10 Received: from mailproxy1.cst.dirpod4-cph3.one.com (80-162-45-141-cable.dk.customer.tdc.net [80.162.45.141]) by mailrelay4.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 92ba4b04-e8ff-11ec-8231-d0431ea8bb10; Fri, 10 Jun 2022 20:54:52 +0000 (UTC) Date: Fri, 10 Jun 2022 22:54:50 +0200 From: Sam Ravnborg To: Rob Herring Cc: David Airlie , Daniel Vetter , Krzysztof Kozlowski , Thierry Reding , Liviu Dudau , Andre Przywara , Linus Walleij , Robin Murphy , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: display: panel-simple: Add Arm virtual platforms display Message-ID: References: <20220610203818.2193593-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220610203818.2193593-1-robh@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Hi Rob, On Fri, Jun 10, 2022 at 02:38:18PM -0600, Rob Herring wrote: > 'arm,rtsm-display' is a panel for Arm, Ltd. virtual platforms (e.g. FVP). > The binding has been in use for a long time, but was never documented. > > Some users and an example have a 'panel-dpi' compatible, but that's not > needed without a 'panel-timing' node which none of the users have since > commit 928faf5e3e8d ("arm64: dts: fvp: Remove panel timings"). The > example does have a 'panel-timing' node, but it should not for the > same reasons the node was removed in the dts files. So update the > example in arm,pl11x.yaml to match the schema. > > Cc: Linus Walleij > Cc: Robin Murphy > Cc: Andre Przywara > Signed-off-by: Rob Herring > --- > .../bindings/display/arm,pl11x.yaml | 15 +------------- > .../bindings/display/panel/panel-simple.yaml | 20 +++++++++++++------ > 2 files changed, 15 insertions(+), 20 deletions(-) > > diff --git a/Documentation/devicetree/bindings/display/arm,pl11x.yaml b/Documentation/devicetree/bindings/display/arm,pl11x.yaml > index b545c6d20325..6cc9045e5c68 100644 > --- a/Documentation/devicetree/bindings/display/arm,pl11x.yaml > +++ b/Documentation/devicetree/bindings/display/arm,pl11x.yaml > @@ -159,25 +159,12 @@ examples: > }; > > panel { > - compatible = "arm,rtsm-display", "panel-dpi"; > - power-supply = <&vcc_supply>; > + compatible = "arm,rtsm-display"; > > port { > clcd_panel: endpoint { > remote-endpoint = <&clcd_pads>; > }; > }; > - > - panel-timing { > - clock-frequency = <25175000>; > - hactive = <640>; > - hback-porch = <40>; > - hfront-porch = <24>; > - hsync-len = <96>; > - vactive = <480>; > - vback-porch = <32>; > - vfront-porch = <11>; > - vsync-len = <2>; > - }; > }; > ... > diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml > index 21ba90c9fe33..97afd276c54a 100644 > --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml > +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml > @@ -19,9 +19,6 @@ description: | > > If the panel is more advanced a dedicated binding file is required. > > -allOf: > - - $ref: panel-common.yaml# > - > properties: > > compatible: > @@ -35,6 +32,8 @@ properties: > - ampire,am-480272h3tmqw-t01h > # Ampire AM-800480R3TMQW-A1H 7.0" WVGA TFT LCD panel > - ampire,am800480r3tmqwa1h > + # Arm, Ltd. Virtual Platforms Display > + - arm,rtsm-display > # AU Optronics Corporation 10.1" WSVGA TFT LCD panel > - auo,b101aw03 > # AU Optronics Corporation 10.1" WSVGA TFT LCD panel > @@ -340,9 +339,18 @@ properties: > > additionalProperties: false > > -required: > - - compatible > - - power-supply > +allOf: > + - $ref: panel-common.yaml# > + - if: > + # Most 'simple' panels must have a single supply, but a virtual display does not > + not: > + properties: > + compatible: > + contains: > + const: arm,rtsm-display > + then: > + required: > + - power-supply Sorry, but I do not like this change. The beauty of panel-simple is that this is a collection of simple display with identical bindings because the HW is more or less the same (in general - not in details like size etc). Any panels that requires more are pushed out to their own binding and for arm,rtsm-display that would be better. It is not this single exceptions that bothers me, it is the many exceptions we will have in a few years from now. Sam