meson-gxm-q200.dts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2016 Endless Computers, Inc.
  4. * Author: Carlo Caione <[email protected]>
  5. */
  6. /dts-v1/;
  7. #include <dt-bindings/input/input.h>
  8. #include "meson-gxm.dtsi"
  9. #include "meson-gx-p23x-q20x.dtsi"
  10. / {
  11. compatible = "amlogic,q200", "amlogic,s912", "amlogic,meson-gxm";
  12. model = "Amlogic Meson GXM (S912) Q200 Development Board";
  13. adc-keys {
  14. compatible = "adc-keys";
  15. io-channels = <&saradc 0>;
  16. io-channel-names = "buttons";
  17. keyup-threshold-microvolt = <1710000>;
  18. button-function {
  19. label = "Update";
  20. linux,code = <KEY_VENDOR>;
  21. press-threshold-microvolt = <10000>;
  22. };
  23. };
  24. gpio-keys-polled {
  25. compatible = "gpio-keys-polled";
  26. poll-interval = <100>;
  27. button {
  28. label = "power";
  29. linux,code = <KEY_POWER>;
  30. gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
  31. };
  32. };
  33. };
  34. /* Q200 has exclusive choice between internal or external PHY */
  35. &ethmac {
  36. pinctrl-0 = <&eth_pins>;
  37. pinctrl-names = "default";
  38. /* Select external PHY by default */
  39. phy-handle = <&external_phy>;
  40. amlogic,tx-delay-ns = <2>;
  41. /* External PHY is in RGMII */
  42. phy-mode = "rgmii";
  43. };
  44. &external_mdio {
  45. external_phy: ethernet-phy@0 {
  46. /* Realtek RTL8211F (0x001cc916) */
  47. reg = <0>;
  48. max-speed = <1000>;
  49. /* External PHY reset is shared with internal PHY Led signal */
  50. reset-assert-us = <10000>;
  51. reset-deassert-us = <80000>;
  52. reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
  53. interrupt-parent = <&gpio_intc>;
  54. /* MAC_INTR on GPIOZ_15 */
  55. interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
  56. };
  57. };
  58. &sd_emmc_a {
  59. brcmf: wifi@1 {
  60. reg = <1>;
  61. compatible = "brcm,bcm4329-fmac";
  62. };
  63. };