linux-rtc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] dt-bindings: leds: Convert PCA9532 to dtschema
@ 2023-01-11 16:34 Wadim Egorov
  2023-01-11 16:34 ` [PATCH v2 2/2] dt-bindings: rtc: Move rv3028 from trivial-rtc.yaml into own schema file Wadim Egorov
  2023-01-11 18:47 ` [PATCH v2 1/2] dt-bindings: leds: Convert PCA9532 to dtschema Rob Herring
  0 siblings, 2 replies; 8+ messages in thread
From: Wadim Egorov @ 2023-01-11 16:34 UTC (permalink / raw)
  To: linux-leds, devicetree, linux-kernel, linux-rtc, upstream
  Cc: riku.voipio, alexandre.belloni, a.zummo, krzysztof.kozlowski+dt,
	robh+dt, lee, pavel

Convert the PCA9532 LED dimmer to dtschema.
While at it, also update and the the example to match
recommended node names and the link to the product datasheet.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
---
v2:
  - Rename yaml file to match compatibles, nxp,pca953x.yaml
  - Remove Jacek Anaszewski from maintainers list
  - Remove color labels in example
  - Restore labels/default-states from original example
  - Drop reg description
  - Add unevaluatedProperties to patternProperties scope
  - Update description of type property & set default to 0
  - Fix indentation in example
---
 .../devicetree/bindings/leds/leds-pca9532.txt | 49 -----------
 .../devicetree/bindings/leds/nxp,pca953x.yaml | 85 +++++++++++++++++++
 2 files changed, 85 insertions(+), 49 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/leds/leds-pca9532.txt
 create mode 100644 Documentation/devicetree/bindings/leds/nxp,pca953x.yaml

diff --git a/Documentation/devicetree/bindings/leds/leds-pca9532.txt b/Documentation/devicetree/bindings/leds/leds-pca9532.txt
deleted file mode 100644
index f769c52e3643..000000000000
--- a/Documentation/devicetree/bindings/leds/leds-pca9532.txt
+++ /dev/null
@@ -1,49 +0,0 @@
-*NXP - pca9532 PWM LED Driver
-
-The PCA9532 family is SMBus I/O expander optimized for dimming LEDs.
-The PWM support 256 steps.
-
-Required properties:
-	- compatible:
-		"nxp,pca9530"
-		"nxp,pca9531"
-		"nxp,pca9532"
-		"nxp,pca9533"
-	- reg -  I2C slave address
-
-Each led is represented as a sub-node of the nxp,pca9530.
-
-Optional sub-node properties:
-	- label: see Documentation/devicetree/bindings/leds/common.txt
-	- type: Output configuration, see dt-bindings/leds/leds-pca9532.h (default NONE)
-	- linux,default-trigger: see Documentation/devicetree/bindings/leds/common.txt
-	- default-state: see Documentation/devicetree/bindings/leds/common.txt
-	  This property is only valid for sub-nodes of type <PCA9532_TYPE_LED>.
-
-Example:
-  #include <dt-bindings/leds/leds-pca9532.h>
-
-  leds: pca9530@60 {
-    compatible = "nxp,pca9530";
-    reg = <0x60>;
-
-    red-power {
-      label = "pca:red:power";
-      type = <PCA9532_TYPE_LED>;
-    };
-    green-power {
-      label = "pca:green:power";
-      type = <PCA9532_TYPE_LED>;
-    };
-    kernel-booting {
-      type = <PCA9532_TYPE_LED>;
-      default-state = "on";
-    };
-    sys-stat {
-      type = <PCA9532_TYPE_LED>;
-      default-state = "keep"; // don't touch, was set by U-Boot
-    };
-  };
-
-For more product information please see the link below:
-http://nxp.com/documents/data_sheet/PCA9532.pdf
diff --git a/Documentation/devicetree/bindings/leds/nxp,pca953x.yaml b/Documentation/devicetree/bindings/leds/nxp,pca953x.yaml
new file mode 100644
index 000000000000..f735379775a7
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/nxp,pca953x.yaml
@@ -0,0 +1,85 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/leds/nxp,pca953x.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP PCA9532 LED Dimmer
+
+maintainers:
+  - Riku Voipio <riku.voipio@iki.fi>
+
+description: |
+  The PCA9532 family is SMBus I/O expander optimized for dimming LEDs.
+  The PWM support 256 steps.
+
+  For more product information please see the link below:
+    https://www.nxp.com/docs/en/data-sheet/PCA9532.pdf
+
+properties:
+  compatible:
+    enum:
+      - nxp,pca9530
+      - nxp,pca9531
+      - nxp,pca9532
+      - nxp,pca9533
+
+  reg:
+    maxItems: 1
+
+patternProperties:
+  "^led-[0-9a-z]+$":
+    type: object
+    $ref: common.yaml#
+    unevaluatedProperties: false
+
+    properties:
+      type:
+        description: |
+          Output configuration, see include/dt-bindings/leds/leds-pca9532.h
+        $ref: /schemas/types.yaml#/definitions/uint32
+        default: 0
+        minimum: 0
+        maximum: 4
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/leds/leds-pca9532.h>
+
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        led-controller@62 {
+            compatible = "nxp,pca9533";
+            reg = <0x62>;
+
+            led-1 {
+                label = "pca:red:power";
+                type = <PCA9532_TYPE_LED>;
+            };
+
+            led-2 {
+                label = "pca:green:power";
+                type = <PCA9532_TYPE_LED>;
+            };
+
+            led-3 {
+                type = <PCA9532_TYPE_LED>;
+                default-state = "on";
+            };
+
+            led-4 {
+                type = <PCA9532_TYPE_LED>;
+                default-state = "keep";
+            };
+        };
+    };
+
+...
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 2/2] dt-bindings: rtc: Move rv3028 from trivial-rtc.yaml into own schema file
  2023-01-11 16:34 [PATCH v2 1/2] dt-bindings: leds: Convert PCA9532 to dtschema Wadim Egorov
