Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: leds: arc,arc2c0608: Convert to DT Schema

Convert the ArcticSand arc2c0608 LED driver to the dt-schema.

Signed-off-by: Harrison Carter <hcarter@thegoodpenguin.co.uk>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Harrison Carter and committed by
Lee Jones
e39d87fd 3a866087

+108 -33
+108
Documentation/devicetree/bindings/leds/backlight/arc,arc2c0608.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/leds/backlight/arc,arc2c0608.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ArcticSand arc2c0608 LED driver 8 + 9 + description: | 10 + The ArcticSand arc2c0608 LED driver provides ultra 11 + efficient notebook backlighting. Optional properties not 12 + specified will default to values in IC EPROM. 13 + 14 + Datasheet: 15 + https://www.murata.com/-/media/webrenewal/products/power/power-semiconductor/overview/lineup/led-boost/arc2/arc2c0608.ashx. 16 + 17 + maintainers: 18 + - Brian Dodge <bdodge@arcticsand.com> 19 + 20 + allOf: 21 + - $ref: /schemas/leds/common.yaml 22 + 23 + properties: 24 + compatible: 25 + const: arc,arc2c0608 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + default-brightness: 31 + $ref: /schemas/types.yaml#/definitions/uint32 32 + minimum: 0 33 + maximum: 4095 34 + 35 + led-sources: 36 + $ref: /schemas/types.yaml#/definitions/uint32-array 37 + description: List of enabled channels 38 + items: 39 + enum: [0, 1, 2, 3, 4, 5] 40 + minItems: 1 41 + uniqueItems: true 42 + 43 + arc,led-config-0: 44 + $ref: /schemas/types.yaml#/definitions/uint32 45 + description: Fading speed (period between intensity 46 + steps) 47 + 48 + arc,led-config-1: 49 + $ref: /schemas/types.yaml#/definitions/uint32 50 + description: If set, sets ILED_CONFIG register. Used for 51 + fine tuning the maximum LED current. 52 + 53 + arc,dim-freq: 54 + $ref: /schemas/types.yaml#/definitions/uint32 55 + description: PWM mode frequency setting (bits [3:0] used) 56 + 57 + arc,comp-config: 58 + $ref: /schemas/types.yaml#/definitions/uint32 59 + description: Setting for register CONFIG_COMP which 60 + controls internal resitances, feed forward freqs, 61 + and initial VOUT at startup. Consult the datasheet. 62 + 63 + arc,filter-config: 64 + $ref: /schemas/types.yaml#/definitions/uint32 65 + description: RC and PWM Filter settings. 66 + Bit Assignment 67 + 7654 3 2 1 0 68 + xxxx RCF1 RCF0 PWM1 PWM0 69 + RCF statuses PWM Filter Statues 70 + 00 = OFF (default) 00 = OFF (default) 71 + 01 = LOW 01 = 2 STEPS 72 + 10 - MEDIUM 10 = 4 STEPS 73 + 11 = HIGH 11 = 8 STEPS 74 + 75 + arc,trim-config: 76 + $ref: /schemas/types.yaml#/definitions/uint32 77 + description: Sets percentage increase of Maximum LED 78 + Current. 79 + 0x00 = 0% increase. 80 + 0x20 = 20.2%. 81 + 0x3F = 41.5% 82 + 83 + label: true 84 + 85 + linux,default-trigger: true 86 + 87 + additionalProperties: false 88 + 89 + required: 90 + - compatible 91 + - reg 92 + 93 + examples: 94 + - | 95 + i2c { 96 + #address-cells = <1>; 97 + #size-cells = <0>; 98 + 99 + led-controller@30 { 100 + compatible = "arc,arc2c0608"; 101 + reg = <0x30>; 102 + default-brightness = <500>; 103 + label = "lcd-backlight"; 104 + linux,default-trigger = "backlight"; 105 + led-sources = <0 1 2 5>; 106 + }; 107 + }; 108 + ...
-33
Documentation/devicetree/bindings/leds/backlight/arcxcnn_bl.txt
··· 1 - Binding for ArcticSand arc2c0608 LED driver 2 - 3 - Required properties: 4 - - compatible: should be "arc,arc2c0608" 5 - - reg: slave address 6 - 7 - Optional properties: 8 - - default-brightness: brightness value on boot, value from: 0-4095 9 - - label: The name of the backlight device 10 - See Documentation/devicetree/bindings/leds/common.txt 11 - - led-sources: List of enabled channels from 0 to 5. 12 - See Documentation/devicetree/bindings/leds/common.txt 13 - 14 - - arc,led-config-0: setting for register ILED_CONFIG_0 15 - - arc,led-config-1: setting for register ILED_CONFIG_1 16 - - arc,dim-freq: PWM mode frequence setting (bits [3:0] used) 17 - - arc,comp-config: setting for register CONFIG_COMP 18 - - arc,filter-config: setting for register FILTER_CONFIG 19 - - arc,trim-config: setting for register IMAXTUNE 20 - 21 - Note: Optional properties not specified will default to values in IC EPROM 22 - 23 - Example: 24 - 25 - arc2c0608@30 { 26 - compatible = "arc,arc2c0608"; 27 - reg = <0x30>; 28 - default-brightness = <500>; 29 - label = "lcd-backlight"; 30 - linux,default-trigger = "backlight"; 31 - led-sources = <0 1 2 5>; 32 - }; 33 -