1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2016 BayLibre, Inc. 4 * Author: Neil Armstrong <narmstrong@baylibre.com> 5 */ 6 7/dts-v1/; 8 9#include "meson-gxbb-p20x.dtsi" 10#include <dt-bindings/input/input.h> 11 12/ { 13 compatible = "wetek,play2", "amlogic,meson-gxbb"; 14 model = "WeTek Play 2"; 15 16 leds { 17 compatible = "gpio-leds"; 18 19 system { 20 label = "wetek-play:system-status"; 21 gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_HIGH>; 22 default-state = "on"; 23 panic-indicator; 24 }; 25 26 wifi { 27 label = "wetek-play:wifi-status"; 28 gpios = <&gpio GPIODV_26 GPIO_ACTIVE_HIGH>; 29 default-state = "off"; 30 }; 31 32 ethernet { 33 label = "wetek-play:ethernet-status"; 34 gpios = <&gpio GPIODV_27 GPIO_ACTIVE_HIGH>; 35 default-state = "off"; 36 }; 37 }; 38 39 gpio-keys-polled { 40 compatible = "gpio-keys-polled"; 41 #address-cells = <1>; 42 #size-cells = <0>; 43 poll-interval = <100>; 44 45 button@0 { 46 label = "reset"; 47 linux,code = <KEY_RESTART>; 48 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>; 49 }; 50 }; 51 52 cvbs-connector { 53 compatible = "composite-video-connector"; 54 55 port { 56 cvbs_connector_in: endpoint { 57 remote-endpoint = <&cvbs_vdac_out>; 58 }; 59 }; 60 }; 61 62 hdmi-connector { 63 compatible = "hdmi-connector"; 64 type = "a"; 65 66 port { 67 hdmi_connector_in: endpoint { 68 remote-endpoint = <&hdmi_tx_tmds_out>; 69 }; 70 }; 71 }; 72}; 73 74&cec_AO { 75 status = "okay"; 76 pinctrl-0 = <&ao_cec_pins>; 77 pinctrl-names = "default"; 78 hdmi-phandle = <&hdmi_tx>; 79}; 80 81&cvbs_vdac_port { 82 cvbs_vdac_out: endpoint { 83 remote-endpoint = <&cvbs_connector_in>; 84 }; 85}; 86 87ðmac { 88 status = "okay"; 89 pinctrl-0 = <ð_rgmii_pins>; 90 pinctrl-names = "default"; 91 92 phy-handle = <ð_phy0>; 93 phy-mode = "rgmii"; 94 95 amlogic,tx-delay-ns = <2>; 96 97 snps,reset-gpio = <&gpio GPIOZ_14 0>; 98 snps,reset-delays-us = <0 10000 1000000>; 99 snps,reset-active-low; 100 101 mdio { 102 compatible = "snps,dwmac-mdio"; 103 #address-cells = <1>; 104 #size-cells = <0>; 105 106 eth_phy0: ethernet-phy@0 { 107 /* Realtek RTL8211F (0x001cc916) */ 108 reg = <0>; 109 }; 110 }; 111}; 112 113&hdmi_tx { 114 status = "okay"; 115 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; 116 pinctrl-names = "default"; 117}; 118 119&hdmi_tx_tmds_port { 120 hdmi_tx_tmds_out: endpoint { 121 remote-endpoint = <&hdmi_connector_in>; 122 }; 123}; 124 125&i2c_A { 126 status = "okay"; 127 pinctrl-0 = <&i2c_a_pins>; 128 pinctrl-names = "default"; 129}; 130