@ 2023-01-11 16:34 ` Wadim Egorov
  2023-01-13 19:25   ` Rob Herring
  2023-01-23 23:40   ` (subset) " Alexandre Belloni
  2023-01-11 18:47 ` [PATCH v2 1/2] dt-bindings: leds: Convert PCA9532 to dtschema Rob Herring
  1 sibling, 2 replies; 8+ messages in thread
From: Wadim Egorov @ 2023-01-11 16:34 UTC (permalink / raw)
  To: linux-leds, devicetree, linux-kernel, linux-rtc, upstream
  Cc: riku.voipio, alexandre.belloni, a.zummo, krzysztof.kozlowski+dt,
	robh+dt, lee, pavel

Move RV3028 RTC bindings from trivial-rtc.yaml into microcrystal,rv3032.yaml.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
---
v2:
  - Update subject 
  - Remove not needed quotes
  - Remove start-year
  - Use unevaluatedProperties instead of additionalProperties
---
 .../bindings/rtc/microcrystal,rv3028.yaml     | 54 +++++++++++++++++++
 .../devicetree/bindings/rtc/trivial-rtc.yaml  |  2 -
 2 files changed, 54 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml

diff --git a/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml b/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml
new file mode 100644
index 000000000000..5ade5dfad048
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/microcrystal,rv3028.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip RV-3028 RTC
+
+allOf:
+  - $ref: rtc.yaml#
+
+maintainers:
+  - Alexandre Belloni <alexandre.belloni@bootlin.com>
+
+properties:
+  compatible:
+    const: microcrystal,rv3028
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  trickle-resistor-ohms:
+    enum:
+      - 3000
+      - 5000
+      - 9000
+      - 15000
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        rtc@51 {
+            compatible = "microcrystal,rv3028";
+            reg = <0x51>;
+            pinctrl-0 = <&rtc_nint_pins>;
+            interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
+            trickle-resistor-ohms = <3000>;
+        };
+    };
+
+...
diff --git a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml
index d9fc120c61cc..84cce1f0ca0c 100644
--- a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml
@@ -48,8 +48,6 @@ properties:
       # Intersil ISL12022 Real-time Clock
       - isil,isl12022
       # Real Time Clock Module with I2C-Bus
