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: 14452 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp76796wru; Wed, 2 Nov 2022 11:47:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM65XWSt6Mc4a46yZdj21ZPzuocPkfgEittpYYJzElsQ6JnnWNwkFPpPZctrOLnWk0KrBUa9 X-Received: by 2002:a17:907:1ca2:b0:7ad:e51b:3c7a with SMTP id nb34-20020a1709071ca200b007ade51b3c7amr13326765ejc.665.1667414826422; Wed, 02 Nov 2022 11:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667414826; cv=none; d=google.com; s=arc-20160816; b=cWZYKEP9IigKKUdIo5QvM86EefpAQgwlOFVFPZuyuhAGZf8IWcMKcGvm5cSkFqyDOt Q5oRj/tUG+VPiCSd4vgK/JYsujnLK6cgY2EIMKh/vznZjydKmgvO7WrX8tZlJvMmd7tP LHnJOY/T1bcukwtzGgFPrq/cKTaJ3PJMGBgSEWas0LyTfoUA0e7cIRozpTzxGO1bW0i7 Bvzz11WstbhrkreTAmD+W21tXaF5n37wDVQiZYdaQ5P+irt8VyOqbBSGn0zn1H7oHVno WdVpSMOL4F59nb7qnCj4HiF0/Rp3zCEvitqLM2r7jON/mpW3reoP50KzN0Bxdog1NgWe 7m2Q== 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=qwMjg0saElDDpZvRFhfvApzBKYcp7fB4XgxFqTJpFWI=; b=I6EtjOnAS+pUK5+fl0EqUffkRltWpt2srkaVXJ/oRwUNDB5hCx7WQiCudHvnRHezx9 Bob9EGua5xvbT5eevbUwOWNqm3HR3sq+C+8DyauEnuoSmKvOQN4uaHSE6Pw7Yk45HXzP Zb1fuRNfrvsklsnHmqeCZvUFBMZMy71rO0x/ZvofHhz03Q74QPw/ISu+ZhJCZK5KhO8O 8ke6JW3pGiZW1XyT3f632t0V6mjf6h4SmErHaP8d4xAsWhvFDuQqzfyPdpMCJdlmhM3g NaipqbRIBkID+D/MwRvVF6foBa4GaIcondSYN8jelhr+1jxSuofxsEkFObrBO595G0a1 3pqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iGaADkhP; 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=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k1-20020a05640212c100b004602df03e36si14848714edx.486.2022.11.02.11.46.42; Wed, 02 Nov 2022 11:47:06 -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=@linaro.org header.s=google header.b=iGaADkhP; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231540AbiKBSpK (ORCPT + 99 others); Wed, 2 Nov 2022 14:45:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231588AbiKBSpI (ORCPT ); Wed, 2 Nov 2022 14:45:08 -0400 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56BCF2EF73 for ; Wed, 2 Nov 2022 11:45:06 -0700 (PDT) Received: by mail-qk1-x72b.google.com with SMTP id s20so5957832qkg.5 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=dx8CXSl5zlK/DEkFaxCNcyE3Bf6x6BfNiwCPhqhOJWyKRc85Z71vjTP5Bb0sMWcTb9 8c6wfXjSzyj9cuA0xKYUea/UEurFNYBN2rggR4DRyVRGHgp/awd7SX3pVZYuVBi3hb/j VWNpPSmvldNWkanUIBrYLVSGf7POvI9abymIsVJ3NQvjpLhpl/GXSCk4eCkez1E0r9Kv iZCyfocpxQwWaeeWbz1prbwzFYo7IFLomXAsCGQ3z0AiTCAPVB12hjd1ig4/l31cq+Ms djYsapdGnw/jwBfAisvi5b1DUdmdU0q1S2Y1rOCBm5C71iHoi+sou+LknKbNek4nQlBY am+w== X-Gm-Message-State: ACrzQf1RA9cCkRSYa2LrVgdgl707AEtzlE3gyecJE3gSY9PEefviVKqR Q5OgujkMVN+uSkDx+EXGP5ZJ8A== 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748411168919677972?= X-GMAIL-MSGID: =?utf-8?q?1748411168919677972?= 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: 14453 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp77379wru; Wed, 2 Nov 2022 11:48:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM59qfNW2K4cKsGySX7sUAdwuAG/s53zjdZ514wkRQPYnOtneB1ajq/f7cN26rz08mWDEGuh X-Received: by 2002:a17:907:3d88:b0:7ae:943:1cc2 with SMTP id he8-20020a1709073d8800b007ae09431cc2mr3432135ejc.675.1667414903336; Wed, 02 Nov 2022 11:48:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667414903; cv=none; d=google.com; s=arc-20160816; b=qI/QgBTsusPPHgJZ0AGd+XORjUnGDM6F5ekZNfuCQxWwv5zO73UYtEIy0W2d14u89y MZK1vZWcKFJlLWZ87oMd6hTni2Lh8zcwo1lW2QfUQpp0rYwBKIn3/3e0F4H2Ouc7YShE pFYc2Xv6fkNnCVzpQDhPuXT65z6AgkpFsaIj2wk3Qj6zEMYtJ9lbb9wzhOZxajxVjBZF /sQAPegr1rBYZ0kA5nuK2Z8Dhl2aLcSEFpjoReMocCYd07vUb/Bwjp1EZI/o/BzsNzpW 9YduE+hPHUitlG/eCrj1YsBZ4FciTfXqHdsjRodn1ekSh2TSHp3Yp79UG9Lzbaia5Zqg nDDg== 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=sw13xCxrWW7/c5Fz/JcFaLDrTASeOurUe6I0AYCZbD4=; b=0hgGhuLO3ZjKrTv1OEQaznuMG8maswgpYov76dl7M4igRZqxuuqb7NK7qgPvLqQ7gh ibqiwYwWHio46g8z1WyTvqKZKo8NvgeY2CHpSn6vDUrIBz8VTs3CFqPyn19MpPD/G58W in2zML4EEyJWfm4uMlWf29wkBdepnKC8UcSfNAw/XBSM19OB+PuKP4EWB1SzIIrB0CIo Z/rRuLMxV7FBoNRv6P5i6sZq4aHrbQf8lS+MZO7kQxds0x5KVDJVZDfp0ys1c/if89hR 9ivCjJO4jBLKETd9PF1isu7lEffpwTZCdVeXMdSTmtK7qxbGD4BC0NjItt2rQ0Xev23b WEYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=udIT0nxu; 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=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020aa7c582000000b0046157981475si13764112edq.474.2022.11.02.11.47.36; Wed, 02 Nov 2022 11:48:23 -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=@linaro.org header.s=google header.b=udIT0nxu; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231555AbiKBSpO (ORCPT + 99 others); Wed, 2 Nov 2022 14:45:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231560AbiKBSpJ (ORCPT ); Wed, 2 Nov 2022 14:45:09 -0400 Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C56E2F64B for ; Wed, 2 Nov 2022 11:45:08 -0700 (PDT) Received: by mail-qv1-xf30.google.com with SMTP id ml12so13129976qvb.0 for ; Wed, 02 Nov 2022 11:45:08 -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=dvN+oz/G2tOxAPmAJr/aZ8s6aX3ku9OL+2ed8SaekAcVoWNVjG5YSMVquurEu1UhRq IEckZ8H1Qv1p+Rb9KKBkYsnxVhd3gEnjoEloYnvQNr5/hAcwvf8GUaDSq4YRBhWHjLi4 O+sGuAwsZuZ+naIWr2EO6yfNSCn/9o67vqp+GQDYq8C8G08WSZzqyxtTSoVOjmjB+LbG AJFrXBssD2yiMka0lk+Qfzw5wf10sdxJ2OoM3X8CA0+UIZXfg4B7QuwNixgj88RpuM1k 6XZEFnFUcbmuD1p//8VBhA53RuIcp9OX0sdpiM9li7GWH+JP70Y9Jy0DgbWj7+CnyZmn 7hYQ== X-Gm-Message-State: ACrzQf09SYdvV/3Lk3dy2UWay+nQCJZmg1bDtHokVSEJ8xYS1c89Nyad WK2Q4nTjWNlgl4So6utJGF//qg== 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748411249894544605?= X-GMAIL-MSGID: =?utf-8?q?1748411249894544605?= 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: 14451 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp76452wru; Wed, 2 Nov 2022 11:46:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM73p1g9FtFi2SyR5mMr8vldCQRbPWjcVf9mlakf4TMU4BJQ0L+ju3IxH73kAfcNpw5UiNWl X-Received: by 2002:a05:6402:5485:b0:459:147a:d902 with SMTP id fg5-20020a056402548500b00459147ad902mr27167904edb.263.1667414775664; Wed, 02 Nov 2022 11:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667414775; cv=none; d=google.com; s=arc-20160816; b=j5/MFrMdSpKLB34GFFct0aniShrpPMvh+MbQMIgaJb0ommo3ClreNp2OyeI7mKBO3m EYhAT3I+bp91zpJzQuOKJzNranRVQSgecm0ySgV5d1O2xAJWgSSQPHzhh801SZ+1jAcA vXIoLplTuFhl4zhtFZ7733oxpyf8hzu/cqELENl68hrWz3Mk493MqvgQLmk1oD6NlAAy p+83L5E1/UPQrh5qMykQ8dbMhoFOIsqMFVBR0r0t5eNqObmWn8wf9fq6Fe0r3+9bAjhW OP09KYl5bsg50P0aBUG+mr6QNc4Rw/COwyqws3YFyqTd4zXlXWylgAFnjNoeLtnhyn20 JmCQ== 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=OaJC1NoewmXjPxS0Lyt64Qa/JvMUE2LWOQneWFWHmgg=; b=sHjjHv1HR04do3qWt0j6guRG7zslsrNA95Ali+TzNEtXujvdtmxIlKHr/CRc3Cn6hJ GTsyXQ27+lA7KPsaSquKI7yiemh6bXNFjryCvhP42lXH85iyg2Y1wmZRKfr6lwiXXYLy LN03/HS+wjVgtdk4DrdsDVg+Zjg9Z6bFCWTygGjUstxXsKvmQiyim7TCWELsyps57/Zl s+gKUH9ZWlaE9x0yrzyP7OrdO8G3aqjU3rAdVbjqCmGc4Nj9wRleFe2+r3p2AsI6dX0q lyRh5PuDVWJekChyYbz+p3iNy+91YLjh7CXSAhaiGqlJVxCDpwQT4XnC55KslGioppCd isKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=midHby3k; 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=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e7-20020a056402190700b00461fc07a835si18811932edz.18.2022.11.02.11.45.50; Wed, 02 Nov 2022 11:46:15 -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=@linaro.org header.s=google header.b=midHby3k; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231627AbiKBSpR (ORCPT + 99 others); Wed, 2 Nov 2022 14:45:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231572AbiKBSpK (ORCPT ); Wed, 2 Nov 2022 14:45:10 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCB942D76A for ; Wed, 2 Nov 2022 11:45:09 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id l2so7224503qtq.11 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=zN00SxJU68FpD4B6v/GrJUwdLaxjisTnR9QlKPhv3xTWDeqml9piUCqh7nxxO7NFKC FxM6tG2tuaZYF0TM2HgUwO5gmJNfUhfb6ch00ye1etqpibFpP5jMxqhs1bDpFTboR2R4 nb9LjHGcbL3qHQDbfDfuuU/IXBpQphtnNSjvRadL7i2X6IzbBHGtIo6PRUBZX4xmcyzk TdMdHDXokyOerPbOF1xbo4lqFcK3Jo93e6rrzJCw3AowD6lmUWUoqkPd0HPmSmmM+/FG Sg4kjXo5IGO/BAOvwsAD696Vxe4fdlN8WTknOULK5qDK5h4mpNyMkN9B6dS95NEYSGeC SATA== X-Gm-Message-State: ACrzQf2g9j46qAdqxQJx2PidnEES1Ixa6pxUXJDBK1/Fg3GedK4pzHGu +cAmPAzGgoeDPpZS116ItAjpaw== 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748411115478970475?= X-GMAIL-MSGID: =?utf-8?q?1748411115478970475?= 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