1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2020 Christian Hewitt <christianshewitt@gmail.com>
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>
14 compatible = "wetek,core2", "amlogic,s912", "amlogic,meson-gxm";
15 model = "WeTek Core 2";
18 device_type = "memory";
19 reg = <0x0 0x0 0x0 0x80000000>; /* 2 GiB or 3 GiB */
23 compatible = "gpio-leds";
26 color = <LED_COLOR_ID_BLUE>;
27 function = LED_FUNCTION_STATUS;
28 gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
34 compatible = "adc-keys";
35 io-channels = <&saradc 0>;
36 io-channel-names = "buttons";
37 keyup-threshold-microvolt = <1710000>;
41 linux,code = <KEY_VENDOR>;
42 press-threshold-microvolt = <10000>;
47 compatible = "gpio-keys-polled";
50 poll-interval = <100>;
54 linux,code = <KEY_POWER>;
55 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
60 /* Disabled as Realtek RTL8152 USB provides Ethernet */
70 linux,rc-map-name = "rc-wetek-play2";
73 /* This is connected to the Bluetooth module: */
76 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
77 pinctrl-names = "default";
81 compatible = "brcm,bcm43438-bt";
82 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
83 max-speed = <2000000>;