Message ID | 20230619165525.1035243-5-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3146814vqr; Mon, 19 Jun 2023 10:17:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6LUCCTg3N9ljaM1aAoHeraKvLfGYsFqAjlZ3e3ZlxLdjqdsr6+nmXre1AkTl9mtYr2ROnX X-Received: by 2002:a17:90a:55c7:b0:25b:b88b:bd41 with SMTP id o7-20020a17090a55c700b0025bb88bbd41mr5395474pjm.43.1687195037648; Mon, 19 Jun 2023 10:17:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687195037; cv=none; d=google.com; s=arc-20160816; b=WiMCYAfOB7QGENcVN6S5N5Ki8X9ZLEN9TA+eUTYuBE7faDLyQZqWJikiaoozEY3aRi /g3TWhE6Z0sK74senk2B7vUQ5J6gyraVfKpxDba1nW7Hadi2yztvj9CcIpoeOQzO4JFw vINElFYgSIhlfOtIGa09QzxcUR9KySQZQxtMCl9lgoDQuSlMMvNCA0xtv+N1EdowKr2l fqKe3dHPXn2fhUaM78i0gle0X6fDU1Oy/RuqD02ccX9ISXdOL2VGGmJ7PBrHXLK/h0RI h+R9r4cfthbjqBdm18el2AjwfcUHrVXK9oDBlzIJSVc5Ce5UjwiXTKtoPL6oGNNN8ece YnmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HXhpNMq77ixD+XgN0GcYbuylNiGuY9CxnraNzjgz9ZY=; b=E//76fCMyuphE3IhyEUuLqf6fHngi23CfvY6re4hBEqIEglCSWlaQhosergejJLvdn FKu/f9De4b5kkZKpGt0fjXnKl/AdjKfS7UwW8S3PP5bFJtAR5Q68YYkuNm2CrnlUOtjJ Feqntv+x07lsFdezmXhZK53rNU43si72K+O54oH5hL5QyMMvuNlQ7lUO/5HDJcG9DBt2 xe0A91y8egADDEpRv/UZs2GTM625A1vDCbksgORc2f5wblm4Hgg4RZvLQj5oreKgs+Sf XzLOJy5UCwhxWxspzozWFFKmGoQb6nKqaJ1vXLRJZjN0bNBGdFAw8BetQaLST9BYYs2/ 7oLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PouTpA+2; 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=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w26-20020a637b1a000000b00543a6ce8c34si6866057pgc.463.2023.06.19.10.17.04; Mon, 19 Jun 2023 10:17:17 -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=@amarulasolutions.com header.s=google header.b=PouTpA+2; 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=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231466AbjFSQ4B (ORCPT <rfc822;duw91626@gmail.com> + 99 others); Mon, 19 Jun 2023 12:56:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230147AbjFSQz4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 19 Jun 2023 12:55:56 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB2A710D9 for <linux-kernel@vger.kernel.org>; Mon, 19 Jun 2023 09:55:50 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-76241c98586so282347585a.0 for <linux-kernel@vger.kernel.org>; Mon, 19 Jun 2023 09:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1687193749; x=1689785749; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HXhpNMq77ixD+XgN0GcYbuylNiGuY9CxnraNzjgz9ZY=; b=PouTpA+2eidqrl2NfeWbcV1LWEd+x0sWxTYQqZBmR29e20+aBqMcRvmbdsZHxk/2Kq RlWwI7B6oc4NIV+fZrj9r54OOU1KWGPD93E/gAX81LmHhbzAz0pjOmQ9MyzQOqhaQ325 8/nMG/HMKeVZlzv/TM7cOrnvPqkTZAVZWRW5c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687193749; x=1689785749; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HXhpNMq77ixD+XgN0GcYbuylNiGuY9CxnraNzjgz9ZY=; b=Pynv83PSAsvhBVJOa0G2MTw1aU/7KB8mPlBzMPgAMVPS/Sy0N4RdTqhWRrmOvs0k3t uZbSjl6yoBmwOfgU6Ara5rnfaU4IpvAt4VaSKZCeKR6EywFMlIimJxvQ3V3ceomFTm/V MPtzRigopzWe138joSXBJXPv9xWM2s6lDGCIpSxAsJK+ei0us9wINQiYP5zW934mKM+p aa7E5pxwf6oHN5o5k043P5DRKw2teGW7jsvA4h4cGDhBalECUQuPDWUFCGhuDpgDZcLr qxQXnolsfx3Tz9FWmGHaCyOMu1Fc7k1dCzsMtb2uJu6XB4wE+OkIp7aQWezeoWf89Z63 d7pA== X-Gm-Message-State: AC+VfDwAyEIv+BNjcA+SLS9TzX9Ll+eiUQt3heGxuNGTeyvtZpwY7YNU k98TBu907oJ+lOR+k9jJBlMpf7QR1nz3E68TaP4= X-Received: by 2002:a05:620a:cd2:b0:762:52a1:4687 with SMTP id b18-20020a05620a0cd200b0076252a14687mr4387025qkj.22.1687193749648; Mon, 19 Jun 2023 09:55:49 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (host-79-25-27-4.retail.telecomitalia.it. [79.25.27.4]) by smtp.gmail.com with ESMTPSA id p23-20020a05620a15f700b0075d49ce31c3sm109103qkm.91.2023.06.19.09.55.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 09:55:49 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-kernel@vger.kernel.org Cc: Philippe Cornu <philippe.cornu@foss.st.com>, Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>, Amarula patchwork <linux-amarula@amarulasolutions.com>, michael@amarulasolutions.com, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Conor Dooley <conor+dt@kernel.org>, Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@gmail.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Rob Herring <robh+dt@kernel.org>, Yannick Fertre <yannick.fertre@foss.st.com>, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v4 4/6] dt-bindings: display: stm32-ltdc: add optional st,fb-bpp property Date: Mon, 19 Jun 2023 18:55:23 +0200 Message-Id: <20230619165525.1035243-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230619165525.1035243-1-dario.binacchi@amarulasolutions.com> References: <20230619165525.1035243-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769152223778625435?= X-GMAIL-MSGID: =?utf-8?q?1769152223778625435?= |
Series |
Add display support on the stm32f746-disco board
|
|
Commit Message
Dario Binacchi
June 19, 2023, 4:55 p.m. UTC
Boards that use the STM32F{4,7} series have limited amounts of RAM. The
added property allows to size, within certain limits, the memory footprint
required by the framebuffer.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
(no changes since v1)
.../devicetree/bindings/display/st,stm32-ltdc.yaml | 6 ++++++
1 file changed, 6 insertions(+)
Comments
On Mon, 19 Jun 2023 18:55:23 +0200, Dario Binacchi wrote: > Boards that use the STM32F{4,7} series have limited amounts of RAM. The > added property allows to size, within certain limits, the memory footprint > required by the framebuffer. > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > > (no changes since v1) > > .../devicetree/bindings/display/st,stm32-ltdc.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml: properties:st,fb-bpp:maxItems: False schema does not allow 1 from schema $id: http://devicetree.org/meta-schemas/core.yaml# doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230619165525.1035243-5-dario.binacchi@amarulasolutions.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
Hey, On Mon, Jun 19, 2023 at 06:55:23PM +0200, Dario Binacchi wrote: > Boards that use the STM32F{4,7} series have limited amounts of RAM. The > added property allows to size, within certain limits, the memory footprint > required by the framebuffer. Hmm, this sounds quite a lot like "software policy", since the actual display doesn't have these limitations. Rob, Krzysztof? > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > > (no changes since v1) Really? https://lore.kernel.org/all/?q=dfn:st,stm32-ltdc.yaml%20 You sure this shouldn't be "new in v4"? > .../devicetree/bindings/display/st,stm32-ltdc.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml b/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml > index d6ea4d62a2cf..1c3a3653579f 100644 > --- a/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml > +++ b/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml > @@ -42,6 +42,12 @@ properties: > - for internal dpi input of the MIPI DSI host controller. > Note: These 2 endpoints cannot be activated simultaneously. > > + st,fb-bpp: Is there not a more understandable property name than this? Maybe I just had to think about it because fbdev stuff aint something I've worked with... > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: | > + bit depth of framebuffer (8, 16 or 32) > + maxItems: 1 Why not make it an enum, since there are only 4 values? Cheers, Conor. > + > required: > - compatible > - reg > -- > 2.32.0 >
On Mon, Jun 19, 2023 at 09:18:25PM +0100, Conor Dooley wrote: > Hey, > > On Mon, Jun 19, 2023 at 06:55:23PM +0200, Dario Binacchi wrote: > > Boards that use the STM32F{4,7} series have limited amounts of RAM. The > > added property allows to size, within certain limits, the memory footprint > > required by the framebuffer. > > Hmm, this sounds quite a lot like "software policy", since the actual > display doesn't have these limitations. Rob, Krzysztof? Indeed. This doesn't belong in DT. Rob
diff --git a/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml b/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml index d6ea4d62a2cf..1c3a3653579f 100644 --- a/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml +++ b/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml @@ -42,6 +42,12 @@ properties: - for internal dpi input of the MIPI DSI host controller. Note: These 2 endpoints cannot be activated simultaneously. + st,fb-bpp: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + bit depth of framebuffer (8, 16 or 32) + maxItems: 1 + required: - compatible - reg