Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp991696rwl; Wed, 5 Apr 2023 10:17:21 -0700 (PDT) X-Google-Smtp-Source: AKy350al7h2KVJO1VawfF32XDKrKvrtUMEWK6togRCbZCJUifltV2iG/bH4U9QDhQeSGe9J7ZNPz X-Received: by 2002:a17:90a:fb06:b0:23f:3539:d326 with SMTP id it6-20020a17090afb0600b0023f3539d326mr7843017pjb.0.1680715041708; Wed, 05 Apr 2023 10:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680715041; cv=none; d=google.com; s=arc-20160816; b=MAD1mKD7f2r+VCo+cthIcHgRW82ZOCltSBGtb8TYwFlCapvYfnNNROaoLCK1xK09c6 fpOMeufTK8LzuZrCErVP75N0XhZL3JJBoqOCJZnIgn6Xo3mfkBtnSbwoEnwpfCC0ejGC 4KKlUs4wgUIP2lUVJ6tmSht2fubXT+g9DTPJ8KtBQjo2yZDsSLJfnc1uVTlSmgYQNOba f95CYjMKOfGC9UyzcbNvc9Mnpxfm3SFiZKLDx71X/auyb+U/TTPTU2X1aMicIqbQmWgi cCFNXhzJGbEJdobs+oURfe15zctcJHMZJQ0gG84p8ayS8jExmRG4V2oVkUgZIW2bZPmF FScA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=16y+eEJkId2mz59HB8zrsXfv3Ngj1u1SaDWwb8VA0Ns=; b=MPoMWoU/3Vp6Rl3CCHomditcBaFWdjRQj1k+j/tLPgEHtl9u/xAqTNSa3+4O6v+WdN joGn0U1MC1UvS5GKecX5+f4kcgx3AJdyGYBrSyD1MvI1AY3PlcDcrLP6FKdCbJvW+sEV rVnyx+JMe+ZDkLQa92EJ4w4LiYcANUVSYUoh0wVxdKLQsyxDeEYNhGuFZA0NZSfqM/aK lQnZShL0Ff19W2DIPUgyqzaFqTJDR19F7XooEj6HxlRtEmJqSiT+3XK/LvSO1F5fHXj1 MG1K3LGiD9XIwA7MTCKkCD1enDanDx7OYXuOg1gHNbFTLH2KjmEBtwU0+GXLPbp4PV+3 n7ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BBhLQRWK; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x13-20020a17090a1f8d00b0023fb878c669si1723349pja.6.2023.04.05.10.17.09; Wed, 05 Apr 2023 10:17:21 -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=20210112 header.b=BBhLQRWK; 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 S231190AbjDERPE (ORCPT + 99 others); Wed, 5 Apr 2023 13:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbjDERPD (ORCPT ); Wed, 5 Apr 2023 13:15:03 -0400 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74097B2; Wed, 5 Apr 2023 10:15:02 -0700 (PDT) Received: by mail-qv1-xf2f.google.com with SMTP id m16so26549902qvi.12; Wed, 05 Apr 2023 10:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680714901; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=16y+eEJkId2mz59HB8zrsXfv3Ngj1u1SaDWwb8VA0Ns=; b=BBhLQRWKVMwdciQ/giXksgH0Y55dsegImnBWgpNXYTGYxbgRvgj9PcnWf39zIMWiy0 RkKvM86O0PRQzQONpVIaDNVFeCKKlWYmAv8KB1lPNTC3U5caIA6xzVnvUb0FfeFIl3uY kaxAjTGKmKBTlLVVSTlSQqGC3PzyxknknvNcc8I7xT9mTgs8C39sh1Z64pPZvDxLeQ4A RgKXPRgPd48QkXdfOV5hPlrxtANllIP79nI+f2W+FNWqWxD05kSuhYyg/USMik8nEqhF eQNv0bx3I/C1YliccNyEiOrsrGAmy68SCXsneauWQKw1MhcJm47D0NskcH1bXle5GsVM 4czQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680714901; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=16y+eEJkId2mz59HB8zrsXfv3Ngj1u1SaDWwb8VA0Ns=; b=7q3VrViAGwdQZ01vc8TD5Y05fwrM0+DyysQPQV89ZxYO0g+Dgx0ip2JGUgZVmq8A4R D/5iWo9zWKOdegUYY13djS6VYOAGkkgMnh8w0i4iMomdq/xLKG7BSMmcrGRXAL11fHJB soEolLgdo2dEWn5g326Q5CSG+JADuNhPqF1UQNz6nGHYPSxFv0Iz/ZCg8SkH2xcm1Dnw PDSfk5zvQWmxx7477qWJ0/6iL/jcaE60uB6mvLl5J+crjMcrA+ucZOICGeqdamr/6ROe 2+bKhfpgvJ30xX5jQMXDm45S6SHQgP5ldMqqCwIrHbLl9yRZqh2at1TexHa8/5fI7DIq dc2A== X-Gm-Message-State: AAQBX9evWW72hjzhkSvteNbof+ezA90BBBcWUlwDe/8HD8XLeRfyW2u/ HJ9S47EPVwWDw/Dm5Eq9JaIixe07EpnpeA== X-Received: by 2002:a05:6214:509b:b0:56e:98a1:fff1 with SMTP id kk27-20020a056214509b00b0056e98a1fff1mr11374861qvb.7.1680714901438; Wed, 05 Apr 2023 10:15:01 -0700 (PDT) Received: from [127.0.1.1] ([91.230.2.244]) by smtp.gmail.com with ESMTPSA id ct9-20020a056214178900b005dd8b934571sm4403209qvb.9.2023.04.05.10.14.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 10:15:01 -0700 (PDT) From: Benjamin Bara Subject: [PATCH v3 0/3] regulator: da9063: disable unused voltage monitors Date: Wed, 05 Apr 2023 19:14:33 +0200 Message-Id: <20230403-da9063-disable-unused-v3-0-cc4dc698864c@skidata.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAHmsLWQC/4WOQY7CMAxFr4KyxihxEoaw4h4jFk7j0gjajpxSz Qj17qSVWM/KerL++/+lCkvmos67lxKec8njUMHud6rpaLgx5FRZoUarnbaQKOhjPblQfDA8h2f hBMaf7JGxdd4GVbORCkMUGppuTfdUJpb18SPc5t+t8PtauZWxh6kTpk8N6i9jDbrgTwerg/Pag 4EYSSjYy62n/Dg0Y7/KulymUf628TOuyv92zggasDUxIaGzji7lnhNNtCmvy7K8AZB2CgwSAQA A To: Support Opensource , Liam Girdwood , Mark Brown , Lee Jones , Rob Herring , Krzysztof Kozlowski , Steve Twiss Cc: DLG-Adam.Thomson.Opensource@dm.renesas.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Matti Vaittinen , Benjamin Bara , Matti Vaittinen X-Mailer: b4 0.12.2 X-Spam-Status: No, score=0.1 required=5.0 tests=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 autolearn=unavailable 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 Hi! Follow-up for my initial patch regarding the disabling of unused voltage monitors. We use the PWR_OK functionality, which asserts GP_FB2 if every monitored voltage is in range. This patch should provide the possibility to deactivate a voltage monitor from the DT if the regulator might be disabled during run time. For this purpose, the regulator notification support is used: https://lore.kernel.org/all/cover.1622628333.git.matti.vaittinen@fi.rohmeurope.com/ v2: https://lore.kernel.org/r/20230403-da9063-disable-unused-v2-0-2f1bd2a2434a@skidata.com --- Changelog: v3: 2: - add clarifications, reword XVP to voltage monitoring - improve error messages - ensure that only one severity is set 3: - document that ov and uv require same severity and level v2: - reworked solution, based on Adam Thomson's feedback --- Benjamin Bara (3): regulator: da9063: add voltage monitoring registers regulator: da9063: implement setter for voltage monitoring dt-bindings: mfd: dlg,da9063: document voltage monitoring .../devicetree/bindings/mfd/dlg,da9063.yaml | 17 ++- drivers/regulator/da9063-regulator.c | 147 +++++++++++++++++---- include/linux/mfd/da9063/registers.h | 23 ++++ 3 files changed, 157 insertions(+), 30 deletions(-) --- base-commit: 7e364e56293bb98cae1b55fd835f5991c4e96e7d change-id: 20230403-da9063-disable-unused-15836e2f4539 Best regards, -- Benjamin Bara