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-gxm.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,gxm-kiii-pro", "amlogic,s912", "amlogic,meson-gxm";
0016 model = "MeCool KIII Pro";
0017
0018 memory@0 {
0019 device_type = "memory";
0020 reg = <0x0 0x0 0x0 0xC0000000>;
0021 };
0022
0023 adc-keys {
0024 compatible = "adc-keys";
0025 io-channels = <&saradc 0>;
0026 io-channel-names = "buttons";
0027 keyup-threshold-microvolt = <1710000>;
0028
0029 button-function {
0030 label = "Update";
0031 linux,code = <KEY_VENDOR>;
0032 press-threshold-microvolt = <10000>;
0033 };
0034 };
0035
0036 gpio-keys-polled {
0037 compatible = "gpio-keys-polled";
0038 poll-interval = <100>;
0039
0040 button {
0041 label = "power";
0042 linux,code = <KEY_POWER>;
0043 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
0044 };
0045 };
0046
0047 leds {
0048 compatible = "gpio-leds";
0049
0050 led-blue {
0051 color = <LED_COLOR_ID_BLUE>;
0052 function = LED_FUNCTION_POWER;
0053 gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
0054 default-state = "on";
0055 panic-indicator;
0056 };
0057 };
0058 };
0059
0060 ðmac {
0061 pinctrl-0 = <ð_pins>;
0062 pinctrl-names = "default";
0063
0064 phy-handle = <&external_phy>;
0065
0066 amlogic,tx-delay-ns = <2>;
0067
0068 phy-mode = "rgmii";
0069 };
0070
0071 &external_mdio {
0072 external_phy: ethernet-phy@0 {
0073 /* Realtek RTL8211F (0x001cc916) */
0074 reg = <0>;
0075 max-speed = <1000>;
0076
0077 reset-assert-us = <10000>;
0078 reset-deassert-us = <80000>;
0079 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
0080
0081 interrupt-parent = <&gpio_intc>;
0082 /* MAC_INTR on GPIOZ_15 */
0083 interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
0084 };
0085 };
0086
0087 &ir {
0088 linux,rc-map-name = "rc-mecool-kiii-pro";
0089 };
0090
0091 &sd_emmc_a {
0092 brcmf: wifi@1 {
0093 reg = <1>;
0094 compatible = "brcm,bcm4329-fmac";
0095 };
0096 };
0097
0098 &uart_A {
0099 status = "okay";
0100 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
0101 pinctrl-names = "default";
0102 uart-has-rtscts;
0103
0104 bluetooth {
0105 compatible = "brcm,bcm43438-bt";
0106 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
0107 max-speed = <2000000>;
0108 clocks = <&wifi32k>;
0109 clock-names = "lpo";
0110 };
0111 };