From patchwork Fri Aug 2 19:20:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 13751902 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 67D9AC3DA4A for ; Fri, 2 Aug 2024 19:25:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=aKF6Zi/1m6aLjcN04yV3BkCZRPPdlRv2r0+D/Gsd088=; b=ZksDPA8tFV51KCIjQOYPVBBfP+ XGqRNuNyspUaIMB58KOQBFJHsDxvQ5xLnaSGRV7uUjFSnwtJ6nvU3+X8TSEQ2FKX2+x3AnkVcEg93 GIgcsRUDO3R9XHyxsxhmpq3AI8efN67/3ugTdrl7+e3bbrTM7RnzXTtqtl2elAIVB2rlHEp7MYzeW 19PTCatAQH8E8qX54j18Gv583KcIyWL6Hgj9Jmyj8Ki7qkZSJhSOApbwK0V02SPTWP2wxP4s/cCKc j5hir62YjkwY9EQWoSlAdfpI7FKUMX4jWgvKmwf9HXiJruv6YWcDcns3ZoS9nMdWCY1qm1Spp4VGy J8XB7Odg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZxuJ-00000009r3l-0KMF; Fri, 02 Aug 2024 19:25:43 +0000 Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZxrb-00000009qYC-1rIr for linux-arm-kernel@lists.infradead.org; Fri, 02 Aug 2024 19:22:56 +0000 Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-3db1eb76702so5454137b6e.0 for ; Fri, 02 Aug 2024 12:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722626574; x=1723231374; darn=lists.infradead.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=aKF6Zi/1m6aLjcN04yV3BkCZRPPdlRv2r0+D/Gsd088=; b=ZXSH9mfE4Dy/oIjaItsdQMbJ83LcWoDsbe8R9DirGxdlCjkSIMJC5X/Cn/KHBIMVrN sT9D5igP3zpMKyFBkivi5PX1HB0O2360QFfJRj6X3iMEA/XJ62DQcMyEh3A2rL+Yvl+a ouHarm9wRp74SOa9dslj9wFRFKAtFA35FxRm8nmHm3YLM02grc711z//Np5kX3GnIu0h Ru3FtkvaAzUkFlGFEi/wh/sLSWTw47zTPd9/OlroxI9cpqyreBJC9A5D0EpqGRyFcGEe 1QKulTRJHl1T5I61H2uHzJlTtzXpK47jFFojhNxIxfYbtqeOU7dHR1E+trbDfcwKYG4Q BRLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722626574; x=1723231374; 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=aKF6Zi/1m6aLjcN04yV3BkCZRPPdlRv2r0+D/Gsd088=; b=Sd+vkYbz5KvikS7P4OgV0VAKXPYAWGNzy39Fmf/N9oNKDDkkVGOZui/visCaH2Cilu OQZP86MUug+0xrAc5oMCcEeDXTsdF+IOSP3up7y3WZzMaEa71jg/dCn5tQV0LKABa/uj v5UtSJSz7k8WrmSmQQ6WxwDeYTEX1I314uMOAqzKn8x4QaBElKhvjW4D8yjV0BVZOkMt UixR9hMhVe2DB8ZbuPk6etUj28t7im+grQIuX74QNvpPBVJcpCheGF4FhUQnbzxSoCgQ VPygv2w8F/7XQS7mptoxV4WbbV+S0KSAN2nN3wIy5MvYDtLQFu8w/oGGwUxmWYDlpGfP eyTQ== X-Forwarded-Encrypted: i=1; AJvYcCUlCMKLMVsBS+03hd95mHK04wIGs02PBlUTmTEd8s4rVjY7kx28woXFbEo3arKEXzNICrsyLsq4bvcKOle7313V7j5Y6fq+HkaFkTi1fPTlviNaOfQ= X-Gm-Message-State: AOJu0YwLX7r+YthPyPF8TZB+yUcKT8qGcnUQ4o9MJ7mbQ+VfkN719VMx Eahq9Av6prmmLq9Pv8ZA9fhyuzIrEpMGBIy9TKUyFqAXL2aSgul3 X-Google-Smtp-Source: AGHT+IH1wc5hz1GvQtj4riUZkn6QJtAKThKL3VwHHxx5uvWODtXToZinS1qoo41MQ31LwphZAMvO6w== X-Received: by 2002:a05:6808:3094:b0:3d5:802c:9056 with SMTP id 5614622812f47-3db557fded5mr5335578b6e.2.1722626574006; Fri, 02 Aug 2024 12:22:54 -0700 (PDT) Received: from localhost.localdomain ([2600:1700:fb0:1bcf::54]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3db563b7065sm584592b6e.46.2024.08.02.12.22.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Aug 2024 12:22:53 -0700 (PDT) From: Chris Morgan To: linux-sunxi@lists.linux.dev Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, quentin.schulz@free-electrons.com, mripard@kernel.org, tgamblin@baylibre.com, aidanmacdonald.0x0@gmail.com, u.kleine-koenig@pengutronix.de, lee@kernel.org, samuel@sholland.org, jernej.skrabec@gmail.com, sre@kernel.org, wens@csie.org, conor+dt@kernel.org, krzk+dt@kernel.org, robh@kernel.org, lars@metafoo.de, jic23@kernel.org, Chris Morgan Subject: [PATCH V2 05/15] dt-bindings: power: supply: axp20x: Add input-current-limit-microamp Date: Fri, 2 Aug 2024 14:20:16 -0500 Message-Id: <20240802192026.446344-6-macroalpha82@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240802192026.446344-1-macroalpha82@gmail.com> References: <20240802192026.446344-1-macroalpha82@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240802_122255_506658_B3647F99 X-CRM114-Status: GOOD ( 12.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Chris Morgan Allow specifying a hard limit of the maximum input current. Some PMICs such as the AXP717 can pull up to 3.25A, so allow a value to be specified that clamps this in the event the hardware is not designed for it. Signed-off-by: Chris Morgan --- .../power/supply/x-powers,axp20x-usb-power-supply.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-usb-power-supply.yaml b/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-usb-power-supply.yaml index 34b7959d6772..903e0bac24a0 100644 --- a/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-usb-power-supply.yaml +++ b/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-usb-power-supply.yaml @@ -31,6 +31,11 @@ properties: - const: x-powers,axp803-usb-power-supply - const: x-powers,axp813-usb-power-supply + input-current-limit-microamp: + description: + Optional value to clamp the maximum input current limit to for + the device. The supported min and max values will vary based on + the PMIC revision, consult the datasheet for supported values. required: - compatible