1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 // Copyright (C) 2022 Arm Ltd. 2 // Copyright (C) 2022 Arm Ltd. 3 /* 3 /* 4 * Common peripherals and configurations for M 4 * Common peripherals and configurations for MangoPi MQ-R boards. 5 */ 5 */ 6 6 7 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/leds/common.h> 9 9 10 / { 10 / { 11 aliases { 11 aliases { 12 serial3 = &uart3; 12 serial3 = &uart3; 13 }; 13 }; 14 14 15 chosen { 15 chosen { 16 stdout-path = "serial3:115200n 16 stdout-path = "serial3:115200n8"; 17 }; 17 }; 18 18 19 leds { 19 leds { 20 compatible = "gpio-leds"; 20 compatible = "gpio-leds"; 21 21 22 led-0 { 22 led-0 { 23 color = <LED_COLOR_ID_ 23 color = <LED_COLOR_ID_BLUE>; 24 function = LED_FUNCTIO 24 function = LED_FUNCTION_STATUS; 25 gpios = <&pio 3 22 GPI 25 gpios = <&pio 3 22 GPIO_ACTIVE_LOW>; /* PD22 */ 26 }; 26 }; 27 }; 27 }; 28 28 29 /* board wide 5V supply directly from 29 /* board wide 5V supply directly from the USB-C socket */ 30 reg_vcc5v: regulator-5v { 30 reg_vcc5v: regulator-5v { 31 compatible = "regulator-fixed" 31 compatible = "regulator-fixed"; 32 regulator-name = "vcc-5v"; 32 regulator-name = "vcc-5v"; 33 regulator-min-microvolt = <500 33 regulator-min-microvolt = <5000000>; 34 regulator-max-microvolt = <500 34 regulator-max-microvolt = <5000000>; 35 regulator-always-on; 35 regulator-always-on; 36 }; 36 }; 37 37 38 /* SY8008 DC/DC regulator on the board 38 /* SY8008 DC/DC regulator on the board */ 39 reg_3v3: regulator-3v3 { 39 reg_3v3: regulator-3v3 { 40 compatible = "regulator-fixed" 40 compatible = "regulator-fixed"; 41 regulator-name = "vcc-3v3"; 41 regulator-name = "vcc-3v3"; 42 regulator-min-microvolt = <330 42 regulator-min-microvolt = <3300000>; 43 regulator-max-microvolt = <330 43 regulator-max-microvolt = <3300000>; 44 vin-supply = <®_vcc5v>; 44 vin-supply = <®_vcc5v>; 45 }; 45 }; 46 46 47 /* SY8008 DC/DC regulator on the board 47 /* SY8008 DC/DC regulator on the board, also supplying VDD-SYS */ 48 reg_vcc_core: regulator-core { 48 reg_vcc_core: regulator-core { 49 compatible = "regulator-fixed" 49 compatible = "regulator-fixed"; 50 regulator-name = "vcc-core"; 50 regulator-name = "vcc-core"; 51 regulator-min-microvolt = <880 51 regulator-min-microvolt = <880000>; 52 regulator-max-microvolt = <880 52 regulator-max-microvolt = <880000>; 53 vin-supply = <®_vcc5v>; 53 vin-supply = <®_vcc5v>; 54 }; 54 }; 55 55 56 /* XC6206 LDO on the board */ 56 /* XC6206 LDO on the board */ 57 reg_avdd2v8: regulator-avdd { 57 reg_avdd2v8: regulator-avdd { 58 compatible = "regulator-fixed" 58 compatible = "regulator-fixed"; 59 regulator-name = "avdd2v8"; 59 regulator-name = "avdd2v8"; 60 regulator-min-microvolt = <280 60 regulator-min-microvolt = <2800000>; 61 regulator-max-microvolt = <280 61 regulator-max-microvolt = <2800000>; 62 vin-supply = <®_3v3>; 62 vin-supply = <®_3v3>; 63 }; 63 }; 64 64 65 wifi_pwrseq: wifi-pwrseq { 65 wifi_pwrseq: wifi-pwrseq { 66 compatible = "mmc-pwrseq-simpl 66 compatible = "mmc-pwrseq-simple"; 67 reset-gpios = <&pio 6 12 GPIO_ 67 reset-gpios = <&pio 6 12 GPIO_ACTIVE_LOW>; /* PG12 */ 68 }; 68 }; 69 }; 69 }; 70 70 71 &dcxo { 71 &dcxo { 72 clock-frequency = <24000000>; 72 clock-frequency = <24000000>; 73 }; 73 }; 74 74 75 &ehci1 { 75 &ehci1 { 76 status = "okay"; 76 status = "okay"; 77 }; 77 }; 78 78 79 &mmc0 { 79 &mmc0 { 80 pinctrl-0 = <&mmc0_pins>; 80 pinctrl-0 = <&mmc0_pins>; 81 pinctrl-names = "default"; 81 pinctrl-names = "default"; 82 vmmc-supply = <®_3v3>; 82 vmmc-supply = <®_3v3>; 83 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; 83 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; 84 disable-wp; 84 disable-wp; 85 bus-width = <4>; 85 bus-width = <4>; 86 status = "okay"; 86 status = "okay"; 87 }; 87 }; 88 88 89 &mmc1 { 89 &mmc1 { 90 pinctrl-0 = <&mmc1_pins>; 90 pinctrl-0 = <&mmc1_pins>; 91 pinctrl-names = "default"; 91 pinctrl-names = "default"; 92 vmmc-supply = <®_3v3>; 92 vmmc-supply = <®_3v3>; 93 non-removable; 93 non-removable; 94 bus-width = <4>; 94 bus-width = <4>; 95 mmc-pwrseq = <&wifi_pwrseq>; 95 mmc-pwrseq = <&wifi_pwrseq>; 96 status = "okay"; 96 status = "okay"; 97 }; 97 }; 98 98 99 &ohci1 { 99 &ohci1 { 100 status = "okay"; 100 status = "okay"; 101 }; 101 }; 102 102 103 &pio { 103 &pio { 104 vcc-pb-supply = <®_3v3>; 104 vcc-pb-supply = <®_3v3>; 105 vcc-pd-supply = <®_3v3>; 105 vcc-pd-supply = <®_3v3>; 106 vcc-pe-supply = <®_avdd2v8>; 106 vcc-pe-supply = <®_avdd2v8>; 107 vcc-pf-supply = <®_3v3>; 107 vcc-pf-supply = <®_3v3>; 108 vcc-pg-supply = <®_3v3>; 108 vcc-pg-supply = <®_3v3>; 109 }; 109 }; 110 110 111 &uart3 { 111 &uart3 { 112 pinctrl-names = "default"; 112 pinctrl-names = "default"; 113 pinctrl-0 = <&uart3_pb_pins>; 113 pinctrl-0 = <&uart3_pb_pins>; 114 status = "okay"; 114 status = "okay"; 115 }; 115 }; 116 116 117 /* The USB-C socket has its CC pins pulled to 117 /* The USB-C socket has its CC pins pulled to GND, so is hardwired as a UFP. */ 118 &usb_otg { 118 &usb_otg { 119 dr_mode = "peripheral"; 119 dr_mode = "peripheral"; 120 status = "okay"; 120 status = "okay"; 121 }; 121 }; 122 122 123 &usbphy { 123 &usbphy { 124 usb1_vbus-supply = <®_vcc5v>; 124 usb1_vbus-supply = <®_vcc5v>; 125 status = "okay"; 125 status = "okay"; 126 }; 126 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.