Skip to content

Commit ddad29f

Browse files
author
NoahAndrews
committed
Changes for Control Hub OS 1.1.0
1 parent d776df4 commit ddad29f

File tree

560 files changed

+363495
-183385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

560 files changed

+363495
-183385
lines changed

arch/arm64/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ kernel.img: Image
107107

108108
LOGO := $(notdir $(wildcard $(srctree)/logo.bmp))
109109
LOGO_KERNEL := $(notdir $(wildcard $(srctree)/logo_kernel.bmp))
110+
BATTERY_UI := $(notdir $(wildcard $(srctree)/battery_*.bmp))
110111
%.img: %.dtb kernel.img $(LOGO) $(LOGO_KERNEL)
111-
$(Q)$(srctree)/resource_tool $(objtree)/arch/arm64/boot/dts/$*.dtb $(LOGO) $(LOGO_KERNEL)
112-
@echo ' Image: resource.img (with $*.dtb $(LOGO) $(LOGO_KERNEL)) is ready'
112+
$(Q)$(srctree)/resource_tool $(objtree)/arch/arm64/boot/dts/$*.dtb $(LOGO) $(LOGO_KERNEL) $(BATTERY_UI)
113+
@echo ' Image: resource.img (with $*.dtb $(LOGO) $(LOGO_KERNEL) $(BATTERY_UI) ) is ready'

arch/arm64/boot/dts/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
66
rk3328-box.dtb \
77
rk3328-box-plus.dtb \
88
rk3328-evb.dtb \
9+
rk3328-rev-rds-android.dtb \
910
rk3368-box.dtb \
1011
rk3368-box-r88_808.dtb \
1112
rk3368-box-r88.dtb \

arch/arm64/boot/dts/rk322xh-evb.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
status = "okay";
105105
};
106106

107-
wireless-bluetooth {
107+
wireless_bluetooth: wireless-bluetooth {
108108
compatible = "bluetooth-platdata";
109109
//uart_rts_gpios = <&gpio1 GPIO_B2 GPIO_ACTIVE_LOW>;
110110
//pinctrl-names = "default", "rts_gpio";
@@ -145,7 +145,7 @@
145145
};
146146
};
147147

