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 led { 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 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 40 41 42&uart_A { 43 status = "okay"; 44 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; 45 pinctrl-names = "default"; 46 uart-has-rtscts; 47 48 bluetooth { 49 compatible = "brcm,bcm4335a0"; 50 }; 51}; 52 53 54 55ðmac { 56 status = "okay"; 57 pinctrl-0 = <ð_rmii_pins>; 58 pinctrl-names = "default"; 59 60 phy-handle = <ð_phy0>; 61 phy-mode = "rmii"; 62 63 mdio { 64 compatible = "snps,dwmac-mdio"; 65 #address-cells = <1>; 66 #size-cells = <0>; 67 68 eth_phy0: ethernet-phy@0 { 69 /* IC Plus IP101GR (0x02430c54) */ 70 reg = <0>; 71 reset-assert-us = <10000>; 72 reset-deassert-us = <10000>; 73 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>; 74 }; 75 }; 76}; 77 78&ir { 79 linux,rc-map-name = "rc-videostrong-kii-pro"; 80}; 81