From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B7C047A0B7 for ; Tue, 5 May 2026 16:06:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777997189; cv=none; b=nb7MKmzJhrAUl6o/0hd2IzEkMqv2X/KjdwryxXG5QrnV/OZC13xkU8OFFEPR1zTqYKHF/PFXGY5bZFfpwTtwKxDJp7gtCwGh2XE7IAOMDb/2aiWCes2Au5wcUiuqNn4Fks8UXlfYwHpB+9OMY8WfrHHt9Yw+sVy8env6010byhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777997189; c=relaxed/simple; bh=soRJfSSxYuG5pC4OrEODuicTfvuph+agtktaOpjMSeA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Zk0rq3BjJXIT3IE/h5l+q7/Dwr0QRRu1SoEfExds7YXVeTwU1EWmnhITUvhTYcgohOsE7KdCUbyG4MHEv5V8ZI6OCbhKOGXS/bc3gtqzHgG4OKW1w8gLFAFHEqyK14yYCJAOy78JutgIt+DMeUz1Ig+lyQQwZlEsUySQBkYCdEE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RVKxZWpd; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RVKxZWpd" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-43d73422431so5127032f8f.2 for ; Tue, 05 May 2026 09:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777997187; x=1778601987; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=th+e+aR6DHOg780tOLy6m1AslF9E2KIAxcxgB18vgPY=; b=RVKxZWpdMJtiYDUHUHOjKWVxqfA24uaEOCcpCkHacHvL2gHrf9Bn4cviXjOr5Izjtj xYECbkhz05TZrD1J3t5lqT9hh8JCXPcdBDxZrO3cFhn2FL2Z6vVt3RyqTDJ0K+Y7jktX H+UUcZMeWS+qjTQJBxVFy0BfkWLEyrNvmII7ncF6GNegTo0F0K1xFrJucpF0c+lLbfuI bcmx9EUTo6xt5aoLkU4fzf64HVe585Iwyo7S4eznqOrN3U4OdIq3z7g6aN4DwEF/1FID 4FXCKbdev/asx/ThXFsaHv5/XrBUnK3PAGfg5X0895E17YEvsL7faxUUEaTtg09tQUnc /nXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777997187; x=1778601987; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=th+e+aR6DHOg780tOLy6m1AslF9E2KIAxcxgB18vgPY=; b=Vuq+8xhGlmNy/qTI+plcXmZQ+4BO70aYekJVIQ9qu6s3JG4UqUDODvdcKV7KIVLXZm 3qmAOjVLfPG7LTJfFA5W47asFhu+2mz0JV9HvnRNrpACW1AeenkhT0Lh5L8m6+fQdXM6 9uIcCuV4EZXEvtmTlQH5BC2nLg6Dulc2lScxXWIiRCdz9Tb0449HKrMdVI8ar3dH2BV9 JAmPkVm+31jl0PCQvTjQsQNyHqnIyoi7QfemaGzXX9O8LdMeyX5FEoF85aIJzYIYWZla 7/L12LNILqLeO19/Lv+JZul6vrosGgFaBYnqUmBmWrYwUIa+qjDzU40ug7ba8rBWTFYy jKNA== X-Forwarded-Encrypted: i=1; AFNElJ+u8iXju3Phw7AZsbOSFzbPyRooiYpL1b89oPxuyF489JKD0Q2yoYPFtzjRngwHcnx903lH1k/X9vKpIfY=@vger.kernel.org X-Gm-Message-State: AOJu0YzEajAj/HjImT9aG8RZ/rSgqNAGZ2PS3fFCguKGhnetK008n7lI OfLafhZQreDf54SclJYv7U45zkEw6gS4kAwpoQvMkjYplt+FeseOBn1a X-Gm-Gg: AeBDietTvDnY0hDuR59/3elNqCrW9tDoaD/GTZmgz8d0Ki06eIyY/bhIITDrrsxsMLF eLQNq+VJHgfMqJHLqVFHkoKzBFkzrsAK+38U1wKqzA6/E+lIJJtQ6USwF6E5yp/iKBuT4WCPew/ qIoi1TmtCjiaJa7CgVnpzZXYAkb4FFM4V4X8NftBuRSFP0IeXiYfPaNlGH1oA3b0JNxF5jf+1aZ PtwS1Pv3ZHh5DUX+AfSXM5J131LE3xmQ6ri/peDZP467AKmURdD3EhpRsGL78S4Sv7QIaXYOi6U MxvjLnJxmotK4+b82KAuq74d/K1QYhkFGqOxWKmG0eAeFHiTy16k3VPOq94YZvLWm0bo4bsCpAh 30Csjax3UYJVBnE3JI6nZgb4d23LA9LAeYdCtu/VqENFrTcxikyEt8xKJnkRFmYVwoZJNkTF7Yd Gw2UNI3Of29WXAjEDyRXK4XGe19evQWR1AcLgUWGor9mhwd1aKnj+8TtRC4vypbKSxigbEAKGul iAgU1yJZptUAxvy5Q== X-Received: by 2002:a05:6000:40c7:b0:43b:5672:efe with SMTP id ffacd0b85a97d-44bb36d17efmr23828993f8f.9.1777997186712; Tue, 05 May 2026 09:06:26 -0700 (PDT) Received: from mamamia.internal (a89-182-137-143.net-htp.de. [89.182.137.143]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45055d36dacsm5398891f8f.32.2026.05.05.09.06.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 09:06:26 -0700 (PDT) From: Andre Heider To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Yixun Lan Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] riscv: dts: spacemit: k1-musepi-pro: add PMIC and power infrastructure Date: Tue, 5 May 2026 18:06:15 +0200 Message-ID: <20260505160623.1369347-2-a.heider@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260505160623.1369347-1-a.heider@gmail.com> References: <20260505160623.1369347-1-a.heider@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Enable i2c8 and add the connected SpacemiT P1 PMIC with its related regulators for the board's power infrastructure and voltage regulation support. Signed-off-by: Andre Heider --- .../riscv/boot/dts/spacemit/k1-musepi-pro.dts | 144 ++++++++++++++++++ 1 file changed, 144 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts b/arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts index 29e333b670cf0..07eef3274192c 100644 --- a/arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts +++ b/arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts @@ -17,6 +17,7 @@ / { aliases { ethernet0 = ð0; serial0 = &uart0; + i2c8 = &i2c8; }; chosen { @@ -33,6 +34,25 @@ led1 { default-state = "on"; }; }; + + reg_usb_vbus: regulator-usb-vbus { + compatible = "regulator-fixed"; + regulator-name = "USBVBUS"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + regulator-boot-on; + regulator-always-on; + }; + + reg_vcc_5v0_sys: regulator-vcc5v0-sys { + compatible = "regulator-fixed"; + regulator-name = "VCC5V0_SYS"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + regulator-always-on; + vin-supply = <®_usb_vbus>; + }; }; &emmc { @@ -72,6 +92,130 @@ &pdma { status = "okay"; }; +&i2c8 { + pinctrl-0 = <&i2c8_cfg>; + pinctrl-names = "default"; + status = "okay"; + + pmic@41 { + compatible = "spacemit,p1"; + reg = <0x41>; + interrupts = <64>; + vin1-supply = <®_vcc_5v0_sys>; + vin2-supply = <®_vcc_5v0_sys>; + vin3-supply = <®_vcc_5v0_sys>; + vin4-supply = <®_vcc_5v0_sys>; + vin5-supply = <®_vcc_5v0_sys>; + vin6-supply = <®_vcc_5v0_sys>; + aldoin-supply = <®_vcc_5v0_sys>; + dldoin1-supply = <&buck5>; + dldoin2-supply = <&buck5>; + + regulators { + buck1 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3450000>; + regulator-ramp-delay = <5000>; + regulator-always-on; + }; + + buck2 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3450000>; + regulator-ramp-delay = <5000>; + regulator-always-on; + }; + + buck3 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1800000>; + regulator-ramp-delay = <5000>; + regulator-always-on; + }; + + buck4 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3300000>; + regulator-ramp-delay = <5000>; + regulator-always-on; + }; + + buck5: buck5 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3450000>; + regulator-ramp-delay = <5000>; + regulator-always-on; + }; + + buck6 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3450000>; + regulator-ramp-delay = <5000>; + regulator-always-on; + }; + + aldo1 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + }; + + aldo2 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + }; + + aldo3 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + }; + + aldo4 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + }; + + dldo1 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + }; + + dldo2 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + }; + + dldo3 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + }; + + dldo4 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + regulator-always-on; + }; + + dldo5 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + }; + + dldo6 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + regulator-always-on; + }; + + dldo7 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + }; + }; + }; +}; + &uart0 { pinctrl-0 = <&uart0_2_cfg>; pinctrl-names = "default"; -- 2.53.0