Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp615751ioo; Sat, 21 May 2022 08:39:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCcp/NHPp2udhw5OwU1ihfhy7ULrpQn0d6mxP9IS1fb3ZvYmeqBG+Vf2MuGHd6vPd5uCBR X-Received: by 2002:a17:902:704a:b0:161:996e:bf4 with SMTP id h10-20020a170902704a00b00161996e0bf4mr14670253plt.118.1653147594049; Sat, 21 May 2022 08:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653147594; cv=none; d=google.com; s=arc-20160816; b=iF+k/HR7fGuDEYRd57f6nG6/IPYqjG4u4BreRF75KZgT0FsM9XqL4YVAjqD/ZgN0ZF GptoIM6HfNdh2t+UQpPKJAh1TMovDxzAn6TW3IsajpwV/iJLMdCUKKORHKk8WP1b0IKR HQJME05a/2wkJL0cjCIit2Nv/IlOPmYV4FHF37OrOxLs/nKB+8+cbI24AWeCVMw+AkKR 7uG0H6aqBl8ZIr4J33OOaVPfM4GM56Psyj58tyP8EPShXbVeeygfLKcVgTJCgCYWm+95 x+bDyEBUCcZfrIJLJNN2+PDpVIHMkDh8WhwQi8HIb2dMnzn1J4ClR77kVEnkTvO0En39 EHWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=474y7UfCRTsp7NYIaB401zDajP8fumzJCkbTMejJvAo=; b=UT58m9Su/s+yRAIM/RUWg8Gz8PgvONdvTmKtKSC9CtHX1Amsy6Swa1ZV8PD/dWRyLw wHZGmeLu+tji1i0R7SyrpMN2fIBFvyUYThEUteQ+KGHEksVLKQItquqNP1kSHNOTUWME FK+RngfE+6KBuOMDdcW/tV2ubCFNAfnCn2gZH1VDNWDL1n8JKZkUEBqF/DhRWVKT8zk3 wsuqefVPGJZrkhEYryQ2MwuVNDjh8msshIQ2yflYtdslL3JQefdv/1SIApPyQfbKKYU2 GHmX9Db90Xx4q9R+4vUJouL3g0cl7pGefsQZVO5V7fhhcNB7lDyPwOS5AtAbh9dyz2fu mn7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=egau6YuJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e5-20020a170902784500b00161e5dcc680si2829280pln.358.2022.05.21.08.39.42; Sat, 21 May 2022 08:39:54 -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=@gmail.com header.s=20210112 header.b=egau6YuJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244866AbiEUP3C (ORCPT + 99 others); Sat, 21 May 2022 11:29:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239767AbiEUP3A (ORCPT ); Sat, 21 May 2022 11:29:00 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43E276161B; Sat, 21 May 2022 08:28:56 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id u27so14212103wru.8; Sat, 21 May 2022 08:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=474y7UfCRTsp7NYIaB401zDajP8fumzJCkbTMejJvAo=; b=egau6YuJmG0rUfjr1WGwMPgtoGz0oaIp6jir0ySrR8KpYY3iin1mA0DLxw5CgXjfmc 8Pg42jto7J+ozkNb9HbVEhYlqvqH4BtHlUo4rXCr+jAjl1tjQ2ZqgttnN4Izo2t40GST A1hfPqiAqa7o6bjunCs93ODy20hN4Cpze5TQGbYi+VaJFFKtO2caZKXJY+7oKTtEp5zC 9xd+l7B+cLL4tJ/iq+Ao7KoFSdJ1b4E817c8IHf+et8KUEHpCwKk6SUslDlOyIuIeMAE ThymgL9Xn/M92z4lnjAsadLaBnXW4LW3XJpVntRz3gKqG8xXDKzwTh3ilh6Vhfblp+Gm wC1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=474y7UfCRTsp7NYIaB401zDajP8fumzJCkbTMejJvAo=; b=tjMTTx/9+X6+0ZbUOE+5Fz262sUgNeIa85bQfwJ059GsK7RI5ZQyYoajz6SYjhD5We wQUsTDbS6N5/7V6Lut1BHDOCjyCi+1/mmn6L7SosYbsY3qbxCv172pfsaJW1muLSeaqs KhUR8sIXYgq8LEc2/vHXvDtwm57jfCuNs+seuY8bZua6j1Frv9zhbGLCh16d5SK6KfmJ koalLhJXA6zAzYb8/npAr00ePNYcwo/vOMc3Ee5UDSsCaBcbw40omH7RcAxdsu60KT90 7E/BnPCqmuhMIqkQvr8HJzDG5hAAAwJHXcvAno/Rd6iTv7u7ylDxSBunU4Ezy+SEwrCL Cpeg== X-Gm-Message-State: AOAM532SNQM/Gl796iP6hIEOml+l4OddbikWD8bgeuETm8eW7uxhac8L 2Ua93D7giLQW01LMKoCjQ4asBDkTX3PhYBBRoprO0pGF X-Received: by 2002:a5d:598c:0:b0:20c:6912:6870 with SMTP id n12-20020a5d598c000000b0020c69126870mr12311621wri.465.1653146934778; Sat, 21 May 2022 08:28:54 -0700 (PDT) MIME-Version: 1.0 References: <20220417181538.57fa1303@blackhole> <20220428175759.13f75c21@blackhole.lan> <20220519153952.7c6c412b@blackhole> In-Reply-To: <20220519153952.7c6c412b@blackhole> From: Vasily Khoruzhick Date: Sat, 21 May 2022 08:28:27 -0700 Message-ID: Subject: Re: [PATCH] drm/bridge: fix anx6345 power up sequence To: Torsten Duwe Cc: Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Thierry Reding , Lyude Paul , dri-devel , linux-kernel , Harald Geyer , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 On Thu, May 19, 2022 at 6:40 AM Torsten Duwe wrote: > > On Wed, 18 May 2022 09:53:58 -0700 > Vasily Khoruzhick wrote: > > > On Thu, Apr 28, 2022 at 8:58 AM Torsten Duwe wrote: > > > > power on the eDP bridge? Could there be any leftovers from that > > > mechanism? I use a hacked-up U-Boot with a procedure similar to the > > > kernel driver as fixed by this change. > > I was asking because I recall an ugly hack in some ATF code to power up > the chip correctly. Did you patch ATF, and maybe call functions of it > at runtime? Initially it's powered on by ATF on system power up. ATF parses DTB and finds the regulators that it needs to enable and enables them. It's done in ATF because u-boot SPL didn't have enough space to fit in the AXP803 driver. It's only done at startup and once linux takes over, ATF doesn't touch these regulators. > > > > > > But the main question is: does this patch in any way worsen the > > > situation on the pinebook? > > > > I don't think it worsens anything, but according to the datasheet the > > change makes no sense. Could you try increasing T2 instead of changing > > the power sequence? > > According to the datasheet, there is also T3, I realise now. The > diagram talks about "System Clock", but both Teres and Pinebook have a > passive resonator circuit there. Correct me if I'm wrong, but without > chip power, there is little to resonate. What if that driving clock > circuit is powered by Vdd25? Maybe the earlier provision of 2V5 is > enough for Teres' Q4, but Pinebook X4 takes even longer? The start-up > times can be in the range of milliseconds. That's plausible, but can you please try just increasing the delays without changing the power sequence? > Torsten