Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp33158266rwd; Sat, 8 Jul 2023 06:18:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlGa1d5HjfRNkzZcxMknJ/AJfZqTdCh6x+KRAiRdBFgtaX7GPYlLVIu9L0DueEsWLxYn6WmM X-Received: by 2002:aa7:888f:0:b0:681:919f:bf69 with SMTP id z15-20020aa7888f000000b00681919fbf69mr10696296pfe.0.1688822281605; Sat, 08 Jul 2023 06:18:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688822281; cv=none; d=google.com; s=arc-20160816; b=Jo2kLgRSpYo5a6xqB7Lk0+lmeeAWKXiQ1DpUM/kHTF6ObFxApd7qNMu68erVZSHPhu TUb7UjPCfMUXvg2eooUHDZVZFe1mTF5jt9zIRO5NUOmlyZfSXlI0DCJqagx3qSkcJLKZ Ypov+/1Oz7fHpNBOGMeZCUCq1CWg+cKvCtAlPCuvEtjTCuLmiWY1wSFHlqrBWLqDUxrp e8rz6D/s05nbpkJ3Q4YvPB+zuKBhszOI6Hl+PPOzSE74hsApsDYUqXGaWqwUQA2rotfe KJ2UUyWpl+8aoso/cTwySYFGct98Qdtf/gVFQ0UTOv6X/C8/J7ar0lRsLzSHuK+8nxmP DerA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=j1VW+YqlIr6gMFRVJdYCG+mHS0tWNFRYQxRf8AA6Y/I=; fh=01kn10CVaPdL+2l7juBNrDFoZDI5YMy0QQJMnKpVlBk=; b=LvL45ofeONpEZVCA4WioOHjzXuRF32Z1kxaoz18kgE8w9lPiV/zekrbb1jSOJi6/m9 QtYLgWPL6ook41VTED5E1ea2h6aCAOk+v75ySkRQEV/qiOagQYrUxeFMWYnB8RYgVBqj ffavNDqapXY+xm5Yb72PwEcvCQ6PHGY9R9KUtRf5d0FutkvGWaXDU5iHbyE+xcb9XEE8 EM0Gor74+F6pMwc0+hC+dZ4bgScwcRCa/avczuk/lF1XGIO5yPd95mOa+dXQktDrgwMh hGx6SPYqFXe2vDtStYE3ZDwFsgLb++zY9bHuB2rUzmMeZ+G/D5J4lo6aJzoy3nzVtDlx V4jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=Oxql7ehP; 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=denx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a056a00158300b00678e14c629bsi6130501pfk.401.2023.07.08.06.17.49; Sat, 08 Jul 2023 06:18:01 -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=@denx.de header.s=phobos-20191101 header.b=Oxql7ehP; 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=denx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230438AbjGHMxO (ORCPT + 99 others); Sat, 8 Jul 2023 08:53:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbjGHMxM (ORCPT ); Sat, 8 Jul 2023 08:53:12 -0400 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 958001991; Sat, 8 Jul 2023 05:53:11 -0700 (PDT) Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 6DA778634E; Sat, 8 Jul 2023 14:53:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1688820790; bh=j1VW+YqlIr6gMFRVJdYCG+mHS0tWNFRYQxRf8AA6Y/I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Oxql7ehPge5nSg6NraVob/joMOb/2cAVw3vB0uEHQ1ScHrHed0M7PRSzq+sIPfV67 R8025mKCQmdpsjSbfN/8DJ1sg5XNLXuc6e2QEpGkJI/cgNF1sKjEg33HPPouYy3K4W Shkb6BshWHHlHeFTDmhosGRbOeOovJsMK4hIbKDNyUrDnUuuWs7EixbfKFON/IJ/RV +G/oZNo2IBw/ny1zgxBqKImVocbPPbj6kz7z6fP07zTADqgoysLPbIgCUi5FfCapLA MGI0hqCQ/Ldt2aLEksXjL1BMNBkQDERKA4ZD2hQi4qpSB8tU2DZDg/JFGb5o+2Q32V tM84W++UvBCDQ== Message-ID: <8b0ae1d1-c769-1f55-0452-4bbc62da133b@denx.de> Date: Sat, 8 Jul 2023 13:07:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v4 3/3] drm/panel-fannal-c3004: Add fannal c3004 DSI panel To: Paulo Pavacic Cc: Linus Walleij , Jagan Teki , Maya Matuszczyk , neil.armstrong@linaro.org, sam@ravnborg.org, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20230607151127.1542024-1-pavacic.p@gmail.com> <20230607151127.1542024-4-pavacic.p@gmail.com> <0d43e653-32cd-b25e-40fa-6f0571048467@denx.de> Content-Language: en-US From: Marek Vasut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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 On 7/7/23 17:26, Paulo Pavacic wrote: > Hello Marek, Hi, > čet, 6. srp 2023. u 17:26 Marek Vasut napisao je: >> >> On 7/6/23 17:18, Paulo Pavacic wrote: >>> Hello Linus, >>> >>> čet, 22. lip 2023. u 10:22 Linus Walleij napisao je: >>>> >>>> On Wed, Jun 21, 2023 at 5:09 PM Paulo Pavacic wrote: >>>> >>>>> A lot of modifications to st7701 are required. I believe it would >>>>> result in a driver that doesn't look or work the same. e.g compare >>>>> delays between initialization sequences of panel-fannal-c3004 and >>>>> panel-st7701. I think it would be optimal to create st7701s driver and >>>>> have special handling for st7701s panels. If there was a flag for >>>>> whether panel is st7701 or st7701s it would end up looking like a >>>>> mess. >>>> >>>> What matters is if the original authors of the old st7701 driver are >>>> around and reviewing and testing patches at all. What we need is >>>> active maintainers. (Added Jagan, Marek & Maya). >>>> >>>> I buy the reasoning that the st7701s is perhaps substantially different >>>> from st7701. >>>> >>>> If st7701s is very different then I suppose it needs a separate driver, >>>> then all we need to to name the driver properly, i.e. >>>> panel-sitronix-st7701s.c. >>> >>> I had in person talk with Paul Kocialkowski and I have concluded that >>> this is the best solution. >>> I believe I should rename it to st7701s due to the hardware changes. I >>> would like to create V5 patch with driver renamed to st7701s. >>> Please let me know if you agree / disagree. >> >> If I recall it right, the ST7701 and ST7701S are basically the same >> chip, aren't they ? > > I'm currently exploring all the differences. There aren't a lot of > differences, but there are some. > So far I can see that default register values are different, new > previously unused registers are now used and there has been some > reordering of how info is placed in registers [1] (data bits are in > different order). Moreover, instructions to some commands have been > changed and meaning of what data bits mean [2][3]. Also, new features > have been added [2]; there is now PCLKS 3 for example. > > You can see few differences in following images. Same images were > attached in this mail: > [1] https://ibb.co/NmgbZmy - GAMACTRL_st7701.png > [2] https://ibb.co/G79y235 - PCLKS2.png Ouch. I wonder if this is still something that can be abstracted out with some helper accessor functions like: if (model == ST7701) write something else write the other layout Or whether it makes sense to outright have a separate driver. The later would introduce duplication, but maybe that much duplication is OK.