hc
2025-02-14 bbb9540dc49f70f6b703d1c8d1b85fa5f602d86e
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
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2022 Rockchip Electronics Co., Ltd.
 */
 
/dts-v1/;
 
#include "rv1106.dtsi"
#include "rv1106-evb.dtsi"
#include "rv1106-ipc.dtsi"
 
/ {
   model = "Rockchip RV1106G IPC38 V10 SPI NAND Board";
   compatible = "rockchip,rv1106g-38x38-ipc-v10-spi-nand", "rockchip,rv1106";
 
   vcc3v3_sd: vcc3v3-sd {
       compatible = "regulator-fixed";
       gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_LOW>;
       regulator-name = "vcc3v3_sd";
       regulator-min-microvolt = <3300000>;
       regulator-max-microvolt = <3300000>;
       pinctrl-names = "default";
       pinctrl-0 = <&sdmmc_pwren>;
   };
 
   vcc3v3_wifi: vcc3v3-wifi {
       compatible = "regulator-fixed";
       regulator-name = "vcc3v3_wifi";
       regulator-boot-on;
       regulator-always-on;
       regulator-min-microvolt = <3300000>;
       regulator-max-microvolt = <3300000>;
       enable-active-low;
       gpio = <&gpio0 RK_PA3 GPIO_ACTIVE_LOW>;
       pinctrl-names = "default";
       pinctrl-0 = <&wifi_pwren>;
   };
};
 
&pinctrl {
   sdmmc {
       /omit-if-no-ref/
       sdmmc_pwren: sdmmc-pwren {
           rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
       };
   };
 
   wcc3v3_wifi {
       /omit-if-no-ref/
       wifi_pwren: wifi-pwren {
           rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_down>;
       };
   };
};
 
&sdmmc {
   max-frequency = <50000000>;
   no-sdio;
   no-mmc;
   bus-width = <4>;
   cap-mmc-highspeed;
   cap-sd-highspeed;
   disable-wp;
   pinctrl-names = "normal", "idle";
   pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_det &sdmmc0_bus4>;
   pinctrl-1 = <&sdmmc0_idle_pins &sdmmc0_det>;
   vmmc-supply = <&vcc3v3_sd>;
   status = "okay";
};
 
&sfc {
   status = "okay";
 
   flash@0 {
       compatible = "spi-nand";
       reg = <0>;
       spi-max-frequency = <75000000>;
       spi-rx-bus-width = <4>;
       spi-tx-bus-width = <1>;
   };
};