meson-gxm-gt1-ultimate.dts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) Christian Hewitt <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "meson-gxm.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 = "azw,gt1-ultimate", "amlogic,s912", "amlogic,meson-gxm";
  12. model = "Beelink GT1 Ultimate";
  13. leds {
  14. compatible = "gpio-leds";
  15. led-white {
  16. color = <LED_COLOR_ID_WHITE>;
  17. function = LED_FUNCTION_POWER;
  18. gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
  19. default-state = "on";
  20. panic-indicator;
  21. };
  22. };
  23. adc-keys {
  24. compatible = "adc-keys";
  25. io-channels = <&saradc 0>;
  26. io-channel-names = "buttons";
  27. keyup-threshold-microvolt = <1710000>;
  28. button-function {
  29. label = "update";
  30. linux,code = <KEY_VENDOR>;
  31. press-threshold-microvolt = <10000>;
  32. };
  33. };
  34. };
  35. &ethmac {
  36. pinctrl-0 = <&eth_pins>;
  37. pinctrl-names = "default";
  38. phy-handle = <&external_phy>;
  39. amlogic,tx-delay-ns = <2>;
  40. phy-mode = "rgmii";
  41. };
  42. &external_mdio {
  43. external_phy: ethernet-phy@0 {
  44. /* Realtek RTL8211F (0x001cc916) */
  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. /* MAC_INTR on GPIOZ_15 */
  52. interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
  53. };
  54. };
  55. &ir {
  56. linux,rc-map-name = "rc-beelink-gs1";
  57. };
  58. &sd_emmc_a {
  59. brcmf: wifi@1 {
  60. reg = <1>;
  61. compatible = "brcm,bcm4329-fmac";
  62. };
  63. };
  64. &uart_A {
  65. status = "okay";
  66. pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
  67. pinctrl-names = "default";
  68. uart-has-rtscts;
  69. bluetooth {
  70. compatible = "brcm,bcm43438-bt";
  71. shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
  72. max-speed = <2000000>;
  73. clocks = <&wifi32k>;
  74. clock-names = "lpo";
  75. };
  76. };