From patchwork Tue Dec 21 17:50:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 12690257 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 C091DC433EF for ; Tue, 21 Dec 2021 17:50:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234110AbhLURur (ORCPT ); Tue, 21 Dec 2021 12:50:47 -0500 Received: from aposti.net ([89.234.176.197]:39338 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240647AbhLURuq (ORCPT ); Tue, 21 Dec 2021 12:50:46 -0500 From: Paul Cercueil To: Jean Delvare , Guenter Roeck , Rob Herring Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH 1/2] dt-bindings: hwmon: Introduce common properties Date: Tue, 21 Dec 2021 17:50:28 +0000 Message-Id: <20211221175029.144906-2-paul@crapouillou.net> In-Reply-To: <20211221175029.144906-1-paul@crapouillou.net> References: <20211221175029.144906-1-paul@crapouillou.net> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Introduce a file for common properties of hwmon sensors. As of now it contains only the "label" property, which can contain a descriptive label that allows to uniquely identify a device within the system. Signed-off-by: Paul Cercueil --- .../devicetree/bindings/hwmon/common.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/common.yaml diff --git a/Documentation/devicetree/bindings/hwmon/common.yaml b/Documentation/devicetree/bindings/hwmon/common.yaml new file mode 100644 index 000000000000..997f74127d8c --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/common.yaml @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common properties for hwmon sensors + +maintainers: + - Jean Delvare + - Guenter Roeck + +description: | + This document defines device tree properties common to several hwmon + sensors. It doesn't constitue a device tree binding specification by itself but + is meant to be referenced by device tree bindings. + + When referenced from sensor tree bindings the properties defined in this + document are defined as follows. The sensor tree bindings are responsible for + defining whether each property is required or optional. + +properties: + label: + $ref: /schemas/types.yaml#/definitions/string + description: > + Descriptive label that allows to uniquely identify a device within + the system. + +additionalProperties: true + +...