From patchwork Thu Sep 5 17:37:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?S3J5xaF0b2YgxIxlcm7DvQ==?= X-Patchwork-Id: 13792756 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3ECBCCD6E74 for ; Thu, 5 Sep 2024 17:39:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=oxD/2bn0T/dFXzCPoiChAlaQk6ipCE9icGUJFuoXA1Q=; b=toLn1Un7FO9HrIYcGC60nw0rN0 Kq62fKzMls3xgS0l/BV/vwN5eJ9swNy2yE56uhzIVcYAvF7heHTNwKZ7sNC/ubYatOm0rfG8vuHHn Tz613lUfCFTtSAnR7YYgMOQLkTCn7WWIr97K5jmPnSmKhf/2ZlMdUHKn2oCGqdggjbqVJlF0Mmwj2 7Mkl9R0C0r9CCUAIezilNAe+QRY4X+nssoWpiyd9nF0zmC294kVYhj+GcKLQjRcXB821x1nMZn6Dj IhBYIWAXPK6cGMQTKR7F8Kwbte+EsWIez5acjXotwMWBVDrG+mle/SGi8Igw8ALGl16yJan4JgSrC ogGJzDuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smGS4-00000009Jtb-2N4v; Thu, 05 Sep 2024 17:39:24 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smGQ8-00000009JTt-3Hs3 for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2024 17:37:26 +0000 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-374c84dcc64so717894f8f.1 for ; Thu, 05 Sep 2024 10:37:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725557843; x=1726162643; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=oxD/2bn0T/dFXzCPoiChAlaQk6ipCE9icGUJFuoXA1Q=; b=Q+bO7CiFp6KkpsS3GLf9mPWOHUAqBeCA8XysJt9H/Nnb2dT2+YmYSGU8rAALRrJJD6 tpk2nKwZ7GbzXvEFO4Wpeq+yy96E5CSJc0fjy0kjvXKEKBSFSXW140Ery35Ffi+DA9yz lx1KUiEV+pSUXvIShcAz6P/poSM0ZURZbpv8321veUmtvAxsA8Pn45xDvKzMQ9Zx4szG oo+cwft19FzEO44W2TeCrorWZgbXRzmh3H97mp7lig0unOoL5iNidC0liIc0XA+g10vU /uHbKrPAUOVTwoMS5uDwDLHd7YhHC9n2tLAQeYfruo2SM8BjOW6Kmho/TUxdx/lUxvfo +Pwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725557843; x=1726162643; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oxD/2bn0T/dFXzCPoiChAlaQk6ipCE9icGUJFuoXA1Q=; b=GP9AHQnILubs0qPFxoWWHEQCq//q7regNuiOd4u44Zd0oKdX3DDmrh+Td7Uy+uvKo1 raezU00cwCsPDBrJurVJ/RK6Y66TwHjL+UA9LyNPBDHVXC25oR+LnWTfV05HcF2UHXhQ 15uJUvUimfPbCvrlejzbQg6d8BoBnN2I1PiwKsaMnWy/cO+vUWPJ7hf/qDsm8TJWpnXo 5aGV0nIunYPOj0/USQbTyZUrrY7Uf0G3H0bIiqBWksnE7xvJuRRa9+ghD2vUUyZ+34vA xJQeW7BbBD8x4PF1Oh8+VcWBpRMXeHnhZXvntyFLTE8cM9M94SkISljlVvt9u5rzpuf2 fy0A== X-Forwarded-Encrypted: i=1; AJvYcCWOD7+IOw8ytNcCZBkBPZCnol1XyrWDu66kzxKBNbItZEx1xQ76DQ1TRHkjkkyCzMBTTK1FffFUJDQmEi8W+5zz@lists.infradead.org X-Gm-Message-State: AOJu0Ywi5bDBHihtoz3RRIH0o1XXbfHx5ctIGcs6zZcgRGUY7UJA28aG mnRujhV3JgcEWNkxaAvfAsFaYied+gUAqJNSRpp7wpyZHBSz4/wq X-Google-Smtp-Source: AGHT+IEIDulTsaaq38yymlQC7bbdXx0m4PCzq23xq+gvpBO7GHB6rSksYTXnQ2o8e1Qm3lp69ntdfg== X-Received: by 2002:adf:f608:0:b0:374:c05f:2313 with SMTP id ffacd0b85a97d-374c05f2775mr13707086f8f.45.1725557842988; Thu, 05 Sep 2024 10:37:22 -0700 (PDT) Received: from cleve-worktop. (85-193-33-185.rib.o2.cz. [85.193.33.185]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-42bb37f7849sm245704605e9.7.2024.09.05.10.37.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 10:37:22 -0700 (PDT) From: =?utf-8?b?S3J5xaF0b2YgxIxlcm7DvQ==?= Date: Thu, 05 Sep 2024 19:37:10 +0200 Subject: [PATCH v3 1/2] arm64: dts: allwinner: H5: NanoPi Neo Plus2: Fix regulators MIME-Version: 1.0 Message-Id: <20240905-nanopi-neo-plus2-regfix-v3-1-1895dff59598@gmail.com> References: <20240905-nanopi-neo-plus2-regfix-v3-0-1895dff59598@gmail.com> In-Reply-To: <20240905-nanopi-neo-plus2-regfix-v3-0-1895dff59598@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?b?S3J5?= =?utf-8?b?xaF0b2YgxIxlcm7DvQ==?= X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725557840; l=2036; i=cleverline1mc@gmail.com; s=20240824; h=from:subject:message-id; bh=RNhLy3kONeDz/+IGq0BW6Nukk5PX4HbKNZTyiChMq2M=; b=mRqnuyRIbQD4SoMGj0V2V9H2g3ftmeIT1qPwpgUttP3Ep15ApEySEepSU4AJoX1x0uqG6oQ59 NkdC329VWZdDCPkNfXmvnoDruhSysZqbd+FVqFRIPWeii4pyYYzqlqR X-Developer-Key: i=cleverline1mc@gmail.com; a=ed25519; pk=CQifx5FUgTQKAoj5VCYrwYHi235AkXQ5yT1P6gkaBxM= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240905_103724_846791_316ABDB8 X-CRM114-Status: GOOD ( 10.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Added the main board 5 V supply regulator, a 2.5 V supply regulator for GMAC PHY IO and correct vin-supply elements. Signed-off-by: Kryštof Černý --- .../dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts index b69032c44557..dee4cd82636b 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts @@ -45,16 +45,40 @@ reg_gmac_3v3: gmac-3v3 { startup-delay-us = <100000>; enable-active-high; gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; + vin-supply = <®_vcc3v3>; + }; + + reg_gmac_2v5: gmac-2v5 { + /* 2V5 supply for GMAC PHY IO */ + compatible = "regulator-fixed"; + regulator-name = "gmac-2v5"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + regulator-always-on; + vin-supply = <®_vcc3v3>; + }; + + reg_vcc5v: regulator-vcc5v { + /* board 5V supply from micro USB or pin headers */ + compatible = "regulator-fixed"; + regulator-name = "vcc-5v"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; }; reg_vcc3v3: vcc3v3 { + /* board 3V3 supply by SY8089A */ compatible = "regulator-fixed"; regulator-name = "vcc3v3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; + regulator-always-on; + vin-supply = <®_vcc5v>; }; vdd_cpux: gpio-regulator { + /* cpu voltage regulator MP2143DJ */ compatible = "regulator-gpio"; regulator-name = "vdd-cpux"; regulator-type = "voltage"; @@ -66,6 +90,7 @@ vdd_cpux: gpio-regulator { gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; gpios-states = <0x1>; states = <1100000 0>, <1300000 1>; + vin-supply = <®_vcc5v>; }; wifi_pwrseq: pwrseq {