meson-axg-s400.dts 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2017 Amlogic, Inc. All rights reserved.
  4. */
  5. /dts-v1/;
  6. #include "meson-axg.dtsi"
  7. #include <dt-bindings/input/input.h>
  8. / {
  9. compatible = "amlogic,s400", "amlogic,a113d", "amlogic,meson-axg";
  10. model = "Amlogic Meson AXG S400 Development Board";
  11. adc_keys {
  12. compatible = "adc-keys";
  13. io-channels = <&saradc 0>;
  14. io-channel-names = "buttons";
  15. keyup-threshold-microvolt = <1800000>;
  16. button-next {
  17. label = "Next";
  18. linux,code = <KEY_NEXT>;
  19. press-threshold-microvolt = <1116000>; /* 62% */
  20. };
  21. button-prev {
  22. label = "Previous";
  23. linux,code = <KEY_PREVIOUS>;
  24. press-threshold-microvolt = <900000>; /* 50% */
  25. };
  26. button-wifi {
  27. label = "Wifi";
  28. linux,code = <KEY_WLAN>;
  29. press-threshold-microvolt = <684000>; /* 38% */
  30. };
  31. button-up {
  32. label = "Volume Up";
  33. linux,code = <KEY_VOLUMEUP>;
  34. press-threshold-microvolt = <468000>; /* 26% */
  35. };
  36. button-down {
  37. label = "Volume Down";
  38. linux,code = <KEY_VOLUMEDOWN>;
  39. press-threshold-microvolt = <252000>; /* 14% */
  40. };
  41. button-voice {
  42. label = "Voice";
  43. linux,code = <KEY_VOICECOMMAND>;
  44. press-threshold-microvolt = <0>; /* 0% */
  45. };
  46. };
  47. aliases {
  48. serial0 = &uart_AO;
  49. serial1 = &uart_A;
  50. };
  51. main_12v: regulator-main_12v {
  52. compatible = "regulator-fixed";
  53. regulator-name = "12V";
  54. regulator-min-microvolt = <12000000>;
  55. regulator-max-microvolt = <12000000>;
  56. regulator-always-on;
  57. };
  58. vddio_boot: regulator-vddio_boot {
  59. compatible = "regulator-fixed";
  60. regulator-name = "VDDIO_BOOT";
  61. regulator-min-microvolt = <1800000>;
  62. regulator-max-microvolt = <1800000>;
  63. vin-supply = <&vddao_3v3>;
  64. regulator-always-on;
  65. };
  66. vddao_3v3: regulator-vddao_3v3 {
  67. compatible = "regulator-fixed";
  68. regulator-name = "VDDAO_3V3";
  69. regulator-min-microvolt = <3300000>;
  70. regulator-max-microvolt = <3300000>;
  71. vin-supply = <&main_12v>;
  72. regulator-always-on;
  73. };
  74. vddio_ao18: regulator-vddio_ao18 {
  75. compatible = "regulator-fixed";
  76. regulator-name = "VDDIO_AO18";
  77. regulator-min-microvolt = <1800000>;
  78. regulator-max-microvolt = <1800000>;
  79. vin-supply = <&vddao_3v3>;
  80. regulator-always-on;
  81. };
  82. vcc_3v3: regulator-vcc_3v3 {
  83. compatible = "regulator-fixed";
  84. regulator-name = "VCC_3V3";
  85. regulator-min-microvolt = <3300000>;
  86. regulator-max-microvolt = <3300000>;
  87. vin-supply = <&vddao_3v3>;
  88. regulator-always-on;
  89. };
  90. vcc_5v: regulator-vcc_5v {
  91. compatible = "regulator-fixed";
  92. regulator-name = "VCC5V";
  93. regulator-min-microvolt = <5000000>;
  94. regulator-max-microvolt = <5000000>;
  95. vin-supply = <&main_12v>;
  96. gpio = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_HIGH>;
  97. enable-active-high;
  98. };
  99. usb_pwr: regulator-usb_pwr {
  100. compatible = "regulator-fixed";
  101. regulator-name = "USB_PWR";
  102. regulator-min-microvolt = <5000000>;
  103. regulator-max-microvolt = <5000000>;
  104. vin-supply = <&vcc_5v>;
  105. gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
  106. enable-active-high;
  107. };
  108. emmc_pwrseq: emmc-pwrseq {
  109. compatible = "mmc-pwrseq-emmc";
  110. reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
  111. };
  112. sdio_pwrseq: sdio-pwrseq {
  113. compatible = "mmc-pwrseq-simple";
  114. reset-gpios = <&gpio GPIOX_7 GPIO_ACTIVE_LOW>;
  115. clocks = <&wifi32k>;
  116. clock-names = "ext_clock";
  117. };
  118. wifi32k: wifi32k {
  119. compatible = "pwm-clock";
  120. #clock-cells = <0>;
  121. clock-frequency = <32768>;
  122. pwms = <&pwm_ab 0 30518 0>; /* PWM_A at 32.768KHz */
  123. };
  124. speaker-leds {
  125. compatible = "gpio-leds";
  126. aled1 {
  127. label = "speaker:aled1";
  128. gpios = <&gpio_speaker 7 0>;
  129. };
  130. aled2 {
  131. label = "speaker:aled2";
  132. gpios = <&gpio_speaker 6 0>;
  133. };
  134. aled3 {
  135. label = "speaker:aled3";
  136. gpios = <&gpio_speaker 5 0>;
  137. };
  138. aled4 {
  139. label = "speaker:aled4";
  140. gpios = <&gpio_speaker 4 0>;
  141. };
  142. aled5 {
  143. label = "speaker:aled5";
  144. gpios = <&gpio_speaker 3 0>;
  145. };
  146. aled6 {
  147. label = "speaker:aled6";
  148. gpios = <&gpio_speaker 2 0>;
  149. };
  150. };
  151. linein: audio-codec@0 {
  152. #sound-dai-cells = <0>;
  153. compatible = "everest,es7241";
  154. VDDA-supply = <&vcc_3v3>;
  155. VDDP-supply = <&vcc_3v3>;
  156. VDDD-supply = <&vcc_3v3>;
  157. status = "okay";
  158. sound-name-prefix = "Linein";
  159. };
  160. lineout: audio-codec@1 {
  161. #sound-dai-cells = <0>;
  162. compatible = "everest,es7154";
  163. VDD-supply = <&vcc_3v3>;
  164. PVDD-supply = <&vcc_5v>;
  165. status = "okay";
  166. sound-name-prefix = "Lineout";
  167. };
  168. spdif_dit: audio-codec@2 {
  169. #sound-dai-cells = <0>;
  170. compatible = "linux,spdif-dit";
  171. status = "okay";
  172. sound-name-prefix = "DIT";
  173. };
  174. };
  175. &ethmac {
  176. status = "okay";
  177. pinctrl-0 = <&eth_rgmii_y_pins>;
  178. pinctrl-names = "default";
  179. phy-handle = <&eth_phy0>;
  180. phy-mode = "rgmii";
  181. mdio {
  182. compatible = "snps,dwmac-mdio";
  183. #address-cells = <1>;
  184. #size-cells = <0>;
  185. eth_phy0: ethernet-phy@0 {
  186. /* Realtek RTL8211F (0x001cc916) */
  187. reg = <0>;
  188. eee-broken-1000t;
  189. };
  190. };
  191. };
  192. &uart_A {
  193. status = "okay";
  194. pinctrl-0 = <&uart_a_pins>;
  195. pinctrl-names = "default";
  196. };
  197. &uart_AO {
  198. status = "okay";
  199. pinctrl-0 = <&uart_ao_a_pins>;
  200. pinctrl-names = "default";
  201. };
  202. &ir {
  203. status = "okay";
  204. pinctrl-0 = <&remote_input_ao_pins>;
  205. pinctrl-names = "default";
  206. };
  207. &i2c1 {
  208. status = "okay";
  209. pinctrl-0 = <&i2c1_z_pins>;
  210. pinctrl-names = "default";
  211. speaker_amp1: audio-codec@1b {
  212. compatible = "ti,tas5707";
  213. reg = <0x1b>;
  214. reset-gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_LOW>;
  215. #sound-dai-cells = <0>;
  216. AVDD-supply = <&vcc_3v3>;
  217. DVDD-supply = <&vcc_3v3>;
  218. PVDD_A-supply = <&main_12v>;
  219. PVDD_B-supply = <&main_12v>;
  220. PVDD_C-supply = <&main_12v>;
  221. PVDD_D-supply = <&main_12v>;
  222. };
  223. };
  224. &i2c_AO {
  225. status = "okay";
  226. pinctrl-0 = <&i2c_ao_sck_10_pins>, <&i2c_ao_sda_11_pins>;
  227. pinctrl-names = "default";
  228. gpio_speaker: gpio-controller@1f {
  229. compatible = "nxp,pca9557";
  230. reg = <0x1f>;
  231. gpio-controller;
  232. #gpio-cells = <2>;
  233. vcc-supply = <&vddao_3v3>;
  234. };
  235. };
  236. &pwm_ab {
  237. status = "okay";
  238. pinctrl-0 = <&pwm_a_x20_pins>;
  239. pinctrl-names = "default";
  240. };
  241. /* emmc storage */
  242. &sd_emmc_c {
  243. status = "okay";
  244. pinctrl-0 = <&emmc_pins>;
  245. pinctrl-1 = <&emmc_clk_gate_pins>;
  246. pinctrl-names = "default", "clk-gate";
  247. bus-width = <8>;
  248. cap-sd-highspeed;
  249. cap-mmc-highspeed;
  250. max-frequency = <180000000>;
  251. non-removable;
  252. disable-wp;
  253. mmc-ddr-1_8v;
  254. mmc-hs200-1_8v;
  255. vmmc-supply = <&vcc_3v3>;
  256. vqmmc-supply = <&vddio_boot>;
  257. };
  258. /* wifi module */
  259. &sd_emmc_b {
  260. status = "okay";
  261. #address-cells = <1>;
  262. #size-cells = <0>;
  263. pinctrl-0 = <&sdio_pins>;
  264. pinctrl-1 = <&sdio_clk_gate_pins>;
  265. pinctrl-names = "default", "clk-gate";
  266. bus-width = <4>;
  267. cap-sd-highspeed;
  268. max-frequency = <100000000>;
  269. non-removable;
  270. disable-wp;
  271. mmc-pwrseq = <&sdio_pwrseq>;
  272. vmmc-supply = <&vddao_3v3>;
  273. vqmmc-supply = <&vddio_boot>;
  274. brcmf: wifi@1 {
  275. reg = <1>;
  276. compatible = "brcm,bcm4329-fmac";
  277. };
  278. };
  279. &saradc {
  280. status = "okay";
  281. vref-supply = <&vddio_ao18>;
  282. };