Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1356747pxf; Fri, 12 Mar 2021 07:49:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/vb60kiZGNQsgrrOHo9PqetxIjqWt/cN/1z0oEUtP2ledFZujjF1qfxuE51Trn/H3aMYp X-Received: by 2002:a17:907:2716:: with SMTP id w22mr9240749ejk.328.1615564144266; Fri, 12 Mar 2021 07:49:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615564144; cv=none; d=google.com; s=arc-20160816; b=UtnGqYavo0hLoSStCMByOvo+tiNLf2K+hnXCCKmuZ9Qn1Pg62/ZD1Z9ZZNDdz+Cy0q Hxt+PVXkNsKIbTwWtnQ97mmpZ/xDB6u1f0+qz/ZsiG9NK4CkyNs3IHWmKhgDerw9H/rj B1fGxQ4AAhY8pLw/8VwqYeogl6UV1yeo3fZjuRny4F1k5FBbNhLBag5PKuMjzRmDBhmf VvMOs+K7rSbtLAcGMKztCGEiU9VdhU01ddt2K0QcNW61OOgXU+BBcR3XbOs3ZqYoBuCW eqGWv8uQWZ5qagJudTqKdF9uIUtpqcFTiL/S0Wwqg8lxugk3l21lGzABUQ521fUHpOi/ emnA== 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; bh=5kRXysSLz40Ui59PJFuk86ElPIZdk88ZB470/wabNYo=; b=CaMh07oyC7g2lY+JhHVhS/iTrFN9H0UC2BQyR0IHCPQEFlAGGq2eRsmjWkhDBscvq7 Z4s2StuVGoV7Ye6fT3d1q5x+D49q4xtR4O4OIm4dDoq2rn9UXqRrCEkylwNZGtyNzFWJ VDEW8DJCCDiZhbIJlNlQ2qY5MLKKZP0DcDVXV1GoUcj7ObBNkxBvYo/8R9Z7hiDULOXg dXSt9EohnPgtDn0/nyJE4vj8NwpRbuNx7q3hcVcXnGBJ0pHDq9Vf88+gCWwXT+X/PeJA Flu09SKElcKkiR3KFu6DTkICDkQ9kTjjKqdhaGjYGaK+U85fCwTV2RZQxLpl1Yp+Zcd4 CdzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be3si4300457edb.294.2021.03.12.07.48.41; Fri, 12 Mar 2021 07:49:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233300AbhCLPpi (ORCPT + 99 others); Fri, 12 Mar 2021 10:45:38 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:55690 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232602AbhCLPoT (ORCPT ); Fri, 12 Mar 2021 10:44:19 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id B048C1F46E7C Received: by jupiter.universe (Postfix, from userid 1000) id 7A7B548011E; Fri, 12 Mar 2021 16:44:08 +0100 (CET) From: Sebastian Reichel To: Sebastian Reichel , Rob Herring Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH 36/38] dt-bindings: power: supply: sbs-battery: Fix dtbs_check Date: Fri, 12 Mar 2021 16:43:55 +0100 Message-Id: <20210312154357.1561730-37-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210312154357.1561730-1-sebastian.reichel@collabora.com> References: <20210312154357.1561730-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Existing in-tree users make use of '"ti,bq20z45", "sbs,sbs-battery"', so add it to the list of known compatible strings. Also add missing support for the generic 'power-supplies' property by importing power-supply.yaml and setting unevaluatedProperties instead of additionalProperties. Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/power/supply/sbs,sbs-battery.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/power/supply/sbs,sbs-battery.yaml b/Documentation/devicetree/bindings/power/supply/sbs,sbs-battery.yaml index a90b3601e695..90b9d3d882a4 100644 --- a/Documentation/devicetree/bindings/power/supply/sbs,sbs-battery.yaml +++ b/Documentation/devicetree/bindings/power/supply/sbs,sbs-battery.yaml @@ -12,12 +12,15 @@ maintainers: description: | Battery compatible with the smart battery system specifications -properties: +allOf: + - $ref: power-supply.yaml# +properties: compatible: oneOf: - items: - enum: + - ti,bq20z45 - ti,bq20z65 - ti,bq20z75 - enum: @@ -60,7 +63,7 @@ required: - compatible - reg -additionalProperties: false +unevaluatedProperties: false examples: - | -- 2.30.1