ARM: dts: rk3228-sdk: enable psci
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3228-sdk.dts
1 /dts-v1/;
2
3 #include "rk3228.dtsi"
4 #include <dt-bindings/input/input.h>
5
6 / {
7         chosen {
8                 bootargs = "vmalloc=496M psci=enable";
9         };
10
11         fiq-debugger {
12                 status = "disabled";
13         };
14 };
15
16 &emmc {
17         clock-frequency = <50000000>;
18         clock-freq-min-max = <400000 50000000>;
19         supports-highspeed;
20         supports-emmc;
21         bootpart-no-access;
22         supports-DDR_MODE;
23         ignore-pm-notify;
24         keep-power-in-suspend;
25         status = "okay";
26 };
27
28 &sdmmc {
29         clock-frequency = <37500000>;
30         clock-freq-min-max = <400000 37500000>;
31         supports-highspeed;
32         supports-sd;
33         broken-cd;
34         card-detect-delay = <200>;
35         ignore-pm-notify;
36         keep-power-in-suspend;
37         status = "okay";
38 };
39
40 &sdio {
41         clock-frequency = <37500000>;
42         clock-freq-min-max = <200000 37500000>;
43         supports-highspeed;
44         supports-sdio;
45         ignore-pm-notify;
46         keep-power-in-suspend;
47         cap-sdio-irq;
48         status = "okay";
49 };
50
51 /*
52  * Due to not have the software of PWM for remotectrl.
53  * We can _*HACK*_ do that as the following.
54  */
55 &pwm3 {
56         compatible = "rockchip,remotectl-pwm";
57         remote_pwm_id = <3>;
58         handle_cpu_id = <1>;
59         status = "okay";
60
61         ir_key1{
62                 rockchip,usercode = <0x4040>;
63                 rockchip,key_table =
64                         <0xf2   KEY_REPLY>,
65                         <0xba   KEY_BACK>,
66                         <0xf4   KEY_UP>,
67                         <0xf1   KEY_DOWN>,
68                         <0xef   KEY_LEFT>,
69                         <0xee   KEY_RIGHT>,
70                         <0xbd   KEY_HOME>,
71                         <0xea   KEY_VOLUMEUP>,
72                         <0xe3   KEY_VOLUMEDOWN>,
73                         <0xe2   KEY_SEARCH>,
74                         <0xb2   KEY_POWER>,
75                         <0xbc   KEY_MUTE>,
76                         <0xec   KEY_MENU>,
77                         <0xbf   0x190>,
78                         <0xe0   0x191>,
79                         <0xe1   0x192>,
80                         <0xe9   183>,
81                         <0xe6   248>,
82                         <0xe8   185>,
83                         <0xe7   186>,
84                         <0xf0   388>,
85                         <0xbe   0x175>;
86         };
87         ir_key2{
88                 rockchip,usercode = <0xff00>;
89                 rockchip,key_table =
90                         <0xf9   KEY_HOME>,
91                         <0xbf   KEY_BACK>,
92                         <0xfb   KEY_MENU>,
93                         <0xaa   KEY_REPLY>,
94                         <0xb9   KEY_UP>,
95                         <0xe9   KEY_DOWN>,
96                         <0xb8   KEY_LEFT>,
97                         <0xea   KEY_RIGHT>,
98                         <0xeb   KEY_VOLUMEDOWN>,
99                         <0xef   KEY_VOLUMEUP>,
100                         <0xf7   KEY_MUTE>,
101                         <0xe7   KEY_POWER>,
102                         <0xfc   KEY_POWER>,
103                         <0xa9   KEY_VOLUMEDOWN>,
104                         <0xa8   KEY_VOLUMEDOWN>,
105                         <0xe0   KEY_VOLUMEDOWN>,
106                         <0xa5   KEY_VOLUMEDOWN>,
107                         <0xab   183>,
108                         <0xb7   388>,
109                         <0xf8   184>,
110                         <0xaf   185>,
111                         <0xed   KEY_VOLUMEDOWN>,
112                         <0xee   186>,
113                         <0xb3   KEY_VOLUMEDOWN>,
114                         <0xf1   KEY_VOLUMEDOWN>,
115                         <0xf2   KEY_VOLUMEDOWN>,
116                         <0xf3   KEY_SEARCH>,
117                         <0xb4   KEY_VOLUMEDOWN>,
118                         <0xbe   KEY_SEARCH>;
119         };
120         ir_key3{
121                 rockchip,usercode = <0x1dcc>;
122                 rockchip,key_table =
123                         <0xee   KEY_REPLY>,
124                         <0xf0   KEY_BACK>,
125                         <0xf8   KEY_UP>,
126                         <0xbb   KEY_DOWN>,
127                         <0xef   KEY_LEFT>,
128                         <0xed   KEY_RIGHT>,
129                         <0xfc   KEY_HOME>,
130                         <0xf1   KEY_VOLUMEUP>,
131                         <0xfd   KEY_VOLUMEDOWN>,
132                         <0xb7   KEY_SEARCH>,
133                         <0xff   KEY_POWER>,
134                         <0xf3   KEY_MUTE>,
135                         <0xbf   KEY_MENU>,
136                         <0xf9   0x191>,
137                         <0xf5   0x192>,
138                         <0xb3   388>,
139                         <0xbe   KEY_1>,
140                         <0xba   KEY_2>,
141                         <0xb2   KEY_3>,
142                         <0xbd   KEY_4>,
143                         <0xf9   KEY_5>,
144                         <0xb1   KEY_6>,
145                         <0xfc   KEY_7>,
146                         <0xf8   KEY_8>,
147                         <0xb0   KEY_9>,
148                         <0xb6   KEY_0>,
149                         <0xb5   KEY_BACKSPACE>;
150         };
151 };