From patchwork Tue Aug 27 21:00:43 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: 13780151 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 5F4BAC54735 for ; Tue, 27 Aug 2024 21:03:15 +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=1GubL7VOrGlY/aiqZLEM5dr9Z6 wicTTOinxX8GvDvkdh4cu7N7UKUoEAHumDTj7A9dUQbgJu0PpPMBm+PQUg5wy+EggiEvXMjgSsAbo 3H5jtKRcp8ooyTJd9XcU00JMWH/KjlbkjyyzpNgCVy9PyOQ/com/JknomzJE/xSoR3rAG1WgiQ4V6 rO2o4o5nLansZXqbm3yDraQtI4pQ1VemDzEwk3/bd+2hczgZBFS7BAVqmWy7vm73n+1PKMVbLNbl4 D8TpLj6qdiCU9irrFeIe5v2VP+0WA1LJiyBIAgqXOvN3AIDjFxnhD+vAzbVv6+Gv8CoHRKg19ddWq hOrfnqvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sj3LE-0000000Cosf-1y6q; Tue, 27 Aug 2024 21:03:04 +0000 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sj3Jd-0000000CoXp-2JfF for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2024 21:01:26 +0000 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2f504652853so36764601fa.0 for ; Tue, 27 Aug 2024 14:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724792483; x=1725397283; 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=X3Z4Qx94fvB4VN0OR+721z92JdbW7iGmbWY4YEwOjmh5pqVK2nsGG9nkIemgcHuOF+ N8hQMDiIMjOibmlNsTqnuV2kqAbbkZe8TNi5hcN5R0l8uGXmbfEzCHmTaJ1xVzGc1LWq ZiBalemPaYGPkJ/PV+pMs8xszAuR8WVWkstpgkTyyQOgTPsGtcWy7jCTBkuLhGL9aB98 +Rroof7kM8O6YZ5gZGxX2jPtdFnGZ5XlfyjcDESNWoSM+dECGIrOHy756+kwbbsEMmsv A05+PWNzJ5P36zKOjZTZPgUxDmLEULTg613v+iZWAepeFBeHetUorFlUJjIKPeLG3EsC 65Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724792483; x=1725397283; 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=G5NFnG3pRdb3hQVmeY1blm8JJL0JdY/LE72jRzgAclt2Ho+vtJhsKsVek0MDCU1xBQ ALEddiDU/ijUIX8QhEABRx8mvuEOHYc6r3yONzwivFKIIZjOoGL+6AZwJQ1KP6F4tncd 4iUUlifFQt+5J+mv6bbvaAa5Nx2rD406aEvmxYpUhFkWPbhZ2SwptwHW0KdHo/jYpSs+ p6/BXMkjhSPs8ecIgOGlHmyYyskos7fZyvmaEUonB1Jvf0n55l6icDGiWgmm3WZCZ2nD wKd9DrENQWarIjCbrgQ6JmmCtcBYzs11l3AEJJI/G00QyCrKOY4Fofw6hyb6x8oVKouI XE3g== X-Forwarded-Encrypted: i=1; AJvYcCXYuecU01B5YdjUKMyIo3PAklKUn0HYFA4hO4cDiLeMihVzfIV7pN4myNXytqooQ1ZTo78vewen1bPgnB9MyElx@lists.infradead.org X-Gm-Message-State: AOJu0YxNuRli9SD0CHws2EX3h/7GKNQvcgn24UlvlMODIHJEQuNXU0/v 4ipORFEc3488CLOIgUCMNeAofV5mUXqCL/rjs2rc2/SgnfIqwNZR X-Google-Smtp-Source: AGHT+IHMIJqq+qMc5SFSWqS83HaQQxSJIoBoIh0xhJc6PI4T9xwpLUgf2R1siupu5MnfzMii4vuZpQ== X-Received: by 2002:a2e:612:0:b0:2f3:ad82:53fd with SMTP id 38308e7fff4ca-2f514a44f48mr23852671fa.28.1724792482231; Tue, 27 Aug 2024 14:01:22 -0700 (PDT) Received: from cleve-worktop. (85-193-33-82.rib.o2.cz. [85.193.33.82]) by smtp.googlemail.com with ESMTPSA id 4fb4d7f45d1cf-5c0bb1c3114sm1405835a12.13.2024.08.27.14.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2024 14:01:21 -0700 (PDT) From: =?utf-8?b?S3J5xaF0b2YgxIxlcm7DvQ==?= Date: Tue, 27 Aug 2024 23:00:43 +0200 Subject: [PATCH v2 1/3] Fix NanoPi NEO Plus2 regulators MIME-Version: 1.0 Message-Id: <20240827-nanopi-neo-plus2-regfix-v2-1-497684ec82c7@gmail.com> References: <20240827-nanopi-neo-plus2-regfix-v2-0-497684ec82c7@gmail.com> In-Reply-To: <20240827-nanopi-neo-plus2-regfix-v2-0-497684ec82c7@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=1724792480; l=2036; i=cleverline1mc@gmail.com; s=20240824; h=from:subject:message-id; bh=RNhLy3kONeDz/+IGq0BW6Nukk5PX4HbKNZTyiChMq2M=; b=9/Mx2+cAHE81RhNqFvprgXDsszsk21dvPoYTZw5zCCYnSpD3rhc7njBnEaHii6djEqcV1725u 5hpQHzHHVJxARzZQUiinsjRclqW3BCgVK6jlV19RzVEPptPlcYZu1vJ 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-20240827_140125_611522_9739C091 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ý Reviewed-by: Andre Przywara --- .../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 {