| .. | .. |
|---|
| 4 | 4 | #include "rk3288-evb.dtsi" |
|---|
| 5 | 5 | |
|---|
| 6 | 6 | / { |
|---|
| 7 | + model = "Rockchip RK3288 EVB ACT8846"; |
|---|
| 7 | 8 | compatible = "rockchip,rk3288-evb-act8846", "rockchip,rk3288"; |
|---|
| 8 | 9 | |
|---|
| 9 | | - panel { |
|---|
| 10 | | - compatible = "simple-panel"; |
|---|
| 11 | | - backlight = <&backlight>; |
|---|
| 12 | | - power-supply = <&vcc_lcd>; |
|---|
| 13 | | - enable-gpios = <&gpio7 RK_PA4 GPIO_ACTIVE_HIGH>; |
|---|
| 14 | | - prepare-delay-ms = <120>; |
|---|
| 10 | + sdio_pwrseq: sdio-pwrseq { |
|---|
| 11 | + compatible = "mmc-pwrseq-simple"; |
|---|
| 12 | + clocks = <&hym8563>; |
|---|
| 13 | + clock-names = "ext_clock"; |
|---|
| 14 | + pinctrl-names = "default"; |
|---|
| 15 | + pinctrl-0 = <&wifi_enable_h>; |
|---|
| 15 | 16 | |
|---|
| 16 | | - display-timings { |
|---|
| 17 | | - native-mode = <&timing0>; |
|---|
| 18 | | - |
|---|
| 19 | | - timing0: timing0 { |
|---|
| 20 | | - clock-frequency = <200000000>; |
|---|
| 21 | | - hactive = <1536>; |
|---|
| 22 | | - vactive = <2048>; |
|---|
| 23 | | - hfront-porch = <12>; |
|---|
| 24 | | - hsync-len = <16>; |
|---|
| 25 | | - hback-porch = <48>; |
|---|
| 26 | | - vfront-porch = <8>; |
|---|
| 27 | | - vsync-len = <4>; |
|---|
| 28 | | - vback-porch = <8>; |
|---|
| 29 | | - hsync-active = <0>; |
|---|
| 30 | | - vsync-active = <0>; |
|---|
| 31 | | - de-active = <0>; |
|---|
| 32 | | - pixelclk-active = <0>; |
|---|
| 33 | | - }; |
|---|
| 34 | | - }; |
|---|
| 35 | | - |
|---|
| 36 | | - port { |
|---|
| 37 | | - panel_in_edp: endpoint { |
|---|
| 38 | | - remote-endpoint = <&edp_out_panel>; |
|---|
| 39 | | - }; |
|---|
| 40 | | - }; |
|---|
| 17 | + /* |
|---|
| 18 | + * On the module itself this is one of these (depending |
|---|
| 19 | + * on the actual card populated): |
|---|
| 20 | + * - SDIO_RESET_L_WL_REG_ON |
|---|
| 21 | + * - PDN (power down when low) |
|---|
| 22 | + */ |
|---|
| 23 | + reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>; |
|---|
| 41 | 24 | }; |
|---|
| 42 | 25 | |
|---|
| 43 | 26 | vcc_lcd: vcc-lcd { |
|---|
| .. | .. |
|---|
| 59 | 42 | regulator-name = "vcc_wl"; |
|---|
| 60 | 43 | vin-supply = <&vcc_18>; |
|---|
| 61 | 44 | }; |
|---|
| 62 | | -}; |
|---|
| 63 | | - |
|---|
| 64 | | -&backlight { |
|---|
| 65 | | - enable-gpios = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>; |
|---|
| 66 | | - pinctrl-names = "default"; |
|---|
| 67 | | - pinctrl-0 = <&bl_en>; |
|---|
| 68 | | - pwms = <&pwm0 0 1000000 PWM_POLARITY_INVERTED>; |
|---|
| 69 | 45 | }; |
|---|
| 70 | 46 | |
|---|
| 71 | 47 | &i2c0 { |
|---|
| .. | .. |
|---|
| 94 | 70 | vin-supply = <&vcc_sys>; |
|---|
| 95 | 71 | }; |
|---|
| 96 | 72 | |
|---|
| 97 | | - hym8563@51 { |
|---|
| 98 | | - compatible = "haoyu,hym8563"; |
|---|
| 99 | | - reg = <0x51>; |
|---|
| 100 | | - |
|---|
| 101 | | - interrupt-parent = <&gpio0>; |
|---|
| 102 | | - interrupts = <RK_PA4 IRQ_TYPE_EDGE_FALLING>; |
|---|
| 103 | | - |
|---|
| 104 | | - pinctrl-names = "default"; |
|---|
| 105 | | - pinctrl-0 = <&pmic_int>; |
|---|
| 106 | | - |
|---|
| 107 | | - #clock-cells = <0>; |
|---|
| 108 | | - clock-output-names = "xin32k"; |
|---|
| 109 | | - }; |
|---|
| 110 | | - |
|---|
| 111 | | - hym8563: hym8563@51 { |
|---|
| 73 | + hym8563: rtc@51 { |
|---|
| 112 | 74 | compatible = "haoyu,hym8563"; |
|---|
| 113 | 75 | reg = <0x51>; |
|---|
| 114 | 76 | |
|---|
| .. | .. |
|---|
| 221 | 183 | }; |
|---|
| 222 | 184 | }; |
|---|
| 223 | 185 | }; |
|---|
| 224 | | - |
|---|
| 225 | | - sdio_pwrseq: sdio-pwrseq { |
|---|
| 226 | | - compatible = "mmc-pwrseq-simple"; |
|---|
| 227 | | - clocks = <&hym8563>; |
|---|
| 228 | | - clock-names = "ext_clock"; |
|---|
| 229 | | - pinctrl-names = "default"; |
|---|
| 230 | | - pinctrl-0 = <&wifi_enable_h>; |
|---|
| 231 | | - |
|---|
| 232 | | - /* |
|---|
| 233 | | - * On the module itself this is one of these (depending |
|---|
| 234 | | - * on the actual card populated): |
|---|
| 235 | | - * - SDIO_RESET_L_WL_REG_ON |
|---|
| 236 | | - * - PDN (power down when low) |
|---|
| 237 | | - */ |
|---|
| 238 | | - reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>; |
|---|
| 239 | | - }; |
|---|
| 240 | 186 | }; |
|---|
| 241 | 187 | |
|---|
| 242 | | -&edp { |
|---|
| 243 | | - force-hpd; |
|---|
| 244 | | - status = "okay"; |
|---|
| 245 | | - |
|---|
| 246 | | - ports { |
|---|
| 247 | | - port@1 { |
|---|
| 248 | | - reg = <1>; |
|---|
| 249 | | - |
|---|
| 250 | | - edp_out_panel: endpoint { |
|---|
| 251 | | - remote-endpoint = <&panel_in_edp>; |
|---|
| 252 | | - }; |
|---|
| 253 | | - }; |
|---|
| 254 | | - }; |
|---|
| 255 | | -}; |
|---|
| 256 | | - |
|---|
| 257 | | -&edp_in_vopb { |
|---|
| 258 | | - status = "disabled"; |
|---|
| 259 | | -}; |
|---|
| 260 | | - |
|---|
| 261 | | -&edp_in_vopl { |
|---|
| 262 | | - status = "okay"; |
|---|
| 263 | | -}; |
|---|
| 264 | | - |
|---|
| 265 | | -&pwm0 { |
|---|
| 266 | | - status = "okay"; |
|---|
| 188 | +&panel { |
|---|
| 189 | + power-supply = <&vcc_lcd>; |
|---|
| 267 | 190 | }; |
|---|
| 268 | 191 | |
|---|
| 269 | 192 | &pinctrl { |
|---|
| 270 | | - backlight { |
|---|
| 271 | | - bl_en: bl-en { |
|---|
| 272 | | - rockchip,pins = <7 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 273 | | - }; |
|---|
| 274 | | - }; |
|---|
| 275 | | - |
|---|
| 276 | 193 | lcd { |
|---|
| 277 | 194 | lcd_en: lcd-en { |
|---|
| 278 | 195 | rockchip,pins = <7 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|