Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1389601ybx; Thu, 7 Nov 2019 11:14:10 -0800 (PST) X-Google-Smtp-Source: APXvYqx9l3mEsBE21tg4KFLyaNDW9nEPIljRJg4z1+WQUcfmhV55aFrMZ5R43l9Xq6n2LRgA2rL8 X-Received: by 2002:a50:fc8e:: with SMTP id f14mr5531524edq.83.1573154050698; Thu, 07 Nov 2019 11:14:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573154050; cv=none; d=google.com; s=arc-20160816; b=GaIEmGnDYFCcVWQuiiH9F49Bun9l3dHLzQjtNY+e6OoCRAUsusMxeF/WeTCGRsi5Cr P006xAemt73c3wi23voQJ1/Q6wBXR0Wn8n2qJMkNaZME0rb4svGZ9+Jsksjl0IicdTAG UC/UhGfmSxTUawoEhZBTIbIIFLWhDSBPjOXpo+Y93EkwXnGqOcfisH6LZTzVRaAI8KHY gHjqWgqqXKfC/PoLPzuoV5tNxQ8M+dEcHF78tvtLEbXgYxAa1lNFInKWIeHbOt/zxeDL aUnxcgzWlcFFmXv0n+T/8BARxw/XDhID3TqcRa6abFhqeeV/GOm4Urr6Dr3+E5K/z4Na vnKw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Ip3U1pnbtDJcZ7ey6Qf+o7ifcDr3JGZzwimP25QaCcM=; b=UWEFM8PYzAsTko4xbrcHnbQBh1xK20ZbyquTxrwg6dZXX+n97KBW/+MCpTVx4QWuIu nSbH+o/c3bhxzjTuM8Ah1i23uzhxo7dLpEl2t8id6G5Sbs8R3kTljzklEhvK9ecSrA96 LEN+rRZ7HINIRs/yIGcqzygEIdDu/nXbCd/F7u4QcIRKsPSquPCjyOUc5rTKVSNYVpRu 7xiu2FVGnossJCd9HQP0aJimpoCpaw03f5lAXgC08TGl9TN0gSFinbq6qzeNVndOhaK/ OdjCKcjcTZGGLHBzu4Qr6rEDGGCsjm5vqlzplrpteqBy3wAHy6GNpFpuR8tygE6MrMC6 Uy9w== 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 z6si2054395ejx.384.2019.11.07.11.13.46; Thu, 07 Nov 2019 11:14:10 -0800 (PST) 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 S1727435AbfKGTLO (ORCPT + 99 others); Thu, 7 Nov 2019 14:11:14 -0500 Received: from gloria.sntech.de ([185.11.138.130]:46252 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbfKGTLO (ORCPT ); Thu, 7 Nov 2019 14:11:14 -0500 Received: from ip5f5a6266.dynamic.kabel-deutschland.de ([95.90.98.102] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iSnBK-0004qp-Rm; Thu, 07 Nov 2019 20:10:58 +0100 From: Heiko Stuebner To: Laurent Pinchart Cc: dri-devel@lists.freedesktop.org, a.hajda@samsung.com, hjc@rock-chips.com, robh+dt@kernel.org, mark.rutland@arm.com, narmstrong@baylibre.com, jonas@kwiboo.se, jernej.skrabec@siol.net, philippe.cornu@st.com, yannick.fertre@st.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, christoph.muellner@theobroma-systems.com Subject: Re: [PATCH 2/3] drm/rockchip: add ability to handle external dphys in mipi-dsi Date: Thu, 07 Nov 2019 20:10:57 +0100 Message-ID: <1772103.UzfIEELiUT@phil> In-Reply-To: <20191106130557.GF4878@pendragon.ideasonboard.com> References: <20191106112650.8365-1-heiko.stuebner@theobroma-systems.com> <20191106112650.8365-2-heiko.stuebner@theobroma-systems.com> <20191106130557.GF4878@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Laurent, Am Mittwoch, 6. November 2019, 14:05:57 CET schrieb Laurent Pinchart: > On Wed, Nov 06, 2019 at 12:26:49PM +0100, Heiko Stuebner wrote: > > While the common case is that the dsi controller uses an internal dphy, > > accessed through the phy registers inside the dsi controller, there is > > also the possibility to use a separate dphy from a different vendor. > > > > One such case is the Rockchip px30 that uses a Innosilicon Mipi dphy, > > so add the support for handling such a constellation, including the pll > > also getting generated inside that external phy. > > > > Signed-off-by: Heiko Stuebner > > --- > > .../display/rockchip/dw_mipi_dsi_rockchip.txt | 7 ++- > > .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 54 ++++++++++++++++++- > > 2 files changed, 57 insertions(+), 4 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt b/Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt > > index ce4c1fc9116c..8b25156a9dcf 100644 > > --- a/Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt > > +++ b/Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt > > @@ -8,8 +8,9 @@ Required properties: > > "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi". > > - reg: Represent the physical address range of the controller. > > - interrupts: Represent the controller's interrupt to the CPU(s). > > -- clocks, clock-names: Phandles to the controller's pll reference > > - clock(ref) and APB clock(pclk). For RK3399, a phy config clock > > +- clocks, clock-names: Phandles to the controller's and APB clock(pclk) > > + and either a pll reference clock(ref) (internal dphy) or pll clock(pll) > > + (when connected to an external phy). For RK3399, a phy config clock > > Why does external PHY clock need to be specified here ? Shouldn't it be > handled by the PHY instead ? You're completely right and it seems I didn't "see the forest for the trees", as there actually exists the phy_configure_* structs to transfer parameters to an external phy in a correct way. I'll revise my approach (and the phy driver) accordingly. Thanks for the push in the right direction :-) Heiko