From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 1C5DF336EFF for ; Mon, 10 Nov 2025 19:29:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762802949; cv=none; b=pLfk4hnaul3FD6Sy4u1cgC0Ji5JmO0Z2H03tgaMyieK40PCGDeGV5orYO7YfDrCog02PC9pSudY285xsqLob11402o6mL6kiRR5ljyefwrCPtvOh8RI2uHEaA5WstjoJmjeBeRbKTMw2O2zjib9ZxJCl/vDpS2jQ2M4iyT0n998= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762802949; c=relaxed/simple; bh=vr6RxEgpRiqHUk8X8wejxw+5jKyx/+2PeqGfiI/1qw8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cVywzQQosw5AZK4IO48JlQCYGJjk2LBYMuvIT8CUxOqtaxF8jtzI6ySF/fEhOtA04HCosljaQOzDDqlPlIU08/tN8a3Tt3v2K2dFLaRYrdffRklrBhHJe8aifNYtMTBcsiw9seRX25eT0Y5fru2LcaUCytXOhtBigSblSiTW4qU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=mMFI5WWG; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mMFI5WWG" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-b3d196b7eeeso521084966b.0 for ; Mon, 10 Nov 2025 11:29:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1762802942; x=1763407742; darn=vger.kernel.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=dJP3xn5w556q22fk22x1v3x1DdvW2KK6ZMHkjIju+gU=; b=mMFI5WWGt2QMFTb9RzQr+5O+c/VyTVOWBcX0mt9h33oPJJluB5/7FbPRNa9mF9W5At hquo6jNkfxYHJqX92U9izLyJDUXxS0Sjn28mJ0qzqSCng5YMGW+3GTLvycPd4sLPTTQi +cqtBSW/GDnf3kHiDJAGNjZgTGtSCuS3DoOdW7z+YjM96kHZxFG/2jYhEYhbuXedljlN n081YrqDqozPh84Ac/cRmiymCh86bvQeeNEV14kayfFJB28V/O+Y33dUQFxTwueIeEIj hXQUmBeSQaxtU+iRbVLJPyx1yXKh3ILz1HkvgZ5s1o3WSkTKQp5i6TioCOk62yoJcYhu dRLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762802942; x=1763407742; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=dJP3xn5w556q22fk22x1v3x1DdvW2KK6ZMHkjIju+gU=; b=QSo5NFRyGv0gz6orvb9FTO59jDn5C6ABROxw4c3abKF9A1DGGuYlzyUCxxMTt4Iyn8 MAXmrP0F9baDQl8HdmMg7sg+lRzpxIxkeB7OwAnDuNk1qBuFeXvf1WdToGSZVsmPbU0R 47ixy/E+OuhWdHfnP83RXeKRwgsibACzaPE9SGbMb8BGaW6Y3PuluQfQoxVsbGs3QhuT okVpP9EqSG41aRAl9Vvv/ACMb0fZZRdldwh7RfxKbjW8LuGl4aYfw2yJ+7we8E0G4AmK HHosWgVNyeHBqzoZLJ+IxMuAIuSxIBISQBpt5nwI6gJ+hutnElA5+c55GUP8OuPEuqdz PeTw== X-Forwarded-Encrypted: i=1; AJvYcCWUGRJHOVeMDSGfvzqQbqrrxpEWVpuJt/XTqbMZNkPAyWnwF3KX63dduVOpLjDPj6Vv+rJR+SxCmk+J@vger.kernel.org X-Gm-Message-State: AOJu0YxJZBpw/M4m3VcfTst3fU+apSTFTs/gxMO41UasII9Jek6HkWbs Q1c87YQ0PWixnCWqP+GHaVd6ZWOsaikzw02aNZWYhI/KoH4z2kIgFOj/RjGtW4KrxRE= X-Gm-Gg: ASbGnct0Hh+cGIDNJzHFG5/vJTKmGcWgp1qr5nQLAiR+b1OUpExz1ZiuGUHWBPGZwqs d41CzFTlLpO48faUUxtM6MopP0DkH07wjc/1GYVmzblTD1KIadei1p6oRz+dtt792f/hVz/nDZY pPJilkoPfeoVNUTImIvIo+i+Rcy30hLGKEBPtQj+6gKjc54ioQo2VXdHPVYwj7IVBFqs+tnsKd2 aVeS2b6p8l+QWLlvDzD8oJ+I2cLPFe2gpsSOwfi+sU7o7iIbeJDCvk/nN/yfX6OZ4ig/aInZjB1 4Eiz/2IX5fw62LKHo0UBreGiizJjM9Y3Qq2QgfjvmNQOFz/m5CVc+UQaETWyRuz3XO/VfdzrQGW lksH+Qm1znyPE13b6cf/aowVFpVnSpOIB4h7LOsjvW1N4MyRaUOumePpGJ5daRNFiXbRzEJxzD0 lajIOpFY55RIrxB+8aG/VRk9sM+BECvLuPQbuTrXBsRtfo6yjWs1a8RWXRTtmkAh0F3hsa/6w= X-Google-Smtp-Source: AGHT+IER280qngV4eaj2hj/ImB6hOgWWKOhNkqzG5nImM12xY/4hFX9cFnSFQkOOg0D7SoaJs4N1yg== X-Received: by 2002:a17:907:7203:b0:b70:b661:cfcb with SMTP id a640c23a62f3a-b72e0410257mr1039055666b.31.1762802942053; Mon, 10 Nov 2025 11:29:02 -0800 (PST) Received: from puffmais2.c.googlers.com (254.48.34.34.bc.googleusercontent.com. [34.34.48.254]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b72bf97d16esm1168178166b.35.2025.11.10.11.29.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Nov 2025 11:29:01 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Mon, 10 Nov 2025 19:28:48 +0000 Subject: [PATCH v4 05/20] dt-bindings: mfd: samsung,s2mpg10-pmic: Link to its regulators Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20251110-s2mpg1x-regulators-v4-5-94c9e726d4ba@linaro.org> References: <20251110-s2mpg1x-regulators-v4-0-94c9e726d4ba@linaro.org> In-Reply-To: <20251110-s2mpg1x-regulators-v4-0-94c9e726d4ba@linaro.org> To: Tudor Ambarus , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Lee Jones , Linus Walleij , Bartosz Golaszewski , Krzysztof Kozlowski Cc: Peter Griffin , Will McVicker , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.14.2 Update the regulators node to link to the correct and expected samsung,s2mpg10-regulators binding, in order to describe the regulators available on this PMIC. Additionally, describe the supply inputs of the regulator rails, with the supply names matching the datasheet. While at it, update the description and example slightly. Note: S2MPG10 is typically used as the main-PMIC together with an S2MPG11 PMIC in a main/sub configuration, hence the datasheet and the binding both suffix the supplies with an 'm'. Signed-off-by: André Draszik --- v4: - separate bindings for s2mpg10-pmic and s2mpg11-pmic (Krzysztof) v3: - move to new samsung,s2mpg10.yaml file - move all patternProperties to top-level --- .../bindings/mfd/samsung,s2mpg10-pmic.yaml | 57 ++++++++++++++++++++-- 1 file changed, 54 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/samsung,s2mpg10-pmic.yaml b/Documentation/devicetree/bindings/mfd/samsung,s2mpg10-pmic.yaml index 6475cd1d2d15e07d953c8b302c90c785835985e5..0ea1a440b983a47a55fc86d6251b89056ba51172 100644 --- a/Documentation/devicetree/bindings/mfd/samsung,s2mpg10-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/samsung,s2mpg10-pmic.yaml @@ -10,12 +10,13 @@ maintainers: - André Draszik description: | - This is part of the device tree bindings for the S2MPG family of Power - Management IC (PMIC). + This is part of the device tree bindings for the S2MPG10 Power Management IC + (PMIC). The Samsung S2MPG10 is a Power Management IC for mobile applications with buck converters, various LDOs, power meters, RTC, clock outputs, and additional - GPIO interfaces. + GPIO interfaces and is typically complemented by S2MPG10 PMIC in a main/sub + configuration as the main PMIC. properties: compatible: @@ -31,6 +32,7 @@ properties: regulators: type: object + $ref: /schemas/regulator/samsung,s2mpg10-regulator.yaml description: List of child nodes that specify the regulators. @@ -38,6 +40,32 @@ properties: wakeup-source: true +patternProperties: + "^vinb([1-9]|10)m-supply$": + description: + Phandle to the power supply for each buck rail of this PMIC. There is a + 1:1 mapping of supply to rail, e.g. vinb1m-supply supplies buck1m. + + "^vinl([1-9]|1[0-5])m-supply$": + description: | + Phandle to the power supply for one or multiple LDO rails of this PMIC. + The mapping of supply to rail(s) is as follows: + vinl1m - ldo13m + vinl2m - ldo15m + vinl3m - ldo1m, ldo5m, ldo7m + vinl4m - ldo3m, ldo8m + vinl5m - ldo16m + vinl6m - ldo17m + vinl7m - ldo6m, ldo11m, ldo24m, ldo28m + vinl8m - ldo12m + vinl9m - ldo2m, ldo4m + vinl10m - ldo9m, ldo14m, ldo18m, 19m, ldo20m, ldo25m + vinl11m - ldo23m, ldo31m + vinl12m - ldo29m + vinl13m - ldo30m + vinl14m - ldo21m + vinl15m - ldo10m, ldo22m, ldo26m, ldo27m + required: - compatible - interrupts @@ -49,6 +77,7 @@ examples: - | #include #include + #include pmic { compatible = "samsung,s2mpg10-pmic"; @@ -58,6 +87,8 @@ examples: system-power-controller; wakeup-source; + vinl3m-supply = <&buck8m>; + clocks { compatible = "samsung,s2mpg10-clk"; #clock-cells = <1>; @@ -65,5 +96,25 @@ examples: }; regulators { + buck8m { + regulator-name = "vdd_mif"; + regulator-min-microvolt = <450000>; + regulator-max-microvolt = <1300000>; + regulator-ramp-delay = <6250>; + }; + + ldo1m { + regulator-name = "vdd_ldo1"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1300000>; + }; + + ldo20m { + regulator-name = "vdd_dmics"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1300000>; + regulator-always-on; + samsung,ext-control = ; + }; }; }; -- 2.51.2.1041.gc1ab5b90ca-goog