Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp973724imm; Wed, 19 Sep 2018 09:50:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbIkb5gW29B6OzTvQkrnnHgwR6TXMsn+fvpX2rgfhZZRuQXGw7u7T3sQtxDPCWqo2PDpS6U X-Received: by 2002:a63:a919:: with SMTP id u25-v6mr30892093pge.211.1537375829488; Wed, 19 Sep 2018 09:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537375829; cv=none; d=google.com; s=arc-20160816; b=xr2Ai5jC6sirvQXdFxgiCxtiNmNNctPKgEf+rDx0Rz4G8igepfM4TrYXUlmT+8NaVR 5dwiR73mXS6fsuV3ffGtcPJPBz4+aXYlFqkeGUfGVyeD8mmdF0wQf7spwkaAxWj50Zo3 d7Ftoiyn1OoGiNP61KPuCVIAbEjHLyExiiu4yxFQ8bqnlWss7auppnbDSbh1Qj/kj6GG pirIjyxM/fs0TwskuzlKnol7BTHv1L3tAXbpYak8ZyJyxkOoxnWVQPfCAA81vC0JpqnI YdDbF71Iq7a1QWKmzIxZTvR9uQwR2uG6N7my1/HXnqeFyDBAqAKaxwFKobc7TD+Fj5Iz ghVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=KA9wabvUnMNVYSilgccEGAWZ9mzaG2AykQB+rkl3kCg=; b=TVNRz5f3byjVkIdQeri+rirDdu12BxqMf/FkCYjoaVYn8CWPW7pgbzEKevzftsQZZf 853UkMUI+9jSJvGvbooD9DIN/LOgVM5/TAl1ekmvxbYFssZHk/gxUlbjbnGcbLVq4J8A f+dS08p6x5PU4yV6FVfu5ttenDSkuqgIzQmWH0Zi7tMIcsD43o8MzzGMImLcdhxI9aMv LDPxw7x62lj3UCsy4XLvza3jQgE9xjUQqaPpRiT8D+G0tUk94OvR4v7achdx6L1mfnyL UGTGnzzGFHtKkbn4e/ikTnyvdZ9DNGft4TNcZj9b23DdL8E2dLf3xyinquaVol5aMk+P g7oQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4-v6si21463546plb.498.2018.09.19.09.50.13; Wed, 19 Sep 2018 09:50:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732393AbeISV7M convert rfc822-to-8bit (ORCPT + 99 others); Wed, 19 Sep 2018 17:59:12 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:39688 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731391AbeISV7L (ORCPT ); Wed, 19 Sep 2018 17:59:11 -0400 Received: by mail-ed1-f66.google.com with SMTP id h4-v6so5401049edi.6; Wed, 19 Sep 2018 09:20:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Ap6XA8YfQJ6jVr6uiT60QSCnYHR0iC1wmT5crB2hlDs=; b=qhkFaImUAF451ZGYfi1oJ30KaKSVqZgMeTmUEUmqEaxU717ccnf57wG/qBwAqcWPJi SwTjmM8Vc0PFmGntjHdyYpZVQE77+PoBzH5lvGVWWzqjhZqta+MbvG7iMz70ReIHcsyY gvEvG7XVDQGKeGRzNN4aB9qg9lp/fD60mRRLpXNkeRR/W5cDBjhWs9E/LtfgHUdWQusY YECi7570RvmYbECqNFnOeSPFiGDPnFIx1POBZ+cuqcGYRCwfEcw1G7KkB7AVSQG8Mghf Yrc5tdc+4nZS30N2txaDkobWjKo8zdql1oFIQuhq8OLLqdOIPr4STSco+WgPl6REPx2s 6ncg== X-Gm-Message-State: APzg51AYzBYZrAxn3EQ5gzSF4mEPqo/rFrh8pZzMOJtfu5l8+reGgxwl sNSjy9gZ9CIsNGHqRKF+0ErM808JtnY= X-Received: by 2002:a50:b544:: with SMTP id z4-v6mr37973266edd.219.1537374031510; Wed, 19 Sep 2018 09:20:31 -0700 (PDT) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com. [209.85.128.47]) by smtp.gmail.com with ESMTPSA id k33-v6sm1600692edb.31.2018.09.19.09.20.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Sep 2018 09:20:31 -0700 (PDT) Received: by mail-wm1-f47.google.com with SMTP id y2-v6so6939388wma.1; Wed, 19 Sep 2018 09:20:30 -0700 (PDT) X-Received: by 2002:a1c:e4c3:: with SMTP id b186-v6mr21670198wmh.116.1537374030577; Wed, 19 Sep 2018 09:20:30 -0700 (PDT) MIME-Version: 1.0 References: <20180907072234.48282-1-icenowy@aosc.io> <20180907072234.48282-6-icenowy@aosc.io> <20180910142354.5ldexkvnan6ohz4x@flea> <1926288.mXGsSvSKgU@jernej-laptop> <20180917145452.ewfuqkrxjjosbawd@flea> In-Reply-To: From: Chen-Yu Tsai Date: Thu, 20 Sep 2018 00:20:19 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-sunxi] Re: [PATCH 5/5] ARM: sun8i: dts: drop A64 HDMI PHY fallback compatible from R40 DT To: Icenowy Zheng Cc: Maxime Ripard , Jernej Skrabec , Rob Herring , dri-devel , devicetree , linux-arm-kernel , linux-kernel , linux-sunxi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 18, 2018 at 6:57 AM Icenowy Zheng wrote: > > 在 2018-09-17一的 16:54 +0200,Maxime Ripard写道: > > On Mon, Sep 10, 2018 at 04:32:30PM +0200, Jernej Škrabec wrote: > > > Dne ponedeljek, 10. september 2018 ob 16:23:54 CEST je Maxime > > > Ripard > > > napisal(a): > > > > On Fri, Sep 07, 2018 at 03:22:34PM +0800, Icenowy Zheng wrote: > > > > > The R40 HDMI PHY seems to be different to the A64 one, the A64 > > > > > one > > > > > has no input mux, but the R40 one has. > > > > > > > > > > Drop the A64 fallback compatible from the HDMI PHY node in R40 > > > > > DT. > > > > > > > > > > Signed-off-by: Icenowy Zheng > > > > > --- > > > > > > > > > > arch/arm/boot/dts/sun8i-r40.dtsi | 3 +-- > > > > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > > > > > > > diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi > > > > > b/arch/arm/boot/dts/sun8i-r40.dtsi index > > > > > ffd9f00f74a4..5f547c161baf > > > > > 100644 > > > > > --- a/arch/arm/boot/dts/sun8i-r40.dtsi > > > > > +++ b/arch/arm/boot/dts/sun8i-r40.dtsi > > > > > @@ -800,8 +800,7 @@ > > > > > > > > > > }; > > > > > > > > > > hdmi_phy: hdmi-phy@1ef0000 { > > > > > > > > > > - compatible = "allwinner,sun8i-r40-hdmi- > > > > > phy", > > > > > - "allwinner,sun50i-a64- > > > > > hdmi-phy"; > > > > > + compatible = "allwinner,sun8i-r40-hdmi- > > > > > phy"; > > > > > > > > If you could use the A64 phy before, you can still use it now. > > > > > > Not exactly. Given that we don't know how to switch between HDMI > > > PHY clock > > > parents on A64 (if it is actually connected at all, there is no > > > information > > > about that in manual and AW didn't answered our questions, despite > > > asking them > > > through different channels), A64 compatible will be associated with > > > quirk, > > > which will tell that only one clock parent is usable. > > > > > > However, R40 HDMI PHY has definetly two clock parents, as it was > > > tested by me > > > and Icenowy and we know how to switch between them without issues. > > > Technically, we could have A64 compatible there, but that would > > > mean only > > > single PHY parent is considered instead of two. > > > > The DT change above would mean that you can't operate the R40 phy in > > the same way than the A64's. From what you're telling me now, this > > isn't exactly what is going on: you can operate the R40 phy just like > > the A64: with a single PLL instead of two. You operate in a degraded > > and non-optimal mode, but it still works. I suppose it's a slightly different semantic. While we have no definite data regarding the A64, there are some possibilities: 1. The muxing mechanism isn't present on the A64, and the HDMI PHY only takes one clock. 2. The muxing is present, but only the first parent is connected. Switching to the second input causes it to stop working. 3. Same as above, but both parents are connected to video0-pll. This might be indistinguishable from 1., even if checking whether the bit modifications stick or not. In any case, I think this deserves proper experimentation, and subsequent documentation in the bindings of our "assumptions" (i.e. educated guess) about what the hardware is doing. > > The status of R40 HDMI PHY input mux is not determined when use A64 > driver, which makes it not working when the bootloader initializes it > to use the second PLL (the A64 driver will assume the parent is the > first PLL). That doesn't sound good. But it really depends on what we assume the A64 is doing. ChenYu > > > > And it's exactly what the DT is already saying. > > > > Maxime > > > > -- > You received this message because you are subscribed to the Google Groups "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.