meson-gxl-s905d-mecool-kii-pro.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Author: Christian Hewitt <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "meson-gxl-s905d.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,gxl-kii-pro", "amlogic,s905d", "amlogic,meson-gxl";
  12. model = "MeCool KII Pro";
  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. leds {
  34. compatible = "gpio-leds";
  35. led-blue {
  36. color = <LED_COLOR_ID_BLUE>;
  37. function = LED_FUNCTION_POWER;
  38. gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
  39. default-state = "on";
  40. panic-indicator;
  41. };
  42. };
  43. };
  44. &ethmac {
  45. phy-mode = "rmii";
  46. phy-handle = <&internal_phy>;
  47. };
  48. &ir {
  49. linux,rc-map-name = "rc-mecool-kii-pro";
  50. };
  51. &sd_emmc_a {
  52. brcmf: wifi@1 {
  53. reg = <1>;
  54. compatible = "brcm,bcm4329-fmac";
  55. };
  56. };
  57. &uart_A {
  58. status = "okay";
  59. pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
  60. pinctrl-names = "default";
  61. uart-has-rtscts;
  62. bluetooth {
  63. compatible = "brcm,bcm43438-bt";
  64. shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
  65. max-speed = <2000000>;
  66. clocks = <&wifi32k>;
  67. clock-names = "lpo";
  68. };
  69. };