From patchwork Tue Sep 22 15:38:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vishnupatekar X-Patchwork-Id: 521165 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id CB0D81401AD for ; Wed, 23 Sep 2015 01:41:55 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=F0lLHyzR; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933326AbbIVPkG (ORCPT ); Tue, 22 Sep 2015 11:40:06 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:35402 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933303AbbIVPkE (ORCPT ); Tue, 22 Sep 2015 11:40:04 -0400 Received: by pacfv12 with SMTP id fv12so12581672pac.2; Tue, 22 Sep 2015 08:40:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bNRu+rBuHB3vgBIWS0XR4i3K2jgpzyfP4QXoKPv9e64=; b=F0lLHyzR3Wx/41W8x1OhBV55Ououekrc8FBkw6N/I7DYDDkLsJ/S1gDPeCR+P1wb1a pdpPYB+ELKLQaiI2m4KcBB8sCUF96NB7Pyx488l8rnSL2vhIgljYrPFHQb60auicWYD/ a0XxJtaXIcTxEIud0X3vUvOSRlqenxt1EcM6h8gpZPfSQmwV2ufH3EqI8KMvyO4k5sif npKktfhYJl7q6t+u24ryB/92GirjcGsUKpWLSp4vPpNzbHZRvNHRTMgzgGCKvBhn17t+ 2VcOjBa498SFA0QVnxMKSout3IaR9Wr3S7OyRa3nHw1kMN8bPi4AIpDs3e8ghjChjXV6 ZGLQ== X-Received: by 10.68.135.136 with SMTP id ps8mr31908655pbb.123.1442936403129; Tue, 22 Sep 2015 08:40:03 -0700 (PDT) Received: from localhost.localdomain ([116.88.137.3]) by smtp.gmail.com with ESMTPSA id li11sm2957907pab.43.2015.09.22.08.39.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Sep 2015 08:40:02 -0700 (PDT) From: Vishnu Patekar To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, maxime.ripard@free-electrons.com, linux@arm.linux.org.uk, emilio@elopez.com.ar, linus.walleij@linaro.org Cc: jenskuske@gmail.com, hdegoede@redhat.com, wens@csie.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-gpio@vger.kernel.org, Vishnu Patekar Subject: [PATCH 1/4] ARM: sunxi: Introduce Allwinner for A83T support Date: Tue, 22 Sep 2015 23:38:54 +0800 Message-Id: <1442936337-3104-2-git-send-email-vishnupatekar0510@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442936337-3104-1-git-send-email-vishnupatekar0510@gmail.com> References: <1442936337-3104-1-git-send-email-vishnupatekar0510@gmail.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Allwinner A83T is octa-core cortex-a7 based SoC. It's clock control unit and prcm, pinmux are different from previous sun8i series. Its processor cores are arragned in two clusters 4 cores each, similar to A80. Signed-off-by: Vishnu Patekar --- Documentation/devicetree/bindings/arm/sunxi.txt | 1 + arch/arm/mach-sunxi/sunxi.c | 1 + drivers/clk/sunxi/clk-sunxi.c | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.txt b/Documentation/devicetree/bindings/arm/sunxi.txt index 67da205..cf5ed27 100644 --- a/Documentation/devicetree/bindings/arm/sunxi.txt +++ b/Documentation/devicetree/bindings/arm/sunxi.txt @@ -11,4 +11,5 @@ using one of the following compatible strings: allwinner,sun8i-a23 allwinner,sun8i-a33 allwinner,sun8i-h3 + allwinner,sun8i-a83t allwinner,sun9i-a80 diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c index 65bab28..b04aefa 100644 --- a/arch/arm/mach-sunxi/sunxi.c +++ b/arch/arm/mach-sunxi/sunxi.c @@ -69,6 +69,7 @@ static const char * const sun8i_board_dt_compat[] = { "allwinner,sun8i-a23", "allwinner,sun8i-a33", "allwinner,sun8i-h3", + "allwinner,sun8i-a83t", NULL, }; diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c index 413070d..f216d5d 100644 --- a/drivers/clk/sunxi/clk-sunxi.c +++ b/drivers/clk/sunxi/clk-sunxi.c @@ -1212,6 +1212,12 @@ CLK_OF_DECLARE(sun6i_a31s_clk_init, "allwinner,sun6i-a31s", sun6i_init_clocks); CLK_OF_DECLARE(sun8i_a23_clk_init, "allwinner,sun8i-a23", sun6i_init_clocks); CLK_OF_DECLARE(sun8i_a33_clk_init, "allwinner,sun8i-a33", sun6i_init_clocks); +static void __init sun8ia83t_init_clocks(struct device_node *node) +{ + sunxi_init_clocks(NULL, 0); +} +CLK_OF_DECLARE(sun9i_a83t_clk_init, "allwinner,sun8i-a83t", sun8ia83t_init_clocks); + static void __init sun9i_init_clocks(struct device_node *node) { sunxi_init_clocks(NULL, 0);