Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp631711pxb; Sat, 21 Aug 2021 13:11:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9rkrpiGSvQT3Ky0fJmm3raJOsP+MvyaQ8N5Gj+Zw4Irzj9MF/mQtiyPeURFC/F8uxos+7 X-Received: by 2002:a17:906:144e:: with SMTP id q14mr28373771ejc.19.1629576688339; Sat, 21 Aug 2021 13:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629576688; cv=none; d=google.com; s=arc-20160816; b=OA01wNlBnFQljmwxdLYn3JmDEmI/wfqpr6ws96Lc3MPlo9mrSYlIAThbOidl9EWkZK WEg0S3CV3VTNAhsumDpAXOYJO3tGFuHFKhlhvO4GCvJl1heVL02nX/8Z43mZPdolX+Hg rfGtPUVwFjVG3ppRNzct517mUCMB6XsPPRWiBINbgEuVcjmJq4lOM38iwO7jLWjx9Ste KBlY+IiFlyBXaR+jwVyge7PuI9tcFVq0OfWe7W7pP4kj0+XkScIVKEMpOMUoBDTx69FG DiY4UfksModKlEvZUOw4L1LqHduhLZgXi6LRcaFO69v3ZKzw1Ehv/sEwVM1TFTm+U//B zDpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=G38jY1tilTGN6yDwHsom5S6bcpGnsNsFIqj6vHXaM+4=; b=uWDQbOVpFVn/3A8HjfIva89DJ5Zf20Qo+952cxqAUS3dJqcP4GEt9vTjhNwiX22po7 d7396f2O3fAdk7YgaEtssBl4PXlOkg7a9tUcnHGwcD1KdUudGb7fLiNUBkw1YiDcG0jG Z6mbrehBDZHQ5jeUxskHmQWBNlf0YhT5ucbJEeTXfhuQ99HLj9zPKXSfbYPIuMa9g/BI Redp5BwJuAygqSYQiJfEcOYKRA4UExYc5LCV0vkgXLUtN0dhB+Dvf6/gVHsmtr5qROZp GhbIZ3ATkmpoehfhbJuJQxBzVsqysELD8rHMwTCXiP+RuhHhVaCQfB+CNqWH4hJtiDPW Iimg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jbszNntP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si11975953edl.348.2021.08.21.13.11.05; Sat, 21 Aug 2021 13:11:28 -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; dkim=pass header.i=@linaro.org header.s=google header.b=jbszNntP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230180AbhHUUFI (ORCPT + 99 others); Sat, 21 Aug 2021 16:05:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230182AbhHUUFH (ORCPT ); Sat, 21 Aug 2021 16:05:07 -0400 Received: from mail-vs1-xe2d.google.com (mail-vs1-xe2d.google.com [IPv6:2607:f8b0:4864:20::e2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A4BBC061757 for ; Sat, 21 Aug 2021 13:04:27 -0700 (PDT) Received: by mail-vs1-xe2d.google.com with SMTP id v26so8503768vsa.0 for ; Sat, 21 Aug 2021 13:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=G38jY1tilTGN6yDwHsom5S6bcpGnsNsFIqj6vHXaM+4=; b=jbszNntP7qTNXuYqeSDrSwyTEJRUxrFw9Tszq2ShHFrKt+c5lI5tR1iD4bTU5W0CY6 +CIRYtl6wu5OzPTlhRq4xVu2fyRkkCshIJnzMGm8Uz+VgmoICIPSkqID4iLESFOzwJzO FfI3xg/pnuBnsa9QCjryMzEjzqIcvpU6cCqRUJkED4JBHaNQ8h3pmRDbtXD3XiLZP+sY D2kiu9zD3NZ04mNunkmIyGotJoS9joa0JNQy4rYj2iUaQiyJvG6w4rW+k55A6NaoBE1e qVnAgI0ULUX2/mmEHX0WIhzB6wxlAeydUSx6CNxYtUtb+CSqUsxo2EEA8huQ9kk+eTvO usRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G38jY1tilTGN6yDwHsom5S6bcpGnsNsFIqj6vHXaM+4=; b=TXKF/en2qRbamrcfDHc7MiioK1WwtpF7y/tmgjew56pOKwtjM3uBcZ5/YaDl3gRmzx W1yXVL93wNzGgb2ACRe4qGEtbNKWA0/ZuXiuMDon6oDffUSlI32RCICE/jfK/zQuXXGg TuKsdVCb0rc83P65B67u3PuRCmM5LI7dB98KPVoAJKclXPvF26osHAkbCdBoKFMIsOJC IwbBJDnHWAHNFilHHv/FiOJF0Ets3ZpUOBwQMPAkUattFmpS7KuA85VxEwYSo2BLdhOp hq36e8JjUMZxk87yF95jXuoShsWS5XGF9Lgzll4pDhZEgEI/zpVJhi+58Gaus8Mka+sg BAAg== X-Gm-Message-State: AOAM531i1I52ryVaJ3pvSdq3s2EtYrPSVe3KR1jrUeSD9NnniXWp0JJL 5GIY+noke26oXKEHl4AkcHOwP4cVHBTVDlBV1AZ6qg== X-Received: by 2002:a67:16c1:: with SMTP id 184mr20698442vsw.14.1629576266521; Sat, 21 Aug 2021 13:04:26 -0700 (PDT) MIME-Version: 1.0 References: <20210811114827.27322-1-semen.protsenko@linaro.org> <20210811114827.27322-8-semen.protsenko@linaro.org> In-Reply-To: From: Sam Protsenko Date: Sat, 21 Aug 2021 23:04:14 +0300 Message-ID: Subject: Re: [PATCH v3 7/7] arm64: dts: exynos: Add Exynos850 SoC support To: Rob Herring Cc: Krzysztof Kozlowski , Sylwester Nawrocki , =?UTF-8?Q?Pawe=C5=82_Chmiel?= , Chanwoo Choi , Linus Walleij , Tomasz Figa , Marc Zyngier , Stephen Boyd , Michael Turquette , Jiri Slaby , Greg Kroah-Hartman , Charles Keepax , Ryu Euiyoul , Tom Gall , Sumit Semwal , John Stultz , Amit Pundir , devicetree , linux-arm Mailing List , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Linux Samsung SOC , "open list:SERIAL DRIVERS" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Aug 2021 at 21:42, Rob Herring wrote: > > On Wed, Aug 11, 2021 at 02:48:27PM +0300, Sam Protsenko wrote: > > Samsung Exynos850 is ARMv8-based mobile-oriented SoC. > > > > This patch adds minimal SoC support by including next Device Tree nodes: > > > > 1. Octa cores (Cortex-A55), supporting PSCI v1.0 > > 2. ARM architecture timer (armv8-timer) > > 3. Interrupt controller (GIC-400) > > 4. Pinctrl nodes for GPIO > > 5. Serial node > > > > Signed-off-by: Sam Protsenko > > --- > > Changes in v3: > > - Used generic fixed clock for serial > > > > Changes in v2: > > * Commit message: > > - Documented added dts features instead of CPU features > > > > * exynos850-usi.dtsi: > > - Removed, moved everything to exynos850.dtsi > > > > * exynos850.dtsi: > > - Root node: > > - Added comment about engineering name (Exynos3830) > > - Renamed pinctrl nodes, adding domain names > > - Used hard coded IRQ numbers instead of named constants everywhere > > - Added soc node, moved next nodes there: gic, clock, pinctrls and > > serial > > - Used address-cells=1 for soc node and removed unneeded 0x0 from > > reg properties > > - Moved exynos850-pinctrl.dtsi include line to the end of > > exynos850.dtsi > > - Coding style fixes > > - cpus: > > - Used address-cells=1 for cpus node > > - Renamed cpu@0001 to cpu@1, and so on > > - Left only "arm,cortex-a55" for cpus compatible > > - Renamed reg = <0x0001> to <0x1> for cpus > > - armv8 timer: > > - Add comment about missing HV timer IRQ to armv8 timer node > > - Removed not existing properties from armv8 timer node > > - Fixed cpu number in CPU_MASK() > > - Removed obsolete clock-frequency property > > - GIC: > > - Fixed GIC type to be GIC-400 > > - Fixed size of GIC's 2nd region to be 0x2000 > > - serial node: > > - Hard coded clock number for serial_0 for now; will replace with > > named const once proper clock driver is implemented > > - Removed gate_uart_clk0 clock from serial_0, as that clock is not > > supported in serial driver anyway (yet) > > - clock node: > > - Fixed clock controller node name (@0x12.. -> @12..) > > > > * exynos850-pinctrl.dtsi: > > - Referenced pinctrl nodes instead of defining those again in root node > > - Fixed interrupt-cells (3 -> 2) > > - Fixed USI related comments for pin config nodes > > - Removed decon_f_te_* and fm_lna_en nodes (won't be used) > > - Reordered pin config nodes by pin numbers > > - Improved all comments > > - Used existing named constants for pin-function and pin-pud > > - Fixed node names (used hyphens instead of underscore) > > - Fixed warnings found in W=1 build > > > > .../boot/dts/exynos/exynos850-pinctrl.dtsi | 748 ++++++++++++++++++ > > arch/arm64/boot/dts/exynos/exynos850.dtsi | 261 ++++++ > > 2 files changed, 1009 insertions(+) > > create mode 100644 arch/arm64/boot/dts/exynos/exynos850-pinctrl.dtsi > > create mode 100644 arch/arm64/boot/dts/exynos/exynos850.dtsi > > > > diff --git a/arch/arm64/boot/dts/exynos/exynos850-pinctrl.dtsi b/arch/arm64/boot/dts/exynos/exynos850-pinctrl.dtsi > > new file mode 100644 > > index 000000000000..ba5d5f33e2f6 > > --- /dev/null > > +++ b/arch/arm64/boot/dts/exynos/exynos850-pinctrl.dtsi > > @@ -0,0 +1,748 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Samsung's Exynos850 SoC pin-mux and pin-config device tree source > > + * > > + * Copyright (C) 2017 Samsung Electronics Co., Ltd. > > + * Copyright (C) 2021 Linaro Ltd. > > + * > > + * Samsung's Exynos850 SoC pin-mux and pin-config options are listed as device > > + * tree nodes in this file. > > + */ > > + > > +#include > > +#include > > + > > +&pinctrl_alive { > > + gpa0: gpa0 { > > + gpio-controller; > > + #gpio-cells = <2>; > > + > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + interrupt-parent = <&gic>; > > + interrupts = , > > + , > > + , > > + , > > + , > > + , > > + , > > + ; > > + }; > > + > > + gpa1: gpa1 { > > + gpio-controller; > > + #gpio-cells = <2>; > > + > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + interrupt-parent = <&gic>; > > + interrupts = , > > + , > > + , > > + , > > + , > > + , > > + , > > + ; > > + }; > > + > > + gpa2: gpa2 { > > + gpio-controller; > > + #gpio-cells = <2>; > > + > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + interrupt-parent = <&gic>; > > + interrupts = , > > + , > > + , > > + , > > + , > > + , > > + , > > + ; > > + }; > > + > > + gpa3: gpa3 { > > + gpio-controller; > > + #gpio-cells = <2>; > > + > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + interrupt-parent = <&gic>; > > + interrupts = , > > + , > > + , > > + , > > + , > > + , > > + , > > + ; > > + }; > > + > > + gpa4: gpa4 { > > + gpio-controller; > > + #gpio-cells = <2>; > > + > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + interrupt-parent = <&gic>; > > + interrupts = , > > + , > > + , > > + ; > > + }; > > + > > + gpq0: gpq0 { > > + gpio-controller; > > + #gpio-cells = <2>; > > + > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + }; > > + > > + /* I2C5 (also called CAM_PMIC_I2C in TRM) */ > > + i2c5_bus: i2c5-bus { > > Please name all the pinctrl nodes with some pattern you can match on > once there is a schema. '-pins$' is my suggestion. > Done. This looks much better, the change will be present in new patch series including board dts. Can I ask for more info about schema you mentioned: is there some doc or examples I can check? And is it something generic, or I have to implement it for Exynos850 dts? Thanks! > > + samsung,pins = "gpa3-5", "gpa3-6"; > > + samsung,pin-function = ; > > + samsung,pin-pud = ; > > + samsung,pin-drv = <0>; > > + }; > > + > > + /* I2C6 (also called MOTOR_I2C in TRM) */ > > + i2c6_bus: i2c6-bus { > > + samsung,pins = "gpa3-7", "gpa4-0"; > > + samsung,pin-function = ; > > + samsung,pin-pud = ; > > + samsung,pin-drv = <0>; > > + };