1*062b9b66SKrzysztof Kozlowski// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 296a35ab9SSamuel Holland// Copyright (C) 2022 Samuel Holland <samuel@sholland.org> 396a35ab9SSamuel Holland 496a35ab9SSamuel Holland#include <dt-bindings/gpio/gpio.h> 596a35ab9SSamuel Holland#include <dt-bindings/leds/common.h> 696a35ab9SSamuel Holland 796a35ab9SSamuel Holland/dts-v1/; 896a35ab9SSamuel Holland 996a35ab9SSamuel Holland#include "sun20i-d1.dtsi" 1096a35ab9SSamuel Holland#include "sun20i-common-regulators.dtsi" 1196a35ab9SSamuel Holland 1296a35ab9SSamuel Holland/ { 1396a35ab9SSamuel Holland model = "MangoPi MQ Pro"; 1496a35ab9SSamuel Holland compatible = "widora,mangopi-mq-pro", "allwinner,sun20i-d1"; 1596a35ab9SSamuel Holland 1696a35ab9SSamuel Holland aliases { 1796a35ab9SSamuel Holland ethernet0 = &rtl8723ds; 1896a35ab9SSamuel Holland serial0 = &uart0; 1996a35ab9SSamuel Holland }; 2096a35ab9SSamuel Holland 2196a35ab9SSamuel Holland chosen { 2296a35ab9SSamuel Holland stdout-path = "serial0:115200n8"; 2396a35ab9SSamuel Holland }; 2496a35ab9SSamuel Holland 2596a35ab9SSamuel Holland leds { 2696a35ab9SSamuel Holland compatible = "gpio-leds"; 2796a35ab9SSamuel Holland 2896a35ab9SSamuel Holland led-0 { 2996a35ab9SSamuel Holland color = <LED_COLOR_ID_BLUE>; 3096a35ab9SSamuel Holland function = LED_FUNCTION_STATUS; 3196a35ab9SSamuel Holland gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */ 3296a35ab9SSamuel Holland }; 3396a35ab9SSamuel Holland }; 3496a35ab9SSamuel Holland 3596a35ab9SSamuel Holland reg_avdd2v8: avdd2v8 { 3696a35ab9SSamuel Holland compatible = "regulator-fixed"; 3796a35ab9SSamuel Holland regulator-name = "avdd2v8"; 3896a35ab9SSamuel Holland regulator-min-microvolt = <2800000>; 3996a35ab9SSamuel Holland regulator-max-microvolt = <2800000>; 4096a35ab9SSamuel Holland vin-supply = <®_vcc_3v3>; 4196a35ab9SSamuel Holland }; 4296a35ab9SSamuel Holland 4396a35ab9SSamuel Holland reg_dvdd: dvdd { 4496a35ab9SSamuel Holland compatible = "regulator-fixed"; 4596a35ab9SSamuel Holland regulator-name = "dvdd"; 4696a35ab9SSamuel Holland regulator-min-microvolt = <1200000>; 4796a35ab9SSamuel Holland regulator-max-microvolt = <1200000>; 4896a35ab9SSamuel Holland vin-supply = <®_vcc_3v3>; 4996a35ab9SSamuel Holland }; 5096a35ab9SSamuel Holland 5196a35ab9SSamuel Holland reg_vdd_cpu: vdd-cpu { 5296a35ab9SSamuel Holland compatible = "regulator-fixed"; 5396a35ab9SSamuel Holland regulator-name = "vdd-cpu"; 5496a35ab9SSamuel Holland regulator-min-microvolt = <1100000>; 5596a35ab9SSamuel Holland regulator-max-microvolt = <1100000>; 5696a35ab9SSamuel Holland vin-supply = <®_vcc>; 5796a35ab9SSamuel Holland }; 5896a35ab9SSamuel Holland 5996a35ab9SSamuel Holland wifi_pwrseq: wifi-pwrseq { 6096a35ab9SSamuel Holland compatible = "mmc-pwrseq-simple"; 6196a35ab9SSamuel Holland reset-gpios = <&pio 6 17 GPIO_ACTIVE_LOW>; /* PG17 */ 6296a35ab9SSamuel Holland }; 6396a35ab9SSamuel Holland}; 6496a35ab9SSamuel Holland 6596a35ab9SSamuel Holland&cpu0 { 6696a35ab9SSamuel Holland cpu-supply = <®_vdd_cpu>; 6796a35ab9SSamuel Holland}; 6896a35ab9SSamuel Holland 6996a35ab9SSamuel Holland&dcxo { 7096a35ab9SSamuel Holland clock-frequency = <24000000>; 7196a35ab9SSamuel Holland}; 7296a35ab9SSamuel Holland 7396a35ab9SSamuel Holland&ehci1 { 7496a35ab9SSamuel Holland status = "okay"; 7596a35ab9SSamuel Holland}; 7696a35ab9SSamuel Holland 7796a35ab9SSamuel Holland&mmc0 { 7896a35ab9SSamuel Holland bus-width = <4>; 7996a35ab9SSamuel Holland cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */ 8096a35ab9SSamuel Holland disable-wp; 8196a35ab9SSamuel Holland vmmc-supply = <®_vcc_3v3>; 8296a35ab9SSamuel Holland vqmmc-supply = <®_vcc_3v3>; 8396a35ab9SSamuel Holland pinctrl-0 = <&mmc0_pins>; 8496a35ab9SSamuel Holland pinctrl-names = "default"; 8596a35ab9SSamuel Holland status = "okay"; 8696a35ab9SSamuel Holland}; 8796a35ab9SSamuel Holland 8896a35ab9SSamuel Holland&mmc1 { 8996a35ab9SSamuel Holland bus-width = <4>; 9096a35ab9SSamuel Holland mmc-pwrseq = <&wifi_pwrseq>; 9196a35ab9SSamuel Holland non-removable; 9296a35ab9SSamuel Holland vmmc-supply = <®_vcc_3v3>; 9396a35ab9SSamuel Holland vqmmc-supply = <®_vcc_3v3>; 9496a35ab9SSamuel Holland pinctrl-0 = <&mmc1_pins>; 9596a35ab9SSamuel Holland pinctrl-names = "default"; 9696a35ab9SSamuel Holland status = "okay"; 9796a35ab9SSamuel Holland 9896a35ab9SSamuel Holland rtl8723ds: wifi@1 { 9996a35ab9SSamuel Holland reg = <1>; 10096a35ab9SSamuel Holland interrupt-parent = <&pio>; 10196a35ab9SSamuel Holland interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 */ 10296a35ab9SSamuel Holland interrupt-names = "host-wake"; 10396a35ab9SSamuel Holland }; 10496a35ab9SSamuel Holland}; 10596a35ab9SSamuel Holland 10696a35ab9SSamuel Holland&ohci1 { 10796a35ab9SSamuel Holland status = "okay"; 10896a35ab9SSamuel Holland}; 10996a35ab9SSamuel Holland 11096a35ab9SSamuel Holland&pio { 11196a35ab9SSamuel Holland vcc-pe-supply = <®_avdd2v8>; 11296a35ab9SSamuel Holland}; 11396a35ab9SSamuel Holland 11496a35ab9SSamuel Holland&uart0 { 11596a35ab9SSamuel Holland pinctrl-0 = <&uart0_pb8_pins>; 11696a35ab9SSamuel Holland pinctrl-names = "default"; 11796a35ab9SSamuel Holland status = "okay"; 11896a35ab9SSamuel Holland}; 11996a35ab9SSamuel Holland 12096a35ab9SSamuel Holland&uart1 { 12196a35ab9SSamuel Holland uart-has-rtscts; 12296a35ab9SSamuel Holland pinctrl-0 = <&uart1_pg6_pins>, <&uart1_pg8_rts_cts_pins>; 12396a35ab9SSamuel Holland pinctrl-names = "default"; 12496a35ab9SSamuel Holland status = "okay"; 12596a35ab9SSamuel Holland 12696a35ab9SSamuel Holland bluetooth { 12796a35ab9SSamuel Holland compatible = "realtek,rtl8723ds-bt"; 12896a35ab9SSamuel Holland device-wake-gpios = <&pio 6 18 GPIO_ACTIVE_HIGH>; /* PG18 */ 12996a35ab9SSamuel Holland enable-gpios = <&pio 6 15 GPIO_ACTIVE_HIGH>; /* PG15 */ 13096a35ab9SSamuel Holland host-wake-gpios = <&pio 6 14 GPIO_ACTIVE_HIGH>; /* PG14 */ 13196a35ab9SSamuel Holland }; 13296a35ab9SSamuel Holland}; 13396a35ab9SSamuel Holland 13496a35ab9SSamuel Holland&usb_otg { 13596a35ab9SSamuel Holland dr_mode = "peripheral"; 13696a35ab9SSamuel Holland status = "okay"; 13796a35ab9SSamuel Holland}; 13896a35ab9SSamuel Holland 13996a35ab9SSamuel Holland&usbphy { 14096a35ab9SSamuel Holland usb1_vbus-supply = <®_vcc>; 14196a35ab9SSamuel Holland status = "okay"; 14296a35ab9SSamuel Holland}; 143