From: Paul Cercueil <paul@crapouillou.net>
To: Rob Herring <robh@kernel.org>
Cc: Jean Delvare <jdelvare@suse.com>,
Guenter Roeck <linux@roeck-us.net>,
linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: hwmon: Introduce common properties
Date: Wed, 05 Jan 2022 09:41:44 +0000 [thread overview]
Message-ID: <KLD85R.XE2Q0KBUK4KF1@crapouillou.net> (raw)
In-Reply-To: <YcN+NwFu2m6WZCdE@robh.at.kernel.org>
Hi Rob,
Le mer., déc. 22 2021 at 15:36:23 -0400, Rob Herring <robh@kernel.org>
a écrit :
> On Tue, Dec 21, 2021 at 05:50:28PM +0000, Paul Cercueil wrote:
>> 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.
>
> I don't think we need this. What we need is a global (in dtschema)
> type definition and then any users just add 'label: true'.
I created a PR there:
https://github.com/devicetree-org/dt-schema/pull/65
Cheers,
-Paul
>
>>
>> Signed-off-by: Paul Cercueil <paul@crapouillou.net>
>> ---
>> .../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 <jdelvare@suse.com>
>> + - Guenter Roeck <linux@roeck-us.net>
>> +
>> +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
>> +
>> +...
>> --
>> 2.34.1
>>
>>
next prev parent reply other threads:[~2022-01-05 9:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-21 17:50 [PATCH 0/2] hwmon: Add "label" attribute Paul Cercueil
2021-12-21 17:50 ` [PATCH 1/2] dt-bindings: hwmon: Introduce common properties Paul Cercueil
2021-12-22 19:36 ` Rob Herring
2021-12-23 9:19 ` Paul Cercueil
2021-12-23 10:12 ` Paul Cercueil
2022-01-05 9:41 ` Paul Cercueil [this message]
2021-12-21 17:50 ` [PATCH 2/2] hwmon: Add "label" attribute Paul Cercueil
2021-12-21 18:17 ` Guenter Roeck
2021-12-22 14:18 ` Paul Cercueil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=KLD85R.XE2Q0KBUK4KF1@crapouillou.net \
--to=paul@crapouillou.net \
--cc=devicetree@vger.kernel.org \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox