From patchwork Wed Oct 6 22:40:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 515420 Delivered-To: patch@linaro.org Received: by 2002:ac0:b5cc:0:0:0:0:0 with SMTP id x12csp800212ime; Wed, 6 Oct 2021 15:42:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypnfK4ul3X39dVtrcsbJ0p90/51Mq8z8eG96RQMDEjRJtgbMB2HrFti43OQGcEUjXiFZ2Z X-Received: by 2002:a63:2bc3:: with SMTP id r186mr498066pgr.385.1633560135450; Wed, 06 Oct 2021 15:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633560135; cv=none; d=google.com; s=arc-20160816; b=KLYWSCRyakClYSlTUzBtN2fWY2Hy8plR2u6BULFG5URXPCGTYjA8lEWidxYwRUEIq6 u5zV3nayrAqS+tNe3U/DOyT+ECKrPgh1i2YLNESSGkCXUK+uUO7yeR8GzBZhBedAKoOP MqSvmpdYoL/4m8TXze3pBMDVa54BdAjUnRsoELJkRKOewCQ/Uae8iBCV/4k/vR0jaKgs Ud3ylwfcYwQJiauRWKk2UsizCxhb1d0eHVV+dSq14xVG2yQ5YWXffoye4zzJ6m/q959t rYV5JVqle2Oy3F4JGqpy2ei143OjsTLE0RiO0IKdfYdOfGBuieNoZbw0lqbzgLni4nRk rxBA== 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=62PC80q5pJoCzR+LNs8TxRHYFiyjGthoCs9x+r0DkUA=; b=ictUyIY/UCg2qvUMIL7lf6xSvR1ypEE0eLPjs2ULaKDb1W73JzgaMW87cQaTqo53T3 oSX1BPhceGvo5vcQiKEQTRw72Gfrk8JqD4MbZ5GCxWCnSEBCsuWFA6UZpBLx3NKLPN9o Yw/UPKGmaoKKi8SvY+6CA9BKLarOV6zwa2QFW30QROgh9LxaeUmdS9axYR7reFRWLLO9 ME7LoqGYRVHi1ow7kpI7QCpr7aZp6QssbwC9OdqbZU5bpZfgdHUhx/Sm5uZSUsSX02X2 xCZAkrmv5CfmYZ5ZsIaqmySPx1GANUKwkMnOk4cfUdOfqkVIEeQlUy8hNWRPbUD/shuL q3sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GgrkRnbW; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q14si7147497pjd.167.2021.10.06.15.42.13; Wed, 06 Oct 2021 15:42:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GgrkRnbW; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S229926AbhJFWoF (ORCPT + 7 others); Wed, 6 Oct 2021 18:44:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbhJFWoF (ORCPT ); Wed, 6 Oct 2021 18:44:05 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57324C061753 for ; Wed, 6 Oct 2021 15:42:12 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id x27so16570331lfa.9 for ; Wed, 06 Oct 2021 15:42:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=62PC80q5pJoCzR+LNs8TxRHYFiyjGthoCs9x+r0DkUA=; b=GgrkRnbW8Q5ZotcasaI9VCTfqYGnoXiHII/t76naehUQnvTVEzS4BFBB0fOb04ra3O c7aC71vJ/REHenYaUdYb5nJMFrxd/fjo29AUmhnbJ6kxqN+TApldt4lsfI3aChTldnSm a26tllNkoy2h29reQDur06M9eCBer9VBoLvPVsWkUlXqdYKExpPwU2PMqzCkrqzqQeRI Hrvnctbx0fugjTla3BTPuFoWdqJwYYZhg0cwmAro4sDtlbCbb/7Tkb6til1MdOam6POK nryLonkWn5tTr15QFDxSJo6RcSdP/mfxHsRrp//L8moGmzhsLyP0rQFT8Ah5f6eZWhlW ZGig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=62PC80q5pJoCzR+LNs8TxRHYFiyjGthoCs9x+r0DkUA=; b=ZMDR1LPw4bpdZBbqPAtP2jVuVDEB03OL89KzPSHPsxjmEBoUORCLK77RTQsBaRcc3T WIzCoPc85kxNI7l8tt8JAe3pQXd6DfvY1cccd9N++k4Iv8redSlH5Uw1JpwpMgFuMq0y q7nZQzDLnEn1bLDIKoy1FSc3qlZDyInRtoFNchTd9zYtO4s8EJv+evnNUzMeCoaIgP0c 1mngD0kmuPWOSScdlRlpkDhCR+EDN5gAXJ2VQS3qKpQ2df2Agg2ub1ejKz9JgOPgbGOQ B7DpP1i9994T5ocMrGVot1ByptEYHPvrP15/d6K0ZL2peYy6nPxUSVGGq06xZYWvCa4S f4NQ== X-Gm-Message-State: AOAM532C+DoVzXl5cM9GCGat7RZJjc4g/wdli2ZARX2I1bN2L8dSqaje 8ZQ28CEq0fVkq295kQ0NUFv1KQ== X-Received: by 2002:a2e:b888:: with SMTP id r8mr709717ljp.147.1633560130582; Wed, 06 Oct 2021 15:42:10 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id g7sm2368103lfc.123.2021.10.06.15.42.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 15:42:10 -0700 (PDT) From: Linus Walleij To: Sebastian Reichel , Marcus Cooper Cc: linux-pm@vger.kernel.org, Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: power: supply: ab8500: Standard monitored-battery Date: Thu, 7 Oct 2021 00:40:06 +0200 Message-Id: <20211006224008.394191-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Make monitored-battery the standard phandle to the battery we monitor for the AB8500 charger components. We make the old "battery" phandle deprecated, and the new one required so we detect and fix all users to use the standard phandle name. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- .../bindings/power/supply/stericsson,ab8500-btemp.yaml | 10 +++++++--- .../power/supply/stericsson,ab8500-chargalg.yaml | 10 +++++++--- .../power/supply/stericsson,ab8500-charger.yaml | 10 +++++++--- .../bindings/power/supply/stericsson,ab8500-fg.yaml | 10 +++++++--- 4 files changed, 28 insertions(+), 12 deletions(-) -- 2.31.1 diff --git a/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-btemp.yaml b/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-btemp.yaml index 2f57aa5a5f4e..4b8a00cec39c 100644 --- a/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-btemp.yaml +++ b/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-btemp.yaml @@ -17,10 +17,14 @@ properties: compatible: const: stericsson,ab8500-btemp - battery: + monitored-battery: $ref: /schemas/types.yaml#/definitions/phandle description: phandle to battery node + battery: + $ref: /schemas/types.yaml#/definitions/phandle + deprecated: true + interrupts: maxItems: 5 @@ -42,7 +46,7 @@ properties: required: - compatible - - battery + - monitored-battery - interrupts - interrupt-names - io-channels @@ -56,7 +60,7 @@ examples: pmic { battery-temperature { compatible = "stericsson,ab8500-btemp"; - battery = <&ab8500_battery>; + monitored-battery = <&battery>; interrupts = <20 IRQ_TYPE_LEVEL_HIGH>, <80 IRQ_TYPE_LEVEL_HIGH>, <83 IRQ_TYPE_LEVEL_HIGH>, diff --git a/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-chargalg.yaml b/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-chargalg.yaml index 0897231c2f6e..6799224f7fb4 100644 --- a/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-chargalg.yaml +++ b/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-chargalg.yaml @@ -17,13 +17,17 @@ properties: compatible: const: stericsson,ab8500-chargalg - battery: + monitored-battery: $ref: /schemas/types.yaml#/definitions/phandle description: phandle to battery node + battery: + $ref: /schemas/types.yaml#/definitions/phandle + deprecated: true + required: - compatible - - battery + - monitored-battery additionalProperties: false @@ -32,6 +36,6 @@ examples: pmic { charging-algorithm { compatible = "stericsson,ab8500-chargalg"; - battery = <&ab8500_battery>; + monitored-battery = <&ab8500_battery>; }; }; diff --git a/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-charger.yaml b/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-charger.yaml index e13305afea69..9518eb7289d0 100644 --- a/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-charger.yaml +++ b/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-charger.yaml @@ -17,10 +17,14 @@ properties: compatible: const: stericsson,ab8500-charger - battery: + monitored-battery: $ref: /schemas/types.yaml#/definitions/phandle description: phandle to battery node + battery: + $ref: /schemas/types.yaml#/definitions/phandle + deprecated: true + vddadc-supply: description: Supply for USB and Main charger @@ -66,7 +70,7 @@ properties: required: - compatible - - battery + - monitored-battery - vddadc-supply - interrupts - interrupt-names @@ -81,7 +85,7 @@ examples: pmic { charger { compatible = "stericsson,ab8500-charger"; - battery = <&ab8500_battery>; + monitored-battery = <&battery>; vddadc-supply = <&ab8500_ldo_tvout_reg>; interrupts = <10 IRQ_TYPE_LEVEL_HIGH>, <11 IRQ_TYPE_LEVEL_HIGH>, diff --git a/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-fg.yaml b/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-fg.yaml index db342e5ac0d1..54ac42a9d354 100644 --- a/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-fg.yaml +++ b/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-fg.yaml @@ -17,10 +17,14 @@ properties: compatible: const: stericsson,ab8500-fg - battery: + monitored-battery: $ref: /schemas/types.yaml#/definitions/phandle description: phandle to battery node + battery: + $ref: /schemas/types.yaml#/definitions/phandle + deprecated: true + interrupts: maxItems: 5 @@ -41,7 +45,7 @@ properties: required: - compatible - - battery + - monitored-battery - interrupts - interrupt-names - io-channels @@ -55,7 +59,7 @@ examples: pmic { fuel-gauge { compatible = "stericsson,ab8500-fg"; - battery = <&ab8500_battery>; + monitored-battery = <&battery>; interrupts = <24 IRQ_TYPE_LEVEL_HIGH>, <8 IRQ_TYPE_LEVEL_HIGH>, <28 IRQ_TYPE_LEVEL_HIGH>,