-      - microcrystal,rv3028
-      # Real Time Clock Module with I2C-Bus
       - microcrystal,rv3029
       # Real Time Clock
       - microcrystal,rv8523
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: leds: Convert PCA9532 to dtschema
  2023-01-11 16:34 [PATCH v2 1/2] dt-bindings: leds: Convert PCA9532 to dtschema Wadim Egorov
  2023-01-11 16:34 ` [PATCH v2 2/2] dt-bindings: rtc: Move rv3028 from trivial-rtc.yaml into own schema file Wadim Egorov
@ 2023-01-11 18:47 ` Rob Herring
  2023-01-11 18:51   ` Rob Herring
  1 sibling, 1 reply; 8+ messages in thread
From: Rob Herring @ 2023-01-11 18:47 UTC (permalink / raw)
  To: Wadim Egorov
  Cc: a.zummo, krzysztof.kozlowski+dt, riku.voipio, robh+dt, pavel,
	linux-kernel, devicetree, alexandre.belloni, linux-rtc, lee,
	linux-leds, upstream


On Wed, 11 Jan 2023 17:34:03 +0100, Wadim Egorov wrote:
> Convert the PCA9532 LED dimmer to dtschema.
> While at it, also update and the the example to match
> recommended node names and the link to the product datasheet.
> 
> Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
> ---
> v2:
>   - Rename yaml file to match compatibles, nxp,pca953x.yaml
>   - Remove Jacek Anaszewski from maintainers list
>   - Remove color labels in example
>   - Restore labels/default-states from original example
>   - Drop reg description
>   - Add unevaluatedProperties to patternProperties scope
>   - Update description of type property & set default to 0
>   - Fix indentation in example
> ---
>  .../devicetree/bindings/leds/leds-pca9532.txt | 49 -----------
>  .../devicetree/bindings/leds/nxp,pca953x.yaml | 85 +++++++++++++++++++
>  2 files changed, 85 insertions(+), 49 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/leds/leds-pca9532.txt
>  create mode 100644 Documentation/devicetree/bindings/leds/nxp,pca953x.yaml
> 

Running 'make dtbs_check' with the schema in this patch gives the
following warnings. Consider if they are expected or the schema is
incorrect. These may not be new warnings.

Note that it is not yet a requirement to have 0 warnings for dtbs_check.
This will change in the future.

Full log is available here: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230111163404.3526248-1-w.egorov@phytec.de


leddimmer@62: 'led1', 'led2', 'led3', 'led4' do not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
	arch/arm/boot/dts/rk3288-phycore-rdk.dtb

leds@62: 'led1', 'led2', 'led3' do not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
	arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dtb

pca9530@61: 'tft-panel@0' does not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
	arch/arm/boot/dts/am335x-pdu001.dtb

pca9532@60: '#gpio-cells', 'gpio-controller' do not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
	arch/arm/boot/dts/lpc3250-ea3250.dtb

pca9532@60: 'psc0', 'psc1', 'pwm0', 'pwm1', 'run.green@1', 'run.red@0', 's1.green@5', 's1.yellow@4', 's2.green@3', 's2.red@2' do not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
	arch/arm/boot/dts/am335x-pdu001.dtb


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: leds: Convert PCA9532 to dtschema
  2023-01-11 18:47 ` [PATCH v2 1/2] dt-bindings: leds: Convert PCA9532 to dtschema Rob Herring
@ 2023-01-11 18:51   ` Rob Herring
  2023-01-13 16:18     ` Wadim Egorov
  0 siblings, 1 reply; 8+ messages in thread
From: Rob Herring @ 2023-01-11 18:51 UTC (permalink / raw)
  To: Wadim Egorov
  Cc: a.zummo, krzysztof.kozlowski+dt, riku.voipio, pavel,
	linux-kernel, devicetree, alexandre.belloni, linux-rtc, lee,
	linux-leds, upstream

