meson-gxbb-p200.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2016 Andreas Färber
  4. * Copyright (c) 2016 BayLibre, Inc.
  5. * Author: Kevin Hilman <khilman@kernel.org>
  6. */
  7. /dts-v1/;
  8. #include "meson-gxbb-p20x.dtsi"
  9. #include <dt-bindings/input/input.h>
  10. / {
  11. compatible = "amlogic,p200", "amlogic,meson-gxbb";
  12. model = "Amlogic Meson GXBB P200 Development Board";
  13. avdd18_usb_adc: regulator-avdd18_usb_adc {
  14. compatible = "regulator-fixed";
  15. regulator-name = "AVDD18_USB_ADC";
  16. regulator-min-microvolt = <1800000>;
  17. regulator-max-microvolt = <1800000>;
  18. };
  19. adc_keys {
  20. compatible = "adc-keys";
  21. io-channels = <&saradc 0>;
  22. io-channel-names = "buttons";
  23. keyup-threshold-microvolt = <1800000>;
  24. button-home {
  25. label = "Home";
  26. linux,code = <KEY_HOME>;
  27. press-threshold-microvolt = <900000>; /* 50% */
  28. };
  29. button-esc {
  30. label = "Esc";
  31. linux,code = <KEY_ESC>;
  32. press-threshold-microvolt = <684000>; /* 38% */
  33. };
  34. button-up {
  35. label = "Volume Up";
  36. linux,code = <KEY_VOLUMEUP>;
  37. press-threshold-microvolt = <468000>; /* 26% */
  38. };
  39. button-down {
  40. label = "Volume Down";
  41. linux,code = <KEY_VOLUMEDOWN>;
  42. press-threshold-microvolt = <252000>; /* 14% */
  43. };
  44. button-menu {
  45. label = "Menu";
  46. linux,code = <KEY_MENU>;
  47. press-threshold-microvolt = <0>; /* 0% */
  48. };
  49. };
  50. };
  51. &ethmac {
  52. status = "okay";
  53. pinctrl-0 = <&eth_rgmii_pins>;
  54. pinctrl-names = "default";
  55. phy-handle = <&eth_phy0>;
  56. phy-mode = "rgmii";
  57. amlogic,tx-delay-ns = <2>;
  58. mdio {
  59. compatible = "snps,dwmac-mdio";
  60. #address-cells = <1>;
  61. #size-cells = <0>;
  62. eth_phy0: ethernet-phy@3 {
  63. /* Micrel KSZ9031 (0x00221620) */
  64. reg = <3>;
  65. reset-assert-us = <10000>;
  66. reset-deassert-us = <30000>;
  67. reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
  68. interrupt-parent = <&gpio_intc>;
  69. /* MAC_INTR on GPIOZ_15 */
  70. interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
  71. };
  72. };
  73. };
  74. &i2c_B {
  75. status = "okay";
  76. pinctrl-0 = <&i2c_b_pins>;
  77. pinctrl-names = "default";
  78. };
  79. &saradc {
  80. status = "okay";
  81. vref-supply = <&avdd18_usb_adc>;
  82. };