Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4936943pxv; Tue, 6 Jul 2021 12:57:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfAIiDdeNVuOf6wtEtbRickVvMmk+8ckEl8WGOJi5IapvHdaiB7aRRbGRiQa+N2a6eyJuG X-Received: by 2002:a05:6402:308f:: with SMTP id de15mr25185221edb.151.1625601430462; Tue, 06 Jul 2021 12:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625601430; cv=none; d=google.com; s=arc-20160816; b=IZMKjnDAwqxVEDgPWrLsDnfhkkeQ0VxJwpcGN0y5mRPC/20CPipEa5cOozmgT9w+vo ObXri7NJgdhZnfFobOGg6Ag1K/xxucCy/WXL48hpwdwx2oW6z/8v4tb8ZNN0vw8plf4T vunqTtk6cEPZPGIpyAemvwKLielLv2fKhVgrrl6+RGqWWG89q89tLLlrEFGpvlH/CnfT cGnpM9KN/zSfoYMd0HS9YjRcoysUSNqhSgFqLEHNitrSxtOzDRgTQuPz/ojQFVRF/Y4I aRg5cxrTM35Hqq3z/DEGalEumv442n3jMynpNq3GhpEk30kWLOKIb2R8W4fLkt9dD75L Jzxw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=l48cLKIP4BLYpRskzPjaknnhgQT9va3wQwvPL+4/Sx0=; b=zUtry5Fn4rT1+/qjE0GR4F3PDK+V+F6iU5CLJ6ODq2fOBTWEu8T6TSh143zhKoqGPs K168WqriXh8sL+QXIPcYR7B8U6Ii5D+ihcIf0JBiGIT3rBY/RpqD+Ve7pRI6oZKdkT3A k/lJUCvd45ygFTG/7GMAyC6mQDebltmJL8oDi1dtL9D0zIymKb8yiRJCOrcroU56erCU rhH4J//Y31kr42oFrcyWEnlHJcMko2Yhw/aQOwKOfpy45ufYjWUCzO9G2UhvarD6U4W+ uePurlv+RGYHSpyEccvmZeqH0RGjOWEXwPRRrFKjiqSelTJfDuk/eL/h0d79XG2Kv8Ht QiBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ffpUIpbJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q9si3382652edd.413.2021.07.06.12.56.47; Tue, 06 Jul 2021 12:57:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ffpUIpbJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230012AbhGFT6U (ORCPT + 99 others); Tue, 6 Jul 2021 15:58:20 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:51400 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229781AbhGFT6U (ORCPT ); Tue, 6 Jul 2021 15:58:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625601340; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=l48cLKIP4BLYpRskzPjaknnhgQT9va3wQwvPL+4/Sx0=; b=ffpUIpbJE+J/GmMZKi6kc4KMbiSp9w2n/W2jyw280ctV/wta+c5tAJHnHppgs7FaClLpxv OTygzyXIq6SWMKZhb518ijDir02EdF7tyRyrYTpTj4eTFhOO9CcAwvJttbcFUe5z1UoI/j QT16dFc9k4yudDA84WFflpkatmw3pus= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-438-PTl6vPsJP-KKJVaaIutiZQ-1; Tue, 06 Jul 2021 15:55:39 -0400 X-MC-Unique: PTl6vPsJP-KKJVaaIutiZQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B3B5D800D62; Tue, 6 Jul 2021 19:55:38 +0000 (UTC) Received: from localhost (ovpn-113-53.rdu2.redhat.com [10.10.113.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9CBCF5D9D5; Tue, 6 Jul 2021 19:55:31 +0000 (UTC) From: Bruno Meneguele To: sre@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Bruno Meneguele Subject: [PATCH v2 0/2] add Watchdog Timer delay support for BQ24735 Date: Tue, 6 Jul 2021 16:55:25 -0300 Message-Id: <20210706195527.371108-1-bmeneg@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The IC BQ24735 has the ability to suspend the battery charging in case the system freezes for some reason: the IC observes consecutive writes for either CargeCurrent of ChargVoltage registers in a maximum period of time. This period of time can be configured by the user through the ChargeOption register in the bits 13 and 14, but it's only possible to change if the user sends the value directly accessing the I2C bus through userspace, because the kernel driver doesn't read or write to the Watchdog bits. This patchset enables the user to configure the value through the device-tree option "ti,wdt-timeout". Bruno Meneguele (2): power: supply: bq24735: reorganize ChargeOption command macros power: supply: bq24735: add watchdog timer delay support .../bindings/power/supply/bq24735.yaml | 13 ++++ drivers/power/supply/bq24735-charger.c | 75 ++++++++++++++++--- include/linux/power/bq24735-charger.h | 1 + 3 files changed, 77 insertions(+), 12 deletions(-) -- 2.31.1