From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 E9AE41DB54C for ; Sun, 14 Sep 2025 13:02:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757854980; cv=none; b=vAKbereJ122OJgS6piuKT55WYrQDVw6H7AoD0wUK4Co1o3OYxw88/NV5WmJwqzIZ9SPr9fRkgbD5XFwbJk/uSJmNWifIUZDyzCfPCqeDx8zJkxWfo+uOqmgxyRMGzc3GV/iYyfPcSTp0thlUGft8lZrOhntRluT4pcEha3wYzQ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757854980; c=relaxed/simple; bh=a4ZBBjK/WU5GHiCatrh9aDbJ8ucH3NgYg6flBlGjFPY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FBD+SX/bL4RSpYmczvZzUpfrxE1sBqOtA8h8DLRFic2+WpVZl6d7IpEBzIA14CAelmxaEGl6Pjxzp1AuOKFRRyYvk7HpSPlrC7RTJDKhPImhl5zzjxqBGDXb8viGUijgQOcRkHS7G+h3laPnnQHaCnPxCNijj+lvS2dg4BPKJdw= 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=cGs7srcd; arc=none smtp.client-ip=209.85.128.48 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="cGs7srcd" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-45decc9e83eso34194265e9.3 for ; Sun, 14 Sep 2025 06:02:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757854977; x=1758459777; 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=3oAhxTMJPNeQLUIHyuzOPHBbaUvEyaoQkiLHIc86Fe0=; b=cGs7srcdtQ6wCPD4+7kb6IYdX5KyDNosbjU94EEGYvgQysJ2wybFsH76Ee0ea5LNW8 IQFe/POp38LpLewFomSOEExRLv40KjfNiZ9dCYkj/k69y1LXAFDRdbd6LtRMz4M3wCB9 wQyGhwmoHbYj0qG9shQTTv+UNLqfsJg3FUEoywTeIsCl2lL564zyytHJl9uKNED/Oulv 0F27YihE/fTj1KepIM7E2JzNHeJyAQC1bA8C7zZJN6osv/2Fc+/KnRcp27XhACNIJRAP qENzmE+XwwaIivWGxKWY8A+baGdupTMVQiiIRbJamB1gD+9/aXQ5AXsc6ormQUm35CeY qztw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757854977; x=1758459777; 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=3oAhxTMJPNeQLUIHyuzOPHBbaUvEyaoQkiLHIc86Fe0=; b=Ao3idLb7Ihe9hVmk0kGu0YLQ4MtHKcLEht4b+jT4Q0zQQtIPzbzVWlE3m0ix71mHqa Z6dKs9a5FsqTciu30zR4tX+2MlcrjWbgqLOIFQar7BXcfcixzFSI/dtlAW+RBD4pvRN5 +Nzwp9LrLIbG1UMQ9F+8vRSUvTjoVhstkD8ByNcTo542WWPnN8WMeTZ+ZnFvtCVsTm2o YxKoOTlq0YRC2coZYfa/y2L55NIvA8gN5K5Jmu6+Yc9Fr2Gwm2CXmhj5Vbe32gwuKfVT zP3CgSWZ226HfeLH72RGD6Scl4J8K1xnC0qDFUOFCmayptnfp2oMBKaxvDjaigDsWwiK 3YSw== X-Forwarded-Encrypted: i=1; AJvYcCUPCRtPML9U+Pu8AzYFB99tGiLJhunWQ6tTCivtXy/G6l6XLXX0uz3+zuBOvaB5GFW/zctBYMNu5NFJ@vger.kernel.org X-Gm-Message-State: AOJu0Yyj15u8sQimzIdQbgDQSVmQNN7tIA4g6G/Gaz/TCKbHLjvhsL7V Lpx4/NAFS7WBCc9T4iGL/BXsAAlzKW5eN353Cj2JrxGnnAumGrvzYrt6 X-Gm-Gg: ASbGncuH5Wag/3m6rouwwtWgtQeOFU3iwoupxGV0JnWM8u9mhF2/C3IdkFzH5xL/Kr6 u8clGPuvF56Lpf2buGAlzdaG2JXdxmW9XX48Zy/Z5nB14mZdALhTIaymK/c5RG/DUFXU0n691fA /h00Ul3IynNjg/cctPFe/eYZJlkipWMfwZc6dFgrFPss5nvrxrwclsXrFRpi9EZJKuQqPZVWUoa rUj/Ser+aq3scHs0on4x9dlWfAgsu7MF1xCkylbknN4/426HhPyEG5ij67GKSk0yu9H0h0RWpkS iYsPuNGZnc/eT7Dp7HJWJcW5lFK/oAbutD/ZvNE5iSMGyKjZ8I6FI9vF4ekjuWEqCSOTjeSG++8 mzEEeazvfsddmZWO4MvQeswOMuYPI7KasfLTkg7KgnsXZZ8uOhoPUgPQq/2BiEWLWk5Y99gyMQA == X-Google-Smtp-Source: AGHT+IFH0J7++zpYZUA+Z1NkSGmTdds/qaGaHNjbECc3qbgcVLSHKSOo9xfYKAK2+jJQWK3yvOFXag== X-Received: by 2002:a05:600c:b51:b0:45b:86ee:415f with SMTP id 5b1f17b1804b1-45f211ccceamr67997095e9.6.1757854977246; Sun, 14 Sep 2025 06:02:57 -0700 (PDT) Received: from ivaylo-T580.. (91-139-201-119.stz.ddns.bulsat.com. [91.139.201.119]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45e0187f0a7sm77060965e9.3.2025.09.14.06.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Sep 2025 06:02:56 -0700 (PDT) From: Ivaylo Ivanov To: Krzysztof Kozlowski , Rob Herring , Liam Girdwood , Mark Brown Cc: linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] dt-bindings: regulator: document max77838 pmic Date: Sun, 14 Sep 2025 16:02:29 +0300 Message-ID: <20250914130230.2622030-2-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250914130230.2622030-1-ivo.ivanov.ivanov1@gmail.com> References: <20250914130230.2622030-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The max77838 is a pmic, containing a BUCK regulator and 4 LDOs. It's primarily used in the Samsung Galaxy S7 lineup and is accessed over I2C. Document it. Signed-off-by: Ivaylo Ivanov --- .../bindings/regulator/maxim,max77838.yaml | 68 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max77838.yaml diff --git a/Documentation/devicetree/bindings/regulator/maxim,max77838.yaml b/Documentation/devicetree/bindings/regulator/maxim,max77838.yaml new file mode 100644 index 000000000..bed36af54 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/maxim,max77838.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/maxim,max77838.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim Integrated MAX77838 PMIC + +maintainers: + - Ivaylo Ivanov + +properties: + $nodename: + pattern: "pmic@[0-9a-f]{1,2}" + compatible: + enum: + - maxim,max77838 + + reg: + maxItems: 1 + + regulators: + type: object + $ref: regulator.yaml# + description: | + list of regulators provided by this controller, must be named + after their hardware counterparts ldo[1-4] and buck + + properties: + buck: + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + + patternProperties: + "^ldo([1-4])$": + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@60 { + compatible = "maxim,max77838"; + reg = <0x60>; + + regulators { + ldo2 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index fed6cd812..a4916a178 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15061,6 +15061,12 @@ F: Documentation/devicetree/bindings/*/*max77802.yaml F: drivers/regulator/max77802-regulator.c F: include/dt-bindings/*/*max77802.h +MAXIM MAX77838 PMIC REGULATOR DEVICE DRIVER +M: Ivaylo Ivanov +L: linux-kernel@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/regulator/maxim,max77838.yaml + MAXIM MAX77976 BATTERY CHARGER M: Luca Ceresoli S: Supported -- 2.43.0