xref: /linux/scripts/dtc/include-prefixes/riscv/allwinner/sun20i-d1s-mangopi-mq.dts (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1*062b9b66SKrzysztof Kozlowski// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
22a93adfbSSamuel Holland// Copyright (C) 2022 Samuel Holland <samuel@sholland.org>
32a93adfbSSamuel Holland
42a93adfbSSamuel Holland#include <dt-bindings/gpio/gpio.h>
52a93adfbSSamuel Holland#include <dt-bindings/leds/common.h>
62a93adfbSSamuel Holland
72a93adfbSSamuel Holland/dts-v1/;
82a93adfbSSamuel Holland
92a93adfbSSamuel Holland#include "sun20i-d1s.dtsi"
102a93adfbSSamuel Holland#include "sun20i-common-regulators.dtsi"
112a93adfbSSamuel Holland
122a93adfbSSamuel Holland/ {
132a93adfbSSamuel Holland	model = "MangoPi MQ";
142a93adfbSSamuel Holland	compatible = "widora,mangopi-mq", "allwinner,sun20i-d1s";
152a93adfbSSamuel Holland
162a93adfbSSamuel Holland	aliases {
172a93adfbSSamuel Holland		ethernet0 = &rtl8189ftv;
182a93adfbSSamuel Holland		serial3 = &uart3;
192a93adfbSSamuel Holland	};
202a93adfbSSamuel Holland
212a93adfbSSamuel Holland	chosen {
222a93adfbSSamuel Holland		stdout-path = "serial3:115200n8";
232a93adfbSSamuel Holland	};
242a93adfbSSamuel Holland
252a93adfbSSamuel Holland	leds {
262a93adfbSSamuel Holland		compatible = "gpio-leds";
272a93adfbSSamuel Holland
282a93adfbSSamuel Holland		led-0 {
292a93adfbSSamuel Holland			color = <LED_COLOR_ID_BLUE>;
302a93adfbSSamuel Holland			function = LED_FUNCTION_STATUS;
312a93adfbSSamuel Holland			gpios = <&pio 3 22 GPIO_ACTIVE_LOW>; /* PD22 */
322a93adfbSSamuel Holland		};
332a93adfbSSamuel Holland	};
342a93adfbSSamuel Holland
352a93adfbSSamuel Holland	reg_avdd2v8: avdd2v8 {
362a93adfbSSamuel Holland		compatible = "regulator-fixed";
372a93adfbSSamuel Holland		regulator-name = "avdd2v8";
382a93adfbSSamuel Holland		regulator-min-microvolt = <2800000>;
392a93adfbSSamuel Holland		regulator-max-microvolt = <2800000>;
402a93adfbSSamuel Holland		vin-supply = <&reg_vcc_3v3>;
412a93adfbSSamuel Holland	};
422a93adfbSSamuel Holland
432a93adfbSSamuel Holland	reg_dvdd: dvdd {
442a93adfbSSamuel Holland		compatible = "regulator-fixed";
452a93adfbSSamuel Holland		regulator-name = "dvdd";
462a93adfbSSamuel Holland		regulator-min-microvolt = <1200000>;
472a93adfbSSamuel Holland		regulator-max-microvolt = <1200000>;
482a93adfbSSamuel Holland		vin-supply = <&reg_vcc_3v3>;
492a93adfbSSamuel Holland	};
502a93adfbSSamuel Holland
512a93adfbSSamuel Holland	reg_vcc_core: vcc-core {
522a93adfbSSamuel Holland		compatible = "regulator-fixed";
532a93adfbSSamuel Holland		regulator-name = "vcc-core";
542a93adfbSSamuel Holland		regulator-min-microvolt = <900000>;
552a93adfbSSamuel Holland		regulator-max-microvolt = <900000>;
562a93adfbSSamuel Holland		vin-supply = <&reg_vcc>;
572a93adfbSSamuel Holland	};
582a93adfbSSamuel Holland
592a93adfbSSamuel Holland	wifi_pwrseq: wifi-pwrseq {
602a93adfbSSamuel Holland		compatible = "mmc-pwrseq-simple";
612a93adfbSSamuel Holland		reset-gpios = <&pio 6 12 GPIO_ACTIVE_LOW>; /* PG12 */
622a93adfbSSamuel Holland	};
632a93adfbSSamuel Holland};
642a93adfbSSamuel Holland
652a93adfbSSamuel Holland&cpu0 {
662a93adfbSSamuel Holland	cpu-supply = <&reg_vcc_core>;
672a93adfbSSamuel Holland};
682a93adfbSSamuel Holland
692a93adfbSSamuel Holland&dcxo {
702a93adfbSSamuel Holland	clock-frequency = <24000000>;
712a93adfbSSamuel Holland};
722a93adfbSSamuel Holland
732a93adfbSSamuel Holland&ehci1 {
742a93adfbSSamuel Holland	status = "okay";
752a93adfbSSamuel Holland};
762a93adfbSSamuel Holland
772a93adfbSSamuel Holland&mmc0 {
782a93adfbSSamuel Holland	bus-width = <4>;
792a93adfbSSamuel Holland	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
802a93adfbSSamuel Holland	disable-wp;
812a93adfbSSamuel Holland	vmmc-supply = <&reg_vcc_3v3>;
822a93adfbSSamuel Holland	vqmmc-supply = <&reg_vcc_3v3>;
832a93adfbSSamuel Holland	pinctrl-0 = <&mmc0_pins>;
842a93adfbSSamuel Holland	pinctrl-names = "default";
852a93adfbSSamuel Holland	status = "okay";
862a93adfbSSamuel Holland};
872a93adfbSSamuel Holland
882a93adfbSSamuel Holland&mmc1 {
892a93adfbSSamuel Holland	bus-width = <4>;
902a93adfbSSamuel Holland	mmc-pwrseq = <&wifi_pwrseq>;
912a93adfbSSamuel Holland	non-removable;
922a93adfbSSamuel Holland	vmmc-supply = <&reg_vcc_3v3>;
932a93adfbSSamuel Holland	vqmmc-supply = <&reg_vcc_3v3>;
942a93adfbSSamuel Holland	pinctrl-0 = <&mmc1_pins>;
952a93adfbSSamuel Holland	pinctrl-names = "default";
962a93adfbSSamuel Holland	status = "okay";
972a93adfbSSamuel Holland
982a93adfbSSamuel Holland	rtl8189ftv: wifi@1 {
992a93adfbSSamuel Holland		reg = <1>;
1002a93adfbSSamuel Holland		interrupt-parent = <&pio>;
1012a93adfbSSamuel Holland		interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 */
1022a93adfbSSamuel Holland		interrupt-names = "host-wake";
1032a93adfbSSamuel Holland	};
1042a93adfbSSamuel Holland};
1052a93adfbSSamuel Holland
1062a93adfbSSamuel Holland&ohci1 {
1072a93adfbSSamuel Holland	status = "okay";
1082a93adfbSSamuel Holland};
1092a93adfbSSamuel Holland
1102a93adfbSSamuel Holland&pio {
1112a93adfbSSamuel Holland	vcc-pe-supply = <&reg_avdd2v8>;
1122a93adfbSSamuel Holland};
1132a93adfbSSamuel Holland
1142a93adfbSSamuel Holland&uart3 {
1152a93adfbSSamuel Holland	pinctrl-0 = <&uart3_pb_pins>;
1162a93adfbSSamuel Holland	pinctrl-names = "default";
1172a93adfbSSamuel Holland	status = "okay";
1182a93adfbSSamuel Holland};
1192a93adfbSSamuel Holland
1202a93adfbSSamuel Holland&usb_otg {
1212a93adfbSSamuel Holland	dr_mode = "peripheral";
1222a93adfbSSamuel Holland	status = "okay";
1232a93adfbSSamuel Holland};
1242a93adfbSSamuel Holland
1252a93adfbSSamuel Holland&usbphy {
1262a93adfbSSamuel Holland	usb1_vbus-supply = <&reg_vcc>;
1272a93adfbSSamuel Holland	status = "okay";
1282a93adfbSSamuel Holland};
129