Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp747473rwn; Thu, 8 Sep 2022 08:15:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR6PsH8+kHnNjDL7KZ7Uf/5fEiW6an2t2Y2NrQsN2KHpXI8W8DyK2lyUmFK6eK2N9muW5oDn X-Received: by 2002:aa7:c255:0:b0:44e:f425:43ab with SMTP id y21-20020aa7c255000000b0044ef42543abmr7616201edo.374.1662650126323; Thu, 08 Sep 2022 08:15:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662650126; cv=none; d=google.com; s=arc-20160816; b=h6DaRZb5MzUP8jfAY5HxyB4iQc6rIn+YwqSFASld3OiFErhPeGd8VEMeYAq5x3fMvq v50Tn8wI9wOoOvWe34mUjC3ou7uN0a5mW/nRdpDANjNxrg1I8ki3SHSTNVk7+q4RV0fN UOupHmNZweoOjfI+0COR+MeF0JZ/zaf61DUiOsy2j0mcq8b39ieOQjvY0Iqdzv837jIx PkHj6J4CXqFmEmI6I9yjGIxjAfCVO+8xBHNc4wJ55Z6J9ForL+x+p/SWIIN/13Jn6lUA pS+I+xM9rkRI/An4DyY9u5EWrt2/3Xv54d+qxJqNPAWKTADg92Vgx0GkEJDl4kyt5kud 7SVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=rs4Y8ca1KSOBzQSaXKtzIQIiEFtBZd3L46WD5pSs4zk=; b=RJQT7xj547Qstf2wPv3JJPMSRfq8B2eI5OZGTlqWJa0zel0+EgWBvTKBBOBkDag1FG Q9eQ6FBWtBFp8uh/EHBZN2ln7dKJgo4RaEKkMWQMlH0/89jZSdeoAHuZruxzT0oUq77p kcKa1zKbxpmMygRiNZyS3Rzitry4fvPOkX3kqvjGmU58Af9ofR8t/+O7Sfs7li8YGq9X Shw6kvYmGJ+P51k/TxHmwHMUwrwMt2iEcTBEH5+IJGRgvT/2qwY1H3dYPcc3JZJy4tar 19Q+zFf6uoMRf4Mk5S0Sn/NmtNd6oXgLcToqPdporgnhohHgtSgQgB7L+ghEKrd5oS2N hnfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=evygGzat; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn14-20020a17090794ce00b00741521e9a3esi2452211ejc.235.2022.09.08.08.14.59; Thu, 08 Sep 2022 08:15:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=evygGzat; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232592AbiIHO7O (ORCPT + 99 others); Thu, 8 Sep 2022 10:59:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231822AbiIHO7L (ORCPT ); Thu, 8 Sep 2022 10:59:11 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42E021223B4 for ; Thu, 8 Sep 2022 07:59:10 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id z20so20233126ljq.3 for ; Thu, 08 Sep 2022 07:59:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=rs4Y8ca1KSOBzQSaXKtzIQIiEFtBZd3L46WD5pSs4zk=; b=evygGzatLG2WYoP289jHxz1e9Ntk3sXGNMF4pNktzLUF9JMbu9dsXox9I3rbOoQ1jP rvjU0AO/hN0keZya3XNPzLqYdicHkQHjkB3i3TFgAYmOMVj720ceITYVbywuquGq+Rv+ WUkSyOu30x5hxBFCC+MPvtjm1GN6QBC22cQr1CL3W0WPX9xJ2B08Odm+SpCVSsSVp0C1 jo35Xl+h7fbg6rdzb+vazjcELg40xfdIvjGbC5zXNp5OdO/G3ivHQVxywXmG0M/UrzSy SuYKUjzXT8rxOf6EewolDIBxmvvgwA2jXGL1XblQQS1ApLAkC+3iZITR20OZLrN5Qxvj RHNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=rs4Y8ca1KSOBzQSaXKtzIQIiEFtBZd3L46WD5pSs4zk=; b=gg2pcpVnKFnCKK7Fi+IHiRltV845S7CvVFUW0VlqkR6ox3p7T1n+YvdoIDAxRvVxKH 5iogGhKcjk9zDIhy/iMKh+EWJvd+Izcm185fYKbF2b7hT39qnzRwZJ66W3iy0OeCGLtd frd70ofpOVdmKdgJp3My3mYTGHu4vy3n5mvIOQwF+FauudsusLnq5CUM7n1XR9HLoYAP 6xlbKDxCKoKRGgb0WfulHmCfkJCxVmhwLk/tHGXrKf/KA2rcgfS6+5/B5D5SUahFg2eB 0hYBughJmigDE4Vh3+lXL/dHxDhoXIOzS2l5RJYaVj5eYbcrkW6u625SEvGpHFc5JqVu 1t1A== X-Gm-Message-State: ACgBeo02SP8K45RKz17efOMMd3erys5/8dGTMaogFcLGlCGM1FBF9CKC VSfaU/eaFwpGg/lw7OwXTku4oA== X-Received: by 2002:a05:651c:211d:b0:266:20b6:ae57 with SMTP id a29-20020a05651c211d00b0026620b6ae57mr2527537ljq.108.1662649147104; Thu, 08 Sep 2022 07:59:07 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id l18-20020a2e7012000000b00261ca0f940esm3097280ljc.62.2022.09.08.07.59.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Sep 2022 07:59:06 -0700 (PDT) Message-ID: Date: Thu, 8 Sep 2022 16:59:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v6 2/2] ARM: dts: at91: Adding SAMA5D3-EDS board Content-Language: en-US To: Jerry.Ray@microchip.com, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, Nicolas.Ferre@microchip.com, alexandre.belloni@bootlin.com, Claudiu.Beznea@microchip.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220902192236.14862-1-jerry.ray@microchip.com> <20220902192236.14862-2-jerry.ray@microchip.com> <42c193c8-5edf-4b00-9f76-34b9cc947dc8@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/09/2022 16:50, Jerry.Ray@microchip.com wrote: >>>>> The SAMA5D3-EDS board is an Ethernet Development Platform allowing >>>>> for evaluating many Microchip ethernet switch and PHY products. >>>>> Various daughter cards can connect up via an RGMII connector or an RMII connector. >>>>> >>>>> The EDS board is not intended for stand-alone use and has no >>>>> ethernet capabilities when no daughter board is connected. As such, >>>>> this device tree is intended to be used with a DT overlay defining the add-on board. >>>>> To better ensure consistency, some items are defined here as a form >>>>> of documentation so that all add-on overlays will use the same terms. >>>>> >>>>> Google search keywords: "Microchip SAMA5D3-EDS" >>>>> >>>>> Signed-off-by: Jerry Ray >>>>> --- >>>>> v5->v6: >>>>> - Replaced underscores in names where I can, improving naming. >>>>> v4->v5: >>>>> - patch now applies to v6.0-rc2 >>>>> v3->v4: >>>>> - Fixed regulators as necessary to get the board to boot from SD Card. >>>>> v2->v3: >>>>> - Alphabetized pinctrl entries. >>>>> - cleaned up a warning in the regulators section. >>>>> - License tweaked to 'OR MIT' >>>>> - Included Makefile change >>>>> v1->v2: >>>>> - Modified the compatible field in the device tree to reflect Microchip >>>>> Ethernet Development System Board. >>>>> --- >>>>> arch/arm/boot/dts/Makefile | 1 + >>>>> arch/arm/boot/dts/at91-sama5d3_eds.dts | 309 >>>>> +++++++++++++++++++++++++ >>>>> 2 files changed, 310 insertions(+) >>>>> create mode 100644 arch/arm/boot/dts/at91-sama5d3_eds.dts >>>>> >>>>> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile >>>>> index 05d8aef6e5d2..e92e639a2dc3 100644 >>>>> --- a/arch/arm/boot/dts/Makefile >>>>> +++ b/arch/arm/boot/dts/Makefile >>>>> @@ -61,6 +61,7 @@ dtb-$(CONFIG_SOC_SAM_V7) += \ >>>>> at91-sama5d2_icp.dtb \ >>>>> at91-sama5d2_ptc_ek.dtb \ >>>>> at91-sama5d2_xplained.dtb \ >>>>> + at91-sama5d3_eds.dtb \ >>>>> at91-sama5d3_ksz9477_evb.dtb \ >>>>> at91-sama5d3_xplained.dtb \ >>>>> at91-dvk_som60.dtb \ >>>>> diff --git a/arch/arm/boot/dts/at91-sama5d3_eds.dts >>>>> b/arch/arm/boot/dts/at91-sama5d3_eds.dts >>>>> new file mode 100644 >>>>> index 000000000000..b4fe1c5f2997 >>>>> --- /dev/null >>>>> +++ b/arch/arm/boot/dts/at91-sama5d3_eds.dts >>>>> @@ -0,0 +1,309 @@ >>>>> +// SPDX-License-Identifier: GPL-2.0+ OR MIT >>>>> +/* >>>>> + * at91-sama5d3_eds.dts - Device Tree file for the SAMA5D3 Ethernet >>>>> + * Development System board. >>>>> + * >>>>> + * Copyright (C) 2022 Microchip Technology Inc. and its >>>>> +subsidiaries >>>>> + * >>>>> + * Author: Jerry Ray */ /dts-v1/; >>>>> +#include "sama5d36.dtsi" >>>>> + >>>>> +/ { >>>>> + model = "SAMA5D3 Ethernet Development System"; >>>>> + compatible = "microchip,sama5d3-eds", "atmel,sama5d36", >>>>> + "atmel,sama5d3", "atmel,sama5"; >>>>> + >>>>> + chosen { >>>>> + stdout-path = "serial0:115200n8"; >>>>> + }; >>>>> + >>>>> + clocks { >>>>> + slow_xtal { >>>> >>>> No underscores in node names. Override by label. >>>> >>>>> + clock-frequency = <32768>; >>>>> + }; >>>>> + >>>>> + main_xtal { >>>>> + clock-frequency = <12000000>; >>>>> + }; >>>>> + }; >>>>> + >>>>> + gpio { >>>>> + compatible = "gpio-keys"; >>>>> + >>>>> + pinctrl-names = "default"; >>>>> + pinctrl-0 = <&pinctrl_key_gpio>; >>>>> + >>>>> + button-3 { >>>>> + label = "PB_USER"; >>>>> + gpios = <&pioE 29 GPIO_ACTIVE_LOW>; >>>>> + linux,code = <0x104>; >>>>> + wakeup-source; >>>>> + }; >>>>> + }; >>>>> + >>>>> + memory@20000000 { >>>>> + reg = <0x20000000 0x10000000>; >>>>> + }; >>>>> + >>>>> + vcc_3v3_reg: buck-regulator-1 { >>>> >>>> Keep consistent prefix or suffix, so: >>>> regulator-buck-1 >>>> >>>>> + compatible = "regulator-fixed"; >>>>> + regulator-name = "VCC_3V3"; >>>>> + regulator-min-microvolt = <3300000>; >>>>> + regulator-max-microvolt = <3300000>; >>>>> + regulator-always-on; >>>>> + }; >>>>> + >>>>> + vcc_2v5_reg: ldo-regulator-2 { >>>> >>>> regulator-ldo-1 >>>> (why numbering of LDO regulators starts from 2? keep some sense in >>>> this) >>>> >>>> >>> >>> There are N regulators on the board, so they are numbered 1 thru N. >>> Regulator 2 is regulator 2 whether it's a buck or LDO. >> >> So if this is supposed to match board schematics (which is good idea), then maybe just "regulator-2"? The point is to have same generic name and customize either prefix or suffix, but not both. >> >> Best regards, >> Krzysztof >> > > I prefer names to be descriptive, but I suppose I can have the name generic and add a comment into the dts file. > However, the comment doesn't make it into the loaded device tree. Would you be okay with "regulator-2-ldo"? You have the descriptive name in the regulator-name property, but ok, can be in node name as well. Best regards, Krzysztof