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 609B4C021B5 for ; Fri, 21 Feb 2025 11:47:59 +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=NynzNBnwrEJoMEKhZZj2Lyb9zl/5MQKilb7WgnBI8X8=; b=R85zArTwuB68E4Mzo5DxjTOI5S q2Ef/pCaB6WNPYwIEIkmGpQvapbaVlRDPT0asQtIQ1rBrzP2svsxRt/jbuPkzO2azGsrW88c60plP 0R2rCu4LGsIjyiQIY/D/sjvtt/7MQOEmqtEAMDiQ7plM9Sauh+xjQ46dolF62vvcCZZkKvNbue60O d7+p/6giPGP8oCZ0X3vhJtxP8bDr+u5V3R/bCMVDfn63IDlj7J+So97MiPaPF+BQJ2zj0YtQ3hcql nsvQueDcn8ADgxbndUDzA+uweNsU4KQYJ506yxGA5ZxyDSHGv4puHxBY8r/DTPaFqFHnBj7PqwPIw q7goWpIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tlRVW-00000005NfR-1wm2; Fri, 21 Feb 2025 11:47:50 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tlRQL-00000005MSr-1Owy for linux-arm-kernel@lists.infradead.org; Fri, 21 Feb 2025 11:42:29 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 85CDE611B0; Fri, 21 Feb 2025 11:42:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48AA3C4CED6; Fri, 21 Feb 2025 11:42:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1740138148; bh=mEM56gOe1RUhzRvrGiRYe0IGW6VYqKO+9eumbJbLHJ0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=eUFSqDSD+1wrIC1whrcC2n2Q277DBn/FacpI8Q3Q3hIZfQuk7ztGxevepO/z6hi11 ot7tFICYPgEZB/TlpJ7xP0t5kbqBCx8OQPHurtrDc/vVQWHKLpjuzDdVsNpO0E2K6v SVYREiiOoYJcO+rt5vtvID0ae2CRb5+KvSZ+cdCl857pZjdENUwtOElhzeNy1ShJDo LrB+qrnan1dV92uN/I76wqkjHkza/GOEqHTma1KX1gEk/c5VLXOnsYnRt5vKGVsiVI Goel35HBYaVVdvuphRQtBt+Gk3lmjG8k8qgZG8IHXUwP2OPPKcDxoIdZYDqLH0Xyzp R8k0p1crwcGPA== Message-ID: <5f88cdbe-f396-49c6-bb48-f50cbbb21caf@kernel.org> Date: Fri, 21 Feb 2025 12:42:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 6/6] arm64: dts: cix: add initial CIX P1(SKY1) dts support To: Peter Chen , Arnd Bergmann Cc: Rob Herring , krzk+dt@kernel.org, Conor Dooley , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, cix-kernel-upstream@cixtech.com, "Fugang . duan" References: <20250220084020.628704-1-peter.chen@cixtech.com> <20250220084020.628704-7-peter.chen@cixtech.com> <4add2867-8c09-454a-b3e2-b4baaeccfd44@app.fastmail.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TYeTVXGSyDsuZjHvj+FRP+ gZaEIYSw2Yf0e91U9HXo3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IpeMtfgb/Pfe/a1WJ/GgaIRIBE+NUqckM+3zJHGmVPqJP/h2Iwv6nw8U+7Yyl6gU BLHFTg2hYnLFJI4Xjg+AX1hHFVKmvl3VBHIsBv0oDcsQWXqY+NaFahT0lRPjYtrTa1v3tem/ JoFzZ4B0p27K+qQCF2R96hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 4vXVFBYIGmpyNPYzRm0QPwARAQABwsF8BBgBCgAmAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtB YpsFAmA872oFCRRflLYACgkQG5NDfTtBYpvScw/9GrqBrVLuJoJ52qBBKUBDo4E+5fU1bjt0 Gv0nh/hNJuecuRY6aemU6HOPNc2t8QHMSvwbSF+Vp9ZkOvrM36yUOufctoqON+wXrliEY0J4 ksR89ZILRRAold9Mh0YDqEJc1HmuxYLJ7lnbLYH1oui8bLbMBM8S2Uo9RKqV2GROLi44enVt vdrDvo+CxKj2K+d4cleCNiz5qbTxPUW/cgkwG0lJc4I4sso7l4XMDKn95c7JtNsuzqKvhEVS oic5by3fbUnuI0cemeizF4QdtX2uQxrP7RwHFBd+YUia7zCcz0//rv6FZmAxWZGy5arNl6Vm lQqNo7/Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 20/02/2025 13:30, Peter Chen wrote: >> >>> + >>> + aliases { >>> + serial2 = &uart2; >>> + }; >> >> Please put the aliases in the .dts file, not the chip specific >> .dtsi file, as each board typically wires these up differently. >> >> Note that the 'serial2' alias names are meant to correspond >> to whatever label you find on the board, not the internal >> numbering inside of the chip they are wired up to. Usually >> these start with 'serial0' for the first one that is enabled. > > In fact, we would like to alias the SoC UART controller index here, > and amba-pl011.c will try to get it, see function pl011_probe_dt_alias. > It is initial dtsi file, so I only add console one which needs > to align the bootargs passed by UEFI. Your "in fact" is not really related to the problem described. If you put it in the correct place, drivers will work just as fine. > >> >>> + CPU0: cpu0@0 { >>> + compatible = "arm,armv8"; >>> + enable-method = "psci"; >> >> This should list the actual identifier of the CPU core, not >> just "arm,armv8" which is the generic string used in the >> models for emulators that don't try to model a particular >> core. > > Will change big core to 'compatible = "arm,cortex-a720";' > and LITTLE core to 'compatible = "arm,cortex-a520";' > >> >>> + memory@80000000 { >>> + #address-cells = <2>; >>> + #size-cells = <2>; >>> + device_type = "memory"; >>> + reg = <0x00000000 0x80000000 0x1 0x00000000>; >>> + }; >> >> The memory size is not part of the SoC either, unless the only >> way to use this SoC is with on-chip eDRAM or similar. >> >> Normally this gets filled by the bootloader based on how >> much RAM gets detected. > > Will move it to dts file. > >> >>> + linux,cma { >>> + compatible = "shared-dma-pool"; >>> + reusable; >>> + size = <0x0 0x28000000>; >>> + linux,cma-default; >>> + }; >> >> Same here, this is a setting from the firmware, not the >> SoC. > > Will move it to dts file since our firmware has already released, > and it needs to support different kernels. > >> >>> + sky1_fixed_clocks: fixed-clocks { >>> + uartclk: uartclk { >>> + compatible = "fixed-clock"; >>> + #clock-cells = <0>; >>> + clock-frequency = <100000000>; >>> + clock-output-names = "uartclk"; >> >>> + uart_apb_pclk: uart_apb_pclk { >>> + compatible = "fixed-clock"; >>> + #clock-cells = <0>; >>> + clock-frequency = <200000000>; >>> + clock-output-names = "apb_pclk"; >> >> >> Clock names don't need "clk" in them, and there should >> be no underscore -- use '-' instead of '_' when separating >> strings in DT. > > Will change to: > uart_apb: clock-uart-apb { No, instead explain why this is part of SoC - or what are you missing here - and use preferred naming. Please use name for all fixed clocks which matches current format recommendation: 'clock-' (see also the pattern in the binding for any other options). https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/clock/fixed-clock.yaml?h=v6.11-rc1 Best regards, Krzysztof