Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3201015lqp; Tue, 26 Mar 2024 02:32:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSONiEnV4V+aMCLMoD2DC7+LX+GQM5vaHNH9P5In+xaZj8S3tuORlkhRD3nzgOcml3dM//JXKgCIezNJBU8Ayr20O5NBpnMcOxRmbNmQ== X-Google-Smtp-Source: AGHT+IEmiwbrBL2vUMp6dUDDnVZDkViKbNWaQQpUYp8M8lgvqJYuDb8cQoRH0pdWt8+sq8PkwgcY X-Received: by 2002:a05:620a:190b:b0:78a:599c:e449 with SMTP id bj11-20020a05620a190b00b0078a599ce449mr638431qkb.58.1711445572667; Tue, 26 Mar 2024 02:32:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711445572; cv=pass; d=google.com; s=arc-20160816; b=ye3DYHTzTV+jwIINiFQ91EtgvPoWHUlnCJFU5joQXDYQWBu5WTxneLsKDVwdGELNd4 pJyIG/zfRgaWqNKFkzugfOuxCSymHLaHExt+Ln+77KWUcNntPeq4xKPCOLGIc2jH5GrA eqq9QpjydMpaTL7UPhKM6ogDe5d6pTlVrAn5yDasL20NDhn2jce4ODxYf/xHPKpw2Nj1 hhFHAVEQoTCm2+f0F8bgDTkEBD2pNf4t3A/G+trWEtgT6A+DwQGOu9B300jb1Zwjbejf X/uHu2Qv5v1QqL4hqhQ2BPw3qxy/fXqnHAlS47Z5IJ0XQw3RVp9nhFvRzALJwgSulXK2 1/xA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=id99lIb4NPOAhZ1p7+5daOHhPKoluIMO7ZRgr/YFAm8=; fh=bBq51lYFxhhABe9bvmbXSBpWBSDzSQyQSP2DCjfl+P8=; b=cLA9Pl+3KXK3JDd2w3niVtuHkItwslGTj3Eir4D5ccmqL8fWeZLdtvMKRKoKgR3Jb5 jLt+jZQPf+FuI07snAUVRc01FmA41ip+PUh0aGioXkAb6iA0g3oIsApH+6ixHc0Y34su DGTj7ipzjrCye1d2CT9UvhsuGmOq2lB9Bkcx0NCTUlxUPcJPIZDAJ5TIlSCl3d0n/ryJ uTHZbS6x4gRsI43Xn8V59wmw65nlyYB5zjYRhHI0oX240u04Dn9Gr0lTgPCc3+Gaz9zX CjCBUaUnSWFpz/FxnIjL0K59ymdDZeiXV3LB8cLluMXCqpCmmDEk5AG2yELXPHn/kWf+ XP6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FdC8hIDG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b16-20020a05620a089000b0078a5d0dc344si2269045qka.271.2024.03.26.02.32.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 02:32:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FdC8hIDG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 63E701C2C990 for ; Tue, 26 Mar 2024 09:32:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34EE912E1F0; Tue, 26 Mar 2024 09:20:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FdC8hIDG" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96EB07350D for ; Tue, 26 Mar 2024 09:20:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711444843; cv=none; b=TCYTEL6f/tzClFVCqlEIjUvcDRQ4RdWkEpPb02M0PGlg5TZWlfu8OlzbD92HJYkuV3ZhQjoYAFQSD1gmcIWMcQFoahBql8rfRQ7GFUEVPbCKnhwsjOqiAdUUqGuNU7u7X1jLo5/hBOLNzOzHsFUS3O7z39+eyiOp6rz9hcpKUdk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711444843; c=relaxed/simple; bh=eyqnkRpuIfFlEYBLh9ZH0oTpU4GW862/gaJ9YTmacyY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hJPS2QS6yBBLIOu+Hg7zwTi0zeFSaG/eKu1yFauvuNf0hWJ5nJWF9ESQiBNnmYhwlQmen2JmB1EhqskFNJsp/cE3PpSYvO+WPkxj+KSdV/u2hqOo0Gf8/X8nK4g86+4+ruqPHUFffSvRRml37jQFqKRgQx9ZRbZkxZCahuWmtTo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FdC8hIDG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id AD6D1C4E67F; Tue, 26 Mar 2024 09:20:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711444842; bh=eyqnkRpuIfFlEYBLh9ZH0oTpU4GW862/gaJ9YTmacyY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=FdC8hIDGxHAvNW1lKiYhBOlq0h9dDtss9z/eO+Tjc0P5HgMcmtaDqfbvUG4oW9Cgp 9JyxAVLlpkYEdhUQ/TLSzzVooocGPCjxc5m6EAI65U4iDF+6NpGohepCe1GEq7Mtl+ Z7mnalzrnZ3wYeTRy55cmFUFHug2ld2dL8jxzHcOpOAX0sKvrh+LPahFNA2YRZ742p Qdl8ZYDadQcu2w0ZrcbEmhPQAHpQvO8LdIX39qQI3jtgSK4+znDjLK609QUGxLn0UP ZAV5vzc1nQIvGt/IyRcVn5erxoDbLwGIqLsJK4Np22X0yTog5RR3vRhEQDQ8apDgQa yaFXcd7iPEq1Q== 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 A2887CD1285; Tue, 26 Mar 2024 09:20:42 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Tue, 26 Mar 2024 12:18:59 +0300 Subject: [PATCH v9 32/38] ARM: ep93xx: DT for the Cirrus ep93xx SoC platforms Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240326-ep93xx-v9-32-156e2ae5dfc8@maquefel.me> References: <20240326-ep93xx-v9-0-156e2ae5dfc8@maquefel.me> In-Reply-To: <20240326-ep93xx-v9-0-156e2ae5dfc8@maquefel.me> To: Russell King , Hartley Sweeten , Alexander Sverdlin , Arnd Bergmann , Andrew Davis , Nicolas Schier , Daniel Golle , Masahiro Yamada , Neil Armstrong , Dmitry Baryshkov , Nikita Shubin Cc: Bjorn Andersson , "Russell King (Oracle)" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711444837; l=3110; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=S3c4H5NOzoAo6wS3YUkYAsGXnKI3sZtSpfSvZOhhrb4=; b=vqxAQoWoHzK2/JIwQnfOmM9F+a3pwP+rYfBm5nuYfFokWX6TdVtV2iRDuY/M/EufSeioHi2SU0ff 9+CczbJWDn54/itgk3qWBV03Mxpmz2nN23HEWl3RHrqWen3MTo98 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: nikita.shubin@maquefel.me 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. Tested-by: Alexander Sverdlin 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 d82908b1b1bb..5e24e50525d8 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -176,7 +176,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.41.0