From patchwork Wed Nov 21 18:30:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mesih Kilinc X-Patchwork-Id: 10692973 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 C33EC1709 for ; Wed, 21 Nov 2018 18:32:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B13D02C666 for ; Wed, 21 Nov 2018 18:32:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A52642C673; Wed, 21 Nov 2018 18:32:36 +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=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 56B9D2C666 for ; Wed, 21 Nov 2018 18:32:36 +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=iJVRzWYdRUQEyPGxpkQnSbhxvjQkIq7fqK/Gh+Si2RU=; b=MG8RNvVBVDhh0Kvi/WH3zXmMuV UvWc1jLec4GlGWwsc8HxCkOBuwwQtweyRdcVwTP1UO+mTuETAqRaOExdJZYlsHoNwrQlqQBvd81Q0 yBjzEdy3I//RZb1WR0AiCinRu1H8i//kWiq9bbNPExU1zgBhdzZ/RZK+W6caAqoOpj4gEGoAnD1K9 B6fl0mrW00AliKyMn4M8uK2GJ7h8cf1ukFKVNU4Fg7EQ3yYhwgLmd8AhmouT8Rey7GSnTETaZ5815 NcKE8131H6yg5MDQqNh2spFzIftJeP3sbzVZ7aPc7XaAZN/ZHaOhrlKWiIGdy7VrUXdkBmIvr9hNX qDBairWQ==; 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 1gPXIY-0002Tq-VF; Wed, 21 Nov 2018 18:32:26 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPXI6-0001iN-Be for linux-arm-kernel@lists.infradead.org; Wed, 21 Nov 2018 18:32:02 +0000 Received: by mail-wm1-x341.google.com with SMTP id u13-v6so6773962wmc.4 for ; Wed, 21 Nov 2018 10:31:47 -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=1mnsltmYAdfzx//1tNZey2yDKhj5NRJvXDg0n2PKqos=; b=frh5Ln65+nXFgBkMzCH1gttsHvU62SCD7t977TGysujbPP3/hc+K+hvrSKxjHw/3a0 3b56gaVxh5LB1TUqE0RzUuJt8tt8D2VoSVfiOq0EG8GaWJCnR71NKpV7GTgX+y+MugCS nuFEnGPFsMVkxj6m9c1BA9MMo/iK/gjA5XIhky0BzYTnmlf9rueZGe6DK2V/dqdcmsNs gzx0J84n7Ez0J2BfOqfyQn6odIbXb6GAcszBjtCBHP1QF7QrZDg7TSZC3+1sTOQ6aoMK UsdiL8GFjvEFpqsmE96ST83wLmNd8f216gdUDu370uMz9C2hKI4bpl7DhI/nbDWLvNiq iUOg== 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=1mnsltmYAdfzx//1tNZey2yDKhj5NRJvXDg0n2PKqos=; b=rjZT0xND9vVlTtwow/SnWUvYdP+CWUVES5naPDwdHQe1R8d88FJwACfvHoUfvKgLJB zMppVdEmh+FSKmVUWY+zEJCqhOTyZDP0EdciMNibyX1ab9fVqTJnKiXEv5ygbhf+wX8M vafnVXY2bXIL64rwJLd8QGLCg+L0BJ9cl/IDtaLEbyfnFIIZ0FRi8ijLHX4Re/kBYERX /zbiV5XRWAaaHd1jFc4GN19M0IC3Ko8iOPt0/GncGJSRJgvDlU0vaKAWFM4ALVey7UFP 85281jRwFda2UTJxd3dcAH3XVHvD+XT7NhwyopDHMzWUOI6Bnmx/PXcD1VhJ26teRV3b FSlg== X-Gm-Message-State: AA+aEWa95Xjuh7z0ozUmSwcChTUlcLjZPsBvNje3L8brTXKTOKtU18c4 DUYCd4llc23+JAVKqrlRB74= X-Google-Smtp-Source: AFSGD/Wnob+ckMQNDOypexd/EFvkZyhhSZPTpVox1sAsbQG3UugK2cx7QQYnnI8IInq0cv2gKP7rlg== X-Received: by 2002:a1c:9f0e:: with SMTP id i14mr3747061wme.10.1542825106444; Wed, 21 Nov 2018 10:31:46 -0800 (PST) Received: from ThinkPad.home ([185.219.177.229]) by smtp.gmail.com with ESMTPSA id e66-v6sm2568779wmf.40.2018.11.21.10.31.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Nov 2018 10:31:45 -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 v3 03/17] ARM: sunxi: add Allwinner ARMv5 SoCs Date: Wed, 21 Nov 2018 21:30:36 +0300 Message-Id: <731846a31ad2c602ca4fcf1c417deace60c625b8.1542824904.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-20181121_103158_705791_25B6C7AD X-CRM114-Status: GOOD ( 15.11 ) 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 | 16 +++++++++++++++- arch/arm/mach-sunxi/sunxi.c | 10 ++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 7e5f173..23dffbd 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,18 @@ config ARCH_SUNXI_MC_SMP endif +if ARCH_MULTI_V5 + +config ARCH_SUNXI_V5 + bool + +config MACH_SUNIV + bool "Allwinner ARMv5 F-series (suniv) SoCs support" + select ARCH_SUNXI_V5 + 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 +