From patchwork Sun Nov 25 07:43:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mesih Kilinc X-Patchwork-Id: 10696681 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 E796F13AD for ; Sun, 25 Nov 2018 07:44:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF86F29462 for ; Sun, 25 Nov 2018 07:44:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D33B829516; Sun, 25 Nov 2018 07:44:07 +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 C2E5C29462 for ; Sun, 25 Nov 2018 07:44:06 +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=YjcLneDhw8SzB3os5I4/wKBMO/ CZAvxOh2UueBfrsxei7HZshkPiwp5javpq5LRAU81VVDIWbAjcgGe+dfcmaU/15o1Q3ipRGSYVnmd smX435ki8dHxo4rqzZRAB+M11GxwLII1cawVqhZg3C+Dl2PeRiRz+PGj1uXdYu+Gs3Q0jDpCymW64 xdOY+uTgfNJblHYZ7LT0TaKJF7wbkOmHprfDq3X/4oqWcjTYb6UpqJfQi3t2XMyqL7mJyIy+b3BYP RVz54/P4prTV2mDZZWyfEallsImeaMk9gO05IchKLQkEkaf8Oogd2jxPHTCM9+nulQ4T002xWNN/g wd/71vbg==; 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 1gQp5F-0007k9-Fg; Sun, 25 Nov 2018 07:44:01 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gQp5B-0007gr-Sy for linux-arm-kernel@lists.infradead.org; Sun, 25 Nov 2018 07:43:59 +0000 Received: by mail-wm1-x342.google.com with SMTP id u13-v6so15310899wmc.4 for ; Sat, 24 Nov 2018 23:43:51 -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=sbWMZ46JrvjrVsAyayza3dRa2nNfvJp1vn3wprNIjpnDN8wTWwKuLUicOn7QMoKOPw 204UsEODAXtIjDbrisH6TmH/F1RwqSqN8Wabi7xRZZ7HLMoYB+VBjoI8Nfy/E4aUCinZ 0cBPpKmwGJ/hITTq9Hl3zVo0AigB95jKlHID/nH0fiTj/p3q0Q4FWKjaaFeoDWP3d8b2 y/6mP5EMt++izDSKS/BSZLYbgAD9p5opMlHWRvjdo4P/2BlyrC8ldFM84qg11aRfR4Wg hb5edgPWufNCe9NFZhsxLnvqUEboL7zzW7QryL9Rttx5rouvQBNrV67ncLmUpQIJK9sA 6Vuw== 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=fH54+2CjMn1c4sb68Foa0NBzl09zXKsbgp7vBQy9ZE+6UrG5G3wY8gtpjd/NH612Fd 7zYUMMtXwxn0RMMOHP0sy+i+jYaHe3Sa/EKB5sPiGTBx2W/xR5tjdWMQPxk1CnZdUYgK gJZD0jM+IC+EwfbKErOk8iBO2gSGe/ulCxuN1E77M1ZYfl/T8qS3RpnlB4vSHMo5a9oP GtMfd5PvZy3mjlCEIjZXVnlsBPKBBMbU7Al7p7RCmM6KzRAr9QaUkvK0gzjbN5hfZGcR gN6gFO49pRgr7bxYfYjvUMeN0Dm24p3it1Jb9ahIFAd/TZOwRvZ/RkliD3iyjE2TSGRR a8DA== X-Gm-Message-State: AGRZ1gIkpq6/QUj1Vfun2YGnqXUl5OiM8XVCNKC1dSzc1lNd6CmT6UWK 1BfisoCh1eRqdD1MRkgo9FM= X-Google-Smtp-Source: AJdET5dnQfJnz8oTf/mGLFMk5rAWt5n7KJnt2OWMnB78ZYV8z7GLVfLSXteedd6YqfCMbrYtjpEgeA== X-Received: by 2002:a1c:1c86:: with SMTP id c128mr18760157wmc.107.1543131830569; Sat, 24 Nov 2018 23:43:50 -0800 (PST) Received: from localhost.localdomain ([185.219.177.224]) by smtp.gmail.com with ESMTPSA id 6-v6sm12296780wmg.19.2018.11.24.23.43.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 24 Nov 2018 23:43:50 -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 v4 03/17] ARM: sunxi: add Allwinner ARMv5 SoCs Date: Sun, 25 Nov 2018 10:43:06 +0300 Message-Id: <39fa35deb1bf35803e314f2b7143637e97fc4d63.1543131714.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-20181124_234357_943531_66AE0C60 X-CRM114-Status: GOOD ( 15.03 ) 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 +