Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751978AbbBFIIg (ORCPT ); Fri, 6 Feb 2015 03:08:36 -0500 Received: from mail-bl2on0113.outbound.protection.outlook.com ([65.55.169.113]:56784 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750751AbbBFIIe (ORCPT ); Fri, 6 Feb 2015 03:08:34 -0500 Date: Fri, 6 Feb 2015 16:13:20 +0800 From: Liu Ying To: Philipp Zabel CC: , , , , , , , , , , , , Subject: Re: [PATCH RFC v8 11/21] Documentation: dt-bindings: Add bindings for Synopsys DW MIPI DSI DRM bridge driver Message-ID: <20150206081318.GA15088@victor> References: <1420014219-915-1-git-send-email-Ying.Liu@freescale.com> <1420014219-915-12-git-send-email-Ying.Liu@freescale.com> <1423131004.3207.27.camel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1423131004.3207.27.camel@pengutronix.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-EOPAttributedMessage: 0 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=Ying.Liu@freescale.com; gmail.com; dkim=none (message not signed) header.d=none; X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(24454002)(243025005)(51704005)(33656002)(87936001)(2950100001)(76176999)(57986006)(85426001)(15975445007)(54356999)(77156002)(110136001)(46102003)(86362001)(77096005)(104016003)(62966003)(23726002)(50466002)(92566002)(46406003)(50986999)(105606002)(47776003)(33716001)(97756001)(6806004)(19580405001)(19580395003)(106466001)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR03MB331;H:az84smr01.freescale.net;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB331; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004);SRVR:BY2PR03MB331; X-Forefront-PRVS: 047999FF16 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB331; X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2015 08:08:30.3682 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.158.2] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB331 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5012 Lines: 122 On Thu, Feb 05, 2015 at 11:10:04AM +0100, Philipp Zabel wrote: > Am Mittwoch, den 31.12.2014, 16:23 +0800 schrieb Liu Ying: > > This patch adds device tree bindings for Synopsys DesignWare MIPI DSI > > host controller DRM bridge driver. > > > > Signed-off-by: Liu Ying > > --- > > v7->v8: > > * None. > > > > v6->v7: > > * None. > > > > v5->v6: > > * Add the #address-cells and #size-cells properties in the example 'ports' > > node. > > * Remove the useless input-port properties from the example port@0 and port@1 > > nodes. > > > > v4->v5: > > * None. > > > > v3->v4: > > * Newly introduced in v4. This is separated from the relevant driver patch > > in v3 to address Stefan Wahren's comment. > > > > .../devicetree/bindings/drm/bridge/dw_mipi_dsi.txt | 73 ++++++++++++++++++++++ > > 1 file changed, 73 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/drm/bridge/dw_mipi_dsi.txt > > > > diff --git a/Documentation/devicetree/bindings/drm/bridge/dw_mipi_dsi.txt b/Documentation/devicetree/bindings/drm/bridge/dw_mipi_dsi.txt > > new file mode 100644 > > index 0000000..f88a8d6 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/drm/bridge/dw_mipi_dsi.txt > > @@ -0,0 +1,73 @@ > > +Device-Tree bindings for Synopsys DesignWare MIPI DSI host controller > > + > > +The controller is a digital core that implements all protocol functions > > +defined in the MIPI DSI specification, providing an interface between > > +the system and the MIPI DPHY, and allowing communication with a MIPI DSI > > +compliant display. > > + > > +Required properties: > > + - #address-cells: Should be <1>. > > + - #size-cells: Should be <0>. > > + - compatible: The compatible string should be "fsl,imx6q-mipi-dsi" for > > + i.MX6q/sdl SoCs. For other SoCs, please refer to their specific > > + device tree binding documentations. > > I think the compatible property should additionally contain > "snps,dw-mipi-dsi". Also I think other SoCs using the same IP core > should eventually list their compatibles here, but that's for later. > > How about: > + - compatible: The compatible string contain "fsl,imx6q-mipi-dsi" for > + i.MX6q/sdl SoCs. For other SoCs, please refer to their specific > + device tree binding documentations. A common compatible string > + "snps,dw-mipi-dsi" should be appended for all SoCs. I'm not sure if "snps,dw-mipi-dsi" should be appended. Is it a compatible string that SoC specific drivers should actually use to bind a device? As Andy mentioned in [1], DW MIPI DSI embedded in RK618 is configured via I2C bus, while i.MX6Q/DL is configured via ARM bus... Another concern is that if users only specify "snps,dw-mipi-dsi" in their device tree sources and use a kernel which supports multiple platforms, say ARM multi v7 platforms, could several enabled SoC specific drivers be probed for a single DW MIPI DSI device? [1] http://lists.freedesktop.org/archives/dri-devel/2014-December/074344.html > > > + - 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 pll reference and > > + core configuration clocks, as described in [1]. > > From the MIPI CSI-2 datasheets it looks like the D-PHY has a refclk and > a cfg_clk input. So I suspect from the name of the "core_cfg" clock, > that it actually represents two clock inputs, the "cfg_clk" wired to the > D-PHY and a core clock wired to the MIPI DSI host controller. I am not > sure if there are designs that control those clocks separately, but I > think it'd be safer to split this into two clocks in the device tree. What MIPI CSI-2 datasheets do you refer to? I don't find the refclk and cfg_clk in the MIPI CSI chapter of the i.MX6DQ Reference Manual v2[2]. I think we need to know the design philosophy of DW MIPI DSI clock sources to settle down the documentation here. I've asked our internal MIPI DSI SoC owner for ideas. But, someone from Synopsys might be the right person, perhaps. [2] http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf?fasp=1&WT_TYPE=Reference%20Manuals&WT_VENDOR=FREESCALE&WT_FILE_FORMAT=pdf&WT_ASSET=Documentation&fileExt=.pdf > > Also I am not sure which input to the MIPI DSI host controller the core > clock represents. The i.MX6DQ Reference Manual v2 calls the remaining > clock inputs gated by mipi_core_cfg_clk_enable "ac_clk_125m" and > "ips_clk" (I think the latter is the ABP clock driving the register > bank, just called "pclk" in the MIPI CSI-2 documentation). The same MIPI CSI-2 documentation you mentioned above? I'm also puzzled about the clocks. Regards, Liu Ying > > regards > Philipp > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/