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