From patchwork Fri Mar 3 11:39:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Keeping X-Patchwork-Id: 9602571 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 38290600CB for ; Fri, 3 Mar 2017 11:40:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27C8427F81 for ; Fri, 3 Mar 2017 11:40:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C1A42860C; Fri, 3 Mar 2017 11:40:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9C0F927F81 for ; Fri, 3 Mar 2017 11:40:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PmTbx0kQPznwa1bQDWGSCb+T0epMt4FhkdVxw1saOQQ=; b=RBafHajb3V6BUy hIy96fzyvvaFORlPIlxRM1WWuJpChT/ru8Wo/wMz8cFrjWhYlcoP1ZBOX8L8fAxOmGMSx65kz9yr0 KF15gBAe5p7gy6069Ho0bvzwUbnIuApqWE9HtqdsSkRivP3CNmWIRq/w07zkLj84HidI7ip1MDE/d ZcePpgE+NudqTYuKP0x2Aw2irj5EGZOaTLjRp+TEcUF1n0w30rUPxhP4C0J36faSdIQkdkKqtMKZd Z4GoSB4zVrFc540sv3OkHm4uSbFoeH5TLjaZcae5aZd/OvNt9BtbEY4NorYIp1Ow1uwlExpGjtv0O YH32CbDgrrGgHOWhcj1A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cjlZc-0004Rx-Qw; Fri, 03 Mar 2017 11:40:36 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cjlZb-0004Rh-2u; Fri, 03 Mar 2017 11:40:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=2PUoxDWFhXDsQty/M7tQEld1MHMIWPkgc8qM4eNU9nY=; b=O8skYoml4Ayi14nlhv+r8TWqt7 ldswkdqTYWGff+N05UCDW30Yvokn78pEs6EWlLu8MFEpeHcDceC+mY8nJqT9AURXQ6O4hkJ+mF/e+ CoudM0+iI9yFQy2BLjIxT2xshY1BngFNGeEjsGEtkKSJP8ROlmGcWZj57IyPC4YwUhsT4UJRBPtNA HxFfqwiMGsb2tshYdCrlmowPtf3lWPigfn3ttFId4meJEzJUk+gdWBLUAYDSIhzNp1ETVFpOEr7ZF d4vzuNn11aUTrHvdgfpa10+DcBKOkY3flhCG353KiWv72dj5zZ8XSygKF2gmZ53nXR4famGcXy81g zgz8BqaA==; Received: from dougal.metanate.com ([90.155.101.14] helo=metanate.com) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cjlZX-0002WR-8x; Fri, 03 Mar 2017 11:40:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=metanate.com; s=stronger; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=OXLUX+eYCYCOEtq/mGcSKqRM8tDm3yk/+pkOKgP4MQM=; b=VzfCPmYsoFAU4wZsYWToWf+LJDRwQg4kt8OhQcPK5mKXnwre/oFaN/WdtiRHFt86I9ZgxXOR3GR/WiT/R6iv3kkkCoB3By75uNe4TU1+rzLQigsVK4ygn1MmOLORoO3mEovEZzd7S1BxVxF+MRhvfBH30gwcAkX1F/HwP+Nj1lDJguTIGFpjDldROb8no/38FS6Q0VdYWnSLpt4c5w8u3PTlME3p5rVnYOjJag/tR1YCZWBCd0yxtbkntu560OqfVIUuUKp/vdRu/tb4NxSjGcce7He/0MTSbX4IMhaLREfICTZ/NmpKw/U94UTT6OGYpJKvLyKfMuNTW4//5pDudA==; Received: from johnkeeping.plus.com ([81.174.171.191] helo=localhost.localdomain) by shrek.metanate.com with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (Exim 4.83_RC2) (envelope-from ) id 1cjlYo-0004gn-Qe; Fri, 03 Mar 2017 11:39:46 +0000 Date: Fri, 3 Mar 2017 11:39:45 +0000 From: John Keeping To: Brian Norris Subject: [PATCH] dt-bindings: display: rk3288-mipi-dsi: add reset property Message-ID: <20170303113945.3bd2cbd9.john@metanate.com> In-Reply-To: <20170302215643.GA49163@google.com> References: <20170224125506.21533-1-john@metanate.com> <20170224125506.21533-24-john@metanate.com> <20170302215643.GA49163@google.com> Organization: Metanate Ltd X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170303_114031_445194_0D1C6556 X-CRM114-Status: GOOD ( 16.26 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Sean Paul , Chris Zhong , linux-arm-kernel@lists.infradead.org, Mark Yao Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This reset is required in order to fully reset the internal state of the MIPI controller. Signed-off-by: John Keeping Reviewed-by: Brian Norris Reviewed-by: Sean Paul Acked-by: Rob Herring --- On Thu, 2 Mar 2017 13:56:46 -0800, Brian Norris wrote: > On Fri, Feb 24, 2017 at 12:55:06PM +0000, John Keeping wrote: > > + /* > > + * Note that the reset was not defined in the initial device tree, so > > + * we have to be prepared for it not being found. > > + */ > > + apb_rst = devm_reset_control_get(dev, "apb"); > > Did this reset ever get documented in the device tree bindings? I > couldn't find it. Perhaps a follow-up patch is in order? Here's a patch to do that. .../devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt | 7 +++++++ 1 file changed, 7 insertions(+) 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 1753f0cc6fad..28d0b437d3cd 100644 --- a/Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt +++ b/Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt @@ -13,8 +13,13 @@ Required properties: - ports: contain a port node with endpoint definitions as defined in [2]. For vopb,set the reg = <0> and set the reg = <1> for vopl. +Optional properties: +- resets: list of phandle + reset specifier pairs, as described in [3]. +- reset-names: string reset name, must be "apb". + [1] Documentation/devicetree/bindings/clock/clock-bindings.txt [2] Documentation/devicetree/bindings/media/video-interfaces.txt +[3] Documentation/devicetree/bindings/reset/reset.txt Example: mipi_dsi: mipi@ff960000 { @@ -25,6 +30,8 @@ Example: interrupts = ; clocks = <&cru SCLK_MIPI_24M>, <&cru PCLK_MIPI_DSI0>; clock-names = "ref", "pclk"; + resets = <&cru SRST_MIPIDSI0>; + reset-names = "apb"; rockchip,grf = <&grf>; status = "okay";