2018-02-27 18:30:33 +07:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
2017-01-18 17:50:41 +07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 BayLibre, Inc.
|
|
|
|
* Author: Neil Armstrong <narmstrong@baylibre.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
2018-03-06 23:19:33 +07:00
|
|
|
#include "meson-gxbb-wetek.dtsi"
|
2017-01-18 17:50:41 +07:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "wetek,play2", "amlogic,meson-gxbb";
|
|
|
|
model = "WeTek Play 2";
|
|
|
|
|
|
|
|
leds {
|
|
|
|
wifi {
|
|
|
|
label = "wetek-play:wifi-status";
|
|
|
|
gpios = <&gpio GPIODV_26 GPIO_ACTIVE_HIGH>;
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
|
|
|
|
ethernet {
|
|
|
|
label = "wetek-play:ethernet-status";
|
|
|
|
gpios = <&gpio GPIODV_27 GPIO_ACTIVE_HIGH>;
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
poll-interval = <100>;
|
|
|
|
|
|
|
|
button@0 {
|
|
|
|
label = "reset";
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-03-06 23:19:33 +07:00
|
|
|
&i2c_A {
|
2017-02-20 04:41:46 +07:00
|
|
|
status = "okay";
|
2018-03-06 23:19:33 +07:00
|
|
|
pinctrl-0 = <&i2c_a_pins>;
|
2017-02-20 04:41:46 +07:00
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
|
|
|
|
2018-03-06 23:19:33 +07:00
|
|
|
&usb1_phy {
|
2017-06-08 22:31:20 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-03-06 23:19:33 +07:00
|
|
|
&usb1 {
|
2017-01-18 17:50:41 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|