Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1153907rbb; Sun, 25 Feb 2024 23:37:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV7XJ8DjNfQq2uAKh1f1MMxwYJxZxp6SMXt+EKsm8BPxqfvU58CqtODvaiHLfCB8jN9NTgutXAW8lcy34kL+WeVdCaXM/qg0X+NGdTvfA== X-Google-Smtp-Source: AGHT+IGubsTjB3n203r+YogE7f67Esqu7wnNK7Nqjvh1euPD00gzkBh2zw7UAPR2nmYstcw/VzcZ X-Received: by 2002:a17:90a:af98:b0:299:4649:13cb with SMTP id w24-20020a17090aaf9800b00299464913cbmr8310863pjq.9.1708933075961; Sun, 25 Feb 2024 23:37:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708933075; cv=pass; d=google.com; s=arc-20160816; b=NhyhNMUUKlq7NhVc1Kx08Er+YtXVzvlP5hN+6mDdAu6cQ0WSsANCaQm0wTBosyX8Zt DDb/YXnBYP2WhKYXDWtjzJyflxYfa9zHLZWxC3kpO0v3Laq+7k1FUKZiGrnuSKq2AvkN urOuByYn1Sp4M+kWyjJFnI6+RMCRYhqzvGrnfF+2FU3W+Lv7MB5V/NnzTJYE/G9X7eOB P3YxzXilUIhEDJheHhuP5z3fxFiFG8PDLZl/NLjQxkwwdKno0qEe511AbyBuN+CF75ju DFTEuVgiS2ByVzbZMTkTRcW4cZQB8yxo7LFmaqJHOlC+lm1rAFQedAwDyF4bm6TdVlh9 Bu9w== 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=BHlZHEcCol7uRIA+E1fUkfgsBT0q/TvibaeUTNaGVRQ=; fh=JPlmbHHTJ5HxPehOpmEySJAxfIhxrtskpf6XT0gnheo=; b=AWnHNyYhJKNJ7b51pkHA2bWTalAE2GYsO9oLQphWcB5vajx0Z5omtlkMf/D+UQjObz icbcHPBlDGEDjTyXeoU4YDOEvzy2oLxi5NHSotxohaYrHCmv72fUT4llpipBnYOnE1bo cfgqOJALdq6aLsIOkBN00+haZhXH3Df4Ry9EWq6td/GDbGd+UJhOyKnefaNerFhpE3Z9 7ROIHpfIkNb4a2Bcuto7N4QAGMVp2KlG0cyLQLa+ksKLWopAEuKhtNerEzBZox1YdM5z 6bJoAcrDnMgxwc3C4UJ/J6RnanGYIAr/52biRJD/FmogG8rCPlSeqLdm20zh6+xiHDpO GMUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="D/CDl2sA"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80666-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id bg3-20020a17090b0d8300b00290349120dfsi5152206pjb.129.2024.02.25.23.37.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 23:37:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="D/CDl2sA"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80666-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A32B0288A07 for ; Mon, 26 Feb 2024 07:37:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A7B753E24; Mon, 26 Feb 2024 07:31:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D/CDl2sA" 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 E03A61EB24 for ; Mon, 26 Feb 2024 07:31:24 +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=1708932685; cv=none; b=WG2RLIOJ6lk+rbroM4GxxlykbSXQxEuNcMT6A6I2oKVmWxLKOPzr9k7Yxn4Cxrg/qtCa/kEJxvi5CAL8q4xZQ9Qu8QTtJTot53rKqZVEyjpY3ix7BJFeeg38TFy8K+ObkT5KmL/uP2nWypTDY0N/k0BuL4uFSOLuIC2hlwgc4jo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708932685; c=relaxed/simple; bh=QCg9rJSnTImn9F6nxF3iBpK7rQvuc5LelxMpA31x41E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ys8qmPMApG51ChCvd35LqDQ9wx2ij1y7pW0GUz7DReSisjPZeMvSHooSmcfpD1h3cBBxfi67YeAJZYqodVMXz0TH/R6aLCJ9Yvd6ph73PqiK3pASRpYuqI4ui73QZlFY7z2sh7keTVEU0oyjnwjaTAKbk9iW26XG1X+J379swcc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=D/CDl2sA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id B6B2EC4E75C; Mon, 26 Feb 2024 07:31:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708932683; bh=QCg9rJSnTImn9F6nxF3iBpK7rQvuc5LelxMpA31x41E=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=D/CDl2sATLDAv0KIPMTCxSt+q3LgePQyTKngOzbnN+yl1ZdEnMYsHycaUvo+O976u gSbdc7r8575rhAOvGqSxBQobxYaY2R4AnWv54AyNvuZ5dhRcnDkL8l1fplBoUOBHw0 pVY3RXC6TaMaih7nzUC1t+0jiahuDguqwjkmQgyoUPGva2MnCcg8nXh6pxBhaCNUN+ DaZzeyDgqMfALShhCHpjIsmWU6sXfsJOgADis7I0/sArNLQlTek325VvCOYAQZv78y xvNHV8s299ftoJCUsyf1gwPbERvSApggi4Jwul0CsoPNk3t4nHlmprfnZzdSuzAi4j d5wssMDvS3JHA== 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 9F442C5478C; Mon, 26 Feb 2024 07:31:23 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 26 Feb 2024 10:30:28 +0300 Subject: [PATCH v8 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: <20240226-ep93xx-v8-32-3136dca7238f@maquefel.me> References: <20240226-ep93xx-v8-0-3136dca7238f@maquefel.me> In-Reply-To: <20240226-ep93xx-v8-0-3136dca7238f@maquefel.me> To: Russell King , Hartley Sweeten , Alexander Sverdlin , Arnd Bergmann , Andrew Davis , Catalin Marinas , Masahiro Yamada , Guo Ren , Nikita Shubin , Neil Armstrong Cc: Sven Schnelle , 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=1708932678; l=3110; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=O6GrIsD1SB+/F4S38OtUNM1CjdG8NlCZCMIgktV/0gY=; =?utf-8?q?b=3D3ensEb0tPIk7?= =?utf-8?q?NO1cGucPSEYH+Fb6dBSm37zYNkq2WhTNFwhvaE4tjbn4YjC/jGuIH2E+CciWE38d?= WdAa38weB4cpclhMfLudAkfvQomh6s5l1GKhvNea0sz1mihT/muS 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: 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 473280d5adce..68a08835feed 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -178,7 +178,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