From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BE67ACDD54F for ; Wed, 18 Sep 2024 17:55:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4YdeDfryno/+LkCXv1GZ4YNBzPvX86nNSKieqAhx+P8=; b=C0ArFaRMYBFvNKD56JGzWoem+/ /oYcVgJ798w0iNIppelctoUzLWW+GzPC/pdT+sOkhuWsoxLcN14mNBifha8YowPVQCak4xmCZmIBe V5LP3a0+XZjmVpcZMN/OgokT21XqccimO9F+V2YH6nsLPyGTCj4HBLbeB+QsxDVTt0139c95qbkOV iseT59OjybLbNOOCuixxaQhXG2mpXna1y7utddf+qf4I/Dr2qBiOWuaGjU14ySICjtw7VzxgDOHUy X8e6PYEBBhto1uMpbZwG5H9+fVyCDw/JQ1gYTdOAA4DY/lK68wcwGUMGxGpbIxpChk1a98vlKvx/N NuBMXXlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqytk-00000008mAQ-2Py7; Wed, 18 Sep 2024 17:55:28 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqysd-00000008ly2-0oSd for linux-arm-kernel@lists.infradead.org; Wed, 18 Sep 2024 17:54:20 +0000 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-374c7e64b60so4281254f8f.2 for ; Wed, 18 Sep 2024 10:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726682057; x=1727286857; darn=lists.infradead.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4YdeDfryno/+LkCXv1GZ4YNBzPvX86nNSKieqAhx+P8=; b=JjLu5dnPi1ttHLJ7iSKjogysjR1/7j1CktjBsu9UqJM3NeLWbnYy6zmsAbWzwmuQOp al74thDufPAfxYPcWKSY/iJqM7ZXic0aWtWDVbq3JdCwrYlMdK+E94J/Jr80qGYm/gGn 98yqlcwvqUiip44toYnpu8yqQn8u7Gj6ya2qv4oml5QwxRT6iJ0CpcA+Nxoqej96tIoo P4TGCg3eMT/A2ScRrAiwUpjajKrMwa7tjy8Pu7gQ5rWyvRaTV8+LssVcjYcs2iwTI9FV WxW9TCVq3Oh+wH1v6sbimq1p6a0LNiLpkXLFvSsTk+lCHvQyPClgXAO5/BulX7bZoel9 rbcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726682057; x=1727286857; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4YdeDfryno/+LkCXv1GZ4YNBzPvX86nNSKieqAhx+P8=; b=MS+pv/3bV9RH6+/LoXpqrHjVULJHKtdDgQhCsbfCwCF9781EDc9px/12oA1lq9Fsse 1a8BWWEsXVj0gFmasRc/fsbd+VXcxHapGIOcbcwGGS9VVcAryn4hUr7WrNJBgV+2RBk5 oI3GqD07a0CxFR3XIN6n0rwBmGQAew0gpNjkX93EFLeH6vkXt59gznmLM5hIs4f2sdoQ V5K5O81Yse2JGHADfkUZLZZMkV2NUgxYmijOamnsqGON5THs+LDbj1+4gSNKK18PqqMv 5ROdCs5uSMTvip8EzzoF41NG9hGSVjrD0+xmmlYiqxRvLMFqEsfl2sY7WiqafMmX23pQ 4Z9w== X-Forwarded-Encrypted: i=1; AJvYcCVnVhVkWJbxrxrfpi2533SHD7Z4VHR3AjEfcQddw6rhSRQ8hhu0vEtFbsOx0uXTGLIXHPwcTu2DWTkBaKR5ltGa@lists.infradead.org X-Gm-Message-State: AOJu0Yw8o+77M5bzB1ctNEGFHEZ+5SYkvUNAlBXfsZuq3mryPCubqz/N qfSEIlwmcoY/HmK9Jh8IkrS9y+XsoSmKf/t37byDx30typkO0rFFNxd8sA== X-Google-Smtp-Source: AGHT+IHzflAi+Tk6JXO6OnkT4gjSHrOOAjOa6jFD00Heydj2S+pRfz+9cYpMV5t0dwEaJfWoEJVIwQ== X-Received: by 2002:a05:6000:c86:b0:374:b3a3:3f83 with SMTP id ffacd0b85a97d-378c2d617cemr11727764f8f.53.1726682056212; Wed, 18 Sep 2024 10:54:16 -0700 (PDT) Received: from [192.168.1.106] (91-139-201-119.stz.ddns.bulsat.com. [91.139.201.119]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e70537c71sm22762645e9.31.2024.09.18.10.54.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Sep 2024 10:54:15 -0700 (PDT) Message-ID: Date: Wed, 18 Sep 2024 20:54:14 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v4 08/10] arm64: dts: exynos: Add initial support for exynos8895 SoC Content-Language: en-US To: Krzysztof Kozlowski Cc: Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , Sylwester Nawrocki , Linus Walleij , Rob Herring , linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> <20240909110017.419960-9-ivo.ivanov.ivanov1@gmail.com> From: Ivaylo Ivanov In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240918_105419_272629_28F1E7E8 X-CRM114-Status: GOOD ( 22.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 9/16/24 17:23, Krzysztof Kozlowski wrote: > On Mon, Sep 09, 2024 at 02:00:15PM +0300, Ivaylo Ivanov wrote: > >> +&pinctrl_peric0 { >> + gpd0: gpd0-gpio-bank { >> + gpio-controller; >> + #gpio-cells = <2>; >> + >> + interrupt-controller; >> + #interrupt-cells = <2>; >> + }; >> + >> + gpd1: gpd1-gpio-bank { >> + gpio-controller; >> + #gpio-cells = <2>; >> + >> + interrupt-controller; >> + #interrupt-cells = <2>; >> + }; >> + >> + gpd2: gpd2-gpio-bank { >> + gpio-controller; >> + #gpio-cells = <2>; >> + >> + interrupt-controller; >> + #interrupt-cells = <2>; >> + }; >> + >> + gpd3: gpd3-gpio-bank { > These should be ordered by node name. Same in peric1. Alright. > >> + gpio-controller; >> + #gpio-cells = <2>; >> + >> + interrupt-controller; >> + #interrupt-cells = <2>; >> + }; >> + >> + gpb1: gpb1-gpio-bank { >> + gpio-controller; >> + #gpio-cells = <2>; >> + >> + interrupt-controller; >> + #interrupt-cells = <2>; >> + }; >> + >> + gpe7: gpe7-gpio-bank { >> + gpio-controller; >> + #gpio-cells = <2>; >> + >> + interrupt-controller; >> + #interrupt-cells = <2>; >> + }; >> + >> + gpf1: gpf1-gpio-bank { >> + gpio-controller; >> + #gpio-cells = <2>; >> + >> + interrupt-controller; >> + #interrupt-cells = <2>; >> + }; > >> diff --git a/arch/arm64/boot/dts/exynos/exynos8895.dtsi b/arch/arm64/boot/dts/exynos/exynos8895.dtsi >> new file mode 100644 >> index 000000000..59af33420 >> --- /dev/null >> +++ b/arch/arm64/boot/dts/exynos/exynos8895.dtsi >> @@ -0,0 +1,249 @@ >> +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause >> +/* >> + * Samsung's Exynos 8895 SoC device tree source >> + * >> + * Copyright (c) 2024, Ivaylo Ivanov >> + */ >> + >> +#include >> + >> +/ { >> + compatible = "samsung,exynos8895"; >> + #address-cells = <2>; >> + #size-cells = <1>; >> + >> + interrupt-parent = <&gic>; >> + >> + aliases { >> + pinctrl0 = &pinctrl_alive; >> + pinctrl1 = &pinctrl_abox; >> + pinctrl2 = &pinctrl_vts; >> + pinctrl3 = &pinctrl_fsys0; >> + pinctrl4 = &pinctrl_fsys1; >> + pinctrl5 = &pinctrl_busc; >> + pinctrl6 = &pinctrl_peric0; >> + pinctrl7 = &pinctrl_peric1; >> + }; >> + >> + arm-a53-pmu { >> + compatible = "arm,cortex-a53-pmu"; >> + interrupts = , >> + , >> + , >> + ; >> + interrupt-affinity = <&cpu0>, >> + <&cpu1>, >> + <&cpu2>, >> + <&cpu3>; >> + }; >> + >> + /* There's no PMU model for the Mongoose cores */ >> + >> + cpus { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + cpu-map { >> + cluster0 { >> + core0 { >> + cpu = <&cpu0>; >> + }; >> + core1 { >> + cpu = <&cpu1>; >> + }; >> + core2 { >> + cpu = <&cpu2>; >> + }; >> + core3 { >> + cpu = <&cpu3>; >> + }; >> + }; >> + >> + cluster1 { >> + core0 { >> + cpu = <&cpu4>; >> + }; >> + core1 { >> + cpu = <&cpu5>; >> + }; >> + core2 { >> + cpu = <&cpu6>; >> + }; >> + core3 { >> + cpu = <&cpu7>; >> + }; >> + }; >> + }; >> + >> + cpu0: cpu@100 { >> + device_type = "cpu"; >> + compatible = "arm,cortex-a53"; >> + reg = <0x100>; >> + enable-method = "psci"; >> + }; >> + >> + cpu1: cpu@101 { >> + device_type = "cpu"; >> + compatible = "arm,cortex-a53"; >> + reg = <0x101>; >> + enable-method = "psci"; >> + }; >> + >> + cpu2: cpu@102 { >> + device_type = "cpu"; >> + compatible = "arm,cortex-a53"; >> + reg = <0x102>; >> + enable-method = "psci"; >> + }; >> + >> + cpu3: cpu@103 { >> + device_type = "cpu"; >> + compatible = "arm,cortex-a53"; >> + reg = <0x103>; >> + enable-method = "psci"; >> + }; >> + >> + cpu4: cpu@0 { > Why cpu@0 is cpu4 not cpu0? Anyway, these should be ordered by unit > address. cpu@100 is the boot core of the first cluster consisting of cortex-a53 cores, hence why it's labelled as cpu0. The second cluster contains the Mongoose cores, labelled and ordered after the first cluster. It's ordered like so on a lot of SoCs for sanity's sake, hence why I believe it should stay like that. If you still think that they must be ordered by unit address, please explicitly let me know so that I include that change in the v5. Regards, Ivo. > >> + >> + oscclk: osc-clock { >> + compatible = "fixed-clock"; >> + #clock-cells = <0>; >> + clock-output-names = "oscclk"; >> + }; >> + >> + psci { >> + compatible = "arm,psci"; >> + method = "smc"; >> + cpu_suspend = <0xc4000001>; >> + cpu_off = <0x84000002>; >> + cpu_on = <0xc4000003>; >> + }; >> + >> + timer { > Keep order by names, timer goes after soc. > >> + compatible = "arm,armv8-timer"; >> + /* Hypervisor Virtual Timer interrupt is not wired to GIC */ >> + interrupts = , >> + , >> + , >> + ; >> + /* >> + * Non-updatable, broken stock Samsung bootloader does not >> + * configure CNTFRQ_EL0 >> + */ >> + clock-frequency = <26000000>; >> + }; >> + >> + soc: soc@0 { >> + compatible = "simple-bus"; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + ranges = <0x0 0x0 0x0 0x20000000>; > ranges is the second property (see DTS coding style). > >> + >> + chipid@10000000 { >> + compatible = "samsung,exynos8895-chipid", >> + "samsung,exynos850-chipid"; >> + reg = <0x10000000 0x24>; >> + }; >> + >> + gic: interrupt-controller@10201000 { >> + compatible = "arm,gic-400"; >> + #interrupt-cells = <3>; >> + #address-cells = <0>; >> + interrupt-controller; >> + reg = <0x10201000 0x1000>, > reg is second, please follow DTS coding style for new submissions. > >> + <0x10202000 0x1000>, >> + <0x10204000 0x2000>, >> + <0x10206000 0x2000>; >> + interrupts = > + IRQ_TYPE_LEVEL_HIGH)>; >> + }; > Best regards, > Krzysztof >