From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1943C7618E for ; Fri, 21 Apr 2023 12:56:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232424AbjDUM4u (ORCPT ); Fri, 21 Apr 2023 08:56:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232406AbjDUM4n (ORCPT ); Fri, 21 Apr 2023 08:56:43 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 980E3974D; Fri, 21 Apr 2023 05:56:34 -0700 (PDT) Received: from [194.95.143.137] (helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ppq3R-0002eq-SZ; Fri, 21 Apr 2023 14:39:57 +0200 From: Heiko Stuebner To: Rob Herring , Krzysztof Kozlowski , Peter Geis , Nicolas Frattaroli Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: rockchip: fix nEXTRST on SOQuartz Date: Fri, 21 Apr 2023 14:39:56 +0200 Message-ID: <6259690.irdbgypaU6@phil> In-Reply-To: <12191318.O9o76ZdvQC@archbox> References: <20230419171731.28641-1-frattaroli.nicolas@gmail.com> <8914603.GXAFRqVoOG@phil> <12191318.O9o76ZdvQC@archbox> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, 21. April 2023, 14:38:48 CEST schrieb Nicolas Frattaroli: > Hello, > > On Friday, 21 April 2023 13:58:58 CEST Heiko Stuebner wrote: > > Hi, > > > > Am Mittwoch, 19. April 2023, 19:17:31 CEST schrieb Nicolas Frattaroli: > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3566-soquartz.dtsi > > > b/arch/arm64/boot/dts/rockchip/rk3566-soquartz.dtsi index > > > ce7165d7f1a1..f589a4fdaccb 100644 > > > --- a/arch/arm64/boot/dts/rockchip/rk3566-soquartz.dtsi > > > +++ b/arch/arm64/boot/dts/rockchip/rk3566-soquartz.dtsi > > > @@ -65,6 +65,17 @@ led_work: led-work { > > > > > > }; > > > > > > }; > > > > > > + nextrst_pin: nextrst-pin-regulator { > > > + compatible = "regulator-fixed"; > > > + enable-active-high; > > > + gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&nextrst_h>; > > > + regulator-always-on; > > > + regulator-boot-on; > > > + regulator-name = "nextrst"; > > > + }; > > > + > > > > I agree with the sentiment and of course the rationale of the change, > > but not necessarily with the implementation ;-) . > > > > Why is this done as a regulator? > > > > If you want the nextrst line to be high, you could just use a gpio-hog > > for the line instead of doing a (fake?-)regulator. > > Simply put: because I didn't know gpio hogs were a thing. I'll send a V2 > to correct this. Thanks for pointing it out! great, thanks :-) Heiko