meson-gxl-s905x-p212.dtsi 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2016 Martin Blumenstingl <martin.blumenstingl@googlemail.com>.
  4. * Based on meson-gx-p23x-q20x.dtsi:
  5. * - Copyright (c) 2016 Endless Computers, Inc.
  6. * Author: Carlo Caione <carlo@endlessm.com>
  7. * - Copyright (c) 2016 BayLibre, SAS.
  8. * Author: Neil Armstrong <narmstrong@baylibre.com>
  9. */
  10. /* Common DTSI for devices which are based on the P212 reference board. */
  11. #include "meson-gxl-s905x.dtsi"
  12. / {
  13. aliases {
  14. serial0 = &uart_AO;
  15. serial1 = &uart_A;
  16. ethernet0 = &ethmac;
  17. };
  18. chosen {
  19. stdout-path = "serial0:115200n8";
  20. };
  21. memory@0 {
  22. device_type = "memory";
  23. reg = <0x0 0x0 0x0 0x80000000>;
  24. };
  25. hdmi_5v: regulator-hdmi-5v {
  26. compatible = "regulator-fixed";
  27. regulator-name = "HDMI_5V";
  28. regulator-min-microvolt = <5000000>;
  29. regulator-max-microvolt = <5000000>;
  30. gpio = <&gpio GPIOH_3 GPIO_ACTIVE_HIGH>;
  31. enable-active-high;
  32. regulator-always-on;
  33. };
  34. vddio_boot: regulator-vddio_boot {
  35. compatible = "regulator-fixed";
  36. regulator-name = "VDDIO_BOOT";
  37. regulator-min-microvolt = <1800000>;
  38. regulator-max-microvolt = <1800000>;
  39. };
  40. vddao_3v3: regulator-vddao_3v3 {
  41. compatible = "regulator-fixed";
  42. regulator-name = "VDDAO_3V3";
  43. regulator-min-microvolt = <3300000>;
  44. regulator-max-microvolt = <3300000>;
  45. };
  46. vddio_ao18: regulator-vddio_ao18 {
  47. compatible = "regulator-fixed";
  48. regulator-name = "VDDIO_AO18";
  49. regulator-min-microvolt = <1800000>;
  50. regulator-max-microvolt = <1800000>;
  51. };
  52. vcc_3v3: regulator-vcc_3v3 {
  53. compatible = "regulator-fixed";
  54. regulator-name = "VCC_3V3";
  55. regulator-min-microvolt = <3300000>;
  56. regulator-max-microvolt = <3300000>;
  57. };
  58. emmc_pwrseq: emmc-pwrseq {
  59. compatible = "mmc-pwrseq-emmc";
  60. reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
  61. };
  62. wifi32k: wifi32k {
  63. compatible = "pwm-clock";
  64. #clock-cells = <0>;
  65. clock-frequency = <32768>;
  66. pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
  67. };
  68. sdio_pwrseq: sdio-pwrseq {
  69. compatible = "mmc-pwrseq-simple";
  70. reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
  71. clocks = <&wifi32k>;
  72. clock-names = "ext_clock";
  73. };
  74. };
  75. &ethmac {
  76. status = "okay";
  77. };
  78. &ir {
  79. status = "okay";
  80. pinctrl-0 = <&remote_input_ao_pins>;
  81. pinctrl-names = "default";
  82. };
  83. &saradc {
  84. status = "okay";
  85. vref-supply = <&vddio_ao18>;
  86. };
  87. /* Wireless SDIO Module */
  88. &sd_emmc_a {
  89. status = "okay";
  90. pinctrl-0 = <&sdio_pins>;
  91. pinctrl-1 = <&sdio_clk_gate_pins>;
  92. pinctrl-names = "default", "clk-gate";
  93. #address-cells = <1>;
  94. #size-cells = <0>;
  95. bus-width = <4>;
  96. cap-sd-highspeed;
  97. max-frequency = <50000000>;
  98. non-removable;
  99. disable-wp;
  100. /* WiFi firmware requires power to be kept while in suspend */
  101. keep-power-in-suspend;
  102. mmc-pwrseq = <&sdio_pwrseq>;
  103. vmmc-supply = <&vddao_3v3>;
  104. vqmmc-supply = <&vddio_boot>;
  105. };
  106. /* SD card */
  107. &sd_emmc_b {
  108. status = "okay";
  109. pinctrl-0 = <&sdcard_pins>;
  110. pinctrl-1 = <&sdcard_clk_gate_pins>;
  111. pinctrl-names = "default", "clk-gate";
  112. bus-width = <4>;
  113. cap-sd-highspeed;
  114. max-frequency = <50000000>;
  115. disable-wp;
  116. cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
  117. vmmc-supply = <&vddao_3v3>;
  118. vqmmc-supply = <&vddio_boot>;
  119. };
  120. /* eMMC */
  121. &sd_emmc_c {
  122. status = "okay";
  123. pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
  124. pinctrl-1 = <&emmc_clk_gate_pins>;
  125. pinctrl-names = "default", "clk-gate";
  126. bus-width = <8>;
  127. cap-mmc-highspeed;
  128. max-frequency = <200000000>;
  129. non-removable;
  130. disable-wp;
  131. mmc-ddr-1_8v;
  132. mmc-hs200-1_8v;
  133. mmc-pwrseq = <&emmc_pwrseq>;
  134. vmmc-supply = <&vcc_3v3>;
  135. vqmmc-supply = <&vddio_boot>;
  136. };
  137. &pwm_ef {
  138. status = "okay";
  139. pinctrl-0 = <&pwm_e_pins>;
  140. pinctrl-names = "default";
  141. clocks = <&clkc CLKID_FCLK_DIV4>;
  142. clock-names = "clkin0";
  143. };
  144. /* This is connected to the Bluetooth module: */
  145. &uart_A {
  146. status = "okay";
  147. pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
  148. pinctrl-names = "default";
  149. uart-has-rtscts;
  150. };
  151. &uart_AO {
  152. status = "okay";
  153. pinctrl-0 = <&uart_ao_a_pins>;
  154. pinctrl-names = "default";
  155. };
  156. &usb0 {
  157. status = "okay";
  158. };
  159. &usb2_phy0 {
  160. /*
  161. * HDMI_5V is also used as supply for the USB VBUS.
  162. */
  163. phy-supply = <&hdmi_5v>;
  164. };