Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3863807pxb; Tue, 19 Apr 2022 11:19:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzagKX32JVpkfSLG2E5sumHAUEf/lwACKUmpTj8lvGoLDYPwuIsnceK09NFivKAiW/4UmQ3 X-Received: by 2002:a17:907:3da8:b0:6ef:f3e8:2989 with SMTP id he40-20020a1709073da800b006eff3e82989mr931861ejc.29.1650392370791; Tue, 19 Apr 2022 11:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650392370; cv=none; d=google.com; s=arc-20160816; b=FfIzeBJzCGKap7JTDpJcq3fNGLbly7JNT3ZqdkstwM/25il4xRVbajVv8WZ12VW2yo 1md9sDoT7dykWLgsvviPkGHDdOGGXRhxWyx+V7MIYuHnuDAW5HkW4A/ltw26vkj+6BhH VKpyYrkst5WH+t+runOylS2rxA6D4Q2flxXJZ/bSgl5f3U4aA9JltK0Yh913A97QF+KL 2I58ahXot2JzgS1IFLLfMxizzu02JVP0p+BHPL15YCvVn2BRTTiuCSrPkrqppnUgj9hF vDuRxYgI97DCtdktNooQjlurVmJua/uxpOm3EhwXmI5N0b11wZhSq0+bO/XBjZayXzM/ tUdA== 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=r/8IhUYumPgGlWcaLrv8LYlYLLFMia8Jo1Q6MnYM6Pc=; b=Uz+xY7AJgGYBecuLnLJY8Gvf8mBxB3DthMUSajxnZZOPuB0QexGEbpgkunXTj8/LN0 uHnNlEGfHVYCiaKuUHF4VIB2L2vpSahpMMQOAus7vpUVY2TolxEoOzZgxtKJb067fTlm k99u5tyNa819Nq5humOZ+KMZH1vUBjj4efa4cxDANnq1u8InBLgCYigkKj/3yS2G8LT3 i+EDycg9CFGQl4xjUzN7Q2UVlqINC6WxmlKSaEYvGhJy4KYRNXT3wIgJ4dwcw+TW5/yw wOyAGkxiQGdAqcQtCW3xCBICu/qgWNiF7ltmExPUMRIiNcMgqJOT36/Hh9xBsOKArgsJ WS7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oOe1aYS1; 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 cm21-20020a0564020c9500b0041d7ad84669si8550467edb.245.2022.04.19.11.19.07; Tue, 19 Apr 2022 11:19:30 -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=oOe1aYS1; 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 S240638AbiDSA3g (ORCPT + 99 others); Mon, 18 Apr 2022 20:29:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240738AbiDSA31 (ORCPT ); Mon, 18 Apr 2022 20:29:27 -0400 Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CCF122B33; Mon, 18 Apr 2022 17:26:24 -0700 (PDT) Received: by mail-qv1-xf2b.google.com with SMTP id y19so12054900qvk.5; Mon, 18 Apr 2022 17:26:24 -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=r/8IhUYumPgGlWcaLrv8LYlYLLFMia8Jo1Q6MnYM6Pc=; b=oOe1aYS1bBzFC/F96YEOjVTh7L+YEnCIa+QNbLoE6bvFoub44qnRlFaXxscXqSK9EJ 2rLbF0IeAWRUhSoGMh6gST1B3jNHNmxbVdIzszhVozRT/NL2l+1wU/iW60VjqyaYsEoO OoKewCg6FOgDKhAZBj2ZaBelbT9iDBVBCD1qdDfJnw5qIfEHq9eBQBT4pj8037EmPj6f mx82V2EaaHs9E4uDz1cAZsA6uljOv5C30vnOrOCeKM+RN6kBz7AreF1ae5oo0DvCZ+cW i/gXCOOZyjLCZmitGgNIXFAZF/iT9HpqShURI7lv3MwZ/DcjokaXlV41GGjR/+/ofwZX gIaA== 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=r/8IhUYumPgGlWcaLrv8LYlYLLFMia8Jo1Q6MnYM6Pc=; b=ps0tRqyOpZ21zCzudmu9Eqc1WDlFsbanF3j+pFqBxu/52+jZaDCBBXbx8DAevfiB0W mnrMb5DarefUcVguNdgosBQ94OU4WRwB71vx7Kqbv8w92SlLKMdAMoWE9rHx0aNycd7b LYQbEoS9hhUGEd9BR3lnhOqPjl5xKP7L0nMlYSckzSSpPiOlZvv9MBUxZbf6phDqsNHP xZ+7NM8Gg9eUhLU4mELGoXERnUxQ6S8fIvw9R4hMvXKkmnq64lZ81o81h+npmwAF3Nq0 CnMQZgUD0SkqKtprhzAPDswsX4nNw7v3pbCOzUpU1H1hvxKb7DyHGhEc/7IaXwQpLEWa Ao4Q== X-Gm-Message-State: AOAM531M0GW6KJrDyK2B6/BnF4FcdmoHXtkCU0Q5t/Y41zpl0FIv17ou 8WgMYM+VS2sVlYW5xd1oJYe1oGUPBE66+0tSn3c= X-Received: by 2002:a05:6214:acf:b0:446:7570:bdd1 with SMTP id g15-20020a0562140acf00b004467570bdd1mr390259qvi.103.1650327983517; Mon, 18 Apr 2022 17:26:23 -0700 (PDT) MIME-Version: 1.0 References: <20220417181538.57fa1303@blackhole> In-Reply-To: From: Vasily Khoruzhick Date: Mon, 18 Apr 2022 17:25:57 -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 Sun, Apr 17, 2022 at 11:52 AM Vasily Khoruzhick wrote: > > On Sun, Apr 17, 2022 at 9:15 AM Torsten Duwe wrote: > > > > Align the power-up sequence with the known-good procedure documented in [1]: > > un-swap dvdd12 and dvdd25, and allow a little extra time for them to settle > > before de-asserting reset. > > Hi Torsten, > > Interesting find! I tried to fix the issue several times by playing > with the delays to no avail. > > What's interesting, ANX6345 datasheet allows DVDD12 to come up either > earlier or later than DVDD25 with the delay of T1 (2ms typical) > between them, and actually bringing up DVDD12 first works fine in > u-boot. > > The datasheet also requires reset to be deasserted no earlier than T2 > (2-5ms) after all the rails are stable. > > Another thing it mentions is that the system clock must be stable for > T3 (1-3ms) before reset is deasserted, T3 is already a part of T2, > however it cannot be gated on Pinebook, see [1], page 15 > > The change looks good to me, but I'll need some time to actually test > it. If you don't hear from me for longer than a week please ping me. Your change doesn't fix the issue for me. Running "xrandr --output eDP-1 --off; xrandr --output eDP-1 --auto" in a loop triggers the issue pretty quickly even with the patch.