Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp698872rwe; Thu, 25 Aug 2022 07:46:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR7vwwpzuGSwBLMFHFelAzM5Z/AIk5hfzE6cqQH/aaBXbSlDhHXM43JkhO+w/8vGkc89jlI0 X-Received: by 2002:a17:906:fe46:b0:730:ca2b:cb7b with SMTP id wz6-20020a170906fe4600b00730ca2bcb7bmr2816665ejb.703.1661438785518; Thu, 25 Aug 2022 07:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661438785; cv=none; d=google.com; s=arc-20160816; b=Tlr2Mm6cESV5DXU04QPqlEjiJXWfgdi8HePv/asqOprKxmPpIT1D9dQ7LkhZArR+mR NyMb59uvMRisthj8Wlfi1caT/j9uSgzvneFLKsFzxN1pAfu1JdArjM/ofXcG5w9xgkDj HV1HxL3fGIjX2X28ecWT5tQSXjECFrQomd+md0DRcuOuxFYko30oMpps6Vo8luxS+jyS 2UcBELhXj1SpSk1Pu/l67W9QNgv4Zut/MCCGtD5iucsK/mqmusp35H0EMj13sovkefkm KMFkubE4oe8gJdQrJpXIhWwMzC4K0dKaGR8rMiU7DrR2oHqch68z9gakMuj0nhMsPZOA T/3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:feedback-id:dkim-signature:dkim-signature; bh=uQZAkfIx3BtXGm6NsJ9y2axRk4c1HylK1+1Iy6cM5qM=; b=bYpQIR5oModObrjsNQ2kJKn9xBXD8YYm/OtFgwPy4GgEE8DMI7h8w49FxYIfubMiBv nqJfmwCRhAvm3qd0b+lFdjmmYM8bbSAZ+JMqhkGi4ZShoelI/3SQZTIv/Q1nIJdqtefo LRBlD1nyCp0A93i9yulXC42K6nTEjchjmedBzADUvTxGDuW2YbIK6idZBF+VAAYk+xhb nglYs5SZqwH+nLl+JobUGjFZqDonwMYz9bCle8m3OCgKMGATm8kUU5regFyqVWXAuswy VnfgXMDPr2Ctkkr3cypa3CcEF/Gv9hNt3/Su6wEjXP8xk9zjKCMPyBuB6FFnYZNp1lT5 YrAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=cbRaru4G; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=dzCzKqjh; 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=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg6-20020a170907a40600b00730a530954dsi4000144ejc.901.2022.08.25.07.45.58; Thu, 25 Aug 2022 07:46:25 -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=@sholland.org header.s=fm2 header.b=cbRaru4G; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=dzCzKqjh; 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=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240039AbiHYOi2 (ORCPT + 99 others); Thu, 25 Aug 2022 10:38:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242372AbiHYOhs (ORCPT ); Thu, 25 Aug 2022 10:37:48 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B593B69D6; Thu, 25 Aug 2022 07:37:40 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 7C17F5C00A6; Thu, 25 Aug 2022 10:37:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 25 Aug 2022 10:37:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1661438259; x= 1661524659; bh=uQZAkfIx3BtXGm6NsJ9y2axRk4c1HylK1+1Iy6cM5qM=; b=c bRaru4GC2gO7/NsJgLNSC7kPw5lEOXfQhCBenCG+ykPTz9ye7y+CqCzJeq8AEqE0 GYLg0SLqCPcq17RFjk5QaFP0VPCTsADN7gpBatGAmwILkg4QDrZbnHTKc25eDmMY jsUnjB1v2uKCWO3ppIr30qA0OKt7rqs0bCPSJ6QJQ2ujYz4o8Sun54+WoFh8xEsi EBiQGvVjObDvfYaRGOWOnALcoOqMCkz1BIZ8z6sxITr46WG/nBNyw1DI166mCG3a ucYdoLpAsHrAEhrLD8o7f7O6j+q10F1VjAffT7hrkG8lGgDsubFhOa8PlTL4jgG5 N3JuEtdTy3g4lZj4i1tGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1661438259; x= 1661524659; bh=uQZAkfIx3BtXGm6NsJ9y2axRk4c1HylK1+1Iy6cM5qM=; b=d zCzKqjhUGuHGxMq8DZxIHFgJIN0+PZFEen85/okLW7fnVb9RtTB/XzO/S8XTSVH5 SDaV4pK3xNTdFVObfPjh/OMsOg+7za5EaZNcnc2GFgktGGR/R8xSc+5miOkLp7c+ 7MjQn/M4WkhWUCWJdFM2SM2HyGikqt7vGiQaGKKh9800dlQeuZ7ej2rzFKITfVQS VVM4ek89oEIDz6wlFhiR9Zd7QDH9abVd/Xnf6KKwnZWzYjIuwdjX4LXta+KWrosS cujV9P1xiV8P+MVXcCo3n1+wCqt/ZaPv46gV4iBAH5s4duWayYiduDY2+ZYxxiCn QrBY1Zcz9Hi6ZV7kx3nuw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdejfedgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvvehfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeitedvhfejhfdvjefggeeutdegteejfffgvedtjedukefgueek tddtvdegfedtgfenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhl rghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 25 Aug 2022 10:37:38 -0400 (EDT) Subject: Re: [PATCH 4/8] dt-bindings: sun6i-a31-mipi-dphy: Add the A100 DPHY variant To: Paul Kocialkowski Cc: Kishon Vijay Abraham I , Vinod Koul , Chen-Yu Tsai , Jernej Skrabec , Maxime Ripard , Jagan Teki , Krzysztof Kozlowski , Maxime Ripard , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-sunxi@lists.linux.dev References: <20220812075603.59375-1-samuel@sholland.org> <20220812075603.59375-5-samuel@sholland.org> From: Samuel Holland Message-ID: <95464d37-6da5-1f63-8f21-93ede5666312@sholland.org> Date: Thu, 25 Aug 2022 09:37:37 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 8/25/22 5:41 AM, Paul Kocialkowski wrote: > Hi Samuel, > > On Fri 12 Aug 22, 02:55, Samuel Holland wrote: >> A100 features an updated DPHY, which moves PLL control inside the DPHY >> register space. (Previously PLL-MIPI was controlled from the CCU. This >> does not affect the "clocks" property because the link between PLL-MIPI >> and the DPHY was never represented in the devicetree.) It also requires >> a modified analog power-on sequence. Finally, the new DPHY adds support >> for operating as an LVDS PHY. D1 uses this same variant. > > Do you have some pointers about that? I'd be surprised that this PHY is now > used for "traditional" LVDS display output, which is usually done with a simpler > LVDS phy attached to the display controller. Yes, this is documented in the A133 User Manual. As for the BSP code, see: https://github.com/Tina-Linux/tina-d1x-linux-5.4/blob/master/drivers/video/fbdev/sunxi/disp2/disp/de/lowlevel_v2x/de_dsi.c#L773 https://github.com/Tina-Linux/tina-d1x-linux-5.4/blob/master/drivers/video/fbdev/sunxi/disp2/disp/de/lowlevel_v2x/de_lcd_sun50iw10.c#L390 https://github.com/Tina-Linux/tina-d1x-linux-5.4/blob/master/drivers/video/fbdev/sunxi/disp2/disp/de/disp_lcd.c#L786 Regards, Samuel > However I've seen that some new Allwinner SoCs come with sub-LVDS camera input, > which typically requires a more complex PHY due to the high number of lanes. > > Anyway for now this is: > Reviewed-by: Paul Kocialkowski > > Cheers, > > Paul > >> Signed-off-by: Samuel Holland >> --- >> >> .../bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml >> index cf49bd99b3e2..b88c4b52af7d 100644 >> --- a/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml >> +++ b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml >> @@ -17,9 +17,13 @@ properties: >> compatible: >> oneOf: >> - const: allwinner,sun6i-a31-mipi-dphy >> + - const: allwinner,sun50i-a100-mipi-dphy >> - items: >> - const: allwinner,sun50i-a64-mipi-dphy >> - const: allwinner,sun6i-a31-mipi-dphy >> + - items: >> + - const: allwinner,sun20i-d1-mipi-dphy >> + - const: allwinner,sun50i-a100-mipi-dphy >> >> reg: >> maxItems: 1 >> -- >> 2.35.1 >> >