0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002
0003 /*
0004 * Author: Christian Hewitt <christianshewitt@gmail.com>
0005 */
0006
0007 /dts-v1/;
0008
0009 #include "meson-gxl-s905d.dtsi"
0010 #include "meson-gx-p23x-q20x.dtsi"
0011 #include <dt-bindings/input/input.h>
0012 #include <dt-bindings/leds/common.h>
0013
0014 / {
0015 compatible = "videostrong,gxl-kii-pro", "amlogic,s905d", "amlogic,meson-gxl";
0016 model = "MeCool KII Pro";
0017
0018 adc-keys {
0019 compatible = "adc-keys";
0020 io-channels = <&saradc 0>;
0021 io-channel-names = "buttons";
0022 keyup-threshold-microvolt = <1710000>;
0023
0024 button-function {
0025 label = "Update";
0026 linux,code = <KEY_VENDOR>;
0027 press-threshold-microvolt = <10000>;
0028 };
0029 };
0030
0031 gpio-keys-polled {
0032 compatible = "gpio-keys-polled";
0033 poll-interval = <100>;
0034
0035 button {
0036 label = "power";
0037 linux,code = <KEY_POWER>;
0038 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
0039 };
0040 };
0041
0042 leds {
0043 compatible = "gpio-leds";
0044
0045 led-blue {
0046 color = <LED_COLOR_ID_BLUE>;
0047 function = LED_FUNCTION_POWER;
0048 gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
0049 default-state = "on";
0050 panic-indicator;
0051 };
0052 };
0053 };
0054
0055 ðmac {
0056 phy-mode = "rmii";
0057 phy-handle = <&internal_phy>;
0058 };
0059
0060 &ir {
0061 linux,rc-map-name = "rc-mecool-kii-pro";
0062 };
0063
0064 &sd_emmc_a {
0065 brcmf: wifi@1 {
0066 reg = <1>;
0067 compatible = "brcm,bcm4329-fmac";
0068 };
0069 };
0070
0071 &uart_A {
0072 status = "okay";
0073 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
0074 pinctrl-names = "default";
0075 uart-has-rtscts;
0076
0077 bluetooth {
0078 compatible = "brcm,bcm43438-bt";
0079 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
0080 max-speed = <2000000>;
0081 clocks = <&wifi32k>;
0082 clock-names = "lpo";
0083 };
0084 };