Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2086870rwd; Wed, 17 May 2023 05:43:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Tzlfn19P+l0+rTOquF9IR/N5XdQXTr+/LeNWo7gUSvBbRTmAl1jfYOKyszCIArvKkCVRt X-Received: by 2002:a05:6a21:7891:b0:101:209e:bc57 with SMTP id bf17-20020a056a21789100b00101209ebc57mr38482064pzc.50.1684327396693; Wed, 17 May 2023 05:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684327396; cv=none; d=google.com; s=arc-20160816; b=qvYrQxOYEwnxs+fWLmxdysalYYYFNpbjEgSjegAr/IxBmq3+b+GTUQYCxk36OVvDe2 nYcdlUjopV067b2LWoPnEDi38/x/sl4dTmkXmu0AU+9d0WUJ329kdttmg0pmCSCSyl6Z IvQ4uafJ09Dv+OcUPJaDjlvOzSVBkJREv04v2xALResgIvVEBDRX832IQ3ngae//CJb4 QPC3x+2ndajF7nc6JzP7B1dVDwwj5O/SgnH0AQ05wpFk+uvlpB2/5vAK48o9O44f8/wj DzkemEnNq9diftvRryETogVpKi5GaNQxoPUyYfA4HkDoo/qq9ln9apw3jClZiie6ClJ7 5Mjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ltwPQUfHcnWmj6VOTv4xyYpzTycQbcqHQNvaDQAVaHQ=; b=ua/PMH6rCYqfib+WbrhH/pN71OpvHqFcqaD/MDLSoRfiixfb831UkRP5FscQuee8am fMc713MeNbaFQ2+gtbwb6Y/CWsjbddxhjkN/TrK7kNFPBWO2SJThlZY2+9yUWn9hKBdA wHHAxcvW1j+l0XXg+Fw5m2iqOt/sDF404fZ2hHwtKpns8nyTKFMXdAfnQbNmxEa/1/SO C0S012RhaG0vVoVkwwoQ2M84RLAfE4A3ZOLwMsC+xJYcNV+VQSjaTtnTnVx5oJu1AZKF wcGWrj7nO/Wz6q3ff3krMJkjPWnrVbarLT91OU4AjVIummn9ZWP4VlUXKOnvWiknv5Tc PCbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HOyV5PMO; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a15-20020aa795af000000b0064490c20e7csi22302350pfk.211.2023.05.17.05.43.02; Wed, 17 May 2023 05:43:16 -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=HOyV5PMO; 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 S231609AbjEQMUj (ORCPT + 99 others); Wed, 17 May 2023 08:20:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231608AbjEQMUh (ORCPT ); Wed, 17 May 2023 08:20:37 -0400 Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 340F73C0C for ; Wed, 17 May 2023 05:20:36 -0700 (PDT) Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-5619032c026so7197977b3.1 for ; Wed, 17 May 2023 05:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1684326035; x=1686918035; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ltwPQUfHcnWmj6VOTv4xyYpzTycQbcqHQNvaDQAVaHQ=; b=HOyV5PMO/aOWK4yVwus5waDzP8sR1jERuHT/y6aMu+Tyuh60QM32VyRT3faBB2N3wY ezNPlqOW6+rBN/BU3rqroIxqXuAw2ftIJdhQBQ1lVHr0vDA/muI8Cr6UEwGRvnknSf5x kNTCnXUyKFPdvPQYhXrPVVLJmWcQpaMp5QHW0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684326035; x=1686918035; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ltwPQUfHcnWmj6VOTv4xyYpzTycQbcqHQNvaDQAVaHQ=; b=LszfCG99Tz6yDrG6p/ci8Qw4aETu/73g6dE3R9q8k2NfMOss61+UuUMCCrtXtQdG5T pVPpb7y+zjLKVzCqHTx+jlEv261FVQopC9DqT5miysEhVRFtQ96EVBmVIS40lKMwMxAp RTZiOcf7uRNa/DdqM1G+hBI1tgfP4z/1dIER/RQ1w1NKzVnVPK08WCZ7allCwiS8glG4 DgmTj8Wwgo1Fay8jv85WmIsCQRGlHFpttZ9SImxCS6VUImk/UQ4G8a6QZ8w2TMFslAW0 MYuWxxEFBgtyaC64bhjJZmsvtiC/1ceqr1RHeU8snVp432IAIcJhPrxHcCdPgYEnGHwE smlw== X-Gm-Message-State: AC+VfDz8h1yLPkNjssOGkyFval8ZiJtC89/iceZ0lYzWEEC6HJjaktLT zLUwH3xp/EFGMbtMl91grTper4x6IaKUVr0Z9tBxIw== X-Received: by 2002:a81:6dd6:0:b0:561:dd1b:e516 with SMTP id i205-20020a816dd6000000b00561dd1be516mr594222ywc.35.1684326035233; Wed, 17 May 2023 05:20:35 -0700 (PDT) MIME-Version: 1.0 References: <023f6cf9-0f08-f27e-d203-5ff78faf110f@linaro.org> In-Reply-To: From: Jagan Teki Date: Wed, 17 May 2023 17:50:22 +0530 Message-ID: Subject: Re: [PATCH v2] dt-bindings: display: panel: add panel-mipi-dsi-bringup To: Paulo Pavacic Cc: Krzysztof Kozlowski , neil.armstrong@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, sam@ravnborg.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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,URIBL_BLOCKED autolearn=unavailable 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 Wed, May 17, 2023 at 12:39=E2=80=AFPM Paulo Pavacic wrote: > > Hello, thank you for your time to review this patch and sorry for not > addressing all of the concerns, it was done unintentionally. This is > my first contribution to the Linux kernel and it is quite a process. > I have run those two scripts and haven't received any errors I have > latest master cloned so I will check what I did wrong. > > The thing I would like to get approval on before I try anything else > is the name 'panel-mipi-dsi-bringup': > > > Still wrong filename. You did not respond to my previous comments, so I > don't really understand what's this. > > > > Judging by compatible, this should be fannal,c3004.yaml > > > > If not, explain please. > > > > Missing user of the bindings - driver or DTS. Please sent patches toget= her as patchset. > > > I wasn't sure how to name it and this name seemed fit. I'm not sure > how to be concise about this, but here is the full story as to why I > have done that: > > I got a task to enable panel for which working driver wasn't > available. I have started testing raydium driver and modifying parts > of it until I got it working. > Driver was modified quite a lot, new functions, macros and structures > were added which resulted in a new driver. > Therefore I have made a simple driver which I have submitted for a > review which will probably be rejected now due tomany reasons I have > noticed after sending it: > https://lore.kernel.org/lkml/CAO9szn03msW6pu37Zws5EaFGL10rjp9ugPdCuDvOPuQ= RU72gVQ@mail.gmail.com/T/ > > While talking with manufacturers of the panel I have figured out that > they aren't that familiar with the Linux kernel. > They had previously only enabled it on bare metal (PLA?) and provided > me with the initialization sequences. Initialization sequences are hex > values sent over MIPI DSI to initialize panel controller. > Initialization sequences sometimes also require delays after certain > commands and for different panels it can be very different. > I believe I have simplified it so that someone can follow comments > inside of the driver and try to enable mipi dsi panel by copy pasting > initialization code from bare metal system and doing minor > modifications. > Since I have targeted this at people who need to enable their panels > for the first time name seemed okay. I thought that since there is > panel-simple.yml that panel-mipi-dsi-bringup.yml would be acceptable > name. Just to add a few pieces of information for you to understand better on the context of dsi panels. DSI panels can be part of panel-simple.c or panel-.c DSI panels whose init and exit sequence is generic are suitable to add it in panel-simple and have bindings on panel-simple.yml. Some DSI panels have specific init and exit sequences in terms of power, reset and DCS then those have separate drivers to handle and whose driver name must be panel-.c or similar and bindings also follow a similar naming convention. Just decide which part of the category that your panel belongs and add separate patches for binding and driver. Thanks, Jagan.