Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2220675rwr; Fri, 21 Apr 2023 06:10:45 -0700 (PDT) X-Google-Smtp-Source: AKy350YQ3G375hmGLotMgubMpvhNtOw7FIVjkiMJ7sSIXz9GT+Ac+xWzcf2Lfr34LBM/wLVsLl80 X-Received: by 2002:a05:6e02:2167:b0:32a:a8d7:f099 with SMTP id s7-20020a056e02216700b0032aa8d7f099mr3250571ilv.3.1682082645570; Fri, 21 Apr 2023 06:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682082645; cv=none; d=google.com; s=arc-20160816; b=yCCpKv9nVVs5rQo6xPh1tbGsFQ6T/dwP5r4WvTnvXFf/H6SBPhZFJhJ7JjLv7yAgEz kYJAiW54ukCG/XQjiHc/xULUBkKgTSIgnH6rhHc0OPFM61gV+OcJzq5T7s2x2uFJkZHP QMKE04bbsom4/ISdat/pi76FB9yfn3cfpro7vxVALqOBDusYyNuf9mD9W6sEfBCBc4AP jG/4YCQhVEHaPcyfTp4dHw2/3j3/ymrcEQfLCfwWQrtHLEv4xanBxAO6torPQR5yztFx mDVlAEgSXBZCHJM/josG/6X+uiYRjj0eD67El8lig8vq+9EU0TMz9Oq+5uiBS8Dghwz6 1Z8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ucziO0r6DXf9Onjaac05jwGoPDjfrV4y6BUycVsk4V8=; b=IgkNOeQxNTp2j5j1SlEN931mRP8FIXos69d76CZL3Iu8CWNI0qmXwZuD/shMZdMWRi s675B27cbvDcaGglIGkYukhvGmg7S3W1p+wTNvzkGSYDrWgOnFT78vB+mWJOODce5p3a BPhudnNX4qnm8yHZ5q83pZSg8PsZIbeppwGS6yES/49y9b+6zRhBFLiKkEoLWvk1QwXv n8InhKmT1j4+HCk4v29u1Kw2nBedW0HRzlccoPRbK9jXWE7aZ5vfYBy0X2sVcTLNcPQS MSnDT4Q8l27jhHKllEMOGoqu8iqLy6/uqAv9wc5ojTuw90toqjfePNoUJ4ydlJLvUQL5 ERFw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r3-20020a92ce83000000b00310c399a973si4119194ilo.154.2023.04.21.06.10.23; Fri, 21 Apr 2023 06:10:45 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232402AbjDUM4t (ORCPT + 99 others); Fri, 21 Apr 2023 08:56:49 -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" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR 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 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