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

TOMOYO Linux Cross Reference
Linux/arch/arm/boot/dts/allwinner/sun7i-a20-haoyu-marsboard.dts

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 /*
  3  * Copyright 2021 Conley Lee
  4  * Conley Lee <conleylee@foxmail.com>
  5  */
  6 
  7 /dts-v1/;
  8 #include "sun7i-a20.dtsi"
  9 #include "sunxi-common-regulators.dtsi"
 10 
 11 #include <dt-bindings/gpio/gpio.h>
 12 #include <dt-bindings/interrupt-controller/irq.h>
 13 
 14 / {
 15         model = "HAOYU Electronics Marsboard A20";
 16         compatible = "haoyu,a20-marsboard", "allwinner,sun7i-a20";
 17 
 18         aliases {
 19                 serial0 = &uart0;
 20         };
 21 
 22         chosen {
 23                 stdout-path = "serial0:115200n8";
 24         };
 25 
 26         hdmi-connector {
 27                 compatible = "hdmi-connector";
 28                 type = "a";
 29 
 30                 port {
 31                         hdmi_con_in: endpoint {
 32                                 remote-endpoint = <&hdmi_out_con>;
 33                         };
 34                 };
 35         };
 36 };
 37 
 38 &ahci {
 39         target-supply = <&reg_ahci_5v>;
 40         status = "okay";
 41 };
 42 
 43 &codec {
 44         status = "okay";
 45 };
 46 
 47 &cpu0 {
 48         cpu-supply = <&reg_dcdc2>;
 49 };
 50 
 51 &de {
 52         status = "okay";
 53 };
 54 
 55 &ehci0 {
 56         status = "okay";
 57 };
 58 
 59 &ehci1 {
 60         status = "okay";
 61 };
 62 
 63 &gmac {
 64         pinctrl-names = "default";
 65         pinctrl-0 = <&gmac_mii_pins>, <&gmac_txerr>;
 66         phy-handle = <&phy0>;
 67         phy-mode = "mii";
 68         status = "okay";
 69 };
 70 
 71 &hdmi {
 72         status = "okay";
 73 };
 74 
 75 &hdmi_out {
 76         hdmi_out_con: endpoint {
 77                 remote-endpoint = <&hdmi_con_in>;
 78         };
 79 };
 80 
 81 &i2c0 {
 82         status = "okay";
 83 
 84         axp209: pmic@34 {
 85                 reg = <0x34>;
 86                 interrupt-parent = <&nmi_intc>;
 87                 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
 88         };
 89 };
 90 
 91 &mmc0 {
 92         vmmc-supply = <&reg_vcc3v3>;
 93         bus-width = <4>;
 94         cd-gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */
 95         status = "okay";
 96 };
 97 
 98 &gmac_mdio {
 99         phy0: ethernet-phy@0 {
100                 reg = <0>;
101         };
102 };
103 
104 &ohci0 {
105         status = "okay";
106 };
107 
108 &ohci1 {
109         status = "okay";
110 };
111 
112 &otg_sram {
113         status = "okay";
114 };
115 
116 &pio {
117         gmac_txerr: gmac-txerr-pin {
118                 pins = "PA17";
119                 function = "gmac";
120         };
121 };
122 
123 &reg_ahci_5v {
124         status = "okay";
125 };
126 
127 #include "axp209.dtsi"
128 
129 &ac_power_supply {
130         status = "okay";
131 };
132 
133 &reg_dcdc2 {
134         regulator-always-on;
135         regulator-min-microvolt = <1000000>;
136         regulator-max-microvolt = <1450000>;
137         regulator-name = "vdd-cpu";
138 };
139 
140 &reg_dcdc3 {
141         regulator-always-on;
142         regulator-min-microvolt = <1000000>;
143         regulator-max-microvolt = <1400000>;
144         regulator-name = "vdd-int-dll";
145 };
146 
147 &reg_ldo1 {
148         regulator-name = "vdd-rtc";
149 };
150 
151 &reg_ldo2 {
152         regulator-always-on;
153         regulator-min-microvolt = <3000000>;
154         regulator-max-microvolt = <3000000>;
155         regulator-name = "avcc";
156 };
157 
158 &reg_usb1_vbus {
159         status = "okay";
160 };
161 
162 &reg_usb2_vbus {
163         status = "okay";
164 };
165 
166 &uart0 {
167         pinctrl-names = "default";
168         pinctrl-0 = <&uart0_pb_pins>;
169         status = "okay";
170 };
171 
172 &usb_otg {
173         dr_mode = "otg";
174         status = "okay";
175 };
176 
177 &usbphy {
178         usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
179         usb1_vbus-supply = <&reg_usb1_vbus>;
180         usb2_vbus-supply = <&reg_usb2_vbus>;
181         status = "okay";
182 };

~ [ 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