Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4592311pxj; Tue, 22 Jun 2021 03:54:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTkRA9Z50scC+kdoTBd4B61K9Tzvlp9w0K150JKFR8BFd64koNfB1TZ/5B1lZ0sXNtjJ3h X-Received: by 2002:a05:6602:1c4:: with SMTP id w4mr2317804iot.44.1624359244598; Tue, 22 Jun 2021 03:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624359244; cv=none; d=google.com; s=arc-20160816; b=VZ+CXaCbSWpDmmQVx5X1fn5roIQYDYC27FdZLhrYw7UHqyueIgSrZBdAEEsatLrp8q F7IMv4E8WMCZjRc3AyQCkBVKMnGvYPExQMsFTwAvHdQtdqbY931QCWCSnjkq9T2ttTrv iEw6BNbt/5wHFnT1+VIvujxtKLCgSyqYrd5heUEc+9thUAHDx3n/Y868OH6vfnEtwG3V FVLMfka+a5KRfPkbxz/mxGVJ1ofZBiG2PMJNc7WYG13vC5Q0LgOD9WZ5MdscgLyOIe3G Yn/t+sxklSyAPVWlcGwrcuOr6Mrk7+AG41gsIwLr+9Ec4/0VQS+JzuNS1h2ZLC++jr42 cJeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5U41/3/1bWeWqPB3fTxyXzuu1YdmUPwxk3j6AEF8Wgk=; b=Wy7dY/xLjY2W+3qiYuiV6ysYWQcu+OcbzAsHOJIvLZ4Lxa42zywKFV+nC7Ig9ysIfX SbvyoehnhpqsMaIo17nDgs44U3XRslvO+zb8n0IOc6rhQgpfTwOSmQrwJRb3DBj7DGX5 vyH2H1WbsdGefNwUOiEOk4C/Q2vveKMoLeIRTXRkVMu8W1daXrf1KxjcNkkYQhOwsaxu CoffIs0h+TPQHYzN24tl5XP3y/QR5scBt3QBn5j/+SCzW2PmEQKVh3jzMdViWBmhDgv5 7UF+xmoWL1fB9jFFdoi2OZXiig/Amgcg15cfUTuYPcACnLSRyLJJ+T/0EEPpZNyO3gXd n4rg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q24si16825217jav.15.2021.06.22.03.53.51; Tue, 22 Jun 2021 03:54:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229907AbhFVKza (ORCPT + 99 others); Tue, 22 Jun 2021 06:55:30 -0400 Received: from gloria.sntech.de ([185.11.138.130]:42390 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbhFVKz3 (ORCPT ); Tue, 22 Jun 2021 06:55:29 -0400 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lve1a-00039l-RM; Tue, 22 Jun 2021 12:52:58 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: cl@rock-chips.com, Johan Jonker Cc: robh+dt@kernel.org, jagan@amarulasolutions.com, wens@csie.org, uwe@kleine-koenig.org, mail@david-bauer.net, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, jensenhuang@friendlyarm.com, michael@amarulasolutions.com, cnsztl@gmail.com, devicetree@vger.kernel.org, ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, gregkh@linuxfoundation.org, linux-serial@vger.kernel.org, linux-i2c@vger.kernel.org, jay.xu@rock-chips.com, shawn.lin@rock-chips.com, david.wu@rock-chips.com, zhangqing@rock-chips.com, huangtao@rock-chips.com, wim@linux-watchdog.org, linux@roeck-us.net, jamie@jamieiles.com, linux-watchdog@vger.kernel.org, maz@kernel.org Subject: Re: [PATCH v5 3/4] arm64: dts: rockchip: add core dtsi for RK3568 SoC Date: Tue, 22 Jun 2021 12:52:57 +0200 Message-ID: <5975924.neEnAmRlxL@diego> In-Reply-To: <9515154d-f521-217c-af61-7cda089fbf15@gmail.com> References: <20210622020517.13100-1-cl@rock-chips.com> <20210622020517.13100-4-cl@rock-chips.com> <9515154d-f521-217c-af61-7cda089fbf15@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Johan, Am Dienstag, 22. Juni 2021, 12:37:07 CEST schrieb Johan Jonker: > Hi Chris, Heiko, > > On 6/22/21 4:05 AM, cl@rock-chips.com wrote: > > From: Liang Chen > > > > RK3568 is a high-performance and low power quad-core application processor > > designed for personal mobile internet device and AIoT equipment. This patch > > add basic core dtsi file for it. > > > > We use scmi_clk for cortex-a55 instead of standard ARMCLK, so that > > kernel/uboot/rtos can change cpu clk with the same code in ATF, and we will > > enalbe a special high-performance PLL when high frequency is required. The > > smci_clk code is in ATF, and clkid for cpu is 0, as below: > > > > cpu0: cpu@0 { > > device_type = "cpu"; > > compatible = "arm,cortex-a55"; > > reg = <0x0 0x0>; > > clocks = <&scmi_clk 0>; > > }; > > > > Signed-off-by: Liang Chen > > --- > > .../boot/dts/rockchip/rk3568-pinctrl.dtsi | 3111 +++++++++++++++++ > > arch/arm64/boot/dts/rockchip/rk3568.dtsi | 777 ++++ > > 2 files changed, 3888 insertions(+) > > create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-pinctrl.dtsi > > create mode 100644 arch/arm64/boot/dts/rockchip/rk3568.dtsi > > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3568-pinctrl.dtsi b/arch/arm64/boot/dts/rockchip/rk3568-pinctrl.dtsi > > new file mode 100644 > > index 000000000000..a588ca95ace2 > > --- /dev/null > > +++ b/arch/arm64/boot/dts/rockchip/rk3568-pinctrl.dtsi > > @@ -0,0 +1,3111 @@ > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > +/* > > + * Copyright (c) 2021 Rockchip Electronics Co., Ltd. > > + */ > > + > > +#include > > > +#include "rockchip-pinconf.dtsi" > > Question for Heiko: > > This file is put in the arm64 directory. > Is it useful for ARM as well? > Should the ARM directory have it's own or use a long include? > > ARM: > #include "../../../arm64/boot/dts/rockchip/rockchip-pinconf.dtsi" > > arm64: > #include "rockchip-pinconf.dtsi" > > Is it complete or does it need more items? > (Who's going to change that?) my original plan was to start out with rk3568, then see if we can convert more arm64 socs to it after that and then think about "legacy" arm32 ;-) So I have no hard opinion on whether we want to have a separate dtsi for arm32 or link to the arm64 one yet. We have this long-linking for for board-level includes already in some places, so it's not that uncommon, but on the other hand having a separate dtsi for arm32 could also make sense, as the arm64 pinctrl features got quite a bit expanded on newer SoCs. Heiko > > arch/arm/boot/dts/rk3066a.dtsi:373.23-375.6: ERROR (phandle_references): > /pinctrl/emmc/emmc-clk: Reference to non-existent node or label > "pcfg_pull_default" > > arch/arm/boot/dts/rv1108.dtsi:645.25-654.6: ERROR (phandle_references): > /pinctrl/emmc/emmc-bus8: Reference to non-existent node or label > "pcfg_pull_up_drv_8ma" > > arch/arm64/boot/dts/rockchip/px30.dtsi:1470.23-1473.6: ERROR > (phandle_references): /pinctrl/spi0/spi0-clk: Reference to non-existent > node or label "pcfg_pull_up_4ma" > > arch/arm64/boot/dts/rockchip/px30.dtsi:1490.29-1493.6: ERROR > (phandle_references): /pinctrl/spi0/spi0-clk-hs: Reference to > non-existent node or label "pcfg_pull_up_8ma" > > arch/arm64/boot/dts/rockchip/px30.dtsi:1589.39-1592.6: ERROR > (phandle_references): /pinctrl/pdm/pdm-clk0m0-sleep: Reference to > non-existent node or label "pcfg_input_high" > > arch/arm64/boot/dts/rockchip/px30.dtsi:1903.49-1906.6: ERROR > (phandle_references): /pinctrl/lcdc/lcdc-rgb-m0-hsync-pin: Reference to > non-existent node or label "pcfg_pull_none_12ma" > > etc.. > > > + > > +/* > > + * This file is auto generated by pin2dts tool, please keep these code > > + * by adding changes at end of this file. > > + */ > > +&pinctrl { > > [..] >