Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2165398pxp; Sun, 13 Mar 2022 10:29:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbQGZiaXWwjYuuZPTsyo83reHlIfUYhH7LsX+i/WSq74xRn5QoYv7rlbCIEexdgLNLifR7 X-Received: by 2002:a17:906:1158:b0:6d0:562b:d8ee with SMTP id i24-20020a170906115800b006d0562bd8eemr16293902eja.78.1647192547759; Sun, 13 Mar 2022 10:29:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647192547; cv=none; d=google.com; s=arc-20160816; b=kd9YUAv6OPNzveKlBzxDhVyXQwn8EBtoj0EI3yRhzQskP7DUjkdejKlzxRwt15qmIn HqhwdXur+YuoOwuinZBjuDKj12TC8pGikZ3lOtFk213MVAuyj288XAmV9L9019jMcdRy EiyTcIkfIsnM2GziQRVzEtFRF9FHp9BEbPTKFhx9gs8O4/Lz5UkwKZcILxdeoDVd3Y2B 5pawbP4XolecUu9CfIK4W+YK/F1+ZrsuocMMtdsdruaKZk0cR69F028rjTyzchPzPBdx Gfrit7ibynqZ0cDxmgD7RhwSPGvWWnarSvB8HbIMPc+ByyU+OJ+NjF7XaY4pqJVIP7kH gPCA== 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; bh=G2NWtu8ohVik+0O0HuU4fZ12ei96T+H/fKybtnokbIM=; b=sLESwWpGSNgYuOvDyuAQlpDvHyLfBzuedIvdzfhy/4t7uGXBAePXsiZUHeSLydKIB1 7qnqio3DuU0OA/XB8ROJD0ZnH5R4Y4+4saHitt3MphAi6+Ns3sUNt9UOH9FvkV6p6z0n muoGz4gCrGSzldQN99joqkg+ZuISvF/rmF+uCRxuQTs5oZobpwKBp5rHer12PTCGpdR8 C9r+86zAaRPoFfwRprjY1PXYQGuqMoP4efAwz+4mjiiT11eLwB2eEKWtN+ew78KIY/fw SNfCVGYhUwKndvnxnp+s4V2vHUFRv+pOuD0upf04WVZ1bduGr4yDbiEs/590c76mPafP K4Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b="E/xboekx"; 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=QUARANTINE dis=NONE) header.from=gmx.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c88-20020a509fe1000000b00415a39103cesi8298436edf.239.2022.03.13.10.28.43; Sun, 13 Mar 2022 10:29:07 -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=@gmx.net header.s=badeba3b8450 header.b="E/xboekx"; 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=QUARANTINE dis=NONE) header.from=gmx.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232503AbiCLTZp (ORCPT + 99 others); Sat, 12 Mar 2022 14:25:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230463AbiCLTZn (ORCPT ); Sat, 12 Mar 2022 14:25:43 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC79A1E0147; Sat, 12 Mar 2022 11:24:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1647113042; bh=BiQBm2UCZmXDRmTqod0u4Z76MdsDly3+2N9yHM33E/4=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=E/xboekxgiea0zyl4r8K50w4kZqKzc6jVxT7XTW0NAn8v5gGmZ6MBYq9Hga5Uq/Pl s+8MbNq0egdEeMC83ofkg45H7SvXwKjCshpSWp2syv6FoaHZlq+ustlX+4FgpCYDGy 9/aA9Gnwf49b3sS2tjNHZIgmty3BQiFHbClft/pU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([185.66.193.43]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MEV3I-1nN1Tf3Ini-00FzMx; Sat, 12 Mar 2022 20:24:01 +0100 Date: Sat, 12 Mar 2022 20:23:48 +0100 From: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= To: Andreas Kemnade Cc: p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, alistair@alistair23.me, samuel@sholland.org, josua.mayer@jm0.eu, letux-kernel@openphoenux.org Subject: Re: [RFC PATCH 1/6] dt-bindings: display: imx: Add EPDC Message-ID: References: <20220206080016.796556-1-andreas@kemnade.info> <20220206080016.796556-2-andreas@kemnade.info> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4dGDc1ulGkdHTd51" Content-Disposition: inline In-Reply-To: <20220206080016.796556-2-andreas@kemnade.info> X-Provags-ID: V03:K1:O/HCc+HDKnwFzBvV8D7YKaDp+2sxe1jqC9CVwWViznBPNN7xWNG 5G2h8HSNsT9FWHB+AtmX6EfpTuqRFDPXTehKmY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BYDr0 2Uf06hYzgCiSbwh3m+vf5bLZUUgVL9tohv6sV28Es9E3P0N7DZZsT0NiLKG4GYV3RMggdqySW 4zZ7DRghUFC1qFUmvZ7KDhdBcXF043jyxvEivvqjLIntv+SwSASRS1NnEYk0jHe+Rac1h4VyE PzErTrVkqMeASGYeZITEQLBtdDoM6WnzDQqf3tVfzG7aeA35Z8mxUkrf5oBsdKuulJcqMt8Pk 1ilaZXm0KiqJNQ= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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: X-Mailing-List: linux-kernel@vger.kernel.org --4dGDc1ulGkdHTd51 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Andreas, Sorry for the delay, I finally got around to having a look at the patchset. Some comments from skimming the patches below, and in my other replies. On Sun, Feb 06, 2022 at 09:00:11AM +0100, Andreas Kemnade wrote: > Add a binding for the Electrophoretic Display Controller found at least > in the i.MX6. > The timing subnode is directly here to avoid having display parameters > spread all over the plate. >=20 > Supplies are organized the same way as in the fbdev driver in the > NXP/Freescale kernel forks. The regulators used for that purpose, > like the TPS65185, the SY7636A and MAX17135 have typically a single bit to > start a bunch of regulators of higher or negative voltage with a > well-defined timing. VCOM can be handled separately, but can also be > incorporated into that single bit. >=20 > Signed-off-by: Andreas Kemnade > --- > .../bindings/display/imx/fsl,mxc-epdc.yaml | 159 ++++++++++++++++++ > 1 file changed, 159 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,mxc= -epdc.yaml >=20 > diff --git a/Documentation/devicetree/bindings/display/imx/fsl,mxc-epdc.y= aml b/Documentation/devicetree/bindings/display/imx/fsl,mxc-epdc.yaml > new file mode 100644 > index 000000000000..7e0795cc3f70 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/imx/fsl,mxc-epdc.yaml > @@ -0,0 +1,159 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- [...] > + - vscan-holdoff > + - sdoed-width > + - sdoed-delay > + - sdoez-width > + - sdoez-delay > + - gdclk-hp-offs > + - gdsp-offs > + - gdoe-offs > + - gdclk-offs > + - num-ce These parameters should perhaps have sane defaults in the driver, and be optional in the DT. > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + epdc: epdc@20f4000 { [...] > + > + timing { > + clock-frequency =3D <80000000>; > + hactive =3D <1448>; > + hback-porch =3D <16>; > + hfront-porch =3D <102>; > + hsync-len =3D <28>; > + vactive =3D <1072>; > + vback-porch =3D <4>; > + vfront-porch =3D <4>; > + vsync-len =3D <2>; > + }; > + }; The way you did it here, the timing parameters are directly under the EPDC node in the DT, but I wonder if it would be better to have a separate node for the display panel, which can then provide the timing parameters either in the DT or in the panel driver (selected by compatible string of the panel). Jonathan --4dGDc1ulGkdHTd51 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEvHAHGBBjQPVy+qvDCDBEmo7zX9sFAmIs8yAACgkQCDBEmo7z X9tJ5hAAxertxtsQerEUdypFRk6tF6GZ7tpwhND2/arfmp7+/DAZ8Uq52gl8tHNN gBfg99ukZ4HftCbcoPMLaqNi5K1nB6+igACg6tIuXj9GoTyniynnZjrcDT/0Hzhu zEQQxUDcDIZc1JuqVmaE5nMyE+Tgpz4bHxZNqfSnYcvcqxaE1UHczrPZxblz80X0 ZDFBPYmgFKXKHbmQYaaODTpgDVMQ74EEuTSuWcPLqUEL68kQsYkrOnULAr5A5AhZ ppFSj2C5AfAGRN3Qe08P7FEEi7SyhGC+iARK/wnLHkSNamYXgz8SVpKsgMnoZeal QUnOft+ZkAyPIKBo3aDVpRfodPJ48s0gj1NhCarYr8cEuNsyZXfysoeRCGOiRlzp 8+B5zLoyh1FDrJVBL5ptNDlYWyqew6MnXgVnmt6rcgMKKVrJvZ8hTbMBEkV3ZsY1 vs/Se9Jyhhasow734cG2+2zt0IPhrO4m7/Zoeci2zNPmvj4ZtPYc8aTdXQx7RUl8 CLfX59/st5hWgVV2O/CY8tQUrjdLCXp0jHYYWIxoKprFh7ekNYdw/D8BqwNI5c+S RUO5yw8Tu6Y/wVAsrHtn+E8m6mTI6B9yAxM7ltwY2/9svVsLcPO0UCLUSnDtFvlg X5MGbxTMdPI4Kbz2rixXEIp3en0OobFSJctn9SLZWqXhXTzyQjs= =lMbE -----END PGP SIGNATURE----- --4dGDc1ulGkdHTd51--