Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4932013pxv; Tue, 6 Jul 2021 12:47:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPMucRdczoG0AU5FNICDOcSAA6toFLGbtTiewaHMJjIHyefRKVuaBLcCOnaLUrdDKkc2UQ X-Received: by 2002:a02:cba8:: with SMTP id v8mr18252714jap.111.1625600854394; Tue, 06 Jul 2021 12:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625600854; cv=none; d=google.com; s=arc-20160816; b=Sz3p/3263R6X7tYCB7RNQuieJfGsKsQldegLFt0K1/eVYJB7Xbo4Z4ibpzg5Tk1NbF zA3xhuTEAvPC4MU+b/4RVkuoa8fCZT9vJKVHkRyqzLEDhseeFgqnirrklX0H20slw/K4 Ag/fHaNydVVqB3fIV2Eu7oErJ9wyS77NSawczIuA2n2b0NfZ2DDylDQfJRRCqKvzyQA+ Er1JhGxRWKGFLh5hyarD1yjenzDhkYK1Dh9PUA/qV9iTETOn+GPTqH+nFLnsaQvfE5L0 nbgNdBB/9JaI0zIKckzSX+VZuBCZDnSP2QGIC0ee+b7vFcetHRjKkFD6J3466fzRiP/z c8qQ== 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=bHoLLiu90aOdwdXLXaIrQJGyK+lK9ueS+7YbBrWG1RQ/ayoMop4xROLRrY5xZAuOWw 6I2tRHC8vdEmJZCO3CY7APhFCvn+9llArvjXwpcg26N5U9Jt7afLwu5+bE6fib2QA0mb HBOV/WCM/ONmjPStoV9CNcXJKiTTy+LZFdIogldBxOyK8RNrAr2R2JFPJh2acGoQIeGv sPI8y32nuyCnqPhvcR3hIK/HRlAJ3B5F3r2nfrlHk3Or2y6dgNLg21JQx1FbTR8lQ3Pc 4qC5HLi5damHYXpQA7D50jS8SQn+JnQgoGYjs+ME2eYJ8evEGdqVn8Ufh3nEv1XXocUu zkgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RmTpKZOJ; 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 c18si15343965ioo.51.2021.07.06.12.47.22; Tue, 06 Jul 2021 12:47:34 -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=RmTpKZOJ; 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 S230026AbhGFTs2 (ORCPT + 99 others); Tue, 6 Jul 2021 15:48:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:50795 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229811AbhGFTs2 (ORCPT ); Tue, 6 Jul 2021 15:48:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625600749; 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=RmTpKZOJC7fOkgv2IPjLr3B9umPbx6Yvk1YkiJFhg7Yr7xYfmyplfJouuuOrGz6KhKO8Cg qyYaVSwQv32C411Jw3HL8aueUJk5iTTyH/AiGdBCilF/+wjDg3p+3XYd9ILXUOLDi3/eM1 jyvNFzw+j4MNO6R5XtPUFgeUsG/hJMk= 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-353-XVEx5cryNF6xCFejy5KNuw-1; Tue, 06 Jul 2021 15:45:47 -0400 X-MC-Unique: XVEx5cryNF6xCFejy5KNuw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 93C119126F; Tue, 6 Jul 2021 19:45:46 +0000 (UTC) Received: from localhost (ovpn-113-53.rdu2.redhat.com [10.10.113.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id B52CA2EB38; Tue, 6 Jul 2021 19:45:42 +0000 (UTC) From: Bruno Meneguele To: sre@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Bruno Meneguele Subject: [PATCH 0/2] add Watchdog Timer delay support for BQ24735 Date: Tue, 6 Jul 2021 16:45:36 -0300 Message-Id: <20210706194538.368792-1-bmeneg@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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