meson-gxm-mecool-kiii-pro.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Author: 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 = "videostrong,gxm-kiii-pro", "amlogic,s912", "amlogic,meson-gxm";
  12. model = "MeCool KIII Pro";
  13. memory@0 {
  14. device_type = "memory";
  15. reg = <0x0 0x0 0x0 0xC0000000>;
  16. };
  17. adc-keys {
  18. compatible = "adc-keys";
  19. io-channels = <&saradc 0>;
  20. io-channel-names = "buttons";
  21. keyup-threshold-microvolt = <1710000>;
  22. button-function {
  23. label = "Update";
  24. linux,code = <KEY_VENDOR>;
  25. press-threshold-microvolt = <10000>;
  26. };
  27. };
  28. gpio-keys-polled {
  29. compatible = "gpio-keys-polled";
  30. poll-interval = <100>;
  31. button {
  32. label = "power";
  33. linux,code = <KEY_POWER>;
  34. gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
  35. };
  36. };
  37. leds {
  38. compatible = "gpio-leds";
  39. led-blue {
  40. color = <LED_COLOR_ID_BLUE>;
  41. function = LED_FUNCTION_POWER;
  42. gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
  43. default-state = "on";
  44. panic-indicator;
  45. };
  46. };
  47. };
  48. &ethmac {
  49. pinctrl-0 = <&eth_pins>;
  50. pinctrl-names = "default";
  51. phy-handle = <&external_phy>;
  52. amlogic,tx-delay-ns = <2>;
  53. phy-mode = "rgmii";
  54. };
  55. &external_mdio {
  56. external_phy: ethernet-phy@0 {
  57. /* Realtek RTL8211F (0x001cc916) */
  58. reg = <0>;
  59. max-speed = <1000>;
  60. reset-assert-us = <10000>;
  61. reset-deassert-us = <80000>;
  62. reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
  63. interrupt-parent = <&gpio_intc>;
  64. /* MAC_INTR on GPIOZ_15 */
  65. interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
  66. };
  67. };
  68. &ir {
  69. linux,rc-map-name = "rc-mecool-kiii-pro";
  70. };
  71. &sd_emmc_a {
  72. brcmf: wifi@1 {
  73. reg = <1>;
  74. compatible = "brcm,bcm4329-fmac";
  75. };
  76. };
  77. &uart_A {
  78. status = "okay";
  79. pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
  80. pinctrl-names = "default";
  81. uart-has-rtscts;
  82. bluetooth {
  83. compatible = "brcm,bcm43438-bt";
  84. shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
  85. max-speed = <2000000>;
  86. clocks = <&wifi32k>;
  87. clock-names = "lpo";
  88. };
  89. };