meson-gxl-s905d-p230.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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-gxl-s905d.dtsi"
  9. #include "meson-gx-p23x-q20x.dtsi"
  10. / {
  11. compatible = "amlogic,p230", "amlogic,s905d", "amlogic,meson-gxl";
  12. model = "Amlogic Meson GXL (S905D) P230 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. hdmi-connector {
  34. compatible = "hdmi-connector";
  35. type = "a";
  36. port {
  37. hdmi_connector_in: endpoint {
  38. remote-endpoint = <&hdmi_tx_tmds_out>;
  39. };
  40. };
  41. };
  42. };
  43. &cec_AO {
  44. status = "okay";
  45. pinctrl-0 = <&ao_cec_pins>;
  46. pinctrl-names = "default";
  47. hdmi-phandle = <&hdmi_tx>;
  48. };
  49. /* P230 has exclusive choice between internal or external PHY */
  50. &ethmac {
  51. pinctrl-0 = <&eth_pins>;
  52. pinctrl-names = "default";
  53. /* Select external PHY by default */
  54. phy-handle = <&external_phy>;
  55. amlogic,tx-delay-ns = <2>;
  56. /* External PHY is in RGMII */
  57. phy-mode = "rgmii";
  58. };
  59. &external_mdio {
  60. external_phy: ethernet-phy@0 {
  61. /* Realtek RTL8211F (0x001cc916) */
  62. reg = <0>;
  63. max-speed = <1000>;
  64. /* External PHY reset is shared with internal PHY Led signal */
  65. reset-assert-us = <10000>;
  66. reset-deassert-us = <80000>;
  67. reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
  68. interrupt-parent = <&gpio_intc>;
  69. interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
  70. eee-broken-1000t;
  71. };
  72. };
  73. &hdmi_tx {
  74. status = "okay";
  75. pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
  76. pinctrl-names = "default";
  77. };
  78. &hdmi_tx_tmds_port {
  79. hdmi_tx_tmds_out: endpoint {
  80. remote-endpoint = <&hdmi_connector_in>;
  81. };
  82. };
  83. &sd_emmc_a {
  84. brcmf: wifi@1 {
  85. reg = <1>;
  86. compatible = "brcm,bcm4329-fmac";
  87. };
  88. };