From nobody Wed Oct 8 16:40:19 2025 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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 BF5ED28A40C for ; Thu, 26 Jun 2025 14:18:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750947516; cv=none; b=upCwHA6lpcVA3iijkh4zVXGKepVlHDvEKsl+WpkG+oW9hgu1JeqPwmKtQn4naArfGCuikI3M/wMED7qdXp8oYMPB33GJhwFO+JU7K2Mel2nbLJpP1sMlxKAXvJOXA2EtcVVp+9vUx2t4wgL2olheGHUL4RdulP85psUUvKc7pXE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750947516; c=relaxed/simple; bh=hMn6z2AZyzcbL/cGMK7HwRD4mhVABvJkOEyvUbzSheE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HKVyPOs567GoUXCtxuXuhc8Y4PbfH80KHpsCqk8sYmkVWmiCVsda4Y4/xBg74FaUAzBOc516w5IEz3ns6qpJmPu9yx3STNyR6whvKgcHOanaPaeGrGYjdQTKv+6Smz74liJy/VwDVlZk4poxwj808WJ09v5l/1sjjRpb99WoRfk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b=MBBm/RZq; arc=none smtp.client-ip=209.85.222.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b="MBBm/RZq" Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-7d41cd4114aso168804985a.2 for ; Thu, 26 Jun 2025 07:18:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1750947514; x=1751552314; 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=onUZmipuuggYzLIHkuYvhE+eJtHfnxxJxJfL7IX4aE0=; b=MBBm/RZqJxIrA3SUIbtxxRcOHu0DMtt+5ohk3Sq+KzLQFRGkR9N6+yydNLwzXonUI1 UfG8+bdoDnqjLOZYoQiDt5mAWUVfD9mJVcKdjTRvuxgugq15mk9AXTXO0z71HSse3wa5 DblQVZTtdn5P6cn6IgjKz6vJpyCgePFlEQdxn6IV6WlRrXPCu6HIzVAvvCI8iFplepir 706U4KZ9oGAVaP7tYwRB5dpf9rPgdcbo+jA1nxgeMv0LrEsZogcpwog5njXsEBIi6UPW uz2n8JumuWyEd+O8HaICZCdIH2NQs4hRXOZvnACZWj3M6OgB4QkAyqTHIAfpZV69vMyC Kzow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750947514; x=1751552314; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=onUZmipuuggYzLIHkuYvhE+eJtHfnxxJxJfL7IX4aE0=; b=s/c4MLFPiLB+xIIsdNpdpW3QsOHONnoh+xUEaCuBExBBh1gYipY60Ro/EZvvP/RVKA 1J4R2fK0pYMvhhuC8Aib1OCEq3VNGdhsnfzJySMll7ATR0b4VM9vusCWa0JDsR6xYvE3 CF+THcTt8RHxXk5gNPGAbt3aEQqpIpPltskcR1tIEf6INhMVgT+1P9gOodyoWqs6ey3R HqBpRwUJ6OUIOR5rNpFUUjetz7M73CWnA1/toMmoQYGQrjM/0eo9cv7DH9zV34DOwz6p ASOEiq8NDEy5R/VORNsta6TtCfGH0X3L2E+rieygHVtNtjYRRQZjF7XzRiuJb6GnrbfX 60hQ== X-Forwarded-Encrypted: i=1; AJvYcCWFPbKujtSyd8RUzutSuo0ygnk4RKn5GajWVa1+xOYLtkbvtAb2GawtACvqRAbF69lOfbYWShpwZVV3l2Y=@vger.kernel.org X-Gm-Message-State: AOJu0YzX9SHBb5b9SihKKKkzXr+QFOIrd2jwWi6BFjqbxsWXAMzZYflM ib21QxD2Jmba0Si6Q2N8UC/yNaNnktidp5bMbuKF61E6X2S+iCPL24k2BdGKeifam98= X-Gm-Gg: ASbGnctB1hvx8r/phMinAiD4rSjZXil4kKwcRJ/8USvSz6eDpvpWP9maAwcyaKIETyS qZjEHdi0PlQeJJb2VpSG/f+SuUa4bzHm32DxfkMMXUSaCtHnP+eBkp5Oua18QJ/6fp+9zFr4IFy P0UjBfM0YcxG8QxNRrpUikKhQCivH6qJ2pBlNGY041qRXUjeswxeDhEDlHcPzpsXLkOpJG5z5gE u5Gkr3CPSPI5v+448wjVxJoTNIplVgvbPgQORJr6ifL44+MIFzdZVd9xitcSOBB+NHkhdxkWh8k 5x8+eGLJcQ2YIGud4h74aeWy9sxkz8sFOnhXSXIPE8ufua/DXSdFHRXVlirq0uPWBV5yO2ZcQCL jcdE4q76koyHi9lJ2wm5OeSrJ2dtzv9RvUDo= X-Google-Smtp-Source: AGHT+IEWxkse5hTkmeklkGnlPmhHsuowNr5lQuTqRpNLHHlNF9sUuGIos4wTOLkkzfZbR39s8zymFw== X-Received: by 2002:a05:622a:1914:b0:4a6:c5ea:6fc with SMTP id d75a77b69052e-4a7c0857cf0mr107432031cf.42.1750947513647; Thu, 26 Jun 2025 07:18:33 -0700 (PDT) Received: from localhost.localdomain (c-73-228-159-35.hsd1.mn.comcast.net. [73.228.159.35]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4a779d6df17sm70266101cf.30.2025.06.26.07.18.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jun 2025 07:18:33 -0700 (PDT) From: Alex Elder To: lee@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, alexandre.belloni@bootlin.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: mat.jonczyk@o2.pl, dlan@gentoo.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, troymitchell988@gmail.com, guodong@riscstar.com, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v5 1/7] dt-bindings: mfd: add support the SpacemiT P1 PMIC Date: Thu, 26 Jun 2025 09:18:20 -0500 Message-ID: <20250626141827.1140403-2-elder@riscstar.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250626141827.1140403-1-elder@riscstar.com> References: <20250626141827.1140403-1-elder@riscstar.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Enable the SpacemiT P1, which is an I2C-controlled PMIC. Initially only the RTC and regulators will be supported. Signed-off-by: Alex Elder Reviewed-by: Rob Herring (Arm) --- .../devicetree/bindings/mfd/spacemit,p1.yaml | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/spacemit,p1.yaml diff --git a/Documentation/devicetree/bindings/mfd/spacemit,p1.yaml b/Docum= entation/devicetree/bindings/mfd/spacemit,p1.yaml new file mode 100644 index 0000000000000..5cc34d4934b54 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/spacemit,p1.yaml @@ -0,0 +1,86 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/spacemit,p1.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SpacemiT P1 Power Management Integrated Circuit + +maintainers: + - Troy Mitchell + +description: + P1 is an I2C-controlled PMIC produced by SpacemiT. It implements six + constant-on-time buck converters and twelve low-dropout regulators. + It also contains a load switch, watchdog timer, real-time clock, eight + 12-bit ADC channels, and six GPIOs. Additional details are available + in the "Power Stone/P1" section at the following link. + https://developer.spacemit.com/documentation + +properties: + compatible: + const: spacemit,p1 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vin-supply: + description: Input supply phandle. + + regulators: + type: object + + patternProperties: + "^(buck[1-6]|aldo[1-4]|dldo[1-7])$": + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + pmic@41 { + compatible =3D "spacemit,p1"; + reg =3D <0x41>; + interrupts =3D <64>; + + regulators { + buck1 { + regulator-name =3D "buck1"; + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <3450000>; + regulator-ramp-delay =3D <5000>; + regulator-always-on; + }; + + aldo1 { + regulator-name =3D "aldo1"; + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <3400000>; + regulator-boot-on; + }; + + dldo1 { + regulator-name =3D "dldo1"; + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <3400000>; + regulator-boot-on; + }; + }; + }; + }; --=20 2.45.2