Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4191943rdh; Tue, 28 Nov 2023 14:44:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHSi7elb7OnpAky2SPE05jx4V/u5xTXAhei2zaZDcQjFZNrxXmbLlVQzQkPWXfKIGLeoEr3 X-Received: by 2002:a17:902:d4d1:b0:1cf:aeca:8a28 with SMTP id o17-20020a170902d4d100b001cfaeca8a28mr15073520plg.60.1701211487604; Tue, 28 Nov 2023 14:44:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701211487; cv=none; d=google.com; s=arc-20160816; b=ZckBT+gxNcO03v2f20L+aQQSE4fvBQwtjOlbVtLHuv2aBCblKGBnIU8Aga5nFZVEyu jIvFR4XV+TIDE5OP16r4CXrBZ6VRAzs/FXz1GPfMI5tMBqsLL1k72QAqQqzx0O/zhhig 4HJDtB0cVisdwadO6wcv+A6MHLCYxGITfkVJgUMgiYzERhQGHESOKmfn3N/DgFzlh09z SisVYmbQk4YpvyRaR3Z0MX//hnudH+G6Ij/qOPYQZw4uh/v0TdbpjiQRkAQNA5bU44Q1 66kOEH2vnexfCMCFG3Z+4VhR6h//0Og876eMH5uh1F6auANwLCF3+Njx6wFim2NiDHGK 5U3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:mime-version:dkim-signature; bh=mMdaszjmHghx02rDq1Oy91uT9YTXeu24D5SoecBFShI=; fh=iOR6TM+QQOR9HqvTl5X0tX85ca/pn9v6HjDIcBCL/Sw=; b=qnAU1izunIlr3mUEUGHP3QHuympXSpq49UVLYB6eERcD08VtiYGwowcPeVutNKHELQ GRPn+YDWvayv5h+9hqvZmiT/6Z55MSL171SywAzrwEADxX/dm8w0QaKGqM5UWJ0DqY6C C1LNZSdovU4Ctja0a0f46ntics9mCop/KqGtW4LzY0ukos0VvfC49uB3WZ/edF9d/UIx jnlKgGkM0CV75aDx8oTUoLH2PfVRfaaq4TM6SqZxJGANPp/4hNIqzqiqpq1mrLK6mkSn 5dfvfcKwk9QTzhcrpniX988BAebM9ce93ItIW3KjcRFd7tChaTj92a7hbVFXEc7v7rC6 1yhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=Bz6rbpsR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id z12-20020a170902d54c00b001c9af07788csi13177333plf.76.2023.11.28.14.44.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 14:44:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=Bz6rbpsR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 56A7881C57C2; Tue, 28 Nov 2023 14:44:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344914AbjK1Woa (ORCPT + 99 others); Tue, 28 Nov 2023 17:44:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230122AbjK1Wo3 (ORCPT ); Tue, 28 Nov 2023 17:44:29 -0500 Received: from mail.3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B06E11998; Tue, 28 Nov 2023 14:44:35 -0800 (PST) Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id BD9BF323; Tue, 28 Nov 2023 23:44:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1701211473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mMdaszjmHghx02rDq1Oy91uT9YTXeu24D5SoecBFShI=; b=Bz6rbpsRlDLXQu7iPJGh4cDpMtvt9UH/JNiuHy0U5yvZwAec30mWSQjEnLdr+GG9ILGZHM Y+6/gZPCexw9YqoS+PALoNMdmVZNDDh8ytuMPxB9Zbf8e+JAQ0joYWk4JsbCSAsPFoCNvF 4DY10E9QotmRPLrodIIigVD9YPSxHSfdhVVxYP/Yyqfk/4zNGh0jwPdW9jyucCephWpZ43 6Wz3hG86neR4QQqKDc6J2gebUy7Ym9n69678zrQAdsL38S4QWCNFte+XE5ZmTVmodR6/FZ pKZm2XUmNApgbnyFJRioes5y9Dgl/8Oo2RvUr1YO8gQSLrgOT/3/6qNdbhHBGg== MIME-Version: 1.0 Date: Tue, 28 Nov 2023 23:44:33 +0100 From: Michael Walle To: Dmitry Baryshkov Cc: Michael Walle , Laurent.pinchart@ideasonboard.com, andrzej.hajda@intel.com, dave.stevenson@raspberrypi.com, dianders@chromium.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, jernej.skrabec@gmail.com, jonas@kwiboo.se, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, marex@denx.de, marijn.suijten@somainline.org, mripard@kernel.org, neil.armstrong@linaro.org, quic_abhinavk@quicinc.com, quic_jesszhan@quicinc.com, rfoss@kernel.org, sean@poorly.run, tzimmermann@suse.de, tony@atomide.com, alexander.stein@ew.tq-group.com Subject: Re: [RFC PATCH 03/10] drm/mipi-dsi: add API for manual control over the DSI link power state In-Reply-To: References: <20231127160658.2164612-1-mwalle@kernel.org> <14D9F495-425D-47FA-AD0D-F7299285936F@walle.cc> <5eeade839ad3f71e8976965ce6cf3ed2@walle.cc> Message-ID: <634164b4a8085770bd06134c1d328d8b@walle.cc> X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 28 Nov 2023 14:44:44 -0800 (PST) >> I'm facing similar issues with the tc358775 bridge. This bridge needs >> to release its reset while both clock and data lanes are in LP-11 >> mode. >> But then it needs to be configured (via I2C) while the clock lane is >> in enabled (HS mode), but the data lanes are still in LP-11 mode. > > This is quite an interesting requirement. For example, I'm not 100% > sure whether we can get that done on our (msm) hosts. I need to double > check that. > What frequency is expected on the CLK lane? Can it be an arbitrary > frequency or it should be the same freq as the one used later for the > video transfer? I presume it has to be the same frequency as the video stream later. That's a least what I have successfully tested. The datasheet doesn't mention if a frequency switch is allowed on the clock lane (which would need a brief switch to LP mode, I presume). I'd say it's not allowed/supported as the bridge is very picky regarding the init sequence in general. I'm using the Mediatek DSI host, where that sequence is possible. I.e. you just enable the clock and data lanes in continuous clock mode, but don't enable the video stream, which should leave the data lanes in LP-11 mode. Sometimes you also have a command mode (instead of a video mode). And if you don't send any commands, the data lanes are in LP-11 mode, too. -michael >> Therefore, for the correct init sequence is: >> (1) dsi host enables lanes, that is clock and data are in lp-11 >> (2) dsi bridge driver releases reset of the bridge >> (3) dsi host enables clock lane, leaves data lanes in lp-11 >> (4) dsi bridge driver configures the bridge >> (5) dsi host enables the video stream >> (6) dsi bridge enables the output port of the bridge