Debian Codegraph @

scripts/dtc/include-prefixes/arm64/allwinner/sun50i-h616-bigtreetech-cb1.dtsi

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (C) 2023 Martin Botka <[email protected]>.
4 */
5
6 /dts-v1/;
7
8 #include "sun50i-h616.dtsi"
9 #include "sun50i-h616-cpu-opp.dtsi"
10
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
13 #include <dt-bindings/leds/common.h>
14
15 / {
16 aliases {
17 ethernet0 = &rtl8189ftv;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led-0 {
24 function = LED_FUNCTION_STATUS;
25 color = <LED_COLOR_ID_GREEN>;
26 gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
27 };
28 };
29
30 reg_vcc5v: regulator-vcc5v {
31 /* board wide 5V supply from carrier boards */
32 compatible = "regulator-fixed";
33 regulator-name = "vcc-5v";
34 regulator-min-microvolt = <5000000>;
35 regulator-max-microvolt = <5000000>;
36 regulator-always-on;
37 };
38
39 reg_vcc33_wifi: vcc33-wifi {
40 compatible = "regulator-fixed";
41 regulator-name = "vcc33-wifi";
42 regulator-min-microvolt = <3300000>;
43 regulator-max-microvolt = <3300000>;
44 regulator-always-on;
45 vin-supply = <&reg_vcc5v>;
46 };
47
48 reg_vcc_wifi_io: vcc-wifi-io {
49 compatible = "regulator-fixed";
50 regulator-name = "vcc-wifi-io";
51 regulator-min-microvolt = <1800000>;
52 regulator-max-microvolt = <1800000>;
53 regulator-always-on;
54 vin-supply = <&reg_vcc33_wifi>;
55 };
56
57 wifi_pwrseq: wifi-pwrseq {
58 compatible = "mmc-pwrseq-simple";
59 clocks = <&rtc 1>;
60 clock-names = "ext_clock";
61 reset-gpios = <&pio 6 18 GPIO_ACTIVE_LOW>; /* PG18 */
62 post-power-on-delay-ms = <200>;
63 };
64 };
65
66 &cpu0 {
67 cpu-supply = <&reg_dcdc2>;
68 };
69
70 &gpu {
71 mali-supply = <&reg_dcdc1>;
72 status = "okay";
73 };
74
75 &mmc0 {
76 vmmc-supply = <&reg_dldo1>;
77 /* Card detection pin is not connected */
78 broken-cd;
79 bus-width = <4>;
80 status = "okay";
81 };
82
83 &mmc1 {
84 vmmc-supply = <&reg_vcc33_wifi>;
85 vqmmc-supply = <&reg_vcc_wifi_io>;
86 mmc-pwrseq = <&wifi_pwrseq>;
87 bus-width = <4>;
88 non-removable;
89 mmc-ddr-1_8v;
90 status = "okay";
91
92 rtl8189ftv: wifi@1 {
93 reg = <1>;
94 };
95 };
96
97 &r_i2c {
98 status = "okay";
99
100 axp313a: pmic@36 {
101 compatible = "x-powers,axp313a";
102 reg = <0x36>;
103 interrupt-controller;
104 #interrupt-cells = <1>;
105
106 regulators {
107 reg_dcdc1: dcdc1 {
108 regulator-name = "vdd-gpu-sys";
109 regulator-min-microvolt = <810000>;
110 regulator-max-microvolt = <990000>;
111 regulator-always-on;
112 };
113
114 reg_dcdc2: dcdc2 {
115 regulator-name = "vdd-cpu";
116 regulator-min-microvolt = <810000>;
117 regulator-max-microvolt = <1100000>;
118 regulator-ramp-delay = <200>;
119 regulator-always-on;
120 };
121
122 reg_dcdc3: dcdc3 {
123 regulator-name = "vcc-dram";
124 regulator-min-microvolt = <1350000>;
125 regulator-max-microvolt = <1500000>;
126 regulator-always-on;
127 };
128
129 reg_aldo1: aldo1 {
130 regulator-name = "vcc-1v8-pll";
131 regulator-min-microvolt = <1800000>;
132 regulator-max-microvolt = <1800000>;
133 regulator-always-on;
134 };
135
136 reg_dldo1: dldo1 {
137 regulator-name = "vcc-3v3-io";
138 regulator-min-microvolt = <3300000>;
139 regulator-max-microvolt = <3300000>;
140 regulator-always-on;
141 };
142 };
143 };
144 };
145
146 &usbphy {
147 status = "okay";
148 };