1/*
2 * at91sam9x5dm.dtsi - Device Tree file for SAM9x5 display module
3 *
4 *  Copyright (C) 2014 Atmel,
5 *                2014 Free Electrons
6 *
7 *  Author: Boris Brezillon <boris.brezillon@free-electrons.com>
8 *
9 * Licensed under GPLv2 or later.
10 */
11
12/ {
13	ahb {
14		apb {
15			i2c0: i2c@f8010000 {
16				qt1070: keyboard@1b {
17					compatible = "qt1070";
18					reg = <0x1b>;
19					interrupt-parent = <&pioA>;
20					interrupts = <7 0x0>;
21					pinctrl-names = "default";
22					pinctrl-0 = <&pinctrl_qt1070_irq>;
23					wakeup-source;
24				};
25			};
26
27			hlcdc: hlcdc@f8038000 {
28				hlcdc-display-controller {
29					pinctrl-names = "default";
30					pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb888>;
31
32					port@0 {
33						hlcdc_panel_output: endpoint@0 {
34							reg = <0>;
35							remote-endpoint = <&panel_input>;
36						};
37					};
38				};
39			};
40
41			adc0: adc@f804c000 {
42				atmel,adc-ts-wires = <4>;
43				atmel,adc-ts-pressure-threshold = <10000>;
44				status = "okay";
45			};
46
47			pinctrl@fffff400 {
48				board {
49					pinctrl_qt1070_irq: qt1070_irq {
50						atmel,pins =
51							<AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
52					};
53				};
54			};
55		};
56	};
57
58	backlight: backlight {
59		compatible = "pwm-backlight";
60		pwms = <&hlcdc_pwm 0 50000 0>;
61		brightness-levels = <0 4 8 16 32 64 128 255>;
62		default-brightness-level = <6>;
63		power-supply = <&bl_reg>;
64		status = "disabled";
65	};
66
67	bl_reg: backlight_regulator {
68		compatible = "regulator-fixed";
69		regulator-name = "backlight-power-supply";
70		regulator-min-microvolt = <5000000>;
71		regulator-max-microvolt = <5000000>;
72		status = "disabled";
73	};
74
75	panel: panel {
76		compatible = "foxlink,fl500wvr00-a0t", "simple-panel";
77		backlight = <&backlight>;
78		power-supply = <&panel_reg>;
79		#address-cells = <1>;
80		#size-cells = <0>;
81		status = "disabled";
82
83		port@0 {
84			#address-cells = <1>;
85			#size-cells = <0>;
86
87			panel_input: endpoint@0 {
88				reg = <0>;
89				remote-endpoint = <&hlcdc_panel_output>;
90			};
91		};
92	};
93
94	panel_reg: panel_regulator {
95		compatible = "regulator-fixed";
96		regulator-name = "panel-power-supply";
97		regulator-min-microvolt = <3300000>;
98		regulator-max-microvolt = <3300000>;
99		status = "disabled";
100	};
101};
102