~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/boot/dts/allwinner/sunxi-d1s-t113-mangopi-mq-r.dtsi

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php