Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2130475rwr; Fri, 21 Apr 2023 05:00:28 -0700 (PDT) X-Google-Smtp-Source: AKy350bmg/EylHLaiG0COzDwX6pqOtStmWYssHUk5iE84rE+26yzYmCLsihztbUv7CbU23D4w2qM X-Received: by 2002:a05:6a20:394c:b0:f0:69de:6165 with SMTP id r12-20020a056a20394c00b000f069de6165mr5255065pzg.4.1682078428033; Fri, 21 Apr 2023 05:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682078428; cv=none; d=google.com; s=arc-20160816; b=026SE7laBKoYKCkjTwE/NrXzzRrVru0kI279yevnG9v71dP/k1NcgwCGUJrHamao4P V9aVKL6tJDQpyoaX/j4O46FWg/eAKx/kSWR4bg3wIWiWtULcsNpnKquWHkMhtN4sfC+5 FEMu5FwWbIEqkFcISie+0vkEvRs/tggMbRUlFKdAyeaV2Ip7dTZe/ggCAIcURRZvruTy ZdW9n6z4FlkSkt0w6qACKJ9x7X9+ql8lVfOo9mQI2jMvfXq6AtPoASeU+i0Hp/ZvyY3a I40VZGHbqz9LzHWZCxaWYZw7FxJexz9ysf7Px1AK48aK1g1NbD/OBWiFoNSHcg2exHmA uYJQ== 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=WXlujiJMGY3MQOllFt7xDj5+wEDK3/e9TcL5NSG6WOo=; b=03SDYuRtoxDsZ6Pm1YxEMsuUe1YOomgxAsUgSJq7l2F9AhJW7uCsZnkerILs/ucpqu OI2InRbah2eqv1vSVCeBFt4JZeJ/zZjez6xXcWjvHZNhqPN/8+pZl2Ewcx2fHtneGjlV n0uVIH892cXcrDF9ESw43ExFT1R03d4bw/qXN2XTuB1opT7A7Zd/Sqze+Nh+lxNnNh7A pXols2v7veNr8e8g99gsrThqqfqRy1uG+EkktNBb+nI2CjgCK/MXSkUR+5W/tZgEJ1vE Ru1A+nK6+BTqqKsRbq9XpuGZBgAk52uCWeng2RbHxkZ4TdbvqXbVB9sPah+yY7Zpe4nP RPPw== 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 j131-20020a636e89000000b005181efe460csi4159308pgc.138.2023.04.21.05.00.08; Fri, 21 Apr 2023 05:00:28 -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 S231384AbjDUL7J convert rfc822-to-8bit (ORCPT + 99 others); Fri, 21 Apr 2023 07:59:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231398AbjDUL7I (ORCPT ); Fri, 21 Apr 2023 07:59:08 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88503A3; Fri, 21 Apr 2023 04:59:05 -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 1pppPn-0002Lk-Js; Fri, 21 Apr 2023 13:58:59 +0200 From: Heiko Stuebner To: Rob Herring , Krzysztof Kozlowski , Peter Geis , Nicolas Frattaroli Cc: Nicolas Frattaroli , 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 13:58:58 +0200 Message-ID: <8914603.GXAFRqVoOG@phil> In-Reply-To: <20230419171731.28641-1-frattaroli.nicolas@gmail.com> References: <20230419171731.28641-1-frattaroli.nicolas@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" 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 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. For example the px30-ringneck.dtsi does something similar: &gpio2 { /* * The Qseven BIOS_DISABLE signal on the PX30-?Q7 keeps the on-module * eMMC powered-down initially (in fact it keeps the reset signal * asserted). BIOS_DISABLE_OVERRIDE pin allows to re-enable eMMC after * the SPL has been booted from SD Card. */ bios-disable-override-hog { gpios = ; output-high; line-name = "bios_disable_override"; gpio-hog; }; ... }; Thanks Heiko