meson-gxm-minix-neo-u9h.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 = "minix,neo-u9h", "amlogic,s912", "amlogic,meson-gxm";
  12. model = "Minix Neo U9-H";
  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. gpio-keys-polled {
  35. compatible = "gpio-keys-polled";
  36. poll-interval = <100>;
  37. button {
  38. label = "power";
  39. linux,code = <KEY_POWER>;
  40. gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
  41. };
  42. };
  43. };
  44. &ethmac {
  45. pinctrl-0 = <&eth_pins>;
  46. pinctrl-names = "default";
  47. phy-handle = <&external_phy>;
  48. amlogic,tx-delay-ns = <2>;
  49. phy-mode = "rgmii";
  50. };
  51. &external_mdio {
  52. external_phy: ethernet-phy@0 {
  53. /* Realtek RTL8211F (0x001cc916) */
  54. reg = <0>;
  55. max-speed = <1000>;
  56. reset-assert-us = <10000>;
  57. reset-deassert-us = <80000>;
  58. reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
  59. interrupt-parent = <&gpio_intc>;
  60. /* MAC_INTR on GPIOZ_15 */
  61. interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
  62. };
  63. };
  64. &ir {
  65. linux,rc-map-name = "rc-minix-neo";
  66. };
  67. &i2c_B {
  68. status = "okay";
  69. pinctrl-0 = <&i2c_b_pins>;
  70. pinctrl-names = "default";
  71. rtc: rtc@51 {
  72. status = "okay";
  73. compatible = "haoyu,hym8563";
  74. reg = <0x51>;
  75. #clock-cells = <0>;
  76. clock-frequency = <32768>;
  77. clock-output-names = "xin32k";
  78. wakeup-source;
  79. };
  80. };
  81. &sd_emmc_a {
  82. brcmf: wifi@1 {
  83. reg = <1>;
  84. compatible = "brcm,bcm4329-fmac";
  85. };
  86. };
  87. &uart_A {
  88. status = "okay";
  89. pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
  90. pinctrl-names = "default";
  91. uart-has-rtscts;
  92. bluetooth {
  93. compatible = "brcm,bcm43438-bt";
  94. shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
  95. max-speed = <2000000>;
  96. clocks = <&wifi32k>;
  97. clock-names = "lpo";
  98. };
  99. };