Skip to content

Commit 0c8c88d

Browse files
author
Marek Czerski
committed
DTS: dts for mecool kt1
1 parent 1cea03b commit 0c8c88d

File tree

4 files changed

+122
-0
lines changed

4 files changed

+122
-0
lines changed

arch/arm64/boot/dts/amlogic/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ dtb-y += sc2_s905x4_x96_x4_2g.dtb
8585
dtb-y += sc2_s905x4_x96_x4_2g_1gbit.dtb
8686
dtb-y += sc2_s905x4_x96_x4_4g.dtb
8787
dtb-y += sc2_s905x4_x96_x4_4g_1gbit.dtb
88+
dtb-y += sc2_s905x4_mecool_kt1.dtb
8889
dtb-y += t7_a311d2_beelink_gt_king_ii_4g.dtb
8990
dtb-y += t7_a311d2_beelink_gt_king_ii_8g.dtb
9091
dtb-y += t7_a311d2_khadas_vim4.dtb

arch/arm64/boot/dts/amlogic/coreelec_common.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
/delete-node/ adc_keypad;
3333
/delete-node/ custom_maps;
3434
/delete-node/ ir@8000;
35+
/delete-node/ dvb-extern;
36+
/delete-node/ dvb-demux;
3537

3638
/* Attention: Please turn on or off the hdr10+ function in the */
3739
/* dt-bindings/display/hdr10plus.h file and */
@@ -71,6 +73,7 @@
7173
pinctrl-0 = <&remote_pins>;
7274
protocol = <REMOTE_TYPE_NEC>;
7375
max_frame_time = <200>; /*set software decoder max frame time*/
76+
led_blink = <1>;
7477
};
7578

7679
openvfd {

arch/arm64/boot/dts/amlogic/coreelec_sc2_common.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
key_name = "power";
129129
key_code = <116>;
130130
};
131+
132+
/delete-node/ gpio_leds;
131133
};
132134

133135
&aml_wifi {
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
#include "sc2_s905x4_ah212_drm.dts"
2+
#include "coreelec_sc2_common.dtsi"
3+
4+
/ {
5+
model = "Amlogic";
6+
coreelec-dt-id = "sc2_s905x4_mecool_kt1";
7+
8+
auge_sound {
9+
/delete-property/ avout_mute-gpios;
10+
};
11+
12+
gpioleds {
13+
sys_led {
14+
label = "sys_led";
15+
gpios = <&gpio GPIOD_11 GPIO_ACTIVE_HIGH>;
16+
linux,default-trigger = "default-on";
17+
};
18+
net_led {
19+
label = "net_led";
20+
gpios=<&gpio GPIOD_4 GPIO_ACTIVE_HIGH>;
21+
linux,default-trigger = "none";
22+
};
23+
ir_led {
24+
label = "ir_led";
25+
gpios=<&gpio GPIOD_6 GPIO_ACTIVE_HIGH>;
26+
linux,default-trigger = "ir_led";
27+
};
28+
};
29+
30+
gpio_keypad {
31+
status = "disabled";
32+
};
33+
34+
dvb-extern {
35+
compatible = "amlogic, dvb-extern";
36+
dev_name = "dvb-extern";
37+
status = "okay";
38+
39+
fe_num = <1>;
40+
fe0_demod = "avl68xx";
41+
fe0_i2c_adap_id = <&i2c3>;
42+
fe0_demod_i2c_addr = <0x14>;
43+
fe0_ts_out_mode = <1>;
44+
fe0_ts = <1>;
45+
fe0_tuner0 = <0>;
46+
47+
tuner_num = <1>;
48+
tuner0_name = "mxl608_tuner";
49+
tuner0_i2c_adap = <&i2c3>;
50+
tuner0_i2c_addr = <0x60>;
51+
tuner0_xtal = <0>;
52+
tuner0_if_hz = <6>;
53+
tuner0_if_agc = <0>;
54+
tuner0_xtal_cap = <25>;
55+
tuner0_if_invert = <1>;
56+
tuner0_lt_out = <0>;
57+
tuner0_xtal_mode = <0>;
58+
tuner0_dual_power = <0>;
59+
};
60+
61+
dvb-demux {
62+
compatible = "amlogic sc2, dvb-demux";
63+
dev_name = "dvb-demux";
64+
status = "okay";
65+
66+
reg = <0x0 0xfe000000 0x0 0x480000>;
67+
68+
dmxdev_num = <3>;
69+
70+
tsn_from = "demod";
71+
ts_clone = <0>;
72+
tee_compat = <1>;
73+
74+
ts1_sid = <0x20>;
75+
ts1 = "parallel";
76+
ts1_control = <0>;
77+
ts1_invert = <0>;
78+
79+
pinctrl-names = "p_ts1";
80+
pinctrl-0 = <&dvb_p_ts1_pins>;
81+
};
82+
83+
};
84+
85+
&i2c2 {
86+
status = "disabled";
87+
};
88+
89+
&i2c3 {
90+
status = "okay";
91+
};
92+
93+
&sd_emmc_b {
94+
status = "okay";
95+
max-frequency = <150000000>;
96+
};
97+
98+
&periphs_pinctrl {
99+
dvb_p_ts1_pins: dvb_p_ts1_pins {
100+
tsin_b {
101+
groups = "tsin_b_sop",
102+
"tsin_b_valid",
103+
"tsin_b_clk",
104+
"tsin_b_fail",
105+
"tsin_b_din0",
106+
"tsin_b_din1",
107+
"tsin_b_din2",
108+
"tsin_b_din3",
109+
"tsin_b_din4",
110+
"tsin_b_din5",
111+
"tsin_b_din6",
112+
"tsin_b_din7";
113+
function = "tsin_b";
114+
};
115+
};
116+
};

0 commit comments

Comments
 (0)