From patchwork Fri Oct 28 23:12:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 619955 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAB35ECAAA1 for ; Fri, 28 Oct 2022 23:13:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229542AbiJ1XND (ORCPT ); Fri, 28 Oct 2022 19:13:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiJ1XNB (ORCPT ); Fri, 28 Oct 2022 19:13:01 -0400 Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AD834CA29 for ; Fri, 28 Oct 2022 16:13:00 -0700 (PDT) Received: by mail-qt1-x829.google.com with SMTP id bb5so4418939qtb.11 for ; Fri, 28 Oct 2022 16:13:00 -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=1TTqFXJnufak57lBJdLAiI5r22saT5S8wMPVdyLYJWQ=; b=ogypng3huLd9C6k8ChgEqfkCle5/rUaHBHBD/ptyC6xEUFau8FCB8ZK1goK4KakUUL I0RXL9cORu3+wNcIouY5hYG7WS6Oerh3Pl/cgBXXZlD5r9SiCxmAfCcw08qqjzRZAZkO utjAxP0dbDfy5xxkAP/r8ei0283DOAy9l2Dg8p0FMvveI809EwkmZAqZHmHh4hBaWiZ8 P8SdGIYY18Da39kcFSVfeQ1MEiFbT46EaD0urz3QxhEZ/6EHNs/Amilz4Sx1mYvyY5Sc H0LeLuQKiI81AVYcLuahymCG3/7o1IQzj9b0bNLxHlucpaGZnm0n4hPUeqc7/R2dyLi3 LWGg== 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=1TTqFXJnufak57lBJdLAiI5r22saT5S8wMPVdyLYJWQ=; b=LciN7NWTcDSywQ89rw9EKkzisw7yra8yS7w885WW44sGI/m2E8xRypPv+xst9kjSqg be2OXOIscE6St4cTkR390ZjPjb0uuHSNypUebLkQDU8kqDNaSlydokvTrmH6X1k4Epim pfutHB6+4q77Uxwa+XQZEoylIpEhcUCrM8yT6+UnBllCH2Prfiqz0Do6ZufmuBnB01pE ssBqu0aoZNgxovfuEQ8oGP0RM4MjExkqaMvplbUbgIrbPUgPxqf/l9aPyD0G3r+2gy18 nG5eZdNSfZrybGv77nwprgqw8G2zikQDsW0yhPJvG0yy7BHaupKTXJCdTHrgcf98uFKd ucTw== X-Gm-Message-State: ACrzQf3Dc1Cxsp4tuiXYAbPrcbkHSATtcmvyl+b0RPVyUgRsqO2BoQfm oEqpTc+AsUYhnWHJlcZizjqhhQ== X-Google-Smtp-Source: AMsMyM4deQ6TLfI9iTlLyVmUPekBdwUM2eeZJhBtMskzloonFWP5VJbYDXDokrrsCMQjRIM5Q04YpA== X-Received: by 2002:a05:622a:188a:b0:3a4:eb2c:f221 with SMTP id v10-20020a05622a188a00b003a4eb2cf221mr1641126qtc.613.1666998779575; Fri, 28 Oct 2022 16:12:59 -0700 (PDT) Received: from krzk-bin.. ([64.57.193.93]) by smtp.gmail.com with ESMTPSA id fx12-20020a05622a4acc00b0039ccd7a0e10sm3016026qtb.62.2022.10.28.16.12.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 16:12:58 -0700 (PDT) From: Krzysztof Kozlowski To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Orson Zhai , Baolin Wang , Chunyan Zhang , =?utf-8?q?Pali_Roh=C3=A1r?= , "Andrew F. Davis" , Artur Rojek , Matti Vaittinen , Markus Laine , Mikko Mutanen , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] dt-bindings: power: supply: expect specific type for monitored-battery Date: Fri, 28 Oct 2022 19:12:55 -0400 Message-Id: <20221028231255.565363-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Core schema does not define type of monitored-battery, so the schemas are expected to reference proper type. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/power/supply/bq27xxx.yaml | 2 +- .../devicetree/bindings/power/supply/ingenic,battery.yaml | 1 + .../devicetree/bindings/power/supply/rohm,bd99954.yaml | 1 + .../devicetree/bindings/power/supply/sc2731-charger.yaml | 2 +- Documentation/devicetree/bindings/power/supply/sc27xx-fg.yaml | 3 ++- 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml b/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml index 65fc6049efc1..b04c86ed0f58 100644 --- a/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml +++ b/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml @@ -59,6 +59,7 @@ properties: description: integer, I2C address of the fuel gauge. monitored-battery: + $ref: /schemas/types.yaml#/definitions/phandle description: | phandle of battery characteristics node. The fuel gauge uses the following battery properties: @@ -66,7 +67,6 @@ properties: - 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..8bdacc30e9d8 100644 --- a/Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml +++ b/Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml @@ -27,6 +27,7 @@ properties: const: battery monitored-battery: + $ref: /schemas/types.yaml#/definitions/phandle description: > phandle to a "simple-battery" compatible node. diff --git a/Documentation/devicetree/bindings/power/supply/rohm,bd99954.yaml b/Documentation/devicetree/bindings/power/supply/rohm,bd99954.yaml index 24b06957b4ca..ad97d0ac9438 100644 --- a/Documentation/devicetree/bindings/power/supply/rohm,bd99954.yaml +++ b/Documentation/devicetree/bindings/power/supply/rohm,bd99954.yaml @@ -121,6 +121,7 @@ properties: monitored-battery: description: phandle of battery characteristics devicetree node + $ref: /schemas/types.yaml#/definitions/phandle rohm,vsys-regulation-microvolt: description: system specific lower limit for system voltage. diff --git a/Documentation/devicetree/bindings/power/supply/sc2731-charger.yaml b/Documentation/devicetree/bindings/power/supply/sc2731-charger.yaml index eeb043f9bb4f..4a1ca7288a3b 100644 --- a/Documentation/devicetree/bindings/power/supply/sc2731-charger.yaml +++ b/Documentation/devicetree/bindings/power/supply/sc2731-charger.yaml @@ -24,11 +24,11 @@ properties: description: phandle to the USB phy monitored-battery: + $ref: /schemas/types.yaml#/definitions/phandle description: | 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 diff --git a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.yaml b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.yaml index d90a838a1744..8af5957800c0 100644 --- a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.yaml +++ b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.yaml @@ -47,7 +47,8 @@ properties: sprd,calib-resistance-micro-ohms: description: real resistance of coulomb counter chip in micro Ohms - monitored-battery: true + monitored-battery: + $ref: /schemas/types.yaml#/definitions/phandle required: - compatible