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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: atmel,hlcdc: convert pwm bindings to json-schema

Convert device tree bindings for Atmel's HLCDC PWM controller to YAML
format.

Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240202001733.91455-3-dharma.b@microchip.com
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

authored by

Dharma Balasubiramani and committed by
Uwe Kleine-König
0fa319a1 1706175c

+35 -29
+35
Documentation/devicetree/bindings/pwm/atmel,hlcdc-pwm.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/pwm/atmel,hlcdc-pwm.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Atmel's HLCDC's PWM controller 8 + 9 + maintainers: 10 + - Nicolas Ferre <nicolas.ferre@microchip.com> 11 + - Alexandre Belloni <alexandre.belloni@bootlin.com> 12 + - Claudiu Beznea <claudiu.beznea@tuxon.dev> 13 + 14 + description: 15 + The LCDC integrates a Pulse Width Modulation (PWM) Controller. This block 16 + generates the LCD contrast control signal (LCD_PWM) that controls the 17 + display's contrast by software. LCDC_PWM is an 8-bit PWM signal that can be 18 + converted to an analog voltage with a simple passive filter. LCD display 19 + panels have different backlight specifications in terms of minimum/maximum 20 + values for PWM frequency. If the LCDC PWM frequency range does not match the 21 + LCD display panel, it is possible to use the standalone PWM Controller to 22 + drive the backlight. 23 + 24 + properties: 25 + compatible: 26 + const: atmel,hlcdc-pwm 27 + 28 + "#pwm-cells": 29 + const: 3 30 + 31 + required: 32 + - compatible 33 + - "#pwm-cells" 34 + 35 + additionalProperties: false
-29
Documentation/devicetree/bindings/pwm/atmel-hlcdc-pwm.txt
··· 1 - Device-Tree bindings for Atmel's HLCDC (High-end LCD Controller) PWM driver 2 - 3 - The Atmel HLCDC PWM is subdevice of the HLCDC MFD device. 4 - See ../mfd/atmel-hlcdc.txt for more details. 5 - 6 - Required properties: 7 - - compatible: value should be one of the following: 8 - "atmel,hlcdc-pwm" 9 - - pinctr-names: the pin control state names. Should contain "default". 10 - - pinctrl-0: should contain the pinctrl states described by pinctrl 11 - default. 12 - - #pwm-cells: should be set to 3. This PWM chip use the default 3 cells 13 - bindings defined in pwm.yaml in this directory. 14 - 15 - Example: 16 - 17 - hlcdc: hlcdc@f0030000 { 18 - compatible = "atmel,sama5d3-hlcdc"; 19 - reg = <0xf0030000 0x2000>; 20 - clocks = <&lcdc_clk>, <&lcdck>, <&clk32k>; 21 - clock-names = "periph_clk","sys_clk", "slow_clk"; 22 - 23 - hlcdc_pwm: hlcdc-pwm { 24 - compatible = "atmel,hlcdc-pwm"; 25 - pinctrl-names = "default"; 26 - pinctrl-0 = <&pinctrl_lcd_pwm>; 27 - #pwm-cells = <3>; 28 - }; 29 - };