On Wed, Jan 11, 2023 at 12:47 PM Rob Herring <robh@kernel.org> wrote:
>
>
> On Wed, 11 Jan 2023 17:34:03 +0100, Wadim Egorov wrote:
> > Convert the PCA9532 LED dimmer to dtschema.
> > While at it, also update and the the example to match
> > recommended node names and the link to the product datasheet.
> >
> > Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
> > ---
> > v2:
> >   - Rename yaml file to match compatibles, nxp,pca953x.yaml
> >   - Remove Jacek Anaszewski from maintainers list
> >   - Remove color labels in example
> >   - Restore labels/default-states from original example
> >   - Drop reg description
> >   - Add unevaluatedProperties to patternProperties scope
> >   - Update description of type property & set default to 0
> >   - Fix indentation in example
> > ---
> >  .../devicetree/bindings/leds/leds-pca9532.txt | 49 -----------
> >  .../devicetree/bindings/leds/nxp,pca953x.yaml | 85 +++++++++++++++++++
> >  2 files changed, 85 insertions(+), 49 deletions(-)
> >  delete mode 100644 Documentation/devicetree/bindings/leds/leds-pca9532.txt
> >  create mode 100644 Documentation/devicetree/bindings/leds/nxp,pca953x.yaml
> >
>
> Running 'make dtbs_check' with the schema in this patch gives the
> following warnings. Consider if they are expected or the schema is
> incorrect. These may not be new warnings.
>
> Note that it is not yet a requirement to have 0 warnings for dtbs_check.
> This will change in the future.
>
> Full log is available here: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230111163404.3526248-1-w.egorov@phytec.de
>
>
> leddimmer@62: 'led1', 'led2', 'led3', 'led4' do not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
>         arch/arm/boot/dts/rk3288-phycore-rdk.dtb
>
> leds@62: 'led1', 'led2', 'led3' do not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
>         arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dtb
>
> pca9530@61: 'tft-panel@0' does not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
>         arch/arm/boot/dts/am335x-pdu001.dtb
>
> pca9532@60: '#gpio-cells', 'gpio-controller' do not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
>         arch/arm/boot/dts/lpc3250-ea3250.dtb

Looks like GPIO properties need to be added as we have dts file and
the driver supports GPIO. It's fine to add in the conversion, just
mention it in the commit msg.

Also, your 2 patches in the series are unrelated and go to different
maintainers, so send them separately next time.

Rob

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: leds: Convert PCA9532 to dtschema
  2023-01-11 18:51   ` Rob Herring
@ 2023-01-13 16:18     ` Wadim Egorov
  2023-01-13 19:22       ` Rob Herring
  0 siblings, 1 reply; 8+ messages in thread
From: Wadim Egorov @ 2023-01-13 16:18 UTC (permalink / raw)
  To: Rob Herring
  Cc: a.zummo, krzysztof.kozlowski+dt, riku.voipio, pavel,
	linux-kernel, devicetree, alexandre.belloni, linux-rtc, lee,
	linux-leds, upstream

Am 11.01.23 um 19:51 schrieb Rob Herring:
> On Wed, Jan 11, 2023 at 12:47 PM Rob Herring <robh@kernel.org> wrote:
>>
>> On Wed, 11 Jan 2023 17:34:03 +0100, Wadim Egorov wrote:
>>> Convert the PCA9532 LED dimmer to dtschema.
>>> While at it, also update and the the example to match
>>> recommended node names and the link to the product datasheet.
>>>
>>> Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
>>> ---
>>> v2:
>>>    - Rename yaml file to match compatibles, nxp,pca953x.yaml
>>>    - Remove Jacek Anaszewski from maintainers list
>>>    - Remove color labels in example
>>>    - Restore labels/default-states from original example
>>>    - Drop reg description
>>>    - Add unevaluatedProperties to patternProperties scope
>>>    - Update description of type property & set default to 0
>>>    - Fix indentation in example
>>> ---
>>>   .../devicetree/bindings/leds/leds-pca9532.txt | 49 -----------
>>>   .../devicetree/bindings/leds/nxp,pca953x.yaml | 85 +++++++++++++++++++
>>>   2 files changed, 85 insertions(+), 49 deletions(-)
>>>   delete mode 100644 Documentation/devicetree/bindings/leds/leds-pca9532.txt
>>>   create mode 100644 Documentation/devicetree/bindings/leds/nxp,pca953x.yaml
>>>
>> Running 'make dtbs_check' with the schema in this patch gives the
>> following warnings. Consider if they are expected or the schema is
>> incorrect. These may not be new warnings.
>>
>> Note that it is not yet a requirement to have 0 warnings for dtbs_check.
>> This will change in the future.
>>
>> Full log is available here: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230111163404.3526248-1-w.egorov@phytec.de
>>
>>
>> leddimmer@62: 'led1', 'led2', 'led3', 'led4' do not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
>>          arch/arm/boot/dts/rk3288-phycore-rdk.dtb
>>
>> leds@62: 'led1', 'led2', 'led3' do not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
>>          arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dtb
>>
>> pca9530@61: 'tft-panel@0' does not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
>>          arch/arm/boot/dts/am335x-pdu001.dtb

How do I comply with the LED label warnings?
I am not sure about the proper convention. I was assuming led-<name> is correct.
The first two warnings can be fixed by dropping the '-' in the regex.
But I don't see how the last warning should comply with a proper LED node name. 
Or can this be ignored?

>>
>> pca9532@60: '#gpio-cells', 'gpio-controller' do not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
>>          arch/arm/boot/dts/lpc3250-ea3250.dtb
> Looks like GPIO properties need to be added as we have dts file and
> the driver supports GPIO. It's fine to add in the conversion, just
> mention it in the commit msg.

OK, thanks for pointing it out. I will add it in v3.

>
> Also, your 2 patches in the series are unrelated and go to different
> maintainers, so send them separately next time.

ok.

Regards,
Wadim

>
> Rob



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: leds: Convert PCA9532 to dtschema
  2023-01-13 16:18     ` Wadim Egorov
