1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2019 Mohammad Rasim <mohammad.rasim96@gmail.com>
4 */
5
6/dts-v1/;
7
8#include "meson-gxbb-p20x.dtsi"
9
10#include <dt-bindings/gpio/gpio.h>
11#include <dt-bindings/input/input.h>
12#include <dt-bindings/leds/common.h>
13/ {
14	compatible = "videostrong,kii-pro", "amlogic,meson-gxbb";
15	model = "Videostrong KII Pro";
16
17	leds {
18		compatible = "gpio-leds";
19		status {
20			gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>;
21			default-state = "off";
22			color = <LED_COLOR_ID_RED>;
23			function = LED_FUNCTION_STATUS;
24		};
25	};
26
27	gpio-keys-polled {
28		compatible = "gpio-keys-polled";
29		#address-cells = <1>;
30		#size-cells = <0>;
31		poll-interval = <20>;
32
33		button-reset {
34			label = "reset";
35			linux,code = <KEY_POWER>;
36			gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
37		};
38	};
39
40};
41
42
43
44&uart_A {
45	status = "okay";
46	pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
47	pinctrl-names = "default";
48	uart-has-rtscts;
49
50	bluetooth {
51		compatible = "brcm,bcm4335a0";
52	};
53};
54
55
56
57&ethmac {
58	status = "okay";
59	pinctrl-0 = <&eth_rmii_pins>;
60	pinctrl-names = "default";
61
62	phy-handle = <&eth_phy0>;
63	phy-mode = "rmii";
64
65	mdio {
66		compatible = "snps,dwmac-mdio";
67		#address-cells = <1>;
68		#size-cells = <0>;
69
70		eth_phy0: ethernet-phy@0 {
71			/* IC Plus IP101GR (0x02430c54) */
72			reg = <0>;
73			reset-assert-us = <10000>;
74			reset-deassert-us = <10000>;
75			reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
76		};
77	};
78};
79
80&ir {
81	linux,rc-map-name = "rc-videostrong-kii-pro";
82};
83