.. | .. |
---|
8 | 8 | */ |
---|
9 | 9 | /dts-v1/; |
---|
10 | 10 | #include "at91-linea.dtsi" |
---|
11 | | -#include "sama5d3_lcd.dtsi" |
---|
12 | 11 | #include "at91-natte.dtsi" |
---|
13 | 12 | |
---|
14 | 13 | / { |
---|
.. | .. |
---|
16 | 15 | compatible = "axentia,nattis-2", "axentia,natte-2", "axentia,linea", |
---|
17 | 16 | "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5"; |
---|
18 | 17 | |
---|
19 | | - ahb { |
---|
20 | | - apb { |
---|
21 | | - pinctrl@fffff200 { |
---|
22 | | - nattis { |
---|
23 | | - pinctrl_usba_vbus: usba_vbus { |
---|
24 | | - atmel,pins = |
---|
25 | | - <AT91_PIOD 28 |
---|
26 | | - AT91_PERIPH_GPIO |
---|
27 | | - AT91_PINCTRL_DEGLITCH>; |
---|
28 | | - }; |
---|
29 | | - |
---|
30 | | - pinctrl_mmc0_cd: mmc0_cd { |
---|
31 | | - atmel,pins = |
---|
32 | | - <AT91_PIOD 5 |
---|
33 | | - AT91_PERIPH_GPIO |
---|
34 | | - AT91_PINCTRL_PULL_UP_DEGLITCH>; |
---|
35 | | - }; |
---|
36 | | - |
---|
37 | | - pinctrl_lcd_prlud0: lcd_prlud0 { |
---|
38 | | - atmel,pins = |
---|
39 | | - <AT91_PIOA 21 |
---|
40 | | - AT91_PERIPH_GPIO |
---|
41 | | - (AT91_PINCTRL_OUTPUT | |
---|
42 | | - AT91_PINCTRL_OUTPUT_VAL(0))>; |
---|
43 | | - }; |
---|
44 | | - |
---|
45 | | - pinctrl_lcd_hipow0: lcd_hipow0 { |
---|
46 | | - atmel,pins = |
---|
47 | | - <AT91_PIOA 23 |
---|
48 | | - AT91_PERIPH_GPIO |
---|
49 | | - (AT91_PINCTRL_OUTPUT | |
---|
50 | | - AT91_PINCTRL_OUTPUT_VAL(0))>; |
---|
51 | | - }; |
---|
52 | | - }; |
---|
53 | | - }; |
---|
54 | | - |
---|
55 | | - watchdog@fffffe40 { |
---|
56 | | - status = "okay"; |
---|
57 | | - }; |
---|
58 | | - }; |
---|
59 | | - }; |
---|
60 | | - |
---|
61 | 18 | gpio-keys { |
---|
62 | 19 | compatible = "gpio-keys"; |
---|
63 | 20 | |
---|
64 | 21 | wakeup { |
---|
65 | 22 | label = "Wakeup"; |
---|
66 | 23 | linux,code = <10>; |
---|
67 | | - gpio-key,wakeup; |
---|
| 24 | + wakeup-source; |
---|
68 | 25 | gpios = <&pioB 27 GPIO_ACTIVE_LOW>; |
---|
69 | 26 | }; |
---|
70 | 27 | }; |
---|
.. | .. |
---|
102 | 59 | |
---|
103 | 60 | power-supply = <&bl_reg>; |
---|
104 | 61 | enable-gpios = <&pioA 20 GPIO_ACTIVE_HIGH>; |
---|
| 62 | + pinctrl-names = "default"; |
---|
| 63 | + pinctrl-0 = <&pinctrl_blon>; |
---|
105 | 64 | }; |
---|
106 | 65 | |
---|
107 | 66 | panel: panel { |
---|
108 | | - compatible = "sharp,lq150x1lg11"; |
---|
| 67 | + compatible = "sharp,lq150x1lg11", "panel-lvds"; |
---|
| 68 | + |
---|
109 | 69 | backlight = <&panel_bl>; |
---|
110 | 70 | power-supply = <&panel_reg>; |
---|
| 71 | + |
---|
| 72 | + width-mm = <304>; |
---|
| 73 | + height-mm = <228>; |
---|
| 74 | + |
---|
| 75 | + data-mapping = "jeida-18"; |
---|
| 76 | + |
---|
| 77 | + panel-timing { |
---|
| 78 | + // 1024x768 @ 60Hz (typical) |
---|
| 79 | + clock-frequency = <50000000 65000000 80000000>; |
---|
| 80 | + hactive = <1024>; |
---|
| 81 | + vactive = <768>; |
---|
| 82 | + hfront-porch = <48 88 88>; |
---|
| 83 | + hback-porch = <96 168 168>; |
---|
| 84 | + hsync-len = <32 64 64>; |
---|
| 85 | + vsync-len = <3 13 74>; |
---|
| 86 | + vfront-porch = <3 13 74>; |
---|
| 87 | + vback-porch = <3 12 74>; |
---|
| 88 | + }; |
---|
111 | 89 | |
---|
112 | 90 | port { |
---|
113 | 91 | panel_input: endpoint { |
---|
.. | .. |
---|
117 | 95 | }; |
---|
118 | 96 | |
---|
119 | 97 | lvds-encoder { |
---|
120 | | - compatible = "lvds-encoder"; |
---|
| 98 | + compatible = "ti,ds90c185", "lvds-encoder"; |
---|
| 99 | + |
---|
| 100 | + pinctrl-names = "default"; |
---|
| 101 | + pinctrl-0 = <&pinctrl_lvds_prlud0 &pinctrl_lvds_hipow0>; |
---|
121 | 102 | |
---|
122 | 103 | ports { |
---|
123 | 104 | #address-cells = <1>; |
---|
.. | .. |
---|
161 | 142 | }; |
---|
162 | 143 | }; |
---|
163 | 144 | |
---|
| 145 | +&pinctrl { |
---|
| 146 | + nattis { |
---|
| 147 | + pinctrl_usba_vbus: usba_vbus { |
---|
| 148 | + atmel,pins = <AT91_PIOD 28 AT91_PERIPH_GPIO |
---|
| 149 | + AT91_PINCTRL_DEGLITCH>; |
---|
| 150 | + }; |
---|
| 151 | + |
---|
| 152 | + pinctrl_mmc0_cd: mmc0_cd { |
---|
| 153 | + atmel,pins = <AT91_PIOD 5 AT91_PERIPH_GPIO |
---|
| 154 | + AT91_PINCTRL_PULL_UP_DEGLITCH>; |
---|
| 155 | + }; |
---|
| 156 | + |
---|
| 157 | + pinctrl_lvds_prlud0: lvds_prlud0 { |
---|
| 158 | + atmel,pins = <AT91_PIOA 21 AT91_PERIPH_GPIO |
---|
| 159 | + (AT91_PINCTRL_OUTPUT | |
---|
| 160 | + AT91_PINCTRL_OUTPUT_VAL(0))>; |
---|
| 161 | + }; |
---|
| 162 | + |
---|
| 163 | + pinctrl_lvds_hipow0: lvds_hipow0 { |
---|
| 164 | + atmel,pins = <AT91_PIOA 23 AT91_PERIPH_GPIO |
---|
| 165 | + (AT91_PINCTRL_OUTPUT | |
---|
| 166 | + AT91_PINCTRL_OUTPUT_VAL(0))>; |
---|
| 167 | + }; |
---|
| 168 | + |
---|
| 169 | + pinctrl_blon: blon { |
---|
| 170 | + atmel,pins = <AT91_PIOA 20 AT91_PERIPH_GPIO |
---|
| 171 | + (AT91_PINCTRL_OUTPUT | |
---|
| 172 | + AT91_PINCTRL_OUTPUT_VAL(0))>; |
---|
| 173 | + }; |
---|
| 174 | + }; |
---|
| 175 | +}; |
---|
| 176 | + |
---|
| 177 | +&watchdog { |
---|
| 178 | + status = "okay"; |
---|
| 179 | +}; |
---|
| 180 | + |
---|
164 | 181 | &i2c0 { |
---|
165 | 182 | status = "okay"; |
---|
166 | 183 | |
---|
.. | .. |
---|
197 | 214 | |
---|
198 | 215 | hlcdc-display-controller { |
---|
199 | 216 | pinctrl-names = "default"; |
---|
200 | | - pinctrl-0 = <&pinctrl_lcd_base |
---|
201 | | - &pinctrl_lcd_rgb565 |
---|
202 | | - &pinctrl_lcd_prlud0 |
---|
203 | | - &pinctrl_lcd_hipow0>; |
---|
| 217 | + pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb565>; |
---|
204 | 218 | |
---|
205 | 219 | port@0 { |
---|
206 | 220 | hlcdc_output: endpoint { |
---|
207 | 221 | remote-endpoint = <&lvds_encoder_input>; |
---|
| 222 | + bus-width = <16>; |
---|
208 | 223 | }; |
---|
209 | 224 | }; |
---|
210 | 225 | }; |
---|