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 13415C433FE for ; Tue, 21 Dec 2021 10:44:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233852AbhLUKoH (ORCPT ); Tue, 21 Dec 2021 05:44:07 -0500 Received: from aposti.net ([89.234.176.197]:53538 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230132AbhLUKoG (ORCPT ); Tue, 21 Dec 2021 05:44:06 -0500 From: Paul Cercueil To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , =?UTF-8?q?Guido=20G=C3=BCnther?= Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH] dt-bindings: iio: Document "label" property Date: Tue, 21 Dec 2021 10:43:54 +0000 Message-Id: <20211221104354.35073-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All iio devices can have a label, which will be carried on to userspace as a sysfs attribute. This is useful when having several iio devices that represent different instances of the same hardware, as the name attribute would then not be enough to differentiate between them. Signed-off-by: Paul Cercueil --- Documentation/devicetree/bindings/iio/common.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/common.yaml b/Documentation/devicetree/bindings/iio/common.yaml index f845b41d74c4..a90ad7718ecf 100644 --- a/Documentation/devicetree/bindings/iio/common.yaml +++ b/Documentation/devicetree/bindings/iio/common.yaml @@ -32,6 +32,14 @@ properties: considered 'near' to the device (an object is near to the sensor). + label: + $ref: /schemas/types.yaml#/definitions/string + description: | + All iio devices can have a label, which will be carried on to userspace + as a sysfs attribute. This is useful when having several iio devices that + represent different instances of the same hardware, as the name attribute + would then not be enough to differentiate between them. + additionalProperties: true ... -- 2.34.1