xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/atmel-hlcdc.txt (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1c66ec88fSEmmanuel VadotDevice-Tree bindings for Atmel's HLCDC (High LCD Controller) MFD driver
2c66ec88fSEmmanuel Vadot
3c66ec88fSEmmanuel VadotRequired properties:
4c66ec88fSEmmanuel Vadot - compatible: value should be one of the following:
5c66ec88fSEmmanuel Vadot   "atmel,at91sam9n12-hlcdc"
6c66ec88fSEmmanuel Vadot   "atmel,at91sam9x5-hlcdc"
7c66ec88fSEmmanuel Vadot   "atmel,sama5d2-hlcdc"
8c66ec88fSEmmanuel Vadot   "atmel,sama5d3-hlcdc"
9c66ec88fSEmmanuel Vadot   "atmel,sama5d4-hlcdc"
10c66ec88fSEmmanuel Vadot   "microchip,sam9x60-hlcdc"
11*aa1a8ff2SEmmanuel Vadot   "microchip,sam9x75-xlcdc"
12c66ec88fSEmmanuel Vadot - reg: base address and size of the HLCDC device registers.
13c66ec88fSEmmanuel Vadot - clock-names: the name of the 3 clocks requested by the HLCDC device.
14c66ec88fSEmmanuel Vadot   Should contain "periph_clk", "sys_clk" and "slow_clk".
15c66ec88fSEmmanuel Vadot - clocks: should contain the 3 clocks requested by the HLCDC device.
16c66ec88fSEmmanuel Vadot - interrupts: should contain the description of the HLCDC interrupt line
17c66ec88fSEmmanuel Vadot
18c66ec88fSEmmanuel VadotThe HLCDC IP exposes two subdevices:
19c66ec88fSEmmanuel Vadot - a PWM chip: see ../pwm/atmel-hlcdc-pwm.txt
20c66ec88fSEmmanuel Vadot - a Display Controller: see ../display/atmel/hlcdc-dc.txt
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel VadotExample:
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot	hlcdc: hlcdc@f0030000 {
25c66ec88fSEmmanuel Vadot		compatible = "atmel,sama5d3-hlcdc";
26c66ec88fSEmmanuel Vadot		reg = <0xf0030000 0x2000>;
27c66ec88fSEmmanuel Vadot		clocks = <&lcdc_clk>, <&lcdck>, <&clk32k>;
28c66ec88fSEmmanuel Vadot		clock-names = "periph_clk","sys_clk", "slow_clk";
29c66ec88fSEmmanuel Vadot		interrupts = <36 IRQ_TYPE_LEVEL_HIGH 0>;
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadot		hlcdc-display-controller {
32c66ec88fSEmmanuel Vadot			compatible = "atmel,hlcdc-display-controller";
33c66ec88fSEmmanuel Vadot			pinctrl-names = "default";
34c66ec88fSEmmanuel Vadot			pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb888>;
35c66ec88fSEmmanuel Vadot			#address-cells = <1>;
36c66ec88fSEmmanuel Vadot			#size-cells = <0>;
37c66ec88fSEmmanuel Vadot
38c66ec88fSEmmanuel Vadot			port@0 {
39c66ec88fSEmmanuel Vadot				#address-cells = <1>;
40c66ec88fSEmmanuel Vadot				#size-cells = <0>;
41c66ec88fSEmmanuel Vadot				reg = <0>;
42c66ec88fSEmmanuel Vadot
43c66ec88fSEmmanuel Vadot				hlcdc_panel_output: endpoint@0 {
44c66ec88fSEmmanuel Vadot					reg = <0>;
45c66ec88fSEmmanuel Vadot					remote-endpoint = <&panel_input>;
46c66ec88fSEmmanuel Vadot				};
47c66ec88fSEmmanuel Vadot			};
48c66ec88fSEmmanuel Vadot		};
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadot		hlcdc_pwm: hlcdc-pwm {
51c66ec88fSEmmanuel Vadot			compatible = "atmel,hlcdc-pwm";
52c66ec88fSEmmanuel Vadot			pinctrl-names = "default";
53c66ec88fSEmmanuel Vadot			pinctrl-0 = <&pinctrl_lcd_pwm>;
54c66ec88fSEmmanuel Vadot			#pwm-cells = <3>;
55c66ec88fSEmmanuel Vadot		};
56c66ec88fSEmmanuel Vadot	};
57