From patchwork Sun Nov 18 14:17:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mesih Kilinc X-Patchwork-Id: 10687947 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 6D0D814E2 for ; Sun, 18 Nov 2018 14:20:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59B6929C75 for ; Sun, 18 Nov 2018 14:20:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 486DB29C79; Sun, 18 Nov 2018 14:20:28 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=unavailable 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 D0CAE29C64 for ; Sun, 18 Nov 2018 14:20:22 +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=huUI/b9mAGXx+f9e3WH+E7buQZqEY2mvt3wSsTZkE8M=; b=RUk48h38j1oDrkc6yLv9VSpenr zMBI1GvMJMTt7qWW81KL+b5HKzkfGVLPpUI3G8Mdcinaf1YzqSm/hxlrSrXbmAmLQyZAS/cjAZtiP O7Z4cR9onQGThpGy1dqc423qHQDmmYRwLGsZCyCPvvPak6uc3YYz9gmBqDVmc9VfNfTzw83sN4sOV aI7cQNJh/pRKzUmejq8u/JQFgq9ggcdh5lHsyEFsYY81WY+FVOsdWbdwfuG3kqPuVwQjPok2xb8im i25uNekEIQn++sqhHWFfKYhds941pSwDFw4kfUMV3H2Xy+MSN0mxLNnHeRO2rNVmorI2nkisRuZg4 N/IUaSUg==; 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 1gONvk-0000q4-47; Sun, 18 Nov 2018 14:20:08 +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 1gONuE-0007WK-4U for linux-arm-kernel@lists.infradead.org; Sun, 18 Nov 2018 14:18:37 +0000 Received: by mail-wr1-x443.google.com with SMTP id e3-v6so29325339wrs.5 for ; Sun, 18 Nov 2018 06:18:23 -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=eVxn2S5b8Rm3xMwzLp61fPQf3In884gsXDLPlcLdD0U=; b=mapB0eIshpyPJBIcKqfWpIppTUTzzrt2o93NGkabJwAHi0DAL9tFKrCXmO3d2t8qL1 9VhqidfEZgFtXIkZvgMA851WBbrfkJfYF2I+wLc/hIK3kieyuIhVeB/emJYXzPNI5IvV R3UwKhZsGeewp5Pk4dnfL8oIIdO7GTsnOVtqZd8MxxR2ceSG9bUiIGeQxNnAyRxiiume 8Hstbq3cbY8FAFQ36qQ2/d5vhA8YqEfRmKfMR6kGsWE5WonewutTskKU5Kwj+BxFvcTz FZzFLA5MTb4EsShYX/43RrjcXt9xeJH62sS+tFFXSFCMpgv/QzZqhdnW4b/+itopPQqd sFKA== 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=eVxn2S5b8Rm3xMwzLp61fPQf3In884gsXDLPlcLdD0U=; b=afiuGkL/ZnFAfk9bdogBcuRxFBLpDNG6JtjrG1hEzo04OpL9vAnsbWPC2+GMg7lHz1 jnUSJBROyd8IhLUQ1zP584DMHdN7m5NnQ7zz1bI705RHbNrpz21rEmi9b3w1Es48GjoE 2Hk/EtK+EUdxY5rfex3vBAXx1PHf5KYYXxHm0qFq3KaHcCREbS56nNOhT4c73XLKScf8 vBHguO3dKNbz/g7MHEBCg2lSAlwuj1YbdDDOpid0PRM4Ui4+8YeA8WJ1EshDyqTyzaW/ RbkaYtSnnu5lnoAM/kiJ/HmEf10jnl1Og23AhFW48DztyG7lhtzPZnaJumsSg/ZRCHzk HnMw== X-Gm-Message-State: AA+aEWYYOeN8yrVZ2wyPMygI/buUUxaRkVNrVp1XBu+isGfkUoeEdzEK bwcTcrIsycbfuMkKCALepFA= X-Google-Smtp-Source: AFSGD/VzulMOIapMrmC/bojXP97r3C6K5G9K8O7unpTysplAaZeob+20VbWbx8o5kxh++/8PC4pwXw== X-Received: by 2002:a05:6000:104b:: with SMTP id c11mr2525088wrx.303.1542550702542; Sun, 18 Nov 2018 06:18:22 -0800 (PST) Received: from ThinkPad.home ([185.219.176.209]) by smtp.gmail.com with ESMTPSA id d4sm29814412wrp.89.2018.11.18.06.18.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Nov 2018 06:18:22 -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: [RFC PATCH v2 03/14] ARM: sunxi: add Allwinner ARMv5 SoCs Date: Sun, 18 Nov 2018 17:17:02 +0300 Message-Id: <8f07fac854eaaea63e199fe0e80cf20004dffbdf.1542546735.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-20181118_061834_186135_6E7D46AB X-CRM114-Status: GOOD ( 17.67 ) 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: Icenowy Zheng Signed-off-by: Mesih Kilinc --- arch/arm/mach-sunxi/Kconfig | 14 +++++++++++++- arch/arm/mach-sunxi/Makefile | 1 + arch/arm/mach-sunxi/sunxi_v5.c | 22 ++++++++++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 arch/arm/mach-sunxi/sunxi_v5.c diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 5db17ec..066644c 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 @@ -64,4 +64,16 @@ config ARCH_SUNXI_MC_SMP endif +if ARCH_MULTI_V5 + +config ARCH_SUNXI_V5 + bool + select SUN4I_TIMER + +config MACH_SUNIV + bool "Allwinner new F-series (suniv) SoCs support" + select ARCH_SUNXI_V5 + +endif + endif diff --git a/arch/arm/mach-sunxi/Makefile b/arch/arm/mach-sunxi/Makefile index c9a83ab..fd17fdd 100644 --- a/arch/arm/mach-sunxi/Makefile +++ b/arch/arm/mach-sunxi/Makefile @@ -1,5 +1,6 @@ CFLAGS_mc_smp.o += -march=armv7-a obj-$(CONFIG_ARCH_SUNXI_V7) += sunxi.o +obj-$(CONFIG_ARCH_SUNXI_V5) += sunxi_v5.o obj-$(CONFIG_ARCH_SUNXI_MC_SMP) += mc_smp.o headsmp.o obj-$(CONFIG_SMP) += platsmp.o diff --git a/arch/arm/mach-sunxi/sunxi_v5.c b/arch/arm/mach-sunxi/sunxi_v5.c new file mode 100644 index 0000000..15f2d7a --- /dev/null +++ b/arch/arm/mach-sunxi/sunxi_v5.c @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree support for Allwinner F series SoCs + * + * Copyright (C) 2017 Icenowy Zheng + * Copyright (C) 2018 Mesih Kilinc + * + * This file is licensed under the terms of the GNU General Public + * License version 2. This program is licensed "as is" without any + * warranty of any kind, whether express or implied. + */ + +#include + +static const char * const suniv_board_dt_compat[] = { + "allwinner,suniv-f1c100s", + NULL, +}; + +DT_MACHINE_START(SUNXI_DT, "Allwinner suniv Family") + .dt_compat = suniv_board_dt_compat, +MACHINE_END