From patchwork Mon Jul 31 07:36:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 128511 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp1901426vqg; Mon, 31 Jul 2023 02:45:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlHzSFBQU6H/t75ORrs6JzZ0h40bTZ7V554TJpfptoWGGsPQW7MD08orhdOPERg+vhysTt5N X-Received: by 2002:a17:902:d4c3:b0:1b8:b3f0:3d57 with SMTP id o3-20020a170902d4c300b001b8b3f03d57mr10276467plg.31.1690796742080; Mon, 31 Jul 2023 02:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690796742; cv=none; d=google.com; s=arc-20160816; b=R/zvCu4dTTCSLsLVf9BP/F/ABtX6XJOk0KpgugmNQ10kR9In33VWX3ToVX0H+nY58x 3k42dRT63PnrtTZi2wa2No0zcqmSoan8MPqbALpI5ucq0fpw/tg4bEdMvVe1hwSD3u/b L1TDZiDrwcNP+/2X08gXiMzW8r/69/PYAYfJefhhfLqCAfBkbQzq1VPGyaxLkUODMy5j tm4OYTvNWVrQH3Xd4lBWekv5C93mSCvC6cNbR8//0HfNZBekns6n5Yt2TIyejJEGvdP1 1BotzV/5X6o2JboDJpyiy4Q4T/zz8OP5D2lhZOfZXZ+GxiEaEICUCg6iMB1JubChTydd OoSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ceNIGOPbsyHjJmTOQVPb/Eaqj2M4+lsBZ1EpEQosohQ=; fh=BYYxYocqtJiC/MlqHuXF0UZXhvoN/4a0Xtp0KZwYhQ0=; b=E5J8YlPLZr4hQqbtSpJFobdiGcLs/Il8w4S+mm+v3Gz/L3kT2ppddXqy6kTzplJubT gDeIy1L18eXauvA8OETm8rGS8jyLIyhQHdNY2HjefdHmFj1xdcDeiA3KTMilvevknsRM Q3MZ5RTo8tXA+h8gHifI6n1rAXqqF9Hg0pmLhThDSipDwju8Ape2M/4py/5KFAse300Q h2DhPMH/XBCcG1JcNhuB1Tukb3tnRM+WQJ8WD1xq2abkTQZbBwzJDxde6e/YN2LUDUTD n+VarfqSOeK/4Nol7/fep7rll5Xrax4KJ1gl3jLT6CFAWPlhutzcPeixpVgD6IM9hDyk rHqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="DJ/sDPnz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lg5-20020a170902fb8500b001b8a69660c1si6896676plb.88.2023.07.31.02.45.28; Mon, 31 Jul 2023 02:45:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="DJ/sDPnz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231126AbjGaHhC (ORCPT + 99 others); Mon, 31 Jul 2023 03:37:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230172AbjGaHgp (ORCPT ); Mon, 31 Jul 2023 03:36:45 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E7B12A; Mon, 31 Jul 2023 00:36:44 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4fb7373dd35so6717179e87.1; Mon, 31 Jul 2023 00:36:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690789003; x=1691393803; 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=ceNIGOPbsyHjJmTOQVPb/Eaqj2M4+lsBZ1EpEQosohQ=; b=DJ/sDPnzy3nCJlSj7g4OH8HbDEsuOk4b9KqLMo9yBq+CovS27mK9oR9qNWdrDczEPu ygntwmf3IlgUCzaE9DJOjSuJg4oGyCpPC14Scc1yCdoO6xTlbP731f3XJrm1dGhkcT1m GJ8zgBfZBbV8Lb8LZd1srCF/dhs4PJmXIpQPS0YGcpTW6+vaYnSE4Mj9hEd6dfjAHrVg TaXIX5I/pWdRk5KFexNYIg8XPHDC7/guX19mvITnbvbMyEMMM4Hk4VoB1Poo1WzQi//A wkle7jx8kJCzMht6G5Z67g7dWU0+RZ74txzTlKjLQ4+Kj8KadW5gQXHwCaVGEorZ2JJp hf9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690789003; x=1691393803; 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=ceNIGOPbsyHjJmTOQVPb/Eaqj2M4+lsBZ1EpEQosohQ=; b=jY/UtDpcPrp3lEneIsKpUzgrJMfOtGfr0W4HdG9VFIdrCYn1eXDAZyQWvaW/9mXMeZ S/OqstEvBX2uW5CjpJd8uj3LJv40qxsuAcKkuR1SEeXzgcLKS+XCd58jRsyYEvf41ErC tfc17Qxe9jc7qI/HMcLjyxW21KqfvMxRuK9xMsIf1XP29I64kP6UhOP3PSeTsR5HIMR2 dwWrpPB0IEWfpuCyh3PtrOuEd4FUxjVXQvGQTKfPfiesGF1TQCfPRafPyMfpAZav6Zoc 13S8aakasW5V6pPupboxxKQS45+AeUUNO45s9yAI8XRaVF2pyTT4l6vL+1HHNnt6w9LU quPg== X-Gm-Message-State: ABy/qLanaTYsX4dySgn2jdCOuEFRz3mMTCCv7uzrdt9PrMy9wBFOQrb+ 8xIzeVAP3rcf1AyUrXR26Uy+ckZ+lRjSUw== X-Received: by 2002:a05:6512:2391:b0:4fb:c9e1:5286 with SMTP id c17-20020a056512239100b004fbc9e15286mr4097169lfv.7.1690789002457; Mon, 31 Jul 2023 00:36:42 -0700 (PDT) Received: from xeon.. ([188.163.112.48]) by smtp.gmail.com with ESMTPSA id m14-20020a056512014e00b004fe3229e584sm586898lfo.270.2023.07.31.00.36.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 00:36:42 -0700 (PDT) From: Svyatoslav Ryhel To: Iskren Chernev , Krzysztof Kozlowski , Marek Szyprowski , Matheus Castello , Sebastian Reichel , Rob Herring , Conor Dooley , Russell King , Alim Akhtar , Arnd Bergmann , Jernej Skrabec , Svyatoslav Ryhel , Claudiu Beznea , Stefan Hansson Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v3 1/4] dt-bindings: power: supply: maxim,max17040: update properties Date: Mon, 31 Jul 2023 10:36:10 +0300 Message-Id: <20230731073613.10394-2-clamor95@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230731073613.10394-1-clamor95@gmail.com> References: <20230731073613.10394-1-clamor95@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772928884646055886 X-GMAIL-MSGID: 1772928884646055886 Add status and temperature properties. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Krzysztof Kozlowski --- .../bindings/power/supply/maxim,max17040.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/maxim,max17040.yaml b/Documentation/devicetree/bindings/power/supply/maxim,max17040.yaml index 2627cd3eed83..377cbb2c2c1f 100644 --- a/Documentation/devicetree/bindings/power/supply/maxim,max17040.yaml +++ b/Documentation/devicetree/bindings/power/supply/maxim,max17040.yaml @@ -55,6 +55,14 @@ properties: interrupts: maxItems: 1 + io-channels: + items: + - description: battery temperature + + io-channel-names: + items: + - const: temp + wakeup-source: type: boolean description: | @@ -95,3 +103,26 @@ examples: wakeup-source; }; }; + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + fuel-gauge@36 { + compatible = "maxim,max17043"; + reg = <0x36>; + + interrupt-parent = <&gpio>; + interrupts = <144 IRQ_TYPE_EDGE_FALLING>; + + monitored-battery = <&battery>; + power-supplies = <&charger>; + + io-channels = <&adc 8>; + io-channel-names = "temp"; + + maxim,alert-low-soc-level = <10>; + wakeup-source; + }; + };