hc
2025-02-14 bbb9540dc49f70f6b703d1c8d1b85fa5f602d86e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/*
 * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd
 *
 * SPDX-License-Identifier: (GPL-2.0+ OR MIT).
 */
 
/dts-v1/;
 
#include "rk3229-at-som.dtsi"
 
/ {
   model = "RK3229 ANDROID THINGS Full Function Board";
   compatible = "rockchip,rk3229-at-3nod", "rockchip,rk3229";
 
   gpio_keys {
       compatible = "gpio-keys";
       #address-cells = <1>;
       #size-cells = <0>;
       autorepeat;
 
       pinctrl-names = "default";
       pinctrl-0 = <&pwr_key>;
 
       power_key {
           label = "GPIO Key Power";
           gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
           linux,code = <116>;
           debounce-interval = <100>;
           wakeup-source;
       };
   };
 
   sdio_pwrseq: sdio-pwrseq {
       compatible = "mmc-pwrseq-simple";
       clocks = <&rk805 1>;
       clock-names = "ext_clock";
       pinctrl-names = "default";
       pinctrl-0 = <&wifi_enable_h>;
 
       /*
        * On the module itself this is one of these (depending
        * on the actual card populated):
        * - SDIO_RESET_L_WL_REG_ON
        * - PDN (power down when low)
        */
       reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* GPIO3_B7 */
   };
 
   wireless-bluetooth {
       compatible = "bluetooth-platdata";
       clocks = <&rk805 1>;
       clock-names = "ext_clock";
       uart_rts_gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
       pinctrl-names = "default", "rts_gpio";
       pinctrl-0 = <&uart11_rts>;
       pinctrl-1 = <&uart11_rts_gpio>;
       BT,reset_gpio    = <&gpio2 29 GPIO_ACTIVE_HIGH>;
       BT,wake_gpio     = <&gpio3 27 GPIO_ACTIVE_HIGH>;
       BT,wake_host_irq = <&gpio3 26 GPIO_ACTIVE_HIGH>;
       status = "okay";
   };
 
   wireless-wlan {
       compatible = "wlan-platdata";
       rockchip,grf = <&grf>;
       wifi_chip_type = "ap6255";
       WIFI,host_wake_irq = <&gpio0 28 GPIO_ACTIVE_HIGH>;
       status = "okay";
   };
};
 
&emmc {
   /*
    * enable emmc ddr mode, choose the
    * according parameter base on the emmc
    * io voltage.
    */
   mmc-ddr-1_8v;
   status = "okay";
};
 
&gpu {
   status = "okay";
};
 
&nandc {
   status = "disabled";
};
 
&pinctrl {
   pinctrl-names = "default";
   /*
    * sdmmc, pwm0, pwm2, ir, and spdif pins are defaultly set as gpio,
    * if you want to enable it, please remove below besides fixed_gpio.
    */
   pinctrl-0 = <&sdmmc_gpio &pwm0_gpio &pwm2_gpio
            &ir_gpio &spdif_gpio &fixed_gpio>;
 
   keys {
       pwr_key: pwr-key {
           rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_down>;
       };
   };
 
   sdio-pwrseq {
       wifi_enable_h: wifi-enable-h {
           rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
       };
   };
};
 
&reboot_mode {
   /delete-property/ mode-bootloader;
};
 
&sdio {
   max-frequency = <150000000>;
   mmc-pwrseq = <&sdio_pwrseq>;
   num-slots = <1>;
   sd-uhs-sdr104;
   status = "okay";
};
 
&vop {
   assigned-clocks = <&cru DCLK_VOP>;
   assigned-clock-parents = <&cru HDMIPHY>;
   status = "okay";
};
 
&vop_mmu {
   status = "okay";
};