Lines Matching +full:meson +full:- +full:saradc

1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /dts-v1/;
9 #include "meson-sm1.dtsi"
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/input/linux-event-codes.h>
12 #include <dt-bindings/gpio/meson-g12a-gpio.h>
13 #include <dt-bindings/sound/meson-g12a-toacodec.h>
14 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
17 compatible = "bananapi,bpi-m5", "amlogic,sm1";
18 model = "Banana Pi BPI-M5";
21 compatible = "adc-keys";
22 io-channels = <&saradc 2>;
23 io-channel-names = "buttons";
24 keyup-threshold-microvolt = <1800000>;
29 press-threshold-microvolt = <1700000>;
39 stdout-path = "serial0:115200n8";
42 /* TOFIX: handle CVBS_DET on SARADC channel 0 */
43 cvbs-connector {
44 compatible = "composite-video-connector";
48 remote-endpoint = <&cvbs_vdac_out>;
53 emmc_pwrseq: emmc-pwrseq {
54 compatible = "mmc-pwrseq-emmc";
55 reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
58 gpio-keys {
59 compatible = "gpio-keys";
65 interrupt-parent = <&gpio_intc>;
70 hdmi-connector {
71 compatible = "hdmi-connector";
76 remote-endpoint = <&hdmi_tx_tmds_out>;
82 compatible = "gpio-leds";
94 linux,default-trigger = "heartbeat";
103 emmc_1v8: regulator-emmc_1v8 {
104 compatible = "regulator-fixed";
105 regulator-name = "EMMC_1V8";
106 regulator-min-microvolt = <1800000>;
107 regulator-max-microvolt = <1800000>;
108 vin-supply = <&vddao_3v3>;
109 regulator-always-on;
112 dc_in: regulator-dc_in {
113 compatible = "regulator-fixed";
114 regulator-name = "DC_IN";
115 regulator-min-microvolt = <5000000>;
116 regulator-max-microvolt = <5000000>;
117 regulator-always-on;
120 vddio_c: regulator-vddio_c {
121 compatible = "regulator-gpio";
122 regulator-name = "VDDIO_C";
123 regulator-min-microvolt = <1800000>;
124 regulator-max-microvolt = <3300000>;
126 enable-gpio = <&gpio_ao GPIOE_2 GPIO_ACTIVE_HIGH>;
127 enable-active-high;
128 regulator-always-on;
131 gpios-states = <1>;
137 tflash_vdd: regulator-tflash_vdd {
138 compatible = "regulator-fixed";
139 regulator-name = "TFLASH_VDD";
140 regulator-min-microvolt = <3300000>;
141 regulator-max-microvolt = <3300000>;
142 vin-supply = <&dc_in>;
144 enable-active-high;
145 regulator-always-on;
148 vddao_1v8: regulator-vddao_1v8 {
149 compatible = "regulator-fixed";
150 regulator-name = "VDDAO_1V8";
151 regulator-min-microvolt = <1800000>;
152 regulator-max-microvolt = <1800000>;
153 vin-supply = <&vddao_3v3>;
154 regulator-always-on;
157 vddao_3v3: regulator-vddao_3v3 {
158 compatible = "regulator-fixed";
159 regulator-name = "VDDAO_3V3";
160 regulator-min-microvolt = <3300000>;
161 regulator-max-microvolt = <3300000>;
162 vin-supply = <&dc_in>;
163 regulator-always-on;
166 vddcpu: regulator-vddcpu {
170 compatible = "pwm-regulator";
172 regulator-name = "VDDCPU";
173 regulator-min-microvolt = <690000>;
174 regulator-max-microvolt = <1050000>;
176 pwm-supply = <&dc_in>;
179 pwm-dutycycle-range = <100 0>;
181 regulator-boot-on;
182 regulator-always-on;
186 vl_pwr_en: regulator-vl_pwr_en {
187 compatible = "regulator-fixed";
188 regulator-name = "VL_PWR_EN";
189 regulator-min-microvolt = <5000000>;
190 regulator-max-microvolt = <5000000>;
191 vin-supply = <&dc_in>;
194 enable-active-high;
198 compatible = "amlogic,axg-sound-card";
199 model = "BPI-M5";
200 audio-widgets = "Line", "Lineout";
201 audio-aux-devs = <&tdmout_b>, <&tdmout_c>,
203 audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
229 assigned-clocks = <&clkc CLKID_MPLL2>,
232 assigned-clock-parents = <0>, <0>, <0>;
233 assigned-clock-rates = <294912000>,
238 dai-link-0 {
239 sound-dai = <&frddr_a>;
242 dai-link-1 {
243 sound-dai = <&frddr_b>;
246 dai-link-2 {
247 sound-dai = <&frddr_c>;
250 dai-link-3 {
251 sound-dai = <&toddr_a>;
254 dai-link-4 {
255 sound-dai = <&toddr_b>;
258 dai-link-5 {
259 sound-dai = <&toddr_c>;
263 dai-link-6 {
264 sound-dai = <&tdmif_b>;
265 dai-format = "i2s";
266 dai-tdm-slot-tx-mask-0 = <1 1>;
267 dai-tdm-slot-tx-mask-1 = <1 1>;
268 dai-tdm-slot-tx-mask-2 = <1 1>;
269 dai-tdm-slot-tx-mask-3 = <1 1>;
270 mclk-fs = <256>;
272 codec-0 {
273 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
276 codec-1 {
277 sound-dai = <&toacodec TOACODEC_IN_B>;
282 dai-link-7 {
283 sound-dai = <&tdmif_c>;
284 dai-format = "i2s";
285 dai-tdm-slot-tx-mask-0 = <1 1>;
286 mclk-fs = <256>;
288 codec-0 {
289 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_C>;
292 codec-1 {
293 sound-dai = <&toacodec TOACODEC_IN_C>;
298 dai-link-8 {
299 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
302 sound-dai = <&hdmi_tx>;
307 dai-link-9 {
308 sound-dai = <&toacodec TOACODEC_OUT>;
311 sound-dai = <&acodec>;
318 AVDD-supply = <&vddao_1v8>;
331 cpu-supply = <&vddcpu>;
332 operating-points-v2 = <&cpu_opp_table>;
334 clock-latency = <50000>;
338 cpu-supply = <&vddcpu>;
339 operating-points-v2 = <&cpu_opp_table>;
341 clock-latency = <50000>;
345 cpu-supply = <&vddcpu>;
346 operating-points-v2 = <&cpu_opp_table>;
348 clock-latency = <50000>;
352 cpu-supply = <&vddcpu>;
353 operating-points-v2 = <&cpu_opp_table>;
355 clock-latency = <50000>;
360 remote-endpoint = <&cvbs_connector_in>;
365 external_phy: ethernet-phy@0 {
368 max-speed = <1000>;
370 interrupt-parent = <&gpio_intc>;
377 pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
378 pinctrl-names = "default";
380 phy-mode = "rgmii-txid";
381 phy-handle = <&external_phy>;
397 gpio-line-names =
420 "VL-RST_N", /* GPIOH_4 */
421 "CON1-P36", /* GPIOH_5 */
422 "VL-PWREN", /* GPIOH_6 */
453 "CON1-P27", /* GPIOA_14 */
454 "CON1-P28", /* GPIOA_15 */
456 "CON1-P16", /* GPIOX_0 */
457 "CON1-P18", /* GPIOX_1 */
458 "CON1-P22", /* GPIOX_2 */
459 "CON1-P11", /* GPIOX_3 */
460 "CON1-P13", /* GPIOX_4 */
461 "CON1-P07", /* GPIOX_5 */
462 "CON1-P33", /* GPIOX_6 */
463 "CON1-P15", /* GPIOX_7 */
464 "CON1-P19", /* GPIOX_8 */
465 "CON1-P21", /* GPIOX_9 */
466 "CON1-P24", /* GPIOX_10 */
467 "CON1-P23", /* GPIOX_11 */
468 "CON1-P08", /* GPIOX_12 */
469 "CON1-P10", /* GPIOX_13 */
470 "CON1-P29", /* GPIOX_14 */
471 "CON1-P31", /* GPIOX_15 */
472 "CON1-P26", /* GPIOX_16 */
473 "CON1-P03", /* GPIOX_17 */
474 "CON1-P05", /* GPIOX_18 */
475 "CON1-P32"; /* GPIOX_19 */
478 * WARNING: The USB Hub on the BPI-M5 needs a reset signal
483 usb-hub {
484 gpio-hog;
486 output-high;
487 line-name = "usb-hub-reset";
492 gpio-line-names =
498 "CON1-P40", /* GPIOAO_4 */
501 "CON1-P35", /* GPIOAO_7 */
502 "CON1-P12", /* GPIOAO_8 */
503 "CON1-P37", /* GPIOAO_9 */
504 "CON1-P38", /* GPIOAO_10 */
514 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
515 pinctrl-names = "default";
516 hdmi-supply = <&dc_in>;
521 remote-endpoint = <&hdmi_connector_in>;
527 pinctrl-0 = <&remote_input_ao_pins>;
528 pinctrl-names = "default";
532 pinctrl-0 = <&pwm_ao_d_e_pins>;
533 pinctrl-names = "default";
535 clock-names = "clkin1";
539 &saradc {
541 vref-supply = <&vddao_1v8>;
547 pinctrl-0 = <&sdcard_c_pins>;
548 pinctrl-1 = <&sdcard_clk_gate_c_pins>;
549 pinctrl-names = "default", "clk-gate";
551 bus-width = <4>;
552 cap-sd-highspeed;
553 max-frequency = <50000000>;
554 disable-wp;
558 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
559 vmmc-supply = <&tflash_vdd>;
560 vqmmc-supply = <&vddio_c>;
566 pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>;
567 pinctrl-1 = <&emmc_clk_gate_pins>;
568 pinctrl-names = "default", "clk-gate";
570 bus-width = <8>;
571 cap-mmc-highspeed;
572 mmc-ddr-1_8v;
573 mmc-hs200-1_8v;
574 max-frequency = <200000000>;
575 disable-wp;
577 mmc-pwrseq = <&emmc_pwrseq>;
578 vmmc-supply = <&vddao_3v3>;
579 vqmmc-supply = <&emmc_1v8>;
632 pinctrl-0 = <&uart_ao_a_pins>;
633 pinctrl-names = "default";
641 phy-supply = <&dc_in>;
646 phy-supply = <&vl_pwr_en>;