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#include <dt-bindings/gpio/gpio.h>
10#include <dt-bindings/input/input.h>
11#include <dt-bindings/leds/common.h>
12
13/ {
14	compatible = "videostrong,kii-pro", "amlogic,meson-gxbb";
15	model = "Videostrong KII Pro";
16
17	leds {
18		compatible = "gpio-leds";
19		led {
20			gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>;
21			color = <LED_COLOR_ID_RED>;
22			function = LED_FUNCTION_STATUS;
23			default-state = "off";
24		};
25	};
26
27	gpio-keys-polled {
28		compatible = "gpio-keys-polled";
29		poll-interval = <20>;
30
31		button-reset {
32			label = "reset";
33			linux,code = <KEY_POWER>;
34			gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
35		};
36	};
37};
38
39&ethmac {
40	status = "okay";
41	pinctrl-0 = <&eth_rmii_pins>;
42	pinctrl-names = "default";
43
44	phy-handle = <&eth_phy0>;
45	phy-mode = "rmii";
46
47	mdio {
48		compatible = "snps,dwmac-mdio";
49		#address-cells = <1>;
50		#size-cells = <0>;
51
52		eth_phy0: ethernet-phy@0 {
53			/* IC Plus IP101GR (0x02430c54) */
54			reg = <0>;
55			reset-assert-us = <10000>;
56			reset-deassert-us = <10000>;
57			reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
58		};
59	};
60};
61
62&ir {
63	linux,rc-map-name = "rc-videostrong-kii-pro";
64};
65
66&uart_A {
67	status = "okay";
68	pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
69	pinctrl-names = "default";
70	uart-has-rtscts;
71
72	bluetooth {
73		compatible = "brcm,bcm4335a0";
74		shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>;
75		host-wakeup-gpios = <&gpio GPIOX_21 GPIO_ACTIVE_HIGH>;
76		max-speed = <2000000>;
77		clocks = <&wifi32k>;
78		clock-names = "lpo";
79	};
80};
81