dt-bindings: leds: Convert leds-tlc591xx.txt to yaml format
Subsystems (3)
Frank Li
maintainerPATCH v2 1/1 dt-bindings: leds: Convert leds-tlc591xx.txt to yaml format
Convert binding doc leds-tlc591xx.txt to yaml format to fix below DTB_CHECK warning.
arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-proton2s.dtb:
/soc@0/bus@30800000/i2c@30a30000/tlc59108@40: failed to match any schema with compatible: ['ti,tlc59108']
Additional change:
- ref to common.yaml for child nodes.
- limit child's reg to 0 - 7 for ti,tlc59108.
- fix typo 'linux,default_trigger' in example.
- change child node name's prefix to led-.
- change nodename to led-controller.
- fix properties order in example.
---
change from v1 to v2
- using "^led@[0-9a-f]$"
- remove minimum: 0
--- .../bindings/leds/leds-tlc591xx.txt | 40 --------- .../devicetree/bindings/leds/ti,tlc59116.yaml | 90 +++++++++++++++++++ 2 files changed, 90 insertions(+), 40 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/leds-tlc591xx.txt create mode 100644 Documentation/devicetree/bindings/leds/ti,tlc59116.yaml
Documentation/devicetree/bindings/leds/leds-tlc591xx.txt deleted +0 -40
@@ -1,40 +0,0 @@ -LEDs connected to tlc59116 or tlc59108 - -Required properties -- compatible: should be "ti,tlc59116" or "ti,tlc59108" -- #address-cells: must be 1 -- #size-cells: must be 0 -- reg: typically 0x68 - -Each led is represented as a sub-node of the ti,tlc59116. -See Documentation/devicetree/bindings/leds/common.txt - -LED sub-node properties: -- reg: number of LED line, 0 to 15 or 0 to 7 -- label: (optional) name of LED -- linux,default-trigger : (optional) - -Examples: - -tlc59116@68 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "ti,tlc59116"; - reg = <0x68>; - - wan@0 { - label = "wrt1900ac:amber:wan"; - reg = <0x0>; - }; - - 2g@2 { - label = "wrt1900ac:white:2g"; - reg = <0x2>; - }; - - alive@9 { - label = "wrt1900ac:green:alive"; - reg = <0x9>; - linux,default_trigger = "heartbeat"; - }; -};
Documentation/devicetree/bindings/leds/ti,tlc59116.yaml new file +90 -0
90 lines not on this page · raw message
Signature · 1 line
2.34.1
Quoted 19 lines · Frank Li
Convert binding doc leds-tlc591xx.txt to yaml format to fix below
DTB_CHECKwarning.
arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-proton2s.dtb:
/soc@0/bus@30800000/i2c@30a30000/tlc59108@40: failed to match any schema with compatible: ['ti,tlc59108']Additional change:
- ref tocommon.yamlfor child nodes.
- limit child's reg to 0 - 7 for ti,tlc59108.
- fix typo 'linux,default_trigger' in example.
- change child node name's prefix to led-.
- change nodename to led-controller.
- fix properties order in example.Signed-off-by Frank Li <[email protected]>---
change from v1 to v2
- using "^led@[0-9a-f]$"
- remove minimum: 0
Quoted 7 lines
--- .../bindings/leds/leds-tlc591xx.txt | 40 --------- .../devicetree/bindings/leds/ti,tlc59116.yaml | 90 +++++++++++++++++++ 2 files changed, 90 insertions(+), 40 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/leds-tlc591xx.txt create mode 100644 Documentation/devicetree/bindings/leds/ti,tlc59116.yaml
Frank Li
maintainerQuoted 29 lines · Rob Herring (Arm)
Quoted 19 lines · Frank Li
Convert binding doc leds-tlc591xx.txt to yaml format to fix below
DTB_CHECKwarning.
arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-proton2s.dtb:
/soc@0/bus@30800000/i2c@30a30000/tlc59108@40: failed to match any schema with compatible: ['ti,tlc59108']Additional change:
- ref tocommon.yamlfor child nodes.
- limit child's reg to 0 - 7 for ti,tlc59108.
- fix typo 'linux,default_trigger' in example.
- change child node name's prefix to led-.
- change nodename to led-controller.
- fix properties order in example.Signed-off-by Frank Li <[email protected]>---
change from v1 to v2
- using "^led@[0-9a-f]$"
- remove minimum: 0Quoted 7 lines
--- .../bindings/leds/leds-tlc591xx.txt | 40 --------- .../devicetree/bindings/leds/ti,tlc59116.yaml | 90 +++++++++++++++++++ 2 files changed, 90 insertions(+), 40 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/leds-tlc591xx.txt create mode 100644 Documentation/devicetree/bindings/leds/ti,tlc59116.yaml
Quoted 1 line
Reviewed-by Rob Herring (Arm) <[email protected]>
Anyone take care this patch. Rob already acked.
Frank
Quoted 1 line
Lee Jones
maintainerQuoted 30 lines · Frank Li
Quoted 29 lines · Rob Herring (Arm)
Quoted 26 lines · Frank Li
Convert binding doc leds-tlc591xx.txt to yaml format to fix below
DTB_CHECKwarning.
arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-proton2s.dtb:
/soc@0/bus@30800000/i2c@30a30000/tlc59108@40: failed to match any schema with compatible: ['ti,tlc59108']Additional change:
- ref tocommon.yamlfor child nodes.
- limit child's reg to 0 - 7 for ti,tlc59108.
- fix typo 'linux,default_trigger' in example.
- change child node name's prefix to led-.
- change nodename to led-controller.
- fix properties order in example.Signed-off-by Frank Li <[email protected]>---
change from v1 to v2
- using "^led@[0-9a-f]$"
- remove minimum: 0--- .../bindings/leds/leds-tlc591xx.txt | 40 --------- .../devicetree/bindings/leds/ti,tlc59116.yaml | 90 +++++++++++++++++++ 2 files changed, 90 insertions(+), 40 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/leds-tlc591xx.txt create mode 100644 Documentation/devicetree/bindings/leds/ti,tlc59116.yaml
Quoted 3 lines
Quoted 1 line
Reviewed-by Rob Herring (Arm) <[email protected]>Anyone take care this patch. Rob already acked.
Yes. I'm working through my inbox now. FWIW, since I work in reverse chronological order, you just bumped it to the back of the queue.
Signature · 1 line
Lee Jones [李琼斯]
Re: (subset) [PATCH v2 1/1] dt-bindings: leds: Convert leds-tlc591xx.txt to yaml format
In reply to Frank LiQuoted 14 lines · Frank Li
Convert binding doc leds-tlc591xx.txt to yaml format to fix below
DTB_CHECKwarning.
arch/arm64/boot/dts/freescale/imx8mp-aristainetos3-proton2s.dtb:
/soc@0/bus@30800000/i2c@30a30000/tlc59108@40: failed to match any schema with compatible: ['ti,tlc59108']Additional change:
- ref tocommon.yamlfor child nodes.
- limit child's reg to 0 - 7 for ti,tlc59108.
- fix typo 'linux,default_trigger' in example.
- change child node name's prefix to led-.
- change nodename to led-controller.
- fix properties order in example.
Quoted 1 line
[...]
Applied, thanks!
[1/1] dt-bindings: leds: Convert leds-tlc591xx.txt to yaml format
commit: 346e704278151149e9b4c6807686ee667b911e77
--
Lee Jones [李琼斯]