meson-gxbb-wetek-play2.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2016 BayLibre, Inc.
  4. * Author: Neil Armstrong <[email protected]>
  5. */
  6. /dts-v1/;
  7. #include "meson-gxbb-wetek.dtsi"
  8. #include <dt-bindings/input/input.h>
  9. #include <dt-bindings/sound/meson-aiu.h>
  10. / {
  11. compatible = "wetek,play2", "amlogic,meson-gxbb";
  12. model = "WeTek Play 2";
  13. spdif_dit: audio-codec-0 {
  14. #sound-dai-cells = <0>;
  15. compatible = "linux,spdif-dit";
  16. status = "okay";
  17. sound-name-prefix = "DIT";
  18. };
  19. leds {
  20. led-wifi {
  21. label = "wetek-play:wifi-status";
  22. gpios = <&gpio GPIODV_26 GPIO_ACTIVE_HIGH>;
  23. default-state = "off";
  24. };
  25. led-ethernet {
  26. label = "wetek-play:ethernet-status";
  27. gpios = <&gpio GPIODV_27 GPIO_ACTIVE_HIGH>;
  28. default-state = "off";
  29. };
  30. };
  31. gpio-keys-polled {
  32. compatible = "gpio-keys-polled";
  33. poll-interval = <100>;
  34. button {
  35. label = "reset";
  36. linux,code = <KEY_RESTART>;
  37. gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
  38. };
  39. };
  40. sound {
  41. compatible = "amlogic,gx-sound-card";
  42. model = "WETEK-PLAY2";
  43. assigned-clocks = <&clkc CLKID_MPLL0>,
  44. <&clkc CLKID_MPLL1>,
  45. <&clkc CLKID_MPLL2>;
  46. assigned-clock-parents = <0>, <0>, <0>;
  47. assigned-clock-rates = <294912000>,
  48. <270950400>,
  49. <393216000>;
  50. status = "okay";
  51. dai-link-0 {
  52. sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
  53. };
  54. dai-link-1 {
  55. sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
  56. };
  57. dai-link-2 {
  58. sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
  59. dai-format = "i2s";
  60. mclk-fs = <256>;
  61. codec-0 {
  62. sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
  63. };
  64. };
  65. dai-link-3 {
  66. sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
  67. codec-0 {
  68. sound-dai = <&spdif_dit>;
  69. };
  70. };
  71. dai-link-4 {
  72. sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
  73. codec-0 {
  74. sound-dai = <&hdmi_tx>;
  75. };
  76. };
  77. };
  78. };
  79. &aiu {
  80. status = "okay";
  81. pinctrl-0 = <&spdif_out_y_pins>;
  82. pinctrl-names = "default";
  83. };
  84. &i2c_A {
  85. status = "okay";
  86. pinctrl-0 = <&i2c_a_pins>;
  87. pinctrl-names = "default";
  88. };
  89. &usb1_phy {
  90. status = "okay";
  91. };
  92. &usb1 {
  93. status = "okay";
  94. };
  95. &ir {
  96. linux,rc-map-name = "rc-wetek-play2";
  97. };