Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (c) 2020 Christian Hewitt <christianshewitt@gmail.com>
0004  */
0005 
0006 /dts-v1/;
0007 
0008 #include "meson-gxm.dtsi"
0009 #include "meson-gx-p23x-q20x.dtsi"
0010 #include <dt-bindings/input/input.h>
0011 #include <dt-bindings/leds/common.h>
0012 
0013 / {
0014         compatible = "wetek,core2", "amlogic,s912", "amlogic,meson-gxm";
0015         model = "WeTek Core 2";
0016 
0017         memory@0 {
0018                 device_type = "memory";
0019                 reg = <0x0 0x0 0x0 0x80000000>; /* 2 GiB or 3 GiB */
0020         };
0021 
0022         leds {
0023                 compatible = "gpio-leds";
0024 
0025                 led-blue {
0026                         color = <LED_COLOR_ID_BLUE>;
0027                         function = LED_FUNCTION_STATUS;
0028                         gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
0029                         default-state = "on";
0030                 };
0031         };
0032 
0033         adc-keys {
0034                 compatible = "adc-keys";
0035                 io-channels = <&saradc 0>;
0036                 io-channel-names = "buttons";
0037                 keyup-threshold-microvolt = <1710000>;
0038 
0039                 button-update {
0040                         label = "update";
0041                         linux,code = <KEY_VENDOR>;
0042                         press-threshold-microvolt = <10000>;
0043                 };
0044         };
0045 
0046         gpio-keys-polled {
0047                 compatible = "gpio-keys-polled";
0048                 poll-interval = <100>;
0049 
0050                 button-power {
0051                         label = "power";
0052                         linux,code = <KEY_POWER>;
0053                         gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
0054                 };
0055         };
0056 };
0057 
0058 /* Disabled as Realtek RTL8152 USB provides Ethernet */
0059 &ethmac {
0060         status = "disabled";
0061 };
0062 
0063 &internal_phy {
0064         status = "disabled";
0065 };
0066 
0067 &ir {
0068         linux,rc-map-name = "rc-wetek-play2";
0069 };
0070 
0071 /* This is connected to the Bluetooth module: */
0072 &uart_A {
0073         status = "okay";
0074         pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
0075         pinctrl-names = "default";
0076         uart-has-rtscts;
0077 
0078         bluetooth {
0079                 compatible = "brcm,bcm43438-bt";
0080                 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
0081                 max-speed = <2000000>;
0082                 clocks = <&wifi32k>;
0083                 clock-names = "lpo";
0084         };
0085 };