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 <carlo@endlessm.com>
  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. #address-cells = <1>;
  27. #size-cells = <0>;
  28. poll-interval = <100>;
  29. button@0 {
  30. label = "power";
  31. linux,code = <KEY_POWER>;
  32. gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
  33. };
  34. };
  35. hdmi-connector {
  36. compatible = "hdmi-connector";
  37. type = "a";
  38. port {
  39. hdmi_connector_in: endpoint {
  40. remote-endpoint = <&hdmi_tx_tmds_out>;
  41. };
  42. };
  43. };
  44. };
  45. &cec_AO {
  46. status = "okay";
  47. pinctrl-0 = <&ao_cec_pins>;
  48. pinctrl-names = "default";
  49. hdmi-phandle = <&hdmi_tx>;
  50. };
  51. /* P230 has exclusive choice between internal or external PHY */
  52. &ethmac {
  53. pinctrl-0 = <&eth_pins>;
  54. pinctrl-names = "default";
  55. /* Select external PHY by default */
  56. phy-handle = <&external_phy>;
  57. amlogic,tx-delay-ns = <2>;
  58. /* External PHY reset is shared with internal PHY Led signals */
  59. snps,reset-gpio = <&gpio GPIOZ_14 0>;
  60. snps,reset-delays-us = <0 10000 1000000>;
  61. snps,reset-active-low;
  62. /* External PHY is in RGMII */
  63. phy-mode = "rgmii";
  64. };
  65. &external_mdio {
  66. external_phy: ethernet-phy@0 {
  67. compatible = "ethernet-phy-id001c.c916", "ethernet-phy-ieee802.3-c22";
  68. reg = <0>;
  69. max-speed = <1000>;
  70. interrupt-parent = <&gpio_intc>;
  71. interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
  72. };
  73. };
  74. &hdmi_tx {
  75. status = "okay";
  76. pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
  77. pinctrl-names = "default";
  78. };
  79. &hdmi_tx_tmds_port {
  80. hdmi_tx_tmds_out: endpoint {
  81. remote-endpoint = <&hdmi_connector_in>;
  82. };
  83. };
  84. &sd_emmc_a {
  85. brcmf: wifi@1 {
  86. reg = <1>;
  87. compatible = "brcm,bcm4329-fmac";
  88. };
  89. };