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 { From patchwork Thu Sep 5 17:37:11 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: 13792757 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 BDA20CD6E74 for ; Thu, 5 Sep 2024 17:40:34 +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=557eQ0nrkCY+/ANVkKP3VQXQ7163oT4FiuaAuauOfKc=; b=PowmZ01GY3AfQ7jchv9BwEhaI9 fukhUFM2u1o+4dzme465qZ/wxiPis9EBcx9y4BTzz7V0/R4nG92Lp3xEO4GhD5jElJfRMVFDmGgbZ 8OHySMSw5y0ZgZTjXZxNMqH5pkEdCVQbKK8EjM9X4RRgkSM6798UI4ZumuI9rplTLlSdMjeczrkqV mrbbx/T6MTBFI8JfRvnAVP3fjXvum06mbwp5VRTa/iVOJVAkLGR5vb/L4DB0TspJa/7nC/UYSORSd NXPg5vJq4/+oxcv0vZGvHAU3bQxYWraAWe5S3FvLqSW3KJUAyDrV677G48dCEvNuXs3k3Yip4g2ZU +JzOZY+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smGT0-00000009K3A-043l; Thu, 05 Sep 2024 17:40:22 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smGQA-00000009JUg-0q5e for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2024 17:37:27 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-42bfb50e4e6so8368855e9.2 for ; Thu, 05 Sep 2024 10:37:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725557844; x=1726162644; 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=557eQ0nrkCY+/ANVkKP3VQXQ7163oT4FiuaAuauOfKc=; b=PHNIIKXau99a5szGMg7jg7QOqTukhEw21+KZZCWDNHXrvxo+lEOgILSeVqRHq2MBlT okkPY5ezZ2rzJ9tfVAKKcaRCWhkNxvZhG8ThN5lpPwTYMLfEvcHXkcPyit7XCvEAieX4 +gVagrOpDljQaZmrwtUafTotKzBuL5qzgdOznmZZbTiyLuTYsD44sgG3FgZC7Exy2ecS mDargfRzE8W8juwz+AXvRR3PIwk1F/Fq7EbmMYvn6ztfJrNKycI5w5jv1wO8x9VuQcyX YOhGiTrEFjsjwI9Jf0FNngjQZ81cSmyjkK9DlOSfYnXJHFUjp/pM38GGpcUDSd1HdsjU 9vgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725557844; x=1726162644; 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=557eQ0nrkCY+/ANVkKP3VQXQ7163oT4FiuaAuauOfKc=; b=Z4sIDTjg2SNiHsvaMg9wWYACJRlpqMqdSz4adSWj8Fk/lTMglNgdHXl1yGfJCDQfXN iNkuR7fSOyqlJ7RgAR6ryBxUq5rBpJbIv0T0qPUQc1logkS0XTrcRwZrF9c2M2v0egJJ QcScHs8DJSBaQaCb7cmmRQbPVzGSOic3iDmdi4tvrHP9tn2GtxCaLHtxFue5YMvyi2n0 qZhDLUYoj42H0WCZPAIh7CpqsquNOZqH/gHXAzd22yFFzrvQ1shd+R+bApVogGpGSRbw C4wxhvBJ1pz2I8njW1TbjFU1ysEpzXrmK3vuJB/e6UGbXRepSnErotEtbIKj/RQNR6VS nwgg== X-Forwarded-Encrypted: i=1; AJvYcCXX/t0bbOrxJTWsCaYz6fLUcsp6A2L1uU8HthbNyklD8YVWY+ettFWclBlTn+kIHkrtH6s7c3gH2f0d+Bv8+jM/@lists.infradead.org X-Gm-Message-State: AOJu0YxprFR/uyKWRcJWbrpjyR2e48NnZOFTbjCjaBZTaz19BQzNajzY grUopTepH6lgpjeakniFx0pXS4uTBekCtAiMFMkT42aVqT51UH2s X-Google-Smtp-Source: AGHT+IHG7cIYEiQK4CjUWPerdwh6CKrVoOAyBG3msAvSCV3Qn00TYv6w1O7L2+TkplQKEGL8B3Og9w== X-Received: by 2002:a05:600c:3596:b0:426:66e9:b844 with SMTP id 5b1f17b1804b1-42bb02c0711mr192660435e9.8.1725557844242; Thu, 05 Sep 2024 10:37:24 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 10:37:23 -0700 (PDT) From: =?utf-8?b?S3J5xaF0b2YgxIxlcm7DvQ==?= Date: Thu, 05 Sep 2024 19:37:11 +0200 Subject: [PATCH v3 2/2] arm64: dts: allwinner: H5: NanoPi NEO Plus2: Use regulators for pio MIME-Version: 1.0 Message-Id: <20240905-nanopi-neo-plus2-regfix-v3-2-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=958; i=cleverline1mc@gmail.com; s=20240824; h=from:subject:message-id; bh=ZUQNvjzepWA4pCK8RLWIXzlmS349ucRwrxxaYBZS3Do=; b=HR9gGVSIHOvwivYhckB8+lKbHqe+U0NuPSVXQyZHFvG79aOdTUJqu593cgFwNB7Tm+0Wxox4m GvATeaSEke+ALXSM3Dxy21o3ZbF5vQNIEpWqEBoAD5294oLrtCJ2zZu 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_103726_261218_A4737DDA X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. 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 Pin controllers pio and r_pio will have proper regulators assigned. Signed-off-by: Kryštof Černý --- arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts | 12 ++++++++++++ 1 file changed, 12 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 dee4cd82636b..526443bb736c 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 @@ -171,6 +171,18 @@ &ohci3 { status = "okay"; }; +&pio { + vcc-pa-supply = <®_vcc3v3>; + vcc-pc-supply = <®_vcc3v3>; + vcc-pd-supply = <®_gmac_2v5>; + vcc-pf-supply = <®_vcc3v3>; + vcc-pg-supply = <®_vcc3v3>; +}; + +&r_pio { + vcc-pl-supply = <®_vcc3v3>; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pa_pins>;