Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6146093pxb; Mon, 14 Feb 2022 16:51:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLdtf0EijQ5tJwsi0477md/WN4pQfoNFLiaRdlE/3x0bqRv1JFYBvQexgb/zY5HAFjtjZ9 X-Received: by 2002:a17:902:b189:: with SMTP id s9mr1727864plr.36.1644886291946; Mon, 14 Feb 2022 16:51:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644886291; cv=none; d=google.com; s=arc-20160816; b=eD5ZcvV7NL9W4tojxKMiw1JJfEQkgmf1mDRttcJl74KeQtx3H6jA1AxH7veOdiM9uc A2YSUpgKwtxJtD3Uj664TU7F4iiyl1M44HFr3ugHQJntJcJhfdTtkT+DsLR9HG+RfwNu GdsdUu+9+h5ZPwV6txEkTk8EYwihUHQjKdkMykKrDVyPkdhM6WRSpvK6FCf0oDwIbKc3 328Gr6i+3ju/ClhXqMumbcWxfLuU0JZb0yQob5sFz6VjOZO9bB3G0UatJQJirEh768q4 XSVoiqv/jGPEA96y1zlPzY52ejrKifp9lG3DpE6Tv+AAYSCXa9Nm3mJXB/5z46RL275X SKqw== 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:subject:cc:to:from:date :dkim-signature; bh=bR7fehLtd9M9qTlT7VF3MZCfD/oznbKy8d/rqBxhceI=; b=a616CvjtC3bzP7hQNxjMcm95LS18OMPvZIZ5x3gjOSveOMeHmbGh5OBdr53dGX7aub UoiWKVWtebfucNGgpQU0apObAeHlhXIkKFAOfrtqy2AVgjhP9WuFO75YFhcTT5ij+oKL k12R76+wCC3P/pPesFndcOdHwBKJNpsPmps6lu+sAMkWchRF0agr4zHpYM/cJwrnHJnl 5k+St9NtLPEQVtEJ26gg3HUvDSxfCWuEN9FKCEY3GABF+cPkOyQTVmQVFaHCs/mCa7jJ +wlkjGQ2OXlDyAanJksIfQnZRqHwX7TRe4guCwOYbX31ovaIhyLotdorzErTCuzF+N9y LoyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=b6x2pgLO; 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 63si1211225pga.680.2022.02.14.16.51.16; Mon, 14 Feb 2022 16:51:31 -0800 (PST) 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=fail header.i=@kemnade.info header.s=20180802 header.b=b6x2pgLO; 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 S231967AbiBNWpt (ORCPT + 99 others); Mon, 14 Feb 2022 17:45:49 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231680AbiBNWpo (ORCPT ); Mon, 14 Feb 2022 17:45:44 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88ACD166E17; Mon, 14 Feb 2022 14:45:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bR7fehLtd9M9qTlT7VF3MZCfD/oznbKy8d/rqBxhceI=; b=b6x2pgLOdjZzH5KLlIZgvJyoXv GKkZ3K/n17R148WZDlU1eruFAgIM7qcQ0yNXDJgq+kpCvYb0IUdkgTZfYmAJINSaDOyqX0mYh9Lmj INu+sZAUB3/X7OsoDFup9tB0VoLt3zT08ktodD/o+h4VgRv0JGAFH6LrxWCGAVyFb2TM=; Received: from p200300ccff09cb001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff09:cb00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1nJk5u-00041L-DZ; Mon, 14 Feb 2022 23:45:18 +0100 Date: Mon, 14 Feb 2022 23:45:17 +0100 From: Andreas Kemnade To: Rob Herring Cc: p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch, 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: <20220214234517.121e1167@aktux> In-Reply-To: References: <20220206080016.796556-1-andreas@kemnade.info> <20220206080016.796556-2-andreas@kemnade.info> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, 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 Hi Rob, On Fri, 11 Feb 2022 09:46:27 -0600 Rob Herring wrote: > 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 first version was in i.MX50 (I helped design the register > interface). Is that version compatible? > it has some differences, but that could be detected by EPDC_VERSION register. I do not own such a device, so I cannot fully check. I have not seen any driver with devicetree for IMX5. For now I am rejecting anything which has a EPDC version which I cannot check. > > The timing subnode is directly here to avoid having display parameters > > spread all over the plate. > > > > 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. > > > > 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 > > > > diff --git a/Documentation/devicetree/bindings/display/imx/fsl,mxc-epdc.yaml 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 > > +--- > > +$id: http://devicetree.org/schemas/display/imx/fsl,mxc-epdc.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Freescale i.MX6 EPDC > > + > > +maintainers: > > + - Andreas Kemnade > > + > > +description: | > > + The EPDC is a controller for handling electronic paper displays found in > > + i.MX6 SoCs. > > + > > +properties: > > + compatible: > > + enum: > > + - fsl,imx6sl-epdc > > + - fsl,imx6sll-epdc > > Not compatible with each other? > differences are detectable by EPDC_VERSION register, so probably so problem. NXP/Freescale kernel uses fsl,imx6dl-epdc and fsl,imx7d-epdc (used also by imx6 devices with EPDC_VERSION = 3.0) in their drivers. fsl,imx6dl-epdc fsl,imx6sl-epdc fsl,imx6sll-epdc fsl,imx7d-epdc in their dtsis. But the general rule is to use as less as possible compatible strings if differences can be probed properly, so only one should be sufficient? Which one? Regards, Andreas