0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Author: Christian Hewitt <christianshewitt@gmail.com>
0004 */
0005
0006 /dts-v1/;
0007
0008 #include "meson-gxl-s905d.dtsi"
0009 #include "meson-gx-p23x-q20x.dtsi"
0010 #include <dt-bindings/input/input.h>
0011 #include <dt-bindings/leds/common.h>
0012
0013 / {
0014 compatible = "osmc,vero4k-plus", "amlogic,s905d", "amlogic,meson-gxl";
0015 model = "OSMC Vero 4K Plus";
0016
0017 gpio-keys-polled {
0018 compatible = "gpio-keys-polled";
0019 poll-interval = <20>;
0020
0021 button {
0022 label = "power";
0023 linux,code = <KEY_POWER>;
0024 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
0025 };
0026 };
0027
0028 leds {
0029 compatible = "gpio-leds";
0030
0031 led-standby {
0032 color = <LED_COLOR_ID_RED>;
0033 function = LED_FUNCTION_POWER;
0034 gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_LOW>;
0035 default-state = "off";
0036 panic-indicator;
0037 };
0038 };
0039 };
0040
0041 ðmac {
0042 pinctrl-0 = <ð_pins>;
0043 pinctrl-names = "default";
0044
0045 phy-mode = "rgmii-txid";
0046 phy-handle = <&external_phy>;
0047
0048 amlogic,tx-delay-ns = <0>;
0049 };
0050
0051 &external_mdio {
0052 external_phy: ethernet-phy@0 {
0053 /* Realtek RTL8211F (0x001cc916) */
0054 pinctrl-0 = <ð_phy_irq_pin>;
0055 pinctrl-names = "default";
0056
0057 reg = <0>;
0058 max-speed = <1000>;
0059
0060 reset-assert-us = <10000>;
0061 reset-deassert-us = <80000>;
0062 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
0063
0064 interrupt-parent = <&gpio_intc>;
0065 interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
0066 };
0067 };
0068
0069 &pinctrl_periphs {
0070 /* Ensure the phy irq pin is properly configured as input */
0071 eth_phy_irq_pin: eth-phy-irq {
0072 mux {
0073 groups = "GPIOZ_15";
0074 function = "gpio_periphs";
0075 bias-disable;
0076 output-disable;
0077 };
0078 };
0079 };
0080
0081 &sd_emmc_a {
0082 brcmf: wifi@1 {
0083 reg = <1>;
0084 compatible = "brcm,bcm4329-fmac";
0085 };
0086 };
0087
0088 &uart_A {
0089 status = "okay";
0090 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
0091 pinctrl-names = "default";
0092 uart-has-rtscts;
0093
0094 bluetooth {
0095 compatible = "brcm,bcm43438-bt";
0096 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
0097 max-speed = <2000000>;
0098 clocks = <&wifi32k>;
0099 clock-names = "lpo";
0100 };
0101 };
0102
0103 &usb {
0104 dr_mode = "host";
0105 };
0106
0107 &usb2_phy0 {
0108 /* HDMI_5V also supplies the USB VBUS */
0109 phy-supply = <&hdmi_5v>;
0110 };
0111
0112 &usb2_phy0 {
0113 /* HDMI_5V also supplies the USB VBUS */
0114 phy-supply = <&hdmi_5v>;
0115 };