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 = "loongmasses,smartloong-1c", "loongson,ls1c"; 14 model = "Smartloong-1C Board"; 15 16 memory@0 { 17 device_type = "memory"; 18 reg = <0x0 0x4000000>; 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 0x7000000>; 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}; 111