OSDN Git Service

ARM: at91/dt: at91sam9x5dm: add support for the touschscreen
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / arch / arm / boot / dts / at91sam9x5dm.dtsi
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                         hlcdc: hlcdc@f8038000 {
16                                 hlcdc-display-controller {
17                                         pinctrl-names = "default";
18                                         pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb888>;
19
20                                         port@0 {
21                                                 hlcdc_panel_output: endpoint@0 {
22                                                         reg = <0>;
23                                                         remote-endpoint = <&panel_input>;
24                                                 };
25                                         };
26                                 };
27                         };
28
29                         adc0: adc@f804c000 {
30                                 atmel,adc-ts-wires = <4>;
31                                 atmel,adc-ts-pressure-threshold = <10000>;
32                                 status = "okay";
33                         };
34                 };
35         };
36
37         backlight: backlight {
38                 compatible = "pwm-backlight";
39                 pwms = <&hlcdc_pwm 0 50000 0>;
40                 brightness-levels = <0 4 8 16 32 64 128 255>;
41                 default-brightness-level = <6>;
42                 power-supply = <&bl_reg>;
43                 status = "disabled";
44         };
45
46         bl_reg: backlight_regulator {
47                 compatible = "regulator-fixed";
48                 regulator-name = "backlight-power-supply";
49                 regulator-min-microvolt = <5000000>;
50                 regulator-max-microvolt = <5000000>;
51                 status = "disabled";
52         };
53
54         panel: panel {
55                 compatible = "foxlink,fl500wvr00-a0t", "simple-panel";
56                 backlight = <&backlight>;
57                 power-supply = <&panel_reg>;
58                 #address-cells = <1>;
59                 #size-cells = <0>;
60                 status = "disabled";
61
62                 port@0 {
63                         #address-cells = <1>;
64                         #size-cells = <0>;
65
66                         panel_input: endpoint@0 {
67                                 reg = <0>;
68                                 remote-endpoint = <&hlcdc_panel_output>;
69                         };
70                 };
71         };
72
73         panel_reg: panel_regulator {
74                 compatible = "regulator-fixed";
75                 regulator-name = "panel-power-supply";
76                 regulator-min-microvolt = <3300000>;
77                 regulator-max-microvolt = <3300000>;
78                 status = "disabled";
79         };
80 };