Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (c) 2019 Mohammad Rasim <mohammad.rasim96@gmail.com>
0004  */
0005 
0006 /dts-v1/;
0007 
0008 #include "meson-gxbb-p20x.dtsi"
0009 
0010 #include <dt-bindings/gpio/gpio.h>
0011 #include <dt-bindings/input/input.h>
0012 #include <dt-bindings/leds/common.h>
0013 / {
0014         compatible = "videostrong,kii-pro", "amlogic,meson-gxbb";
0015         model = "Videostrong KII Pro";
0016 
0017         leds {
0018                 compatible = "gpio-leds";
0019                 status {
0020                         gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>;
0021                         default-state = "off";
0022                         color = <LED_COLOR_ID_RED>;
0023                         function = LED_FUNCTION_STATUS;
0024                 };
0025         };
0026 
0027         gpio-keys-polled {
0028                 compatible = "gpio-keys-polled";
0029                 poll-interval = <20>;
0030 
0031                 button-reset {
0032                         label = "reset";
0033                         linux,code = <KEY_POWER>;
0034                         gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
0035                 };
0036         };
0037 
0038 };
0039 
0040 
0041 
0042 &uart_A {
0043         status = "okay";
0044         pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
0045         pinctrl-names = "default";
0046         uart-has-rtscts;
0047 
0048         bluetooth {
0049                 compatible = "brcm,bcm4335a0";
0050         };
0051 };
0052 
0053 
0054 
0055 &ethmac {
0056         status = "okay";
0057         pinctrl-0 = <&eth_rmii_pins>;
0058         pinctrl-names = "default";
0059 
0060         phy-handle = <&eth_phy0>;
0061         phy-mode = "rmii";
0062 
0063         mdio {
0064                 compatible = "snps,dwmac-mdio";
0065                 #address-cells = <1>;
0066                 #size-cells = <0>;
0067 
0068                 eth_phy0: ethernet-phy@0 {
0069                         /* IC Plus IP101GR (0x02430c54) */
0070                         reg = <0>;
0071                         reset-assert-us = <10000>;
0072                         reset-deassert-us = <10000>;
0073                         reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
0074                 };
0075         };
0076 };
0077 
0078 &ir {
0079         linux,rc-map-name = "rc-videostrong-kii-pro";
0080 };