1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
4 * Author: Christian Hewitt <christianshewitt@gmail.com>
9 #include "meson-gxm.dtsi"
10 #include "meson-gx-p23x-q20x.dtsi"
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/leds/common.h>
15 compatible = "videostrong,gxm-kiii-pro", "amlogic,s912", "amlogic,meson-gxm";
16 model = "MeCool KIII Pro";
19 device_type = "memory";
20 reg = <0x0 0x0 0x0 0xC0000000>;
24 compatible = "adc-keys";
25 io-channels = <&saradc 0>;
26 io-channel-names = "buttons";
27 keyup-threshold-microvolt = <1710000>;
31 linux,code = <KEY_VENDOR>;
32 press-threshold-microvolt = <10000>;
37 compatible = "gpio-keys-polled";
38 poll-interval = <100>;
42 linux,code = <KEY_POWER>;
43 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
48 compatible = "gpio-leds";
51 color = <LED_COLOR_ID_BLUE>;
52 function = LED_FUNCTION_POWER;
53 gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
61 pinctrl-0 = <ð_pins>;
62 pinctrl-names = "default";
64 phy-handle = <&external_phy>;
66 amlogic,tx-delay-ns = <2>;
72 external_phy: ethernet-phy@0 {
73 /* Realtek RTL8211F (0x001cc916) */
77 reset-assert-us = <10000>;
78 reset-deassert-us = <80000>;
79 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
81 interrupt-parent = <&gpio_intc>;
82 /* MAC_INTR on GPIOZ_15 */
83 interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
88 linux,rc-map-name = "rc-mecool-kiii-pro";
94 compatible = "brcm,bcm4329-fmac";
100 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
101 pinctrl-names = "default";
105 compatible = "brcm,bcm43438-bt";
106 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
107 max-speed = <2000000>;