blob: e6c6c2f00c42ec4dc738d46ae2f0d5bb921efa16 (
plain)
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
|
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2023-2025 Keguang Zhang <keguang.zhang@gmail.com>
*/
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include "loongson1c.dtsi"
/ {
compatible = "loongmasses,smartloong-1c", "loongson,ls1c";
model = "Smartloong-1C Board";
memory@0 {
device_type = "memory";
reg = <0x0 0x4000000>;
};
aliases {
gpio0 = &gpio0;
gpio1 = &gpio1;
gpio2 = &gpio2;
gpio3 = &gpio3;
serial0 = &uart2;
};
chosen {
stdout-path = "serial0:115200n8";
};
leds {
compatible = "gpio-leds";
led0 {
label = "led0";
gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat";
};
led1 {
label = "led1";
gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
linux,default-trigger = "nand-disk";
};
};
};
&xtal {
clock-frequency = <24000000>;
};
&emac {
phy-handle = <&phy0>;
phy-mode = "rmii";
status = "okay";
mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>;
#size-cells = <0>;
phy0: ethernet-phy@13 {
reg = <0x13>;
};
};
};
&nand {
status = "okay";
nand@0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "kernel";
reg = <0x0 0x1000000>;
};
partition@1000000 {
label = "rootfs";
reg = <0x1000000 0x7000000>;
};
};
};
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};
&rtc {
status = "okay";
};
&uart2 {
status = "okay";
};
&watchdog {
status = "okay";
};
|