Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10283787rwb; Fri, 25 Nov 2022 03:11:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf7l/NRCXYO5V1/5LTZSK0cCwVvF/LGAM46DPrVMaaHZC6kZlz2GK8KFmb0JiWtytO3Sq9E5 X-Received: by 2002:a17:906:8c4:b0:7ae:fbe6:e7ca with SMTP id o4-20020a17090608c400b007aefbe6e7camr31899150eje.408.1669374706199; Fri, 25 Nov 2022 03:11:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669374706; cv=none; d=google.com; s=arc-20160816; b=LUBU3Q2lz5eZhLkebr3nzJlA1XFMDKXeRjtJYpnKZAXYWNCgMO4eIzjFk18Jovdj6J 9dMSitMzSB4Uu2+33blk4ZeYik8Uu8bBGleOau23l4QlS4+yGdsmFwUA0ZzAnR/vfRqK 55KU9JnuHUSuqzO5C18dPgZNn3C+boXKHxG2DeBETAH1nScxzGVrPB/1uv5svc9BYr5I agTyq11y/g9uCUwTjBKWUh0XczoG7Faf8+pELWDdT76iCQTNLtWKlKSxs8drK/kSUhrT A3/q1KM8uoRPR4ocabxVVeKFvU4sZr7h+T2vAMJ3dN+doST+dGhcmJ5p78agGw4dVN0Y bNhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Mto4H4xIVyTEposPQL1N7ZydeoSLlLyT4D//cTjqEQk=; b=WdSKxXBtGFAV/2+o6UcJZ8lD6+TqfiR+I+Nfz7P8vDWYzjVwQbCambcdoi/3j/LatW M51RJbj5agayaszTgKkjYT4wXrBBsk0ra2aMnvUp4D+J2qFzbcp+3oX4F0RzXeK5E7iq blmffjXhy/TeZHfkALaDezi1Bit1ZzPHKA34ySUpVxFjXyacxMcbldJkupC4NAobzIhq tg6BiQQlC8tN+8Blxv1s3r4jpuZqFaS+qmgVDXQmK/Zq/jz1zpXfuR2L0BFPDIhOMDh+ R8Y8/hVGyFllzZcxDMbgdQQdbt/Y4NnSnqJ+E4AwXhK+wZ8z/lTQsHRIoRb8YY8oXVVR Jpxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=gQZAoOLF; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a170906794f00b007ade664ee53si3120342ejo.148.2022.11.25.03.11.21; Fri, 25 Nov 2022 03:11:46 -0800 (PST) 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=@microchip.com header.s=mchp header.b=gQZAoOLF; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230076AbiKYJ6N (ORCPT + 86 others); Fri, 25 Nov 2022 04:58:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbiKYJ5s (ORCPT ); Fri, 25 Nov 2022 04:57:48 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 947372C6; Fri, 25 Nov 2022 01:56:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1669370215; x=1700906215; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=lydKM6kU5fun6DC5IqmhCzMnSTfb8qo1b4UPgphoXdk=; b=gQZAoOLFd+fPbYuAmmmzfQI59cX8qk5ohV6geGhmozUKLK69UyZjYCD/ aUd4fmE8C40nhkSt+utaD3kEpi1sZdtKCR2Mwb2bYuC/c0RZdAn2GmTFo To1HPLrxCXVGcFY2tGDfKmuwYAv5bbsBu+dXQ8SUPjeNw47S9Z7QMkaSD bB1zAp87cC6zAp4IpFqShBk2BNEWmrzY1S3J7WuPNoVsLvcVE7cTI0C9j amXhur/t7vqXkegyKarLKepi9j5X46Ow9qPsta9bQzbt58ktHAVVMpGE4 KgiX9RYZp5q6xTTeeA7deZ/APQLmOfN40H81zTFZJ9+j5l8gByH9x4k2D g==; X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="190496059" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Nov 2022 02:56:54 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Fri, 25 Nov 2022 02:56:53 -0700 Received: from localhost (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Fri, 25 Nov 2022 02:56:53 -0700 Date: Fri, 25 Nov 2022 11:01:44 +0100 From: Horatiu Vultur - M31836 To: Claudiu Beznea - M18063 CC: "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , Nicolas Ferre - M43238 , UNGLinuxDriver Subject: Re: [PATCH] ARM: dts: lan966x: Add otp support Message-ID: <20221125100144.332tizam7tonqqtz@soft-dev3-1> References: <20220916194946.2869510-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 The 11/25/2022 09:23, Claudiu Beznea - M18063 wrote: > Hi, Horatiu, Hi Claudiu, > > On 16.09.2022 22:49, Horatiu Vultur wrote: > > Add OTP (one time programmable) support. > > The both lan966x SocS (lan9662 and lan9668) have the same OTP IP. > > If OTP IP is the same for both lan966x is there a reason you've added > compatibles for each SoC variants? When I was adding the device tree binding, Krzystof mention not to have any wilcards in compatible string [0]. [0] https://lore.kernel.org/lkml/550e652e-4541-c1e6-33a7-d5555f0cb266@linaro.org/ > > Thank you, > Claudiu Beznea > > > > > Signed-off-by: Horatiu Vultur > > --- > > arch/arm/boot/dts/lan966x.dtsi | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi > > index 23665a0429906..784caba369485 100644 > > --- a/arch/arm/boot/dts/lan966x.dtsi > > +++ b/arch/arm/boot/dts/lan966x.dtsi > > @@ -163,6 +163,11 @@ port7: port@7 { > > }; > > }; > > > > + otp: otp@e0021000 { > > + compatible = "microchip,lan9668-otpc", "microchip,lan9662-otpc"; > > + reg = <0xe0021000 0x300>; > > + }; > > + > > flx0: flexcom@e0040000 { > > compatible = "atmel,sama5d2-flexcom"; > > reg = <0xe0040000 0x100>; > -- /Horatiu