@ 2023-01-13 19:22       ` Rob Herring
  0 siblings, 0 replies; 8+ messages in thread
From: Rob Herring @ 2023-01-13 19:22 UTC (permalink / raw)
  To: Wadim Egorov
  Cc: a.zummo, krzysztof.kozlowski+dt, riku.voipio, pavel,
	linux-kernel, devicetree, alexandre.belloni, linux-rtc, lee,
	linux-leds, upstream

On Fri, Jan 13, 2023 at 04:18:26PM +0000, Wadim Egorov wrote:
> Am 11.01.23 um 19:51 schrieb Rob Herring:
> > On Wed, Jan 11, 2023 at 12:47 PM Rob Herring <robh@kernel.org> wrote:
> >>
> >> On Wed, 11 Jan 2023 17:34:03 +0100, Wadim Egorov wrote:
> >>> Convert the PCA9532 LED dimmer to dtschema.
> >>> While at it, also update and the the example to match
> >>> recommended node names and the link to the product datasheet.
> >>>
> >>> Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
> >>> ---
> >>> v2:
> >>>    - Rename yaml file to match compatibles, nxp,pca953x.yaml
> >>>    - Remove Jacek Anaszewski from maintainers list
> >>>    - Remove color labels in example
> >>>    - Restore labels/default-states from original example
> >>>    - Drop reg description
> >>>    - Add unevaluatedProperties to patternProperties scope
> >>>    - Update description of type property & set default to 0
> >>>    - Fix indentation in example
> >>> ---
> >>>   .../devicetree/bindings/leds/leds-pca9532.txt | 49 -----------
> >>>   .../devicetree/bindings/leds/nxp,pca953x.yaml | 85 +++++++++++++++++++
> >>>   2 files changed, 85 insertions(+), 49 deletions(-)
> >>>   delete mode 100644 Documentation/devicetree/bindings/leds/leds-pca9532.txt
> >>>   create mode 100644 Documentation/devicetree/bindings/leds/nxp,pca953x.yaml
> >>>
> >> Running 'make dtbs_check' with the schema in this patch gives the
> >> following warnings. Consider if they are expected or the schema is
> >> incorrect. These may not be new warnings.
> >>
> >> Note that it is not yet a requirement to have 0 warnings for dtbs_check.
> >> This will change in the future.
> >>
> >> Full log is available here: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230111163404.3526248-1-w.egorov@phytec.de
> >>
> >>
> >> leddimmer@62: 'led1', 'led2', 'led3', 'led4' do not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
> >>          arch/arm/boot/dts/rk3288-phycore-rdk.dtb
> >>
> >> leds@62: 'led1', 'led2', 'led3' do not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
> >>          arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dtb
> >>
> >> pca9530@61: 'tft-panel@0' does not match any of the regexes: '^led-[0-9a-z]+$', 'pinctrl-[0-9]+'
> >>          arch/arm/boot/dts/am335x-pdu001.dtb
> 
> How do I comply with the LED label warnings?
> I am not sure about the proper convention. I was assuming led-<name> is correct.
> The first two warnings can be fixed by dropping the '-' in the regex.
> But I don't see how the last warning should comply with a proper LED node name. 
> Or can this be ignored?

Those dts files should be fixed, not the schema. You don't have to do 
that.

Rob

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 2/2] dt-bindings: rtc: Move rv3028 from trivial-rtc.yaml into own schema file
  2023-01-11 16:34 ` [PATCH v2 2/2] dt-bindings: rtc: Move rv3028 from trivial-rtc.yaml into own schema file Wadim Egorov
@ 2023-01-13 19:25   ` Rob Herring
  2023-01-23 23:40   ` (subset) " Alexandre Belloni
  1 sibling, 0 replies; 8+ messages in thread
From: Rob Herring @ 2023-01-13 19:25 UTC (permalink / raw)
  To: Wadim Egorov
  Cc: linux-leds, devicetree, linux-kernel, linux-rtc, upstream,
	riku.voipio, alexandre.belloni, a.zummo, krzysztof.kozlowski+dt,
	lee, pavel

On Wed, Jan 11, 2023 at 05:34:04PM +0100, Wadim Egorov wrote:
> Move RV3028 RTC bindings from trivial-rtc.yaml into microcrystal,rv3032.yaml.

That's obvious from the diff. What's not obvious is 'why' and the commit 
message should answer that. I assume something about it makes it not 
trivial.

> 
> Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
> ---
> v2:
>   - Update subject 
>   - Remove not needed quotes
>   - Remove start-year
>   - Use unevaluatedProperties instead of additionalProperties
> ---
>  .../bindings/rtc/microcrystal,rv3028.yaml     | 54 +++++++++++++++++++
>  .../devicetree/bindings/rtc/trivial-rtc.yaml  |  2 -
>  2 files changed, 54 insertions(+), 2 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml

Otherwise,

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: (subset) [PATCH v2 2/2] dt-bindings: rtc: Move rv3028 from trivial-rtc.yaml into own schema file
  2023-01-11 16:34 ` [PATCH v2 2/2] dt-bindings: rtc: Move rv3028 from trivial-rtc.yaml into own schema file Wadim Egorov
  2023-01-13 19:25   ` Rob Herring
@ 2023-01-23 23:40   ` Alexandre Belloni
  1 sibling, 0 replies; 8+ messages in thread
From: Alexandre Belloni @ 2023-01-23 23:40 UTC (permalink / raw)
  To: linux-leds, devicetree, linux-kernel, linux-rtc, upstream, Wadim Egorov
  Cc: riku.voipio, a.zummo, krzysztof.kozlowski+dt, robh+dt, lee, pavel


On Wed, 11 Jan 2023 17:34:04 +0100, Wadim Egorov wrote:
> Move RV3028 RTC bindings from trivial-rtc.yaml into microcrystal,rv3032.yaml.
> 
> 

Applied, thanks!

[2/2] dt-bindings: rtc: Move rv3028 from trivial-rtc.yaml into own schema file
      commit: c690048ed59b5f7df91899507f210ba6591c0d8f

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-01-23 23:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-11 16:34 [PATCH v2 1/2] dt-bindings: leds: Convert PCA9532 to dtschema Wadim Egorov
2023-01-11 16:34 ` [PATCH v2 2/2] dt-bindings: rtc: Move rv3028 from trivial-rtc.yaml into own schema file Wadim Egorov
2023-01-13 19:25   ` Rob Herring
2023-01-23 23:40   ` (subset) " Alexandre Belloni
2023-01-11 18:47 ` [PATCH v2 1/2] dt-bindings: leds: Convert PCA9532 to dtschema Rob Herring
2023-01-11 18:51   ` Rob Herring
2023-01-13 16:18     ` Wadim Egorov
2023-01-13 19:22       ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).