148-
rockchip_hdmi_i2s {
148+
rockchi_hdmi_i2s: rockchip_hdmi_i2s {
149149
compatible = "rockchip-hdmi-i2s";
150150
dais {
151151
dai0 {
Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
/*
2+
* Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
3+
*
4+
* This file is dual-licensed: you can use it either under the terms
5+
* of the GPL or the X11 license, at your option. Note that this dual
6+
* licensing only applies to this file, and not this project as a
7+
* whole.
8+
*
9+
* a) This library is free software; you can redistribute it and/or
10+
* modify it under the terms of the GNU General Public License as
11+
* published by the Free Software Foundation; either version 2 of the
12+
* License, or (at your option) any later version.
13+
*
14+
* This library is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
*
19+
* Or, alternatively,
20+
*
21+
* b) Permission is hereby granted, free of charge, to any person
22+
* obtaining a copy of this software and associated documentation
23+
* files (the "Software"), to deal in the Software without
24+
* restriction, including without limitation the rights to use,
25+
* copy, modify, merge, publish, distribute, sublicense, and/or
26+
* sell copies of the Software, and to permit persons to whom the
27+
* Software is furnished to do so, subject to the following
28+
* conditions:
29+
*
30+
* The above copyright notice and this permission notice shall be
31+
* included in all copies or substantial portions of the Software.
32+
*
33+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35+
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37+
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38+
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40+
* OTHER DEALINGS IN THE SOFTWARE.
41+
*/
42+
43+
/dts-v1/;
44+
45+
#include "rk3328.dtsi"
46+
#include "rk3328-evb.dtsi"
47+
#include "rk-stb-keymap.dtsi"
48+
49+
/ {
50+
leds {
51+
compatible = "gpio-leds";
52+
pinctrl-names = "default";
53+
pinctrl-0 = <&rtd2660h_pwr_key>,<&change_ctrl_gpio>;
54+
55+
power-green {
56+
gpios = <&rk805 0 GPIO_ACTIVE_LOW>;
57+
linux,default-trigger = "none";
58+
default-state = "on";
59+
mode = <0x23>;
60+
};
61+
62+
r-led {
63+
gpios = <&gpio2 GPIO_C6 GPIO_ACTIVE_LOW>;
64+
linux,default-trigger = "backlight";
65+
default-state = "off";
66+
};
67+
68+
g-led {
69+
gpios = <&gpio2 GPIO_C3 GPIO_ACTIVE_LOW>;
70+
linux,default-trigger = "backlight";
71+
default-state = "off";
72+
};
73+
74+
b-led {
75+
gpios = <&gpio2 GPIO_A2 GPIO_ACTIVE_LOW>;
76+
linux,default-trigger = "backlight";
77+
default-state = "off";
78+
};
79+
/*for suspend*/
80+
rtd2660h-power-key {
81+
gpios = <&gpio1 GPIO_B0 GPIO_ACTIVE_HIGH>;
82+
linux,default-trigger = "backlight";
83+
default-state = "on";
84+
};
85+
/*for suspend*/
86+
bq24133-set1 {
87+
gpios = <&gpio1 GPIO_C2 GPIO_ACTIVE_HIGH>;
88+
linux,default-trigger = "backlight";
89+
default-state = "on";
90+
};
91+
92+
};
93+
94+
vcc_tp: vcc-tp {
95+
compatible = "regulator-fixed";
96+
enable-active-low;
97+
gpio = <&gpio1 GPIO_B1 GPIO_ACTIVE_LOW>; // this gpio is not used,for kernel debug error message
98+
regulator-name = "vcc_tp";
99+
pinctrl-names = "default";
100+
pinctrl-0 = <&tp_pwr_ctrl>;
101+
regulator-min-microvolt = <3300000>;
102+
regulator-max-microvolt = <3300000>;
103+
regulator-boot-on;
104+
};
105+
};
106+
107+
&rk805 {
108+
rtc {
109+
status = "okay";
110+
};
111+
};
112+
113+
/*for blue led control*/
114+
&pwm3 {
115+
status = "disabled";
116+
};
117+
118+
&clk_core_dvfs_table {
119+
operating-points = <
120+
/* KHz uV */
121+
408000 950000
122+
600000 950000
123+
816000 1000000
124+
1008000 1100000
125+
1200000 1225000
126+
1296000 1300000
127+
1392000 1350000
128+
1512000 1350000
129+
>;
130+
status = "okay";
131+
};
132+
133+
&gmac2phy {
134+
/delete-property/ pinctrl-names;
135+
/delete-property/ pinctrl-0; //for i2c0 touchpanel
136+
link-gpio = <&gpio2 GPIO_B7 GPIO_ACTIVE_HIGH>;
137+
led-gpio = <&gpio1 GPIO_C3 GPIO_ACTIVE_LOW>;
138+
status = "okay";
139+
};
140+
141+
&wireless_bluetooth {
142+
/delete-property/ BT,wake_gpio; //for dc_det
143+
/delete-property/ BT,power_gpio; //GSEN_INT
144+
};
145+
&sdio {
146+
status = "disabled";
147+
};
148+
&i2c0{
149+
status = "okay";
150+
//pinctrl-names = "default","sleep";
151+
// pinctrl-0 = <&i2c0_xfer>;
152+
// pinctrl-1 = <&i2c0_sleep_mode>;
153+
154+
lsm303d:lsm303d@1e {
155+
compatible = "gs_lsm303d";
156+
reg = <0x1e>;
157+
type = <SENSOR_TYPE_ACCEL>;
158+
pinctrl-names = "default";
159+
pinctrl-0 = <&gpio1_c0>,<&gpio2_c7>;
160+
irq-gpio = <&gpio1 16 IRQ_TYPE_LEVEL_LOW>;
161+
irq_enable = <1>;
162+
poll_delay_ms = <30>;
163+
layout = <1>;
164+
};
165+
166+
gt615: gt615@5d { // 0x28/0x29 or 0xba/bb
167+
status = "okay";
168+
compatible = "goodix,gt9xx";
169+
reg = <0x5d>;
170+
touch-gpio = <&gpio2 GPIO_C5 IRQ_TYPE_LEVEL_LOW>;
171+
reset-gpio = <&gpio2 GPIO_C4 GPIO_ACTIVE_HIGH>;
172+
max-x = <800>;
173+
max-y = <480>;
174+
tp-size = <911>; // 89 101 911
175+
};
176+
};
177+
178+
&rockchi_hdmi_i2s {
179+
status = "disabled";
180+
};
181+
182+
&codec {
183+
// compatible = "rockchip,rk322x-codec";
184+
spk_ctl_io = <&gpio1 GPIO_B5 GPIO_ACTIVE_HIGH>;
185+
};
186+
187+
&i2c1 {
188+
status = "okay";
189+
190+
CW2013@62 {
191+
compatible = "cw201x";
192+
reg = <0x62>;
193+
194+
dc_det_gpio = <&gpio1 GPIO_C1 GPIO_ACTIVE_LOW>;
195+
bat_low_gpio = <&gpio1 GPIO_B6 GPIO_ACTIVE_LOW>;
196+
/*bq24133 LOW when charge in progress. HIGH when charge is complete or in SLEEP mode. Blinking at 0.5 Hz when fault occurs*/
197+
chg_ok_gpio = <&gpio1 GPIO_B7 GPIO_ACTIVE_HIGH>;
198+
bat_config_info = <0x15 0x7e 0x61 0x59 0x53 0x57 0x53 0x4a 0x47 0x46 0x47 0x4f 0x51 0x3e 0x2d 0x25 0x20
199+
0x1c 0x17 0x16 0x1f 0x35 0x46 0x4f 0x25 0x2b 0x0c 0xcd 0x49 0x71 0x86 0x8e 0x8e 0x8a 0x8b 0x8a 0x40
200+
0x1a 0x45 0x2d 0x07 0x3c 0x3b 0x74 0x8c 0x91 0x91 0x41 0x4f 0x7b 0x9b 0xc1 0x80 0x9b 0xa3 0xcb 0x2f
201+
0x00 0x64 0xa5 0xb5 0x17 0x28 0x09>;
202+
is_dc_charge = <1>;
203+
is_usb_charge = <1>;
204+
monitor_sec = <5>;
205+
virtual_power = <0>;
206+
divider_res1 = <200>;
207+
divider_res2 = <200>;
208+
status = "okay";
209+
};
210+
};
211+
212+
&pinctrl {
213+
i2c0 {
214+
i2c0_xfer: i2c0-xfer {
215+
rockchip,pins =
216+
<2 GPIO_D0 RK_FUNC_1 &pcfg_pull_none_smt>,
217+
<2 GPIO_D1 RK_FUNC_1 &pcfg_pull_none_smt>;
218+
};
219+
220+
i2c0_sleep_mode: i2c0-sleep-mode {
221+
rockchip,pins =
222+
<2 GPIO_D0 RK_FUNC_GPIO &pcfg_pull_none_smt>,
223+
<2 GPIO_D1 RK_FUNC_GPIO &pcfg_pull_none_smt>;
224+
};
225+
};
226+
227+
gpio {
228+
gpio1_c0: gpio1-c0 {
229+
rockchip,pins = <1 GPIO_C0 RK_FUNC_GPIO &pcfg_pull_up>;
230+
};
231+
232+
gpio2_c7: gpio2-c7 {
233+
rockchip,pins = <2 GPIO_C7 RK_FUNC_GPIO &pcfg_pull_up>;
234+
};
235+
};
236+
237+
rtd2660h-power {
238+
rtd2660h_pwr_key: rtd2660h-pwr-key {
239+
rockchip,pins = <1 GPIO_B0 RK_FUNC_GPIO &pcfg_pull_none_smt>;
240+
};
241+
};
242+
243+
tp {
244+
tp_pwr_ctrl: tp-pwr-ctrl {
245+
rockchip,pins = <1 GPIO_B1 RK_FUNC_GPIO &pcfg_pull_none_smt>;
246+
};
247+
};
248+
249+
bq24133 {
250+
change_ctrl_gpio: change-ctrl-gpio {
251+
rockchip,pins = <1 GPIO_C2 RK_FUNC_GPIO &pcfg_pull_none_smt>;
252+
};
253+
};
254+
255+
};

0 commit comments

Comments
 (0)