Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4440708pxb; Thu, 14 Oct 2021 05:21:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylld7IF0OhVN/+Yfh78s8BdY4+iQU8RaOed92lIQuUgJU16xTzWutUe7CaD/yLlGPgIyAh X-Received: by 2002:a17:90a:7d11:: with SMTP id g17mr5886006pjl.150.1634214077068; Thu, 14 Oct 2021 05:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634214077; cv=none; d=google.com; s=arc-20160816; b=iuQR7Jm/hJLlp6/uTKr8GfH0yPeeF/KBAWk+pY6lpI7+TFh3ECul7rIFakywG+Wbb7 5Lzc2ZQ0St4sBz958kwaBKtPjQOJmzMo/Nl6VB80yf9aQHDG798u92tgSlYnfD94MeiN 6tqa3nbl642IvL8d32CQxLTQlxpPLTMrpfZk/XpS5DcjywCarsNEedhr9X7EplLagSIo GRseXtpJWr+QJ5htZpiIMk8yE4I3bH/7PoQJgMvUiaTu0fLhzyGC8umvNh2qOgvVKDnV QPUs73itv41dQC4bff7uvkn6VXcTamYNlbUyAtk56RJOjz0DsN4/WTTnLWNELtn2CAXT I6Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id; bh=EnZvCabbW6EyL0ChH0KIkHkuMtmUjYSAXTXZUfZseh4=; b=lysDqzRuQSLfPRVCPGFUP9aKaoiGi7QubeUlHYQ2dcEVlRrmdJKGnzI8khQxbDy5XC 17zx7B1NMC4pqgKq4p+PrEY6AlAkbd10bROa7pt/SbMRrJwAMWY8eqCqEN7A8X2MaEhX iEzDd1y/YGzoN7JouZ5A2Y5EyApg408OOfthh9VIHKBz46G5tiOBr7QoOcTakgOPMi1M WGVR59e1ss0LWap1tawQiCYW8ibF1tzaWhacmhqSawjbWJqL6uyrbSPkbTcOS9+x4vAE 3QHm0rm1UlYFmgB+4j9Qxq91KASq79IoQBdaxCXNQgSvU5yohmqzQEGmjnLZIC0ngUwm eDdg== 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 k6si13554498pjt.7.2021.10.14.05.21.01; Thu, 14 Oct 2021 05:21:17 -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 S230229AbhJNL5i convert rfc822-to-8bit (ORCPT + 99 others); Thu, 14 Oct 2021 07:57:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbhJNL5h (ORCPT ); Thu, 14 Oct 2021 07:57:37 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10998C061570 for ; Thu, 14 Oct 2021 04:55:33 -0700 (PDT) Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mazKW-0007wE-My; Thu, 14 Oct 2021 13:55:24 +0200 Received: from pza by lupine with local (Exim 4.92) (envelope-from ) id 1mazKW-0004tt-6T; Thu, 14 Oct 2021 13:55:24 +0200 Message-ID: <838af7b574968fc55d517a3becede5fa106ed896.camel@pengutronix.de> Subject: Re: [PATCH v3 1/2] dt-bindings: reset: Add lan966x support From: Philipp Zabel To: Horatiu Vultur , robh+dt@kernel.org, andrew@lunn.ch, lars.povlsen@microchip.com, Steen.Hegelund@microchip.com, UNGLinuxDriver@microchip.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Thu, 14 Oct 2021 13:55:24 +0200 In-Reply-To: <20211013073807.2282230-2-horatiu.vultur@microchip.com> References: <20211013073807.2282230-1-horatiu.vultur@microchip.com> <20211013073807.2282230-2-horatiu.vultur@microchip.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-10-13 at 09:38 +0200, Horatiu Vultur wrote: > This adds support for lan966x. > > Signed-off-by: Horatiu Vultur > --- > .../devicetree/bindings/reset/microchip,rst.yaml | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/reset/microchip,rst.yaml b/Documentation/devicetree/bindings/reset/microchip,rst.yaml > index 370579aeeca1..fb170ed2c57a 100644 > --- a/Documentation/devicetree/bindings/reset/microchip,rst.yaml > +++ b/Documentation/devicetree/bindings/reset/microchip,rst.yaml > @@ -20,7 +20,11 @@ properties: > pattern: "^reset-controller@[0-9a-f]+$" > > compatible: > - const: microchip,sparx5-switch-reset > + oneOf: > + - items: > + - const: microchip,sparx5-switch-reset > + - items: > + - const: microchip,lan966x-switch-reset > > reg: > items: > @@ -37,6 +41,14 @@ properties: > $ref: "/schemas/types.yaml#/definitions/phandle" > description: syscon used to access CPU reset > > + cuphy-syscon: > + $ref: "/schemas/types.yaml#/definitions/phandle" > + description: syscon used to access CuPHY Can this be used on sparx5? Is it optional on lan966x? > + phy-reset-gpios: > + description: used for release of reset of the external PHY > + maxItems: 1 > + > required: > - compatible > - reg I'd like somebody to reassure me that putting the CuPHY reset and external PHY GPIO reset in the reset controller is the right thing to do. It looks fine to me, but I'm not sure if these should rather be in separate phy nodes that are referenced from the switch. regards Philipp