Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1284277lfc; Wed, 1 Jun 2022 14:12:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxr7MO3lpFGRb0uKpR3+f1DbKNbIzmwaY/uXSFjUynCCbkA2yF9kgqinWgyxiQGPg77GOyn X-Received: by 2002:a62:ab17:0:b0:51b:bf44:a9aa with SMTP id p23-20020a62ab17000000b0051bbf44a9aamr1746872pff.50.1654117950116; Wed, 01 Jun 2022 14:12:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654117950; cv=none; d=google.com; s=arc-20160816; b=vkcrwkDN8uOh2i4GkdsobvDFkFPm0Ar6MKm76PgyXWLmx1JKgf+iFpkg+CM8y1aPdR /fryurg1gESXjX7acwwB4Aw3fTwzUCdxjldl+4Z9m0wXjCaEDN5iXNzm7TRksR0aFJnn B3sXvfdnw0Kaw4QmY6rwfShKhKGDbA+tR/iWctba+aFSiCQIkTMMEIFujsLka/2GX45Y +TqECr1zvwGiCP2iCts529m8hsFE83mpjGURJXcCd0DsZk/OFgCdMIlb4vz5ow5ZHkh1 e8Mtx0TZSzmbC7DlXQwL2//2FSvPtFzIbyAhYVve2nwcu62ikU0ubekEETYC+M3Isgnn +i8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Wv+lZyCaE5kbkLZpqQvi2xp+OoDSqLcG7HNruSmDfC8=; b=W5OzEVgd0Pkp6z67wmu3cKUskWxgu9J/yPXeJ2S6YN9nK7ZtJa+LUGWhCTpT/+IZnP fh/FjEtKaADKxBGeuG0dMYd04YS8bPh7bQoRJ4+oxxabnjdo3C42cqgZkeJruLV9RXia AATYEgoObGRC4lLw2BorqWa/u5FsWOHyVyt9hh33U/P0QBy59iLO8rT1n1CJuMb4S/HN 3CeayPdhC1KDT8YDEN5bJwx+Oj+M5LWdmR5eMgYtP0FgGz2xR4JjS2bhTdGbFklRZ6vL lveLKz89VyIgQbzrjsIHfCRCLm17YFlddikXHhKSxQjQgy78EiDDUdDRu8y7cQzXhrVL nILg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=XNWi1d1o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id lx12-20020a17090b4b0c00b001e67c8309a5si903129pjb.9.2022.06.01.14.12.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:12:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=XNWi1d1o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DE9D62D89B8; Wed, 1 Jun 2022 13:05:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344248AbiEaMoD (ORCPT + 99 others); Tue, 31 May 2022 08:44:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbiEaMoB (ORCPT ); Tue, 31 May 2022 08:44:01 -0400 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 844866D87E for ; Tue, 31 May 2022 05:44:00 -0700 (PDT) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-30c2f288f13so63210757b3.7 for ; Tue, 31 May 2022 05:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Wv+lZyCaE5kbkLZpqQvi2xp+OoDSqLcG7HNruSmDfC8=; b=XNWi1d1oeE0HDSgunP6m9EOL2loWM0Nn14vYZ7RDHJApDMHysMiN9E9GxGPeft5nSa BTgo7Ek7+TpqeLvM+63oxN+U81RPwTIV96z04d7ugi/hj1bv9WfjpfefwvGxP+4Rt1DV 4almvcFW6ZKDRTJWC/ranIrKv9t3ENmkKE/Z2a/Vl3yPIxFDZXTT+O8JJHNedz9ZGxCI K/xeYzvmmRJcY0+z5wO+eZPJ/cpNZXAXr70FT0SdPea0rDxWWoxMo3DZ3ks6lHCc7+Ty dhl1y8aMn2pppa3+ZjvqABteKAeQ/1DDZZkj0VSPfqXa3uTZO6uPE0+QSLJxhdfIy5ja Zf2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Wv+lZyCaE5kbkLZpqQvi2xp+OoDSqLcG7HNruSmDfC8=; b=qin38GCirZl4OayksvC34jhyXnp9cneoHg2kdfSsKsJGKc3h3VvYkStfCtNSXeVxHw 6kanD3TN6uDyKrStC567qz1vTMBeoXLb8nSxmdk4gpf2ZeweooB+85sIBeyhqsL3x+Ke UF5hYVsWPrJ0xzUGCGdr1BNOzWVW8TYEj1ESkWlaWfdyDiszUPLrJi9Ysh0bXZLlvhdz 90edHnhGub96/YTOypg6RW4rV9H2JJt8gJfl0dU9eZuu1lOQRbDOvmei6GAhwY/geSBQ eWTquvmqb9HP6sZKNE1PZAzqZdpYKFjuWMvXxQH6VDw9UxZs8ztMN3vznVGFMhQmOq+t vwQQ== X-Gm-Message-State: AOAM530iP2/LNH86ydDt6TUtu9HmVUpRcJKRB3YLokDlXZG8hrnQg/Z4 slkzDA5TiiB0mj0WYbnLVkhyRPaKSLcrj0l2DWWlUA== X-Received: by 2002:a81:ccd:0:b0:30c:2ad6:925b with SMTP id 196-20020a810ccd000000b0030c2ad6925bmr15444888ywm.498.1654001039770; Tue, 31 May 2022 05:43:59 -0700 (PDT) MIME-Version: 1.0 References: <20220530130839.120710-1-pan@semihalf.com> <20220530130839.120710-2-pan@semihalf.com> <73f01056-e674-d910-1c0d-98c4001f909d@linaro.org> In-Reply-To: <73f01056-e674-d910-1c0d-98c4001f909d@linaro.org> From: =?UTF-8?Q?Pawe=C5=82_Anikiel?= Date: Tue, 31 May 2022 14:43:49 +0200 Message-ID: Subject: Re: [PATCH 1/3] dts: socfpga: Change Mercury+ AA1 devicetree to header To: Krzysztof Kozlowski Cc: SoC Team , Linux ARM , DTML , Linux Kernel Mailing List , Arnd Bergmann , Olof Johansson , Rob Herring , krzysztof.kozlowski+dt@linaro.org, Dinh Nguyen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thank you for the review, I'm thinking of splitting this commit into several smaller ones: - remove all status =3D "okay" things and i2c aliases - remove sdmmc-ecc node (it's a part of the Arria 10 SoC, not the mercury) - add atsha204a node - add copyright header - style fixes (phy reg, memory) What do you think? Please see my other comments below. On Mon, May 30, 2022 at 8:55 PM Krzysztof Kozlowski wrote: > > On 30/05/2022 15:08, Pawe=C5=82 Anikiel wrote: > > The Mercury+ AA1 is not a standalone board, rather it's a module > > with an Arria 10 SoC and some peripherals on it. Remove everything that > > is not strictly related to the module. > > Subject has several issues: > 1. Use prefix matching subsystem (git log --oneline) Just to make sure, are you referring to the ARM: prefix? > 2. You are not changing here anything to header. Header files have > different format and end with .h. This is a DTSI file. Yes, I meant dtsi. > > > > > Signed-off-by: Pawe=C5=82 Anikiel > > Thank you for your patch. There is something to discuss/improve. > > > --- > > arch/arm/boot/dts/Makefile | 1 - > > ...1.dts =3D> socfpga_arria10_mercury_aa1.dtsi} | 68 ++++-------------= -- > > 2 files changed, 14 insertions(+), 55 deletions(-) > > rename arch/arm/boot/dts/{socfpga_arria10_mercury_aa1.dts =3D> socfpga= _arria10_mercury_aa1.dtsi} (58%) > > > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > > index edfbedaa6168..023c8b4ba45c 100644 > > --- a/arch/arm/boot/dts/Makefile > > +++ b/arch/arm/boot/dts/Makefile > > @@ -1146,7 +1146,6 @@ dtb-$(CONFIG_ARCH_S5PV210) +=3D \ > > s5pv210-torbreck.dtb > > dtb-$(CONFIG_ARCH_INTEL_SOCFPGA) +=3D \ > > socfpga_arria5_socdk.dtb \ > > - socfpga_arria10_mercury_aa1.dtb \ > > socfpga_arria10_socdk_nand.dtb \ > > socfpga_arria10_socdk_qspi.dtb \ > > socfpga_arria10_socdk_sdmmc.dtb \ > > diff --git a/arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dts b/arch/a= rm/boot/dts/socfpga_arria10_mercury_aa1.dtsi > > similarity index 58% > > rename from arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dts > > rename to arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dtsi > > index a75c059b6727..fee1fc39bb2b 100644 > > --- a/arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dts > > +++ b/arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dtsi > > @@ -1,57 +1,38 @@ > > // SPDX-License-Identifier: GPL-2.0 > > -/dts-v1/; > > - > > +/* > > + * Copyright 2022 Google LLC > > + */ > > How is this related to the patch? I'll move this change to a seperate commit. > > > #include "socfpga_arria10.dtsi" > > > > / { > > - > > - model =3D "Enclustra Mercury AA1"; > > - compatible =3D "enclustra,mercury-aa1", "altr,socfpga-arria10", "= altr,socfpga"; > > - > > aliases { > > ethernet0 =3D &gmac0; > > serial1 =3D &uart1; > > - i2c0 =3D &i2c0; > > - i2c1 =3D &i2c1; > > - }; > > - > > - memory@0 { > > - name =3D "memory"; > > - device_type =3D "memory"; > > - reg =3D <0x0 0x80000000>; /* 2GB */ > > }; > > > > chosen { > > stdout-path =3D "serial1:115200n8"; > > }; > > -}; > > > > -&eccmgr { > > - sdmmca-ecc@ff8c2c00 { > > - compatible =3D "altr,socfpga-sdmmc-ecc"; > > - reg =3D <0xff8c2c00 0x400>; > > - altr,ecc-parent =3D <&mmc>; > > - interrupts =3D <15 IRQ_TYPE_LEVEL_HIGH>, > > - <47 IRQ_TYPE_LEVEL_HIGH>, > > - <16 IRQ_TYPE_LEVEL_HIGH>, > > - <48 IRQ_TYPE_LEVEL_HIGH>; > > + memory@0 { > > + name =3D "memory"; > > + device_type =3D "memory"; > > + reg =3D <0x0 0x80000000>; /* 2GB */ > > }; > > }; > > > > &gmac0 { > > phy-mode =3D "rgmii"; > > - phy-addr =3D <0xffffffff>; /* probe for phy addr */ > > + phy-handle =3D <&phy3>; > > > > max-frame-size =3D <3800>; > > - status =3D "okay"; > > - > > - phy-handle =3D <&phy3>; > > > > mdio { > > #address-cells =3D <1>; > > #size-cells =3D <0>; > > compatible =3D "snps,dwmac-mdio"; > > phy3: ethernet-phy@3 { > > + reg =3D <3>; > > txd0-skew-ps =3D <0>; /* -420ps */ > > txd1-skew-ps =3D <0>; /* -420ps */ > > txd2-skew-ps =3D <0>; /* -420ps */ > > @@ -64,35 +45,23 @@ phy3: ethernet-phy@3 { > > txc-skew-ps =3D <1860>; /* 960ps */ > > rxdv-skew-ps =3D <420>; /* 0ps */ > > rxc-skew-ps =3D <1680>; /* 780ps */ > > - reg =3D <3>; > > This and few other changes (like memory) are not related to the commit. > Do not mix different cleanups together. l'll put the cleanup changes into a seperate commit. > > > }; > > }; > > }; > > > > -&gpio0 { > > - status =3D "okay"; > > -}; > > - > > -&gpio1 { > > - status =3D "okay"; > > -}; > > - > > -&gpio2 { > > - status =3D "okay"; > > -}; > > Why removing all these? Aren't they available on the SoM? The same > question applies to several other pieces, for example UART and USB - > aren't these part of SoM? I'm removing them from here, but adding them to socfpga_arria10_chameleonv3= .dts. I think that enabling them should be done in the base board's dts, as the connections go to the base board. The Chameleon v3 has a USB port, but a different base board might not have one. > > > - > > &i2c1 { > > - status =3D "okay"; > > + atsha204a: atsha204a@64 { > > How is this change related at all to what you described in commit? There > was no atsha204a before. As previously mentioned, I'll move this change to a seperate commit. > > > + compatible =3D "atmel,atsha204a"; > > + reg =3D <0x64>; > > + }; > > + > > isl12022: isl12022@6f { > > - status =3D "okay"; > > compatible =3D "isil,isl12022"; > > reg =3D <0x6f>; > > }; > > }; > > > > Best regards, > Krzysztof Regards, Pawe=C5=82