.. | .. |
---|
30 | 30 | |
---|
31 | 31 | /dts-v1/; |
---|
32 | 32 | #include "r8a7745-iwg22m.dtsi" |
---|
| 33 | +#include <dt-bindings/pwm/pwm.h> |
---|
33 | 34 | |
---|
34 | 35 | / { |
---|
35 | 36 | model = "iWave Systems RainboW-G22D-SODIMM board based on RZ/G1E"; |
---|
.. | .. |
---|
42 | 43 | }; |
---|
43 | 44 | |
---|
44 | 45 | chosen { |
---|
45 | | - bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
---|
| 46 | + bootargs = "ignore_loglevel rw root=/dev/nfs ip=on"; |
---|
46 | 47 | stdout-path = "serial3:115200n8"; |
---|
47 | 48 | }; |
---|
48 | 49 | |
---|
.. | .. |
---|
50 | 51 | compatible = "fixed-clock"; |
---|
51 | 52 | #clock-cells = <0>; |
---|
52 | 53 | clock-frequency = <26000000>; |
---|
| 54 | + }; |
---|
| 55 | + |
---|
| 56 | + backlight_lcd: backlight { |
---|
| 57 | + compatible = "pwm-backlight"; |
---|
| 58 | + pwms = <&tpu 3 5000000 PWM_POLARITY_INVERTED>; |
---|
| 59 | + brightness-levels = <0 4 8 16 32 64 128 255>; |
---|
| 60 | + default-brightness-level = <7>; |
---|
| 61 | + }; |
---|
| 62 | + |
---|
| 63 | + lcd_panel: lcd { |
---|
| 64 | + compatible = "edt,etm043080dh6gp"; |
---|
| 65 | + power-supply = <&vccq_panel>; |
---|
| 66 | + backlight = <&backlight_lcd>; |
---|
| 67 | + |
---|
| 68 | + port { |
---|
| 69 | + lcd_in: endpoint { |
---|
| 70 | + remote-endpoint = <&du_out_rgb0>; |
---|
| 71 | + }; |
---|
| 72 | + }; |
---|
| 73 | + }; |
---|
| 74 | + |
---|
| 75 | + vccq_panel: regulator-vccq-panel { |
---|
| 76 | + compatible = "regulator-fixed"; |
---|
| 77 | + regulator-name = "Panel VccQ"; |
---|
| 78 | + regulator-min-microvolt = <3300000>; |
---|
| 79 | + regulator-max-microvolt = <3300000>; |
---|
| 80 | + gpio = <&gpio1 13 GPIO_ACTIVE_LOW>; |
---|
| 81 | + enable-active-high; |
---|
| 82 | + }; |
---|
| 83 | + |
---|
| 84 | + vccq_sdhi0: regulator-vccq-sdhi0 { |
---|
| 85 | + compatible = "regulator-gpio"; |
---|
| 86 | + |
---|
| 87 | + regulator-name = "SDHI0 VccQ"; |
---|
| 88 | + regulator-min-microvolt = <1800000>; |
---|
| 89 | + regulator-max-microvolt = <3300000>; |
---|
| 90 | + |
---|
| 91 | + gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
---|
| 92 | + gpios-states = <1>; |
---|
| 93 | + states = <3300000 1>, <1800000 0>; |
---|
53 | 94 | }; |
---|
54 | 95 | |
---|
55 | 96 | rsnd_sgtl5000: sound { |
---|
.. | .. |
---|
65 | 106 | sndcodec: simple-audio-card,codec { |
---|
66 | 107 | sound-dai = <&sgtl5000>; |
---|
67 | 108 | }; |
---|
68 | | - }; |
---|
69 | | - |
---|
70 | | - vccq_sdhi0: regulator-vccq-sdhi0 { |
---|
71 | | - compatible = "regulator-gpio"; |
---|
72 | | - |
---|
73 | | - regulator-name = "SDHI0 VccQ"; |
---|
74 | | - regulator-min-microvolt = <1800000>; |
---|
75 | | - regulator-max-microvolt = <3300000>; |
---|
76 | | - |
---|
77 | | - gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
---|
78 | | - gpios-states = <1>; |
---|
79 | | - states = <3300000 1 |
---|
80 | | - 1800000 0>; |
---|
81 | 109 | }; |
---|
82 | 110 | }; |
---|
83 | 111 | |
---|
.. | .. |
---|
105 | 133 | pinctrl-names = "default"; |
---|
106 | 134 | |
---|
107 | 135 | status = "okay"; |
---|
| 136 | +}; |
---|
| 137 | + |
---|
| 138 | +&du { |
---|
| 139 | + pinctrl-0 = <&du0_pins>; |
---|
| 140 | + pinctrl-names = "default"; |
---|
| 141 | + |
---|
| 142 | + status = "okay"; |
---|
| 143 | + |
---|
| 144 | + ports { |
---|
| 145 | + port@0 { |
---|
| 146 | + endpoint { |
---|
| 147 | + remote-endpoint = <&lcd_in>; |
---|
| 148 | + }; |
---|
| 149 | + }; |
---|
| 150 | + }; |
---|
108 | 151 | }; |
---|
109 | 152 | |
---|
110 | 153 | &hscif1 { |
---|
.. | .. |
---|
136 | 179 | VDDA-supply = <®_3p3v>; |
---|
137 | 180 | VDDIO-supply = <®_3p3v>; |
---|
138 | 181 | }; |
---|
| 182 | + |
---|
| 183 | + stmpe811@44 { |
---|
| 184 | + compatible = "st,stmpe811"; |
---|
| 185 | + reg = <0x44>; |
---|
| 186 | + interrupt-parent = <&gpio4>; |
---|
| 187 | + interrupts = <4 IRQ_TYPE_LEVEL_LOW>; |
---|
| 188 | + |
---|
| 189 | + /* 3.25 MHz ADC clock speed */ |
---|
| 190 | + st,adc-freq = <1>; |
---|
| 191 | + /* ADC conversion time: 80 clocks */ |
---|
| 192 | + st,sample-time = <4>; |
---|
| 193 | + /* 12-bit ADC */ |
---|
| 194 | + st,mod-12b = <1>; |
---|
| 195 | + /* internal ADC reference */ |
---|
| 196 | + st,ref-sel = <0>; |
---|
| 197 | + |
---|
| 198 | + stmpe_touchscreen { |
---|
| 199 | + compatible = "st,stmpe-ts"; |
---|
| 200 | + /* 8 sample average control */ |
---|
| 201 | + st,ave-ctrl = <3>; |
---|
| 202 | + /* 7 length fractional part in z */ |
---|
| 203 | + st,fraction-z = <7>; |
---|
| 204 | + /* |
---|
| 205 | + * 50 mA typical 80 mA max touchscreen drivers |
---|
| 206 | + * current limit value |
---|
| 207 | + */ |
---|
| 208 | + st,i-drive = <1>; |
---|
| 209 | + /* 1 ms panel driver settling time */ |
---|
| 210 | + st,settling = <3>; |
---|
| 211 | + /* 5 ms touch detect interrupt delay */ |
---|
| 212 | + st,touch-det-delay = <5>; |
---|
| 213 | + }; |
---|
| 214 | + }; |
---|
139 | 215 | }; |
---|
140 | 216 | |
---|
141 | 217 | &pci1 { |
---|
.. | .. |
---|
150 | 226 | function = "avb"; |
---|
151 | 227 | }; |
---|
152 | 228 | |
---|
| 229 | + backlight_pins: backlight { |
---|
| 230 | + groups = "tpu_to3_c"; |
---|
| 231 | + function = "tpu"; |
---|
| 232 | + }; |
---|
| 233 | + |
---|
153 | 234 | can0_pins: can0 { |
---|
154 | 235 | groups = "can0_data"; |
---|
155 | 236 | function = "can0"; |
---|
| 237 | + }; |
---|
| 238 | + |
---|
| 239 | + du0_pins: du0 { |
---|
| 240 | + groups = "du0_rgb666", "du0_sync", "du0_disp", "du0_clk0_out"; |
---|
| 241 | + function = "du0"; |
---|
156 | 242 | }; |
---|
157 | 243 | |
---|
158 | 244 | hscif1_pins: hscif1 { |
---|
.. | .. |
---|
230 | 316 | shared-pin; |
---|
231 | 317 | }; |
---|
232 | 318 | |
---|
| 319 | +&tpu { |
---|
| 320 | + pinctrl-0 = <&backlight_pins>; |
---|
| 321 | + pinctrl-names = "default"; |
---|
| 322 | + status = "okay"; |
---|
| 323 | +}; |
---|
| 324 | + |
---|
233 | 325 | &usbphy { |
---|
234 | 326 | status = "okay"; |
---|
235 | 327 | }; |
---|