From patchwork Sun Jul 30 17:26:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 128278 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp1655523vqg; Sun, 30 Jul 2023 13:40:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlFipeAmnIEA8eZ+cTeNOReQv39zljRT5UcJsokb+OJ6PjsxGOhNu3uZtp5sq/qHW2xjF4+x X-Received: by 2002:a05:6a20:1043:b0:139:fe4b:e2d2 with SMTP id gt3-20020a056a20104300b00139fe4be2d2mr8123401pzc.56.1690749631879; Sun, 30 Jul 2023 13:40:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690749631; cv=none; d=google.com; s=arc-20160816; b=geKywTznMgz6GXuIr3mrEZJoUXgAQBcxdUH0Pi0I2amZELiTFf0o6nQtpgFnPXz84i 4R3OcbHSS94yhIwq4FfmmOdwC2dpO33vIVloryclKyOKVUmlEyN10p9GqyKZvC14s4ll I5joZ9f8Z5yLbivyDc66gpKde04QO29026AnIoJa9WgcKVaeqc9ONdCD/2xJBoZpCwJe 554dylZZp5344BCLMQ4iUK5SXrgZv39KGIq9DYRz4EDIN2cFRlUUEcwsRDd/MlsH7WsK ADXv6vVgr9YuF/qvyS6SAtMe+RqSwucaNvgt8LluRwCgcyG4pBTWmns9zQ4U+ZSUn/pR sq2A== 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=z8kWVxhD71IIdy/AgMqM2tISpTPB47LaxO4vVrxguZc=; fh=6EttwLj8TkcYgYcXwCN3+c7mDFZsrHr1IQ/n7Iq5Tzc=; b=TWtLIXQ+G23FOmyg/g6Is2vxLeuOWKPaKNpA+wiiQxqqqm2YppOH+6HZBjljzjC/jt R3UKTe+8ggSLPerNXOX+UhzlOtUZJUjwHTHikgW5j7sxIg3v/1uNiSjJ+ldNBqZFNESu R2DLgtwhIZ3bw91+HZ7GgQCuWSgDzsCQaMzWJjS45Oezs0jINsRTMF8aSw+NOhPYOVMQ CYudG3OdAkpwb+Lm4dAtLxSOr9I9OA/CFv+sHZYWBVBNNTAl2lq10y6kN2e5AM7QwuS0 aB3U8mLVvysHKxKS+Gs6t/tPLycj93wv/yi6tEOSUC0cJhBH2H3ny2DpZAyNrH13TuWA QQ1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=MC8TCH9C; 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 u11-20020a6540cb000000b0056424625528si3534019pgp.656.2023.07.30.13.40.19; Sun, 30 Jul 2023 13:40:31 -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=MC8TCH9C; 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 S229785AbjG3R1U (ORCPT + 99 others); Sun, 30 Jul 2023 13:27:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjG3R1P (ORCPT ); Sun, 30 Jul 2023 13:27:15 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4EFE126; Sun, 30 Jul 2023 10:27:14 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4fe27849e6aso1819377e87.1; Sun, 30 Jul 2023 10:27:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690738033; x=1691342833; 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=z8kWVxhD71IIdy/AgMqM2tISpTPB47LaxO4vVrxguZc=; b=MC8TCH9CgDZVR576uMzXETmgTfuqE1VYop4dVcLL3LjAJn0Soyg/bs+FdaRgmxj9BV H5vL0/N391Q+Iu6rsGvdgxSi/XSv62QmNoiUxJ8FO4N3t7KUqR/59AX+JqO877BUXMp7 qauTQVxNpkd8qiLvE5vGLo9tV2nuLrw/H8Mrb5FIrOQbpK1vGge0139O0b91vQv5BcEh CXM3gaBUgnuY3aPQlTtgEVy+aPQVQHV1Ry4JECCwvlrag14ldQtdAioVDs3TUJCx1mBX bW1hjM5ZcTdRAKc103GwOpYgKR5ZePwf/e3IQ6mnK/NlyzDy9rfsMYvGTKdC8AyWrTse 5n5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690738033; x=1691342833; 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=z8kWVxhD71IIdy/AgMqM2tISpTPB47LaxO4vVrxguZc=; b=VzDYA6qeZBu+bMU4o+tMDNnpoYe2WlpEjX32IM4RoIVar2DIEF9/JkUVknIcSowu+V mhXoC10ybdvPtow1dgnrxqMkqLbcywUf1ZgJZOKxI749kRO543gkWoYm8l3hLRXhUsps t0VINaZaTCWrU1/oqd2DsOWt6YMPuRWMXPsZpc24pUz0Xn+DUndk/aSQ9pC/vjn0Op5S 4RImjh/t3QIAmgP4iCBRShHhmkO+DlKzIV7j2cen0+xMWNbfsoFdHWYkc38Vh186Uyea v0XlpD6mCB28ul1YyDvdXQYNdStsKPVMWwjmOh1OKogpwm8L3Ql8iY8CIG2vdyIitMtW czMw== X-Gm-Message-State: ABy/qLaiErryyepXffNpnV7XjEfK4xjvX5jeoxjo3SDf4/swsbBWANQp d93DC7L/Ov1Z96oA1fDk+qo= X-Received: by 2002:a19:8c09:0:b0:4fe:1e74:3f3a with SMTP id o9-20020a198c09000000b004fe1e743f3amr4108295lfd.58.1690738032723; Sun, 30 Jul 2023 10:27:12 -0700 (PDT) Received: from xeon.. ([188.163.112.48]) by smtp.gmail.com with ESMTPSA id x6-20020ac24886000000b004f8555f7aa1sm1737117lfc.52.2023.07.30.10.27.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jul 2023 10:27:12 -0700 (PDT) From: Svyatoslav Ryhel To: Iskren Chernev , Krzysztof Kozlowski , Marek Szyprowski , Matheus Castello , Sebastian Reichel , Rob Herring , Conor Dooley , Svyatoslav Ryhel Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: power: supply: maxim,max17040: update properties Date: Sun, 30 Jul 2023 20:26:46 +0300 Message-Id: <20230730172648.71578-2-clamor95@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230730172648.71578-1-clamor95@gmail.com> References: <20230730172648.71578-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_BLOCKED,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: 1772872996647659201 X-GMAIL-MSGID: 1772879485650852264 Add status and temperature properties. Signed-off-by: Svyatoslav Ryhel --- .../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..4bccf25a111c 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 + i2c0 { + #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; + }; + };