File tree Expand file tree Collapse file tree 2 files changed +111
-0
lines changed
arch/mips/boot/dts/loongson Expand file tree Collapse file tree 2 files changed +111
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ dtb-$(CONFIG_MACH_LOONGSON64) += loongson64c_8core_rs780e.dtb
66dtb-$(CONFIG_MACH_LOONGSON64) += loongson64g_4core_ls7a.dtb
77dtb-$(CONFIG_MACH_LOONGSON64) += loongson64v_4core_virtio.dtb
88
9+ dtb-$(CONFIG_MACH_LOONGSON32) += cq-t300b.dtb
910dtb-$(CONFIG_MACH_LOONGSON32) += ls1b-demo.dtb
1011dtb-$(CONFIG_MACH_LOONGSON32) += lsgz_1b_dev.dtb
1112dtb-$(CONFIG_MACH_LOONGSON32) += smartloong-1c.dtb
Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: GPL-2.0
2+ /*
3+ * Copyright (c) 2023-2025 Keguang Zhang <keguang.zhang@gmail.com>
4+ */
5+
6+ /dts-v1/;
7+
8+ #include <dt-bindings/gpio/gpio.h>
9+
10+ #include "loongson1c.dtsi"
11+
12+ / {
13+ compatible = "loongson,cq-t300b", "loongson,ls1c";
14+ model = "CQ-T300B Board";
15+
16+ memory@0 {
17+ device_type = "memory";
18+ reg = <0x0 0x8000000>;
19+ };
20+
21+ aliases {
22+ gpio0 = &gpio0;
23+ gpio1 = &gpio1;
24+ gpio2 = &gpio2;
25+ gpio3 = &gpio3;
26+ serial0 = &uart2;
27+ };
28+
29+ chosen {
30+ stdout-path = "serial0:115200n8";
31+ };
32+
33+ leds {
34+ compatible = "gpio-leds";
35+
36+ led0 {
37+ label = "led0";
38+ gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
39+ linux,default-trigger = "heartbeat";
40+ };
41+
42+ led1 {
43+ label = "led1";
44+ gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
45+ linux,default-trigger = "nand-disk";
46+ };
47+ };
48+ };
49+
50+ &xtal {
51+ clock-frequency = <24000000>;
52+ };
53+
54+ &emac {
55+ phy-handle = <&phy0>;
56+ phy-mode = "rmii";
57+ status = "okay";
58+
59+ mdio {
60+ compatible = "snps,dwmac-mdio";
61+ #address-cells = <1>;
62+ #size-cells = <0>;
63+
64+ phy0: ethernet-phy@13 {
65+ reg = <0x13>;
66+ };
67+ };
68+ };
69+
70+ &nand {
71+ status = "okay";
72+
73+ nand@0 {
74+ partitions {
75+ compatible = "fixed-partitions";
76+ #address-cells = <1>;
77+ #size-cells = <1>;
78+
79+ partition@0 {
80+ label = "kernel";
81+ reg = <0x0 0x1000000>;
82+ };
83+
84+ partition@1000000 {
85+ label = "rootfs";
86+ reg = <0x1000000 0x3f000000>;
87+ };
88+ };
89+ };
90+ };
91+
92+ &ehci {
93+ status = "okay";
94+ };
95+
96+ &ohci {
97+ status = "okay";
98+ };
99+
100+ &rtc {
101+ status = "okay";
102+ };
103+
104+ &uart2 {
105+ status = "okay";
106+ };
107+
108+ &watchdog {
109+ status = "okay";
110+ };
You can’t perform that action at this time.
0 commit comments