From patchwork Wed Nov 2 18:44:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13028867 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 780A1C433FE for ; Wed, 2 Nov 2022 18:49:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=wmXy4PtKwrfPQQVJgJyxDcDPRbV39snIxenSXyx2tuE=; b=Yl5LyouxuFUnCH wG8rMrA0I4F2NHzN1LLPleb3Q+xtgDI7nAw2qVWk9NwSfn5sbQZQAQrD9Jx5I+IEHbS9LJEWnPnNm tJD/h8PGSccvZXOD4HUvXw9b3By7a6deh/Qp2JEXtMJCO9wtjsIo7Cg4D/8BRdgTT0xciYoktQhtV FnKfB3OGgjUDqOGagYrmgfpBLXLAJBrQdg7LG/ms7NudhGCyeoCwG7cvcDa8E6WvD5xmH8XMe6ZES XZsCIxJSf12q6y5zXXsyr+BNSIWXaLNQWfg1pm+oZHJdG008j1PpCJDe2makXpPYzHDqUbB7SZzQv EHrqNR9HrNNl1pZYU3sw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqIne-00DGx3-6T; Wed, 02 Nov 2022 18:49:18 +0000 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqIja-00DE6T-Ph for linux-rockchip@lists.infradead.org; Wed, 02 Nov 2022 18:45:08 +0000 Received: by mail-qk1-x733.google.com with SMTP id k2so6804337qkk.7 for ; Wed, 02 Nov 2022 11:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qwMjg0saElDDpZvRFhfvApzBKYcp7fB4XgxFqTJpFWI=; b=iGaADkhPbx01tqF1+AYct8FpWGDExhUT2ThVozEDuaLinordiXkfGKDZpED19wmdIp gXoCt6vU+OA79pnmBQTyTQ4nfrFkGI4DNHP7o9BhEAnjd+u8NRo8BW7r3Q0mdz539oLN tVWVrYO8X1atqcXLlOd1aKpzCxaKFmbFfwObPNU+OSowx4qHLKMXDh746xPhIZ6pX62S A/bUZ4W3kYHaExw5AgcH8cks2eKcfFscaYfeWwvwDC7AeXwdAZtiXw+qpTsY/gE7rgpE /I8/DTlg/hLmd9HOumtV4uncWgUKqgTz2i8gJQnlmEU+2zBkvs+rs3l7gDxl907ltBtC j/uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qwMjg0saElDDpZvRFhfvApzBKYcp7fB4XgxFqTJpFWI=; b=dDRba8zJ0gvytKfoLRZY9fuGoV4ukvOegxdCd/BbJa/VJZ5VikXphGKbpb/QZnt+uk ej8SAEXV2nLUADXQn6ydi3kyK482UZo6ur6Yqlg0WP7DM3gKCV9Q4pfw/LYj3X6her+C rVjX7Oc/X9aARDq6yJ/P4DtdR9nce7PI/H8q1NXy2lvEdRlI9mGlh6pTMbQDrrH8lwEf mjoxa8KAGLfUnrzmseN7juLKy6vKFWypD0yMnHs+uEsE4YRumzgYFuaWuaFIf8z2wcyu h0BvvlERWcq6DPNOAEza+SFIkBi/40/O4yA3knXMajYfAzx7pQTyyUIbUzvfTZxTKXhG Zn3g== X-Gm-Message-State: ACrzQf2Zd8b6z5EBSS9JKjZ4YRlSYvY0ORlBWWZHXh5JRI6ScGMa3TRz 8lJVwScPiWh4F1RjMs3+NDqc5Q== X-Google-Smtp-Source: AMsMyM7qMH4VE42ylFBZd3s7+XZqRDReXC3eIHhr14XAC1ZQJeiWIRtuqGId4UaNsQI7xBD3vRaSbQ== X-Received: by 2002:a05:620a:13fa:b0:6fa:15e3:a277 with SMTP id h26-20020a05620a13fa00b006fa15e3a277mr17133309qkl.479.1667414705461; Wed, 02 Nov 2022 11:45:05 -0700 (PDT) Received: from krzk-bin.. ([2601:586:5000:570:28d9:4790:bc16:cc93]) by smtp.gmail.com with ESMTPSA id w16-20020a05620a425000b006e54251993esm9090413qko.97.2022.11.02.11.45.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 11:45:04 -0700 (PDT) From: Krzysztof Kozlowski To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Sebastian Reichel , Hans de Goede , Marek Szyprowski , Sebastian Krzyszkowiak , Purism Kernel Team , Orson Zhai , Baolin Wang , Chunyan Zhang , Dmitry Osipenko , Chris Zhong , Zhang Qing , =?utf-8?q?Pali_Roh=C3=A1r?= , "Andrew F. Davis" , Artur Rojek , Matti Vaittinen , Markus Laine , Mikko Mutanen , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-pm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 1/3] dt-bindings: power: supply: define monitored-battery in common place Date: Wed, 2 Nov 2022 14:44:59 -0400 Message-Id: <20221102184501.109148-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221102_114506_865666_2338D3CC X-CRM114-Status: GOOD ( 14.88 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Define the type of monitored-battery in power-supply.yaml common schema. Reference the schema where applicable to enforce the above in bindings which have monitored-battery property. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v1: 1. Re-work the patch - define the type in power-supply.yaml. --- Documentation/devicetree/bindings/mfd/ene-kb930.yaml | 6 +++--- Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml | 2 ++ Documentation/devicetree/bindings/power/supply/bq27xxx.yaml | 2 -- .../devicetree/bindings/power/supply/ingenic,battery.yaml | 4 ++-- .../devicetree/bindings/power/supply/power-supply.yaml | 6 ++++++ .../devicetree/bindings/power/supply/rohm,bd99954.yaml | 1 + .../devicetree/bindings/power/supply/sc2731-charger.yaml | 1 - 7 files changed, 14 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/ene-kb930.yaml b/Documentation/devicetree/bindings/mfd/ene-kb930.yaml index 06ed9ec8f4bb..7c0a42390f18 100644 --- a/Documentation/devicetree/bindings/mfd/ene-kb930.yaml +++ b/Documentation/devicetree/bindings/mfd/ene-kb930.yaml @@ -13,6 +13,8 @@ description: | maintainers: - Dmitry Osipenko +$ref: /schemas/power/supply/power-supply.yaml + properties: compatible: items: @@ -22,15 +24,13 @@ properties: reg: maxItems: 1 - monitored-battery: true - power-supplies: true system-power-controller: true required: - compatible - reg -additionalProperties: false +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml index 935e17099213..269fb85b2027 100644 --- a/Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml @@ -124,6 +124,8 @@ properties: The child node for the charger to hold additional properties. If a battery is not in use, this node can be omitted. type: object + $ref: /schemas/power/supply/power-supply.yaml + properties: monitored-battery: description: | diff --git a/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml b/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml index 65fc6049efc1..347d4433adc5 100644 --- a/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml +++ b/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml @@ -60,13 +60,11 @@ properties: monitored-battery: description: | - phandle of battery characteristics node. The fuel gauge uses the following battery properties: - energy-full-design-microwatt-hours - charge-full-design-microamp-hours - voltage-min-design-microvolt Both or neither of the *-full-design-*-hours properties must be set. - See Documentation/devicetree/bindings/power/supply/battery.yaml power-supplies: true diff --git a/Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml b/Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml index 46527038bf22..42fcfc026972 100644 --- a/Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml +++ b/Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml @@ -10,6 +10,8 @@ title: Ingenic JZ47xx battery bindings maintainers: - Artur Rojek +$ref: power-supply.yaml# + properties: compatible: oneOf: @@ -28,8 +30,6 @@ properties: monitored-battery: description: > - phandle to a "simple-battery" compatible node. - This property must be a phandle to a node using the format described in battery.yaml, with the following properties being required: - voltage-min-design-microvolt: drained battery voltage, diff --git a/Documentation/devicetree/bindings/power/supply/power-supply.yaml b/Documentation/devicetree/bindings/power/supply/power-supply.yaml index 2f672e6e8d72..4e54c937973e 100644 --- a/Documentation/devicetree/bindings/power/supply/power-supply.yaml +++ b/Documentation/devicetree/bindings/power/supply/power-supply.yaml @@ -18,4 +18,10 @@ properties: This property is added to a supply in order to list the devices which supply it power, referenced by their phandles. + monitored-battery: + $ref: /schemas/types.yaml#/definitions/phandle + description: + The battery (with "simple-battery" compatible) being monitored by this + power supply. + additionalProperties: true diff --git a/Documentation/devicetree/bindings/power/supply/rohm,bd99954.yaml b/Documentation/devicetree/bindings/power/supply/rohm,bd99954.yaml index 24b06957b4ca..14d9b42eda27 100644 --- a/Documentation/devicetree/bindings/power/supply/rohm,bd99954.yaml +++ b/Documentation/devicetree/bindings/power/supply/rohm,bd99954.yaml @@ -18,6 +18,7 @@ description: | provides a Dual-source Battery Charger, two port BC1.2 detection and a Battery Monitor. +$ref: power-supply.yaml# properties: compatible: diff --git a/Documentation/devicetree/bindings/power/supply/sc2731-charger.yaml b/Documentation/devicetree/bindings/power/supply/sc2731-charger.yaml index eeb043f9bb4f..735f7d372ae1 100644 --- a/Documentation/devicetree/bindings/power/supply/sc2731-charger.yaml +++ b/Documentation/devicetree/bindings/power/supply/sc2731-charger.yaml @@ -28,7 +28,6 @@ properties: The charger uses the following battery properties - charge-term-current-microamp: current for charge termination phase. - constant-charge-voltage-max-microvolt: maximum constant input voltage. - See Documentation/devicetree/bindings/power/supply/battery.yaml additionalProperties: false From patchwork Wed Nov 2 18:45:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13028866 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8FE06C4332F for ; Wed, 2 Nov 2022 18:49:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oVnPujv0gTt0EsepbTZEObYnHjCE9gdoRxguU1nVw5o=; b=fNoJ6D6BDVBGyD biZqoyagYcynmvgvmk+BiEH0hgmABLoXbaJ92XoNpSx1JjpsfkB4vONKJJZ3yFWbyAe5Gz+ldNB7w H6k6mvmKOGWQP1M3O47xQUr4HHdoFL5pxwBtqUGML0VtjFbDtegUE5ARHH+GBmVNw0Iid4Ap9sF0T AwXxz1VdbwETzxmqVFaY8Ld0E8qqwUvxGMEb8FiuoeliW6kvb2xTvSIa5e6/sEqLz3X3WudCNOf5K ummwW/15/g6lEC4Z41sWVQXgJQAwHclPxoprYDsdU+pKa9ID1UgR+y2fa6FQScDFRTU2Ag+YPAzTK nu4QfeXxHXQYkJM6e8Rw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqInf-00DGxW-1m; Wed, 02 Nov 2022 18:49:19 +0000 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqIjd-00DE7b-0z for linux-rockchip@lists.infradead.org; Wed, 02 Nov 2022 18:45:10 +0000 Received: by mail-qv1-xf34.google.com with SMTP id w10so13084152qvr.3 for ; Wed, 02 Nov 2022 11:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=sw13xCxrWW7/c5Fz/JcFaLDrTASeOurUe6I0AYCZbD4=; b=udIT0nxuenxnrydYnnneSbq1kxmcFyNXi2DVAJTm3kehndEks41kjDCpG0lzbYIf78 PgCCATBleZBo7Vmex+/nXIzct+osTedJjN/dNlgPOt8N8ZoYVlvmtRs0jU09kjnYRlIt B5BJuNKg9fpJsLQWfJqifZIjK23+wXtJDqPhrtj2FfIWf2iyeddQNcpi6ZJRMXVD0lCc 8nP0Uc2etqzmXqbOPjSBuKvTwx9cpD6NkjY9NwEtvXriCZ1wxd0iYIkwfqnOJ3NDqcUO PkND7tSuTILfNdQ/i2KkV1f7It+RrVobFs3lvrm8j+xfNnmfaS4MPvkDRa4WFBLqcBf/ RZew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=sw13xCxrWW7/c5Fz/JcFaLDrTASeOurUe6I0AYCZbD4=; b=oChpQv2qa/npDmJzL0vALHmWVqaD37jCnaJD7GDN1/xtuekpDo+KpruVwW/yj5sJA6 7azxukXMfJoIYXdi6+ghgooMupRlSUKWtxMjgpuWPKjeMsIC4kBr70FOoFRX+TfnUPSy cr+ExDSx9hiLrejBPWW8Dzs8vTcL69on7fUnl9iL8Fs8Cc0UrNKzJtCMOtIEOVvkUili kXfCSJHy6lYREpGPHdZY2FQx7/R71/7gj+Ne2CMtZQscwMiYGyVoXgvhGLykqSbbns62 +vL4KES92YZ4nE+LClSIBRGdNEAyVQC87dinzzmuVKbirIn8ZzscLxp2yfHuiMbAF0Fp waBg== X-Gm-Message-State: ACrzQf0eDZMRNnZ98R9YfJGBtNF0nmDi73SP2Xw7vTmUBw0k8BlpZ1Ic WYcmS5fz5DXOHtPKt5rIRKTrww== X-Google-Smtp-Source: AMsMyM4oPJF+sU24TOosWCSqTLZRNbJTu8UlWiOtm53FD1sSIgM2j2p83IQQj7zV5DX2nVcByTzDFg== X-Received: by 2002:a05:6214:300e:b0:4bb:704a:ec5d with SMTP id ke14-20020a056214300e00b004bb704aec5dmr22066032qvb.42.1667414707185; Wed, 02 Nov 2022 11:45:07 -0700 (PDT) Received: from krzk-bin.. ([2601:586:5000:570:28d9:4790:bc16:cc93]) by smtp.gmail.com with ESMTPSA id w16-20020a05620a425000b006e54251993esm9090413qko.97.2022.11.02.11.45.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 11:45:06 -0700 (PDT) From: Krzysztof Kozlowski To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Sebastian Reichel , Hans de Goede , Marek Szyprowski , Sebastian Krzyszkowiak , Purism Kernel Team , Orson Zhai , Baolin Wang , Chunyan Zhang , Dmitry Osipenko , Chris Zhong , Zhang Qing , =?utf-8?q?Pali_Roh=C3=A1r?= , "Andrew F. Davis" , Artur Rojek , Matti Vaittinen , Markus Laine , Mikko Mutanen , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-pm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 2/3] dt-bindings: power: supply: bq25890: allow power-supply fields Date: Wed, 2 Nov 2022 14:45:00 -0400 Message-Id: <20221102184501.109148-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221102184501.109148-1-krzysztof.kozlowski@linaro.org> References: <20221102184501.109148-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221102_114509_102586_9E97DA9D X-CRM114-Status: GOOD ( 11.23 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The BQ25890 schema references common power-supply.yaml, so allow all its properties to fix warnings like: arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dtb: charger@6a: 'monitored-battery', 'power-supplies', ... do not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v1: 1. New patch --- Documentation/devicetree/bindings/power/supply/bq25890.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/power/supply/bq25890.yaml b/Documentation/devicetree/bindings/power/supply/bq25890.yaml index b7e8eeb940b9..ee51b6335e72 100644 --- a/Documentation/devicetree/bindings/power/supply/bq25890.yaml +++ b/Documentation/devicetree/bindings/power/supply/bq25890.yaml @@ -97,7 +97,7 @@ required: - ti,boost-voltage - ti,boost-max-current -additionalProperties: false +unevaluatedProperties: false examples: - | From patchwork Wed Nov 2 18:45:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13028890 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63DD3C433FE for ; Wed, 2 Nov 2022 18:51:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MaOb4NxvBN02cEDcb7M+bRiUVgNx1CzxGLyS0obRTK0=; b=EwhQ9GcpYO2xtA KIkAwnasyfpYjScQ0Az8vTsuWmsku8zvh3H+NIsAdNRkjAzqgyi6fk1p/QYI35FR+78vzsyZnHbFf 29TGcC6sf6W0b+WZxD37vU5s4K1Xx4EGlGQXCQlnrJMFh2Wef5m9MxIr4/3VZemWNqj1OUzykVL+p QKJ7lCI4C9ZWQFw3Me8rwPj3384QVrLPIr61j580m2MW9GyrPRqFcujA8orWWc/vA32UROmS2OG2+ YipSTfOKHmSye9AOXtn5y51O91PT0Wb27CZxBkwThgJfU/CzT3ts/2cAMcv3JLGUjzq0FVHC1pGvi E1eA4jV9W+39HW32Drbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqIpz-00DIl3-PK; Wed, 02 Nov 2022 18:51:43 +0000 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqIje-00DE8s-DW for linux-rockchip@lists.infradead.org; Wed, 02 Nov 2022 18:45:12 +0000 Received: by mail-qt1-x82a.google.com with SMTP id z6so11924562qtv.5 for ; Wed, 02 Nov 2022 11:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=OaJC1NoewmXjPxS0Lyt64Qa/JvMUE2LWOQneWFWHmgg=; b=midHby3kR8uErqu/QMklWynWJ1iNS4A6IADiLuugjxJDxFM2F+urA+6P4RVv7Xes8R COsOFSMAurr8NGV6v7V+gWlzpbPx1qYL8oqOpONVecxzTEoY5iIUrf1Btb0XWRi8IvzG cMWzZZFBwnDfI042JdRV5dCMwSXtHINOzz4Az2HF6+BltG9GGJ7ittZQnpCQOBfvwlsX ifqzr8I8mx1SabvBWpbjH6+/dCBa+DHmEj3PGb0UVtkxUEeMNbVCqymH0TzC8YjJhIDy WTXDVKYRIp7MfmP3JH5c87enlyHRgMDbs+tA1+rSw51FGSNPIrE0SSqzeaOeaz7+xOpw c9Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=OaJC1NoewmXjPxS0Lyt64Qa/JvMUE2LWOQneWFWHmgg=; b=DMVAOvYxhtXeEugz8ge9BFQF10VVSeGdBUqHt2eqAfGLbOVsZKQFq8nAkPiXrq3CQQ 4wABWLLkiX62PG7PvJsasyFoyeXRr0H1HcypUslrhM42KG2MbIv7wme37qIq4IQ9kMF2 Jvw8423mo1Pdal78JHsqAunjpfuSkjMBCQ3d1lNu4SaUQafZ12dOU382SzDvPE44vv29 yYZMOl13nZLEWhX7LRfwwYTuQLaivck2xij+5VwoIRISLHKTAGAe8H/vc0GZ0OF/EVtn jWi6etDb/EfOAFWgEyKtadc9BV/L015QWGCJEsMyf9VK2FplHUFmIoivVaer+XoEtDds XGGQ== X-Gm-Message-State: ACrzQf1pzlvO42Um5tteuM6z1Ajs8Hd1YNKznaM0fn235Hp+Ug7oMbrJ ujVFZL0UpDplGdWmOtlNUHwoEQ== X-Google-Smtp-Source: AMsMyM4Xsbl0+npXWymI1g53Xuyz+ex5cxhVd/HsL/qqxgeky19y68fomQ9rZPZYd9MZ1kbNFoA2NQ== X-Received: by 2002:ac8:5c11:0:b0:39c:fd77:336d with SMTP id i17-20020ac85c11000000b0039cfd77336dmr21164500qti.479.1667414708952; Wed, 02 Nov 2022 11:45:08 -0700 (PDT) Received: from krzk-bin.. ([2601:586:5000:570:28d9:4790:bc16:cc93]) by smtp.gmail.com with ESMTPSA id w16-20020a05620a425000b006e54251993esm9090413qko.97.2022.11.02.11.45.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 11:45:08 -0700 (PDT) From: Krzysztof Kozlowski To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Sebastian Reichel , Hans de Goede , Marek Szyprowski , Sebastian Krzyszkowiak , Purism Kernel Team , Orson Zhai , Baolin Wang , Chunyan Zhang , Dmitry Osipenko , Chris Zhong , Zhang Qing , =?utf-8?q?Pali_Roh=C3=A1r?= , "Andrew F. Davis" , Artur Rojek , Matti Vaittinen , Markus Laine , Mikko Mutanen , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-pm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 3/3] dt-bindings: power: supply: maxim,max17042: allow power-supplies Date: Wed, 2 Nov 2022 14:45:01 -0400 Message-Id: <20221102184501.109148-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221102184501.109148-1-krzysztof.kozlowski@linaro.org> References: <20221102184501.109148-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221102_114510_506656_6D2ACCBD X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org MAX17042 Fuel Gauge uses power-supplies supplies: arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dtb: fuel-gauge@36: 'power-supplies' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch --- .../devicetree/bindings/power/supply/maxim,max17042.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml b/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml index aff5d0792e0f..64a0edb7bc47 100644 --- a/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml +++ b/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml @@ -59,6 +59,8 @@ properties: Voltage threshold to report battery as over voltage (in mV). Default is not to report over-voltage events. + power-supplies: true + required: - compatible - reg