Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2476672rwl; Thu, 30 Mar 2023 10:49:59 -0700 (PDT) X-Google-Smtp-Source: AKy350aNuWU0HotKI9V3MWRXYjQzl998TwFAKcXLSjU1iWUlxXJmjS0HyJGTt1jVhVyfqv/03wTM X-Received: by 2002:a05:6402:268e:b0:502:1f7b:f069 with SMTP id w14-20020a056402268e00b005021f7bf069mr3279294edd.2.1680198599479; Thu, 30 Mar 2023 10:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680198599; cv=none; d=google.com; s=arc-20160816; b=EKtdMc2Y4A4M9JAPaKUc636Od8a0jVcb/xpTStQvW9SGb6i3WlN5IQ+SR6LDCK3cKo +5ouDzocVsUw1HSim571S3vOd7x7mjf9OYKbTKnhnQv76EzzAATolc4KkZ08xRJ+1lTn sf9RFvKkQIUi7kf5/+CkpqfNr2gBZeWLCeD90qrV3ConbgPRWSxksJsZ8AD+1Jbo88Lf a2NFGclX4bsAQDP7ZfwJMVnt995gTx33X2w293YNPrl5c26NOIlpUEdgUEkco55NZ6Du mDEA2eY64kz/YRBt3Nq9i5aYmZALFyJMqP7UF1HB81o5mt/By6TAHQZ+9fm4p5iB/2ak l1JQ== 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=0XDB6bTe9xJuphUqwevJuf9q/6RlzAPG9D8j9n2M9eI=; b=WsJ/vkBTiazKlnob7bpk0JJ3Sex7jy5FxEcrUlbuUrcIn+lmZ09pIjdXd7Qm6O2lKM gSiABa3ooUvf8PYNl9mBFBNxkD0xrCme5NvUE0P3qx0ndBAcW/gIE1LUfNO/uPZlCq9N elbdLp1S7X6PBK9RRxhHYJAdg0lUYlZyRMZxZTtnFJe6TKZRG12gDpW5bVHVeal0ql97 wKPkNshk1JInJLcn0DfiTKG1zw5GnJ/8c9HvGqgZmNNkdBXsnGiSldWki6FgHbpinXoy nBjf5gklD7KP3ap2qif07PfS6+U/iiMeQX+aDWMvIkM61citP7Kv2VKecMnb7+//R1YV XfKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OjP+fHOJ; 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 i5-20020a056402054500b005022100f550si254687edx.686.2023.03.30.10.48.46; Thu, 30 Mar 2023 10:49:59 -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=OjP+fHOJ; 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 S232084AbjC3RiD (ORCPT + 99 others); Thu, 30 Mar 2023 13:38:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229831AbjC3RiB (ORCPT ); Thu, 30 Mar 2023 13:38:01 -0400 Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 656C7CDF9 for ; Thu, 30 Mar 2023 10:38:00 -0700 (PDT) Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-53d277c1834so367727757b3.10 for ; Thu, 30 Mar 2023 10:38:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1680197879; 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=0XDB6bTe9xJuphUqwevJuf9q/6RlzAPG9D8j9n2M9eI=; b=OjP+fHOJg/qk/BlFRiLShClpzDz5RIhfJx4oJR+J6AEhaszRz0Q5mEaxRpZkd5ocUU Pydm4D7geWRHXotQWusDrJeDK239l9eTmD3nH+hbdF/E+kATlZQpMPIukTeVxq0iU8Zt zs7csmBHA4HWxFkMZzcYDKsCymsF4Jr3u9Og0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680197879; 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=0XDB6bTe9xJuphUqwevJuf9q/6RlzAPG9D8j9n2M9eI=; b=kt3xQcJIjIgYPMd2gRYwgNjrlWNwSqy45SRVXCH6Om25Oq2QQh89EWEwcyc+DFNQyG GcCCHAsry9VIGphGgZMvPOGoRmaNGldM94uwoQqQkaSbT2huvejGMTxD9Xi3xY6dVPIu jBl+3Zez3X9Bw5nLpQk4erW+Oa6y3Agrvkq/4VPb36xOiaV8g5bHgdHM3GCtDUz2CI5c WO5wCJ8tGaJGSgtLDStLZcTJpYwfbW8MYuTAFitX+LIjb7D4jlkfrwkxT/qBxoEbyUps 3q4DF+Gr78vVK9Lz2oR5Jn1ZThtfuj3ZGUSBNChMJWWHWKARCBxOtEnMkeneYYfA/gyi 3s1w== X-Gm-Message-State: AAQBX9e65wLvaG6vZIO3+63gaqVa/ohZ9llI3qPJOpcoMjcIobvDY4qV Y8RYsKeD925a7OL4mUtEwvnNuZYHTptW9KnJJeTntw== X-Received: by 2002:a81:ad04:0:b0:52e:e095:d840 with SMTP id l4-20020a81ad04000000b0052ee095d840mr800164ywh.0.1680197879519; Thu, 30 Mar 2023 10:37:59 -0700 (PDT) MIME-Version: 1.0 References: <20230330101752.429804-1-francesco@dolcini.it> <20230330101752.429804-2-francesco@dolcini.it> In-Reply-To: From: Jagan Teki Date: Thu, 30 Mar 2023 23:07:47 +0530 Message-ID: Subject: Re: [PATCH v1 1/2] dt-bindings: display: bridge: sn65dsi83: Add DSI video mode To: Francesco Dolcini Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, Rob Herring , Krzysztof Kozlowski , Marek Vasut , devicetree@vger.kernel.org, Francesco Dolcini , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Thu, Mar 30, 2023 at 8:32=E2=80=AFPM Francesco Dolcini wrote: > > On Thu, Mar 30, 2023 at 07:56:26PM +0530, Jagan Teki wrote: > > On Thu, Mar 30, 2023 at 3:48=E2=80=AFPM Francesco Dolcini wrote: > > > > > > From: Francesco Dolcini > > > > > > SN65DSI8[34] device supports burst video mode and non-burst video mod= e > > > with sync events or with sync pulses packet transmission as described= in > > > the DSI specification. > > > > > > Add property to select the expected mode, this allows for example to > > > select a mode that is compatible with the DSI host interface. > > > > > > Signed-off-by: Francesco Dolcini > > > --- > > > .../devicetree/bindings/display/bridge/ti,sn65dsi83.yaml | 8 ++++++= ++ > > > 1 file changed, 8 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/display/bridge/ti,sn65= dsi83.yaml b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.= yaml > > > index 48a97bb3e2e0..ebee16726b02 100644 > > > --- a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.y= aml > > > +++ b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.y= aml > > > @@ -35,6 +35,14 @@ properties: > > > vcc-supply: > > > description: A 1.8V power supply (see regulator/regulator.yaml). > > > > > > + dsi-video-mode: > > > + description: | > > > + 0 - burst-mode > > > + 1 - non-burst with sync event > > > + 2 - non-burst with sync pulse > > > + $ref: /schemas/types.yaml#/definitions/uint32 > > > + enum: [0, 1, 2] > > > > I'm thinking this can go to dsi common code since the video modes are > > common across all controllers and make the core initialize the default > > and update if any sink devices are willing to change the modes. Sound > > like a big move but worth useful. > > Not sure I understood where do you want to move this. Yes, it can be new may be Documentation/devicetree/bindings/display/dsi-device.yaml > > In any case this is something about the display side of the DSI video > connection, with the bridge as a special case, not about the controller. > To my understanding the controller is supposed to support all the modes. Yes, that is what I'm saying. DSI sink will send this mode via mode_flags and the controller act accordingly. The point here is these modes are generic across all DSI sink devices so having common bindings can make it easy for all devices to use. As I said it can be new, but worth trying - anyway let's see how others are commenting on this. Thanks, Jagan.