mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
314 lines
6.1 KiB
Plaintext
Executable File
314 lines
6.1 KiB
Plaintext
Executable File
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2019 Akash Gajjar <akash@openedev.com>
|
|
* Copyright (c) 2019 Jagan Teki <jagan@openedev.com>
|
|
* Copyright (C) 2024 TheSnowfield
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include "rk3308.dtsi"
|
|
|
|
/ {
|
|
model = "Sakura Pi RK3308B";
|
|
compatible = "rockchip,rk3308";
|
|
|
|
chosen {
|
|
stdout-path = "serial2:1500000n8";
|
|
};
|
|
|
|
sdio_pwrseq: sdio-pwrseq {
|
|
compatible = "mmc-pwrseq-simple";
|
|
pinctrl-0 = <&wifi_enable_h>;
|
|
pinctrl-names = "default";
|
|
/*
|
|
* On the module itself this is one of these (depending
|
|
* on the actual card populated):
|
|
* - SDIO_RESET_L_WL_REG_ON
|
|
* - PDN (power down when low)
|
|
*/
|
|
reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
vcc5v0_sys: vcc5v0-sys {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc5v0_sys";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
};
|
|
|
|
vdd_core: vdd-core {
|
|
compatible = "pwm-regulator";
|
|
pwms = <&pwm0 0 5000 1>;
|
|
regulator-name = "vdd_core";
|
|
regulator-min-microvolt = <827000>;
|
|
regulator-max-microvolt = <1340000>;
|
|
regulator-init-microvolt = <1015000>;
|
|
regulator-settling-time-up-us = <250>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
pwm-supply = <&vcc5v0_sys>;
|
|
};
|
|
|
|
vdd_log: vdd-log {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vdd_log";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1050000>;
|
|
regulator-max-microvolt = <1050000>;
|
|
vin-supply = <&vcc5v0_sys>;
|
|
};
|
|
|
|
vcc_ddr: vcc-ddr {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_ddr";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1500000>;
|
|
regulator-max-microvolt = <1500000>;
|
|
vin-supply = <&vcc5v0_sys>;
|
|
};
|
|
|
|
vcc_1v8: vcc-1v8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_1v8";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
vin-supply = <&vcc_io>;
|
|
};
|
|
|
|
vcc_io: vcc-io {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_io";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&vcc5v0_sys>;
|
|
};
|
|
|
|
vcc_phy: vcc-phy-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_phy";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
};
|
|
|
|
vcc5v0_otg: vcc5v0-otg {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc5v0_otg";
|
|
regulator-always-on;
|
|
gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&otg_vbus_drv>;
|
|
vin-supply = <&vcc5v0_sys>;
|
|
};
|
|
|
|
backlight: backlight {
|
|
status = "okay";
|
|
compatible = "pwm-backlight";
|
|
pwms = <&pwm1 0 25000 0>;
|
|
brightness-levels = <
|
|
0 1 2 3 4 5 6 7
|
|
8 9 10 11 12 13 14 15
|
|
16 17 18 19 20 21 22 23
|
|
24 25 26 27 28 29 30 31
|
|
32 33 34 35 36 37 38 39
|
|
40 41 42 43 44 45 46 47
|
|
48 49 50 51 52 53 54 55
|
|
56 57 58 59 60 61 62 63
|
|
64 65 66 67 68 69 70 71
|
|
72 73 74 75 76 77 78 79
|
|
80 81 82 83 84 85 86 87
|
|
88 89 90 91 92 93 94 95
|
|
96 97 98 99 100 101 102 103
|
|
104 105 106 107 108 109 110 111
|
|
112 113 114 115 116 117 118 119
|
|
120 121 122 123 124 125 126 127
|
|
128 129 130 131 132 133 134 135
|
|
136 137 138 139 140 141 142 143
|
|
144 145 146 147 148 149 150 151
|
|
152 153 154 155 156 157 158 159
|
|
160 161 162 163 164 165 166 167
|
|
168 169 170 171 172 173 174 175
|
|
176 177 178 179 180 181 182 183
|
|
184 185 186 187 188 189 190 191
|
|
192 193 194 195 196 197 198 199
|
|
200 201 202 203 204 205 206 207
|
|
208 209 210 211 212 213 214 215
|
|
216 217 218 219 220 221 222 223
|
|
224 225 226 227 228 229 230 231
|
|
232 233 234 235 236 237 238 239
|
|
240 241 242 243 244 245 246 247
|
|
248 249 250 251 252 253 254 255>;
|
|
default-brightness-level = <200>;
|
|
};
|
|
|
|
display: panel {
|
|
compatible = "olimex,lcd-olinuxino-43-ts";
|
|
backlight = <&backlight>;
|
|
enable-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
|
|
enable-delay-ms = <20>;
|
|
status = "okay";
|
|
|
|
panel_in: port {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
panel_in_rgb: endpoint {
|
|
reg = <0>;
|
|
remote-endpoint = <&vop_out_rgb>;
|
|
};
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
&cpu0 {
|
|
cpu-supply = <&vdd_core>;
|
|
};
|
|
|
|
&emmc {
|
|
bus-width = <8>;
|
|
cap-mmc-highspeed;
|
|
non-removable;
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&sdmmc {
|
|
cap-mmc-highspeed;
|
|
cap-sd-highspeed;
|
|
disable-wp;
|
|
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_det &sdmmc_bus4>;
|
|
card-detect-delay = <800>;
|
|
status = "okay";
|
|
};
|
|
|
|
&sdio {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
cap-sd-highspeed;
|
|
cap-sdio-irq;
|
|
keep-power-in-suspend;
|
|
mmc-pwrseq = <&sdio_pwrseq>;
|
|
non-removable;
|
|
no-mmc;
|
|
status = "okay";
|
|
|
|
brcmf: wifi@1 {
|
|
compatible = "brcm,bcm43455-fmac";
|
|
reg = <1>;
|
|
interrupt-parent = <&gpio0>;
|
|
interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
|
|
interrupt-names = "host-wake";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&wifi_host_wake>;
|
|
};
|
|
};
|
|
|
|
/* SPI0 for external gpio pin */
|
|
&spi0 {
|
|
status = "okay";
|
|
max-freq = <10000000>;
|
|
};
|
|
|
|
/* SPI1 for ws2812*/
|
|
&spi1 {
|
|
status = "okay";
|
|
max-freq = <10000000>;
|
|
};
|
|
|
|
&pinctrl {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&rtc_32k>;
|
|
|
|
usb {
|
|
otg_vbus_drv: otg-vbus-drv {
|
|
rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
sdio-pwrseq {
|
|
wifi_enable_h: wifi-enable-h {
|
|
rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
wifi {
|
|
wifi_host_wake: wifi-host-wake {
|
|
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pwm0 {
|
|
status = "okay";
|
|
pinctrl-0 = <&pwm0_pin_pull_down>;
|
|
};
|
|
|
|
&saradc {
|
|
vref-supply = <&vcc_1v8>;
|
|
status = "okay";
|
|
};
|
|
|
|
&vop {
|
|
status = "okay";
|
|
|
|
vop_out: port {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
vop_out_rgb: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&panel_in_rgb>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pwm1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&display_subsystem {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart2m0_xfer>;
|
|
status = "okay";
|
|
};
|
|
|
|
&usb20_otg {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy_otg {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy_host {
|
|
state = "okay";
|
|
};
|
|
|
|
&usb_host_ehci {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_host_ohci{
|
|
status = "okay";
|
|
};
|