From patchwork Wed May 17 16:43:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9731649 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 BABF66022E for ; Wed, 17 May 2017 17:02:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13869262F2 for ; Wed, 17 May 2017 17:02:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0854F26E46; Wed, 17 May 2017 17:02:37 +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 25409267EC for ; Wed, 17 May 2017 17:02:35 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=uHlWS6GS9aVhMu6rOuXtmConK0M13XEbT72wXvrGXnQ=; b=K8+De7JtSJu7t4Ic5TPZ92kjyd rfkbY7T4/lodFZZjmdlhrucfUZ2EVV5WiXTCWu4pCyb0Rbpw6llBD2pEQDG+r/zYRQVwi8WpAf2hZ xA/FHEQZ0P80hIVtehVCkFUz2jrw0fepiFi/L3vtusZUlvm3lIvUuPQHmHQyXkf/VKasCON7M9IBW eCAwQo0UtvQLbXlYiEU7p7m5gxGNPHkRH0pKqsj/hHpXetkC3UJ3MV45I6Y8opCQFCXLeVY9HFCnq MPrP22Y5FY2M1JTW4HKWzgd2tKMc2MX6EFcOuaNb9ScCkUOEYzAH4Hq1SeF7pyA/8wIvI3NDk0BlP q6P6N8yg==; 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 1dB2LJ-0005r9-KR; Wed, 17 May 2017 17:02:33 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dB2K5-0004Ep-QA for linux-arm-kernel@bombadil.infradead.org; Wed, 17 May 2017 17:01:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding: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=AcYEyAbiaPprdNKOpIdL8bR/iTfusFPqnRkfJYEjueY=; b=nRHo2vN6o8/6P84brAkcB7avz LYvUtEpQuFisCaqxtWXknBWXMK3MAItwExsswuVGoZR6o1U50guve/bQdfaC9/UfQaDQSTT/lQNxA DFoETm+6ANKZAHDElEcs7Gb3cKYrVwylKxRVIUZjeo4LXmoFQ4t7oMpLl/7Whcg35IZJqOz1l1xOt 5FnsAu3yv0gxHuYFzQP1+zhFSCiFwLriyxrIHn51ul2ermrzh52MRgW6rVF3Qr8t8le1/LFtnMNrH 7n8YZlTCY89mTo3goCUCnd1a/vS63SSz4pP/DcYh1bXTWttFjYenjG2ayqpBvLvuM+0EqtghJ0Sx0 UOlFrnnjA==; Received: from earwig.birch.relay.mailchannels.net ([23.83.209.54]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dB25t-0004no-US for linux-arm-kernel@lists.infradead.org; Wed, 17 May 2017 16:46:39 +0000 X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id A21E67C434B; Wed, 17 May 2017 16:46:12 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.126.214]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id C605B7C3288; Wed, 17 May 2017 16:46:11 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [172.20.52.122]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.9.3); Wed, 17 May 2017 16:46:12 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Blushing-Society: 00d7bf2309b6e8c0_1495039572462_1812577725 X-MC-Loop-Signature: 1495039572462:573033909 X-MC-Ingress-Time: 1495039572461 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 4F64B4DD25; Wed, 17 May 2017 16:46:05 +0000 (UTC) From: Icenowy Zheng To: Maxime Ripard , Rob Herring , Chen-Yu Tsai Subject: [RFC PATCH 09/11] clk: sunxi-ng: export CLK_PLL_DE for H3 Date: Thu, 18 May 2017 00:43:52 +0800 Message-Id: <20170517164354.16399-10-icenowy@aosc.io> In-Reply-To: <20170517164354.16399-1-icenowy@aosc.io> References: <20170517164354.16399-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170517_174638_240616_22289DFE X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: 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-sunxi@googlegroups.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The CLK_PLL_DE is needed to be referenced in device tree for H3, for both forcing the parent of PLL_DE. So export it to the device tree binding header. Signed-off-by: Icenowy Zheng --- drivers/clk/sunxi-ng/ccu-sun8i-h3.h | 3 +-- include/dt-bindings/clock/sun8i-h3-ccu.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-h3.h b/drivers/clk/sunxi-ng/ccu-sun8i-h3.h index 85973d1e8165..7029091a6c9f 100644 --- a/drivers/clk/sunxi-ng/ccu-sun8i-h3.h +++ b/drivers/clk/sunxi-ng/ccu-sun8i-h3.h @@ -33,9 +33,8 @@ #define CLK_PLL_PERIPH0_2X 10 #define CLK_PLL_GPU 11 #define CLK_PLL_PERIPH1 12 -#define CLK_PLL_DE 13 -/* The CPUX clock is exported */ +/* The PLL_DE and CPUX clocks is exported */ #define CLK_AXI 15 #define CLK_AHB1 16 diff --git a/include/dt-bindings/clock/sun8i-h3-ccu.h b/include/dt-bindings/clock/sun8i-h3-ccu.h index c2afc41d6964..82496a57efd4 100644 --- a/include/dt-bindings/clock/sun8i-h3-ccu.h +++ b/include/dt-bindings/clock/sun8i-h3-ccu.h @@ -43,6 +43,8 @@ #ifndef _DT_BINDINGS_CLK_SUN8I_H3_H_ #define _DT_BINDINGS_CLK_SUN8I_H3_H_ +#define CLK_PLL_DE 13 + #define CLK_CPUX 14 #define CLK_BUS_CE 20