meson-gxbb-kii-pro.dts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2019 Mohammad Rasim <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "meson-gxbb-p20x.dtsi"
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/input/input.h>
  9. #include <dt-bindings/leds/common.h>
  10. / {
  11. compatible = "videostrong,kii-pro", "amlogic,meson-gxbb";
  12. model = "Videostrong KII Pro";
  13. leds {
  14. compatible = "gpio-leds";
  15. led {
  16. gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>;
  17. default-state = "off";
  18. color = <LED_COLOR_ID_RED>;
  19. function = LED_FUNCTION_STATUS;
  20. };
  21. };
  22. gpio-keys-polled {
  23. compatible = "gpio-keys-polled";
  24. poll-interval = <20>;
  25. button-reset {
  26. label = "reset";
  27. linux,code = <KEY_POWER>;
  28. gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
  29. };
  30. };
  31. };
  32. &uart_A {
  33. status = "okay";
  34. pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
  35. pinctrl-names = "default";
  36. uart-has-rtscts;
  37. bluetooth {
  38. compatible = "brcm,bcm4335a0";
  39. };
  40. };
  41. &ethmac {
  42. status = "okay";
  43. pinctrl-0 = <&eth_rmii_pins>;
  44. pinctrl-names = "default";
  45. phy-handle = <&eth_phy0>;
  46. phy-mode = "rmii";
  47. mdio {
  48. compatible = "snps,dwmac-mdio";
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. eth_phy0: ethernet-phy@0 {
  52. /* IC Plus IP101GR (0x02430c54) */
  53. reg = <0>;
  54. reset-assert-us = <10000>;
  55. reset-deassert-us = <10000>;
  56. reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
  57. };
  58. };
  59. };
  60. &ir {
  61. linux,rc-map-name = "rc-videostrong-kii-pro";
  62. };