Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4421215rdb; Fri, 15 Sep 2023 01:19:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFv2DlcwWUBVwvYGR8LivzEi7CyZf5GWyZPtkGPGM2g0a1FLkKcIyYwK5QjcA08HVUh1sVd X-Received: by 2002:a05:6808:283:b0:3a8:29a9:e4d0 with SMTP id z3-20020a056808028300b003a829a9e4d0mr994902oic.34.1694765999592; Fri, 15 Sep 2023 01:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694765999; cv=none; d=google.com; s=arc-20160816; b=VVVrpAAFxug3D5L+rxMNgR5OI679s29TTX0fWiYczD1X7mVwfXfbzXyKRztw+0jhHl PP/UkVGX8Azw9kAZys7P79HuUFWq3bwjUt8h4jWoLAevKOGQu8L5SpeMV/xoEtEVPtUj RVILFTr7aE46WfRhcLVO85/lMVdCTkdlF3I7ZGexzeRDT2ZmrYrwL4ArYfjLsCKLBeRr mzpkZu1GHNJZ3vZJMChHhM0gZU6PRn9x7PDSLqdynxTX6FqwCU0OlWPvaTY98FZw84f+ Vcx8DEordhaVHNC7CCYqjY97BdV9vcurjNhyjc1wVhKWB/TfsfE8Jt4tr2S01aGxUdsb gxkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=1tbHsrx3OYmnDVDExcN4ehe1/vUL+8WP63whsDflxzQ=; fh=o5tgYJ3K0DVd12wvCwqTSwoSCreSzTg533d2zKkqEIk=; b=xBi98IJ/LEqybjRE0SxaMb0BVepEDWiCBYXPDPmCBeui9wn1Ippmqaz9j+9FsKGUH+ h0TmTD8dYnxKDwTOb2z6Y6PNy4sxlfPm1y+j3I3ddWjN4lp0dnwMe61GhJkke3wL0g/y mJDQb/odo5ToOFnCuvY5mwf3sTkurSVdEgAPatEryJnobL1M7QIB0hOyavXI2IN7dhMD N29wZA5xIXEK2fuqHdVYcLkU0gK+fkAEKaTFo7BwKfoyRyNJI3sFadA0JXy29neKLkQR pMYMNPDDq2C+kaZoRwcwFYBou3N9vZnItN5ZMeJxkmTHFlaHNu2/KZfhssE+YRoLG3ap Mnbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hqDMgHzL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k7-20020a056a00134700b0068e3c235a5bsi3150462pfu.168.2023.09.15.01.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 01:19:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hqDMgHzL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5DB5C832C6B0; Fri, 15 Sep 2023 01:14:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233282AbjIOINt (ORCPT + 99 others); Fri, 15 Sep 2023 04:13:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232966AbjIOIMz (ORCPT ); Fri, 15 Sep 2023 04:12:55 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93F08273F for ; Fri, 15 Sep 2023 01:12:15 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id 4CA6BC16ABD; Fri, 15 Sep 2023 08:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694765530; bh=gECFgkOv1QDzxko9GNZHZ37/GLaxc4Z6ahRqO7jW0Mw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=hqDMgHzLS8vAt7bBl4PWhyrhF0rNS8OI65wSY/vkqPTyhMog8nkUBUOAobAFBMrmi TK/G35x7cqZHC+jnnjiSHTEw/b0Lti+w4kuCKHTda/6Rke4OEgqNyrDGeQJ3fhWqVu QLyuKFIJtXdBxb+HVSbldSvzzEAWuhFneIEkexRLVmvtAwaquzHrIzfULo5QEyOuAy iODkIiRSVUg3JjuZAPe0vquJzEV8a5CzbLv0z2Fd7apforOkFkfoyCYGepJKE0nmnD yR2sJWiV1W0EbK49ro8s3vov7nU8GFJ4vae6uhpsRItAYh1Q7j60CbCShqipyUF/Im 3iZwvZP8Bwrpg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34B10EE6441; Fri, 15 Sep 2023 08:12:10 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Fri, 15 Sep 2023 11:11:18 +0300 Subject: [PATCH v4 36/42] ARM: ep93xx: DT for the Cirrus ep93xx SoC platforms MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230915-ep93xx-v4-36-a1d779dcec10@maquefel.me> References: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> In-Reply-To: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> To: Russell King , Hartley Sweeten , Alexander Sverdlin , "Russell King (Oracle)" , Arnd Bergmann , Nick Desaulniers , Nathan Chancellor , Masahiro Yamada , Nikita Shubin , Nicolas Saenz Julienne Cc: Neil Armstrong , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Alexander Sverdlin X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694765525; l=3048; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=Ye7XRyK46/G3MRTBfqMVK+wCI15sXOcAtWDsuyFQxy0=; =?utf-8?q?b=3D0viX8inJgb8k?= =?utf-8?q?4UjoBRY8d+N5WpreUy4mQrSdRViO8cSuyyMSWQZSRObWWEp9yBhOXWDZBfP54aIR?= FPfAgoFZC+t8HMbGEYdHHIzl8zSCN4fP1X2CH6tpMNqeqE0a9M1l X-Developer-Key: i=nikita.shubin@maquefel.me; a=ed25519; pk=vqf5YIUJ7BJv3EJFaNNxWZgGuMgDH6rwufTLflwU9ac= X-Endpoint-Received: by B4 Relay for nikita.shubin@maquefel.me/20230718 with auth_id=65 X-Original-From: Nikita Shubin Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 15 Sep 2023 01:14:07 -0700 (PDT) From: Nikita Shubin Add compulsory device tree support to the Cirrus ep93xx ARMv4 platform. - select PINCTRL_EP93xx - select COMMON_CLK_EP93XX, as clock driver moved out of platform code - select ARCH_HAS_RESET_CONTROLLER Select ARM_ATAG_DTB_COMPAT to update device tree with information about memory passed from bootloader. We have to leave all MACH options as they are used for board checking before decomp, to turn off watchdog and ethernet DMA. Signed-off-by: Nikita Shubin --- arch/arm/Makefile | 1 - arch/arm/mach-ep93xx/Kconfig | 20 ++++++++++---------- arch/arm/mach-ep93xx/Makefile | 11 ----------- 3 files changed, 10 insertions(+), 22 deletions(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 547e5856eaa0..0e3d637cae6c 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -179,7 +179,6 @@ machine-$(CONFIG_ARCH_CLPS711X) += clps711x machine-$(CONFIG_ARCH_DAVINCI) += davinci machine-$(CONFIG_ARCH_DIGICOLOR) += digicolor machine-$(CONFIG_ARCH_DOVE) += dove -machine-$(CONFIG_ARCH_EP93XX) += ep93xx machine-$(CONFIG_ARCH_EXYNOS) += exynos machine-$(CONFIG_ARCH_FOOTBRIDGE) += footbridge machine-$(CONFIG_ARCH_GEMINI) += gemini diff --git a/arch/arm/mach-ep93xx/Kconfig b/arch/arm/mach-ep93xx/Kconfig index 703f3d232a60..812b71dcf60e 100644 --- a/arch/arm/mach-ep93xx/Kconfig +++ b/arch/arm/mach-ep93xx/Kconfig @@ -3,27 +3,27 @@ menuconfig ARCH_EP93XX bool "EP93xx-based" depends on ATAGS depends on ARCH_MULTI_V4T + # CONFIG_ARCH_MULTI_V7 is not set depends on CPU_LITTLE_ENDIAN + select ARCH_HAS_RESET_CONTROLLER select ARCH_SPARSEMEM_ENABLE select ARM_AMBA select ARM_VIC + select ARM_APPENDED_DTB # Old Redboot bootloaders deployed + select ARM_ATAG_DTB_COMPAT # we need this to update dt memory node + select COMMON_CLK_EP93XX + select EP93XX_TIMER select CLKSRC_MMIO select CPU_ARM920T select GPIOLIB + select PINCTRL + select PINCTRL_EP93XX help This enables support for the Cirrus EP93xx series of CPUs. if ARCH_EP93XX -menu "Cirrus EP93xx Implementation Options" - -config EP93XX_SOC_COMMON - bool - default y - select SOC_BUS - select LEDS_GPIO_REGISTER - -comment "EP93xx Platforms" +# menu "EP93xx Platforms" config MACH_BK3 bool "Support Liebherr BK3.1" @@ -103,6 +103,6 @@ config MACH_VISION_EP9307 Say 'Y' here if you want your kernel to support the Vision Engraving Systems EP9307 SoM. -endmenu +# endmenu endif diff --git a/arch/arm/mach-ep93xx/Makefile b/arch/arm/mach-ep93xx/Makefile deleted file mode 100644 index 62e37403df14..000000000000 --- a/arch/arm/mach-ep93xx/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# -# Makefile for the linux kernel. -# -obj-y := core.o clock.o timer-ep93xx.o - -obj-$(CONFIG_EP93XX_DMA) += dma.o - -obj-$(CONFIG_MACH_EDB93XX) += edb93xx.o -obj-$(CONFIG_MACH_TS72XX) += ts72xx.o -obj-$(CONFIG_MACH_VISION_EP9307)+= vision_ep9307.o -- 2.39.2