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: 12596 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1090063wru; Fri, 28 Oct 2022 16:16:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4T6k8HgMxtWXrKMFAi6J8aYgH8neZ4yjbg98S3a/fPqhZW+ElyURCYs2YEuJIifuKI+rn9 X-Received: by 2002:a17:907:75f1:b0:78a:f935:647d with SMTP id jz17-20020a17090775f100b0078af935647dmr1477863ejc.587.1666999009896; Fri, 28 Oct 2022 16:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666999009; cv=none; d=google.com; s=arc-20160816; b=anzuHkK837x5webop1sXp3dFwb0iKNihTXBGSFstKj1HNS/PVWPgwYNxb+uqRAS+j+ Njj6vSXvvvMMQqu9m0bXUWnVMdX9CvgjprcdrXkf9+A2E03+6emzrMsmrR7gBpmzRKH3 7KNELPaAjimx43GEajuvXLAJ5FnjW6Pxo85RnoMbPZlFk2pnn4Q/aO3OJPD0vqUMjZ/H 6NmaJNiE2fX3YSFCTkT08ssPdg1xe+GYsud0t52/C7rW9a9eCEfBC40X5RLiSa22o8EY dHssspVIGgHT3aGj6IykppDrNJgnPqvfzfN0NbJY2LuZeyA1rAsfcvZQssoGScKqRd7z VUaQ== 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=1TTqFXJnufak57lBJdLAiI5r22saT5S8wMPVdyLYJWQ=; b=YsylPwwCN8J/4bl4ZRrsniMWG1DWAi8MbZy1y0YadzbxyiOxM/8MXy/HROUfnIxkUH 4YtizofTOC7dQH9dg+cal/AlpDXIZihAux7E5FkDXSkhHG4fBhpDgl7M7AgeTmizz4xS AFe6BlTxtw0DC0Hd27Y9p/qFOBLKxhUsapZxd7cRJsFfHc2YIaxF80ICd6WOMSzrbEtK Q+6pBHAF5C98BfUmmkpgRYO4MMnOpZKcgnwnRAdZm2Z3dweu+hdHNUMKTtH95mQ4S86x wkSeCRTpBTWNRUq07SJBys1ZWErOB7woEbtlNLncSrBkisHT2CqiegapEh0jTcWBUjWd wKtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ogypng3h; 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 ga3-20020a1709070c0300b007a7d37e4684si5674708ejc.803.2022.10.28.16.16.24; Fri, 28 Oct 2022 16:16:49 -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=ogypng3h; 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 S229648AbiJ1XNE (ORCPT + 99 others); Fri, 28 Oct 2022 19:13:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbiJ1XNC (ORCPT ); Fri, 28 Oct 2022 19:13:02 -0400 Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D8F360513 for ; Fri, 28 Oct 2022 16:13:00 -0700 (PDT) Received: by mail-qt1-x832.google.com with SMTP id l28so4448414qtv.4 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=aqTQttwtxyHMCpJqgsofnXIrXVhsqXIiZJ7sd0DEKxdC4WzYr1t1LpdIhe/0pT+w99 t+VsqYgrognHXFUfmBND3epma99zk1mMjk3IIwaz62CObcuXvm9GNbqJlOGq3rAA+q2G 0nBhCzLPa5p10EYqFWCuzjG/g0Mgy6CXtq7qgC3KLQKWed8j8bm7XKJ8nW6r7qXrKcM2 5xUEOT0HBA0jC2SnhgWBWzms5L5zZtlMMr0G/e26QryoRush9FTVFOQ5gSo6Fstfh8uF vaz9hjk7Swwlq8F+9ZOUOE2lJeDxVoACGgrhoYF3mD05amPSqr00DGqa4w/NcRSVogAa zEBA== X-Gm-Message-State: ACrzQf2U3gelVllddDx1UAkVDOR7+9Z7Gi+nAuShyruzPqVsMuKazqgO mgMsj+8x0XLUyagEu0qQ4ggFYw== 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 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?1747975153992370857?= X-GMAIL-MSGID: =?utf-8?q?1747975153992370857?= 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