Skip to content

Commit ea232b9

Browse files
chewittkhilman
authored andcommitted
arm64: dts: meson: add support for the WeTek Core 2
The WeTek Core2 is a commercial device based on the Amlogic Q200 reference design but with the following differences: - 3GB RAM, 32GB eMMC - Blue and Red LEDs used to signal on/off status - uart_AO can be accessed after opening the case; soldering required - USB OTG is not accessible (inside the case) - Realtek RTL8152 Ethernet (internal USB connection) Signed-off-by: Christian Hewitt <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8b6f53d commit ea232b9

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed

arch/arm64/boot/dts/amlogic/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxm-q201.dtb
4141
dtb-$(CONFIG_ARCH_MESON) += meson-gxm-rbox-pro.dtb
4242
dtb-$(CONFIG_ARCH_MESON) += meson-gxm-s912-libretech-pc.dtb
4343
dtb-$(CONFIG_ARCH_MESON) += meson-gxm-vega-s96.dtb
44+
dtb-$(CONFIG_ARCH_MESON) += meson-gxm-wetek-core2.dtb
4445
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-sei610.dtb
4546
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-khadas-vim3l.dtb
4647
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-odroid-c4.dtb
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2020 Christian Hewitt <[email protected]>
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include "meson-gxm.dtsi"
9+
#include "meson-gx-p23x-q20x.dtsi"
10+
#include <dt-bindings/input/input.h>
11+
#include <dt-bindings/leds/common.h>
12+
13+
/ {
14+
compatible = "wetek,core2", "amlogic,s912", "amlogic,meson-gxm";
15+
model = "WeTek Core 2";
16+
17+
memory@0 {
18+
device_type = "memory";
19+
reg = <0x0 0x0 0x0 0x80000000>; /* 2 GiB or 3 GiB */
20+
};
21+
22+
leds {
23+
compatible = "gpio-leds";
24+
25+
blue {
26+
color = <LED_COLOR_ID_BLUE>;
27+
function = LED_FUNCTION_STATUS;
28+
gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
29+
default-state = "on";
30+
};
31+
};
32+
33+
adc-keys {
34+
compatible = "adc-keys";
35+
io-channels = <&saradc 0>;
36+
io-channel-names = "buttons";
37+
keyup-threshold-microvolt = <1710000>;
38+
39+
button-update {
40+
label = "update";
41+
linux,code = <KEY_VENDOR>;
42+
press-threshold-microvolt = <10000>;
43+
};
44+
};
45+
46+
gpio-keys-polled {
47+
compatible = "gpio-keys-polled";
48+
#address-cells = <1>;
49+
#size-cells = <0>;
50+
poll-interval = <100>;
51+
52+
button-power {
53+
label = "power";
54+
linux,code = <KEY_POWER>;
55+
gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
56+
};
57+
};
58+
};
59+
60+
/* Disabled as Realtek RTL8152 USB provides Ethernet */
61+
&ethmac {
62+
status = "disabled";
63+
};
64+
65+
&internal_phy {
66+
status = "disabled";
67+
};
68+
69+
&ir {
70+
linux,rc-map-name = "rc-wetek-play2";
71+
};
72+
73+
/* This is connected to the Bluetooth module: */
74+
&uart_A {
75+
status = "okay";
76+
pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
77+
pinctrl-names = "default";
78+
uart-has-rtscts;
79+
80+
bluetooth {
81+
compatible = "brcm,bcm43438-bt";
82+
shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
83+
max-speed = <2000000>;
84+
clocks = <&wifi32k>;
85+
clock-names = "lpo";
86+
};
87+
};

0 commit comments

Comments
 (0)