From patchwork Wed Nov 28 22:33:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mesih Kilinc X-Patchwork-Id: 10703595 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 403A018B8 for ; Wed, 28 Nov 2018 22:40:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 301792DFB6 for ; Wed, 28 Nov 2018 22:40:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 23D5E2DFC0; Wed, 28 Nov 2018 22:40:01 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 C7E062DFB6 for ; Wed, 28 Nov 2018 22:40:00 +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=Fvzc0bTA+cYRXLDdYZFS9XynFu5ZELOhsDfHP2R1x6I=; b=LhN2Ejg+kXPVYo6Sf5l7iVsF0R S1eKmKIN801L0PHtmUiPJKOFRpcp5/Te3xA+3fMfE1ziFQMm1iiP9j1LS+mE5WVlz0x5WxlplRtKL WfN7eIvTsznZKf8Br7z9pHXwF2h2GAKzbL6aSVyfVh4+2TvKKcY4J4HPGWXJV0lc8OIVJ36xU5cGk P/FqezW8z8NymLd27zh+LZ7hvskMLEBH3x4gVqpmEGMyQ4hH9IWjkhjCJQR3rtDZvjVCEW2ZhRxWy LpiUuDJAURneEowmwTdK4/EKXWkVAw/Tt73QVW7OTIn7hkmKhbztB4h/5+RKv/KuhjGNCfeiyZea6 qlaKOMWg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gS8Us-0002gb-RY; Wed, 28 Nov 2018 22:39:54 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gS8PY-0005LG-Ou for linux-arm-kernel@lists.infradead.org; Wed, 28 Nov 2018 22:34:26 +0000 Received: by mail-wr1-x443.google.com with SMTP id j2so27962392wrw.1 for ; Wed, 28 Nov 2018 14:34:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zZAcd5DCVFwIJh7pdMnlLFltxq06uySPlY2MVRx9NcI=; b=OK2kX4Cov+t8qGt5WqhcllKzXjFRPRKOleA+zAx35Jfa9A6Fsoa0wKXLiARzIpoQh1 dXl3kxE/uSj4QOpjpS17FeHAGOYFnFrQXRvqgmHNTf0YxWLn9uHs4GppzW6Wo6NvbWuy BzTYo1lFSZ+K24qe4OiZ7XvIBqILSQxYV1XLVbg+KFg/fZ3lWcQoITgN2j2gqTAAP8aj a9/UEUQyjWyje5IHXw76P8b5S9QrKCBonYEluQ4rB6vGkzBCZ4PpnWwu1CbPQHFIGqTi zaanns8rmt9Su/JN0tEhBmXrhqfcY+IVFqJoIjchs5fhZrsdD1SvBj8yiJvQTnJpWTxl ATHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zZAcd5DCVFwIJh7pdMnlLFltxq06uySPlY2MVRx9NcI=; b=RGDRE5Tt0GvzlyZvdGmp8QnlGZhF8eWLy83cNn01y9rvx1TthUW878Ixrmq6tM+OSc DxEmksOjVu62OaIBtHOsebf6W6VGJCjGBYo3jgN8CI1a3SzFpkAShyS25Mte8A8iuexQ SJF4WhqZhPo3gagHO62KroXmOixFg2t+7LO9UfbY3kqLM9rYWKLAI1fh3nbd+zv3rKDD xI2bCM0zT26pTM+2UsI0ogvvEFRdz2MvOzFrh6gPq3wl27ETvYTJN1UP+2KT0B14teI3 VzPNrGpheTcv9M6uQ7+aL7yjydFqslJ0ERVQXvI6ZCRlF1bdReX2SAwUM0i5BhvT1SA/ asTQ== X-Gm-Message-State: AA+aEWYnadJugmI0N0Z3LjBXPTJNM5wtFtj8bFIvMrJjSzJuGUttktVt DSZTvvcqdPKftUFQGxH5GJ1FzCZmho0= X-Google-Smtp-Source: AFSGD/VBum8b5mhsh0uW2/B16EAWpB1SETOR/HmbxHVVIhR4uV+sJel5+/SeRrIWhMX8THeLosot/A== X-Received: by 2002:adf:9382:: with SMTP id 2mr17030823wrp.269.1543444456432; Wed, 28 Nov 2018 14:34:16 -0800 (PST) Received: from ThinkPad.home ([185.219.177.239]) by smtp.gmail.com with ESMTPSA id g198sm180244wmd.23.2018.11.28.14.34.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Nov 2018 14:34:15 -0800 (PST) From: Mesih Kilinc To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v5 03/17] ARM: sunxi: add Allwinner ARMv5 SoCs Date: Thu, 29 Nov 2018 01:33:13 +0300 Message-Id: <459a13de210c96de1a719552164fbc8aa3d0de4c.1543443475.git.mesihkilinc@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181128_143424_811510_CAB12E45 X-CRM114-Status: GOOD ( 14.83 ) 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: Mesih Kilinc , Julian Calaby , Linus Walleij , Daniel Lezcano , Russell King , Marc Zyngier , Chen-Yu Tsai , Rob Herring , Maxime Ripard , 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 Add option for Allwinner ARMv5 SoCs and SoC F1C100s (which has a die used for many new F-series products, including F1C100A, F1C100s, F1C200s, F1C500, F1C600). Signed-off-by: Mesih Kilinc Acked-by: Maxime Ripard --- arch/arm/mach-sunxi/Kconfig | 13 ++++++++++++- arch/arm/mach-sunxi/sunxi.c | 10 ++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 185c573..7fa6a3d 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -1,6 +1,6 @@ menuconfig ARCH_SUNXI bool "Allwinner SoCs" - depends on ARCH_MULTI_V7 + depends on ARCH_MULTI_V5 || ARCH_MULTI_V7 select ARCH_HAS_RESET_CONTROLLER select CLKSRC_MMIO select GENERIC_IRQ_CHIP @@ -61,4 +61,15 @@ config ARCH_SUNXI_MC_SMP endif +if ARCH_MULTI_V5 + +config MACH_SUNIV + bool "Allwinner ARMv5 F-series (suniv) SoCs support" + default ARCH_SUNXI + help + Support for Allwinner suniv ARMv5 SoCs. + (F1C100A, F1C100s, F1C200s, F1C500, F1C600) + +endif + endif diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c index de4b0e9..155cd9e 100644 --- a/arch/arm/mach-sunxi/sunxi.c +++ b/arch/arm/mach-sunxi/sunxi.c @@ -101,3 +101,13 @@ static const char * const sun9i_board_dt_compat[] = { DT_MACHINE_START(SUN9I_DT, "Allwinner sun9i Family") .dt_compat = sun9i_board_dt_compat, MACHINE_END + +static const char * const suniv_board_dt_compat[] = { + "allwinner,suniv-f1c100s", + NULL, +}; + +DT_MACHINE_START(SUNIV_DT, "Allwinner suniv Family") + .dt_compat = suniv_board_dt_compat, +MACHINE_END +