From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 45CC6365A19 for ; Mon, 11 May 2026 11:11:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778497884; cv=none; b=jFmOoJcNIUQ5Usb5Oyy2WKOdANRSxmI0O7cnlszgt+JrAqh2UIfq3QPwvfq6kzD3OHS1naXafC5aHSJxBBTsnx7LmCct+V2jBFu3jdBWxCg+A8MSb1hp4COQuMK7Ize2c5TYTJjmNsbJh8RHOSU84gLEMNrr5FDj2Z99zwVkGkE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778497884; c=relaxed/simple; bh=gs0Y2Lbcv1mmKGEWTiw2jaiqo/77zhkqJu5nGMoodxM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FuJEzFPG1M8oIpOcx/UFc4la+uNczWEHNmCsffZjgwxHgdo8kC8TZAeC+wzrLfpucB84bjRCRCzVe2jw9kLiogDWJnH/+NUtAjH5SQT7O/u+a8GnuhTHQOa2514q5wSdjjfbh2IoRC2GY3jIBbU3qHV2l9K1/v3MGDJgsbiTT6k= 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=iNkN0kc5; arc=none smtp.client-ip=209.85.128.54 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="iNkN0kc5" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-48e82c23840so6868005e9.3 for ; Mon, 11 May 2026 04:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778497881; x=1779102681; 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=GtTvf9vsfLePhnbh9KXY1gq0CLeR2YIl5j5cO/hpSW8=; b=iNkN0kc5KO36XOQG+2p5VtFUtE1NUnggPijpYZZeDiMy0Op5zK3bCj+16Wkmmm184Y vhLPYZAC0jLyqWuwuwvxdSISenG5hkBRSFNwCoFADeqc9ISIRcYnTLyxwmqIIq6ni9MY hCUT+N1f9cAV1yEIvVnW+epmKNIMgts7lfGFuRsC780z2YGDUIIFW7X7NKlsNajVjMte ZdlM2xZ0ZVk5/opPTPUDJ6TWYC5sPMqcrxSB3RbEN/+17GsCZ7AFpzWdwvysnbnCaCrx 7KOfmN9iTtQJRjwxIEQ+3E2nacdhlNkgunv1yu5Yw46v8mKAgDlH8H3hsvnWlpPldBaT Jx6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778497881; x=1779102681; 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=GtTvf9vsfLePhnbh9KXY1gq0CLeR2YIl5j5cO/hpSW8=; b=dBwVlRACLai4pABpPB7EdifcWiUr3aSBhBnir3BOI8/kFsZV8iPsFvPeuUmRlFPK+i uyF4AWdjWSub2mWN72n0tx+9XeHAtPVjTYvcheKmYcKnd1EBMFvDlRASd74GNviXLBr0 LN6xAKllda2QGm0oYB2St0h8FZuJFTFPWrsuimMXmlX4xw8/NJBVr+AlPquEOrEcI3m0 cfYMOA8puBIaFpfa8eAdDPK6byzc8qUbwgXNnbIHGwJl/tURBGWGOPAAwD7EVSrXxCR2 zdYCfn5L0aDF8N/iRNh++jARPl6QeKLRrF2+vJi9q/pIMq4pEMHdu5eNiwYqYnqSc1D8 Tsjw== X-Forwarded-Encrypted: i=1; AFNElJ999NSxMiYEznnGr7VMTSGUTtNl5Bn4f6CKYPyMELoeQif3QtJby544QixbJpcS87PhSO9hJQ5CVpL1wbs=@vger.kernel.org X-Gm-Message-State: AOJu0Ywr6UzItda052eLD661Mr85nQ8FnGFzsF+N4CDCiEqNVgiTCEfy VsawV7oigm7chCKTg0vplp7z8zkvciqJOsF197oZSa0+Z81F+qceO6aR X-Gm-Gg: Acq92OFV1fRtx9/RUIGijsRdmwj+oIaGbFV7JdpaCn4sJm3+J6M05vgM1ZmbBPVgzlh zQjknbruKpTJ5pK8EsZAR878HUzQV7cFMSVdMJ5fm6sqIn7s9tsnwe2YQ+PxDWiDGyUSQ+qXV3z jlCybdTUGymYIzeILtNju88+LV2D15cNvDwEMfs6lh2NH3BY5QgZiWxdyYjEbVKU1GBAjKNj8UC HNo2hxCX7htPVD63yJMJNUtonBiZQr/wwe5P95NvMSRB87hW/eGLSCqPqKKpoF5INShF/7/cnEC ZnhtR/JlpaE445eatGXADPULQECvlO5zUYATfCkrA/rHklQ95AdQftiOFQdpGsD6gUKisF9OFv3 Lxb7c6+oNhEiVGTsy63RDpF91bl6eX9qroql4bneF4OxpK82k2vXCgqDlRU5x5L2t/YiNB/se6W BhwpEeE1aYgmWy3BWiqfGEQHGUPYCn9PjZNjgJ2RAVzLnswY+sIiLvhu6zsB1/7tw6zw== X-Received: by 2002:a05:600c:4512:b0:488:ac01:72b6 with SMTP id 5b1f17b1804b1-48e51f3a538mr373235125e9.21.1778497880440; Mon, 11 May 2026 04:11:20 -0700 (PDT) Received: from mamamia.internal (a89-182-129-90.net-htp.de. [89.182.129.90]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e701e9585sm175077375e9.5.2026.05.11.04.11.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2026 04:11:20 -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 v2 1/6] riscv: dts: spacemit: k1-musepi-pro: add PMIC and power infrastructure Date: Mon, 11 May 2026 13:11:08 +0200 Message-ID: <20260511111116.1109643-2-a.heider@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260511111116.1109643-1-a.heider@gmail.com> References: <20260511111116.1109643-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..88c35ad1ef2ae 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_4v0: regulator-vcc-40v { + compatible = "regulator-fixed"; + regulator-name = "VCC4V0"; + regulator-min-microvolt = <4000000>; + regulator-max-microvolt = <4000000>; + 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_4v0>; + vin2-supply = <®_vcc_4v0>; + vin3-supply = <®_vcc_4v0>; + vin4-supply = <®_vcc_4v0>; + vin5-supply = <®_vcc_4v0>; + vin6-supply = <®_vcc_4v0>; + aldoin-supply = <®_vcc_4v0>; + 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