meson-gxl-s905d-vero4k-plus.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Author: Christian Hewitt <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "meson-gxl-s905d.dtsi"
  7. #include "meson-gx-p23x-q20x.dtsi"
  8. #include <dt-bindings/input/input.h>
  9. #include <dt-bindings/leds/common.h>
  10. / {
  11. compatible = "osmc,vero4k-plus", "amlogic,s905d", "amlogic,meson-gxl";
  12. model = "OSMC Vero 4K Plus";
  13. gpio-keys-polled {
  14. compatible = "gpio-keys-polled";
  15. poll-interval = <20>;
  16. button {
  17. label = "power";
  18. linux,code = <KEY_POWER>;
  19. gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
  20. };
  21. };
  22. leds {
  23. compatible = "gpio-leds";
  24. led-standby {
  25. color = <LED_COLOR_ID_RED>;
  26. function = LED_FUNCTION_POWER;
  27. gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_LOW>;
  28. default-state = "off";
  29. panic-indicator;
  30. };
  31. };
  32. };
  33. &ethmac {
  34. pinctrl-0 = <&eth_pins>;
  35. pinctrl-names = "default";
  36. phy-mode = "rgmii-txid";
  37. phy-handle = <&external_phy>;
  38. amlogic,tx-delay-ns = <0>;
  39. };
  40. &external_mdio {
  41. external_phy: ethernet-phy@0 {
  42. /* Realtek RTL8211F (0x001cc916) */
  43. pinctrl-0 = <&eth_phy_irq_pin>;
  44. pinctrl-names = "default";
  45. reg = <0>;
  46. max-speed = <1000>;
  47. reset-assert-us = <10000>;
  48. reset-deassert-us = <80000>;
  49. reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
  50. interrupt-parent = <&gpio_intc>;
  51. interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
  52. };
  53. };
  54. &pinctrl_periphs {
  55. /* Ensure the phy irq pin is properly configured as input */
  56. eth_phy_irq_pin: eth-phy-irq {
  57. mux {
  58. groups = "GPIOZ_15";
  59. function = "gpio_periphs";
  60. bias-disable;
  61. output-disable;
  62. };
  63. };
  64. };
  65. &sd_emmc_a {
  66. brcmf: wifi@1 {
  67. reg = <1>;
  68. compatible = "brcm,bcm4329-fmac";
  69. };
  70. };
  71. &uart_A {
  72. status = "okay";
  73. pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
  74. pinctrl-names = "default";
  75. uart-has-rtscts;
  76. bluetooth {
  77. compatible = "brcm,bcm43438-bt";
  78. shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
  79. max-speed = <2000000>;
  80. clocks = <&wifi32k>;
  81. clock-names = "lpo";
  82. };
  83. };
  84. &usb {
  85. dr_mode = "host";
  86. };
  87. &usb2_phy0 {
  88. /* HDMI_5V also supplies the USB VBUS */
  89. phy-supply = <&hdmi_5v>;
  90. };
  91. &usb2_phy0 {
  92. /* HDMI_5V also supplies the USB VBUS */
  93. phy-supply = <&hdmi_5v>;
  94. };