File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed
arch/riscv/boot/dts/sophgo Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 138
138
status = "okay";
139
139
};
140
140
141
+ &spifmc0 {
142
+ status = "okay";
143
+
144
+ flash@0 {
145
+ compatible = "jedec,spi-nor";
146
+ reg = <0>;
147
+ spi-max-frequency = <100000000>;
148
+ spi-tx-bus-width = <4>;
149
+ spi-rx-bus-width = <4>;
150
+ };
151
+ };
152
+
153
+ &spifmc1 {
154
+ status = "okay";
155
+
156
+ flash@0 {
157
+ compatible = "jedec,spi-nor";
158
+ reg = <0>;
159
+ spi-max-frequency = <100000000>;
160
+ spi-tx-bus-width = <4>;
161
+ spi-rx-bus-width = <4>;
162
+ };
163
+ };
164
+
141
165
&uart0 {
142
166
pinctrl-0 = <&uart0_cfg>;
143
167
pinctrl-names = "default";
Original file line number Diff line number Diff line change 48
48
interrupt-parent = <&intc>;
49
49
ranges;
50
50
51
+ spifmc0: spi@7000180000 {
52
+ compatible = "sophgo,sg2042-spifmc-nor";
53
+ reg = <0x70 0x00180000 0x0 0x1000000>;
54
+ #address-cells = <1>;
55
+ #size-cells = <0>;
56
+ clocks = <&clkgen GATE_CLK_AHB_SF>;
57
+ interrupt-parent = <&intc>;
58
+ interrupts = <108 IRQ_TYPE_LEVEL_HIGH>;
59
+ resets = <&rstgen RST_SF0>;
60
+ status = "disabled";
61
+ };
62
+
63
+ spifmc1: spi@7002180000 {
64
+ compatible = "sophgo,sg2042-spifmc-nor";
65
+ reg = <0x70 0x02180000 0x0 0x1000000>;
66
+ #address-cells = <1>;
67
+ #size-cells = <0>;
68
+ clocks = <&clkgen GATE_CLK_AHB_SF>;
69
+ interrupt-parent = <&intc>;
70
+ interrupts = <109 IRQ_TYPE_LEVEL_HIGH>;
71
+ resets = <&rstgen RST_SF1>;
72
+ status = "disabled";
73
+ };
74
+
51
75
i2c0: i2c@7030005000 {
52
76
compatible = "snps,designware-i2c";
53
77
reg = <0x70 0x30005000 0x0 0x1000>;
You can’t perform that action at this time.
0 commit comments