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 "loongson1b.dtsi" 11 12/ { 13 compatible = "loongson,ls1b-demo", "loongson,ls1b"; 14 model = "LS1B-DEMO Board"; 15 16 memory@0 { 17 device_type = "memory"; 18 reg = <0x0 0x10000000>; 19 }; 20 21 aliases { 22 ethernet0 = &gmac0; 23 ethernet1 = &gmac1; 24 gpio0 = &gpio0; 25 gpio1 = &gpio1; 26 serial0 = &uart0; 27 }; 28 29 chosen { 30 stdout-path = "serial0:38400n8"; 31 }; 32 33 codec: audio-codec { 34 compatible = "realtek,alc203"; 35 #sound-dai-cells = <0>; 36 }; 37 38 sound { 39 compatible = "simple-audio-card"; 40 simple-audio-card,name = "ls1b-alc203"; 41 simple-audio-card,format = "ac97"; 42 simple-audio-card,widgets = 43 "Speaker", "Line Out Jack", 44 "Headphone", "Headphone Jack", 45 "Microphone", "Microphone Jack"; 46 simple-audio-card,routing = 47 "Line Out Jack", "TX", 48 "Headphone Jack", "TX", 49 "RX", "Microphone Jack"; 50 51 simple-audio-card,cpu { 52 sound-dai = <&ac97>; 53 }; 54 55 simple-audio-card,codec { 56 sound-dai = <&codec>; 57 }; 58 }; 59}; 60 61&xtal { 62 clock-frequency = <33000000>; 63}; 64 65&gmac0 { 66 phy-handle = <&phy0>; 67 phy-mode = "rgmii-id"; 68 status = "okay"; 69 70 mdio { 71 compatible = "snps,dwmac-mdio"; 72 #address-cells = <1>; 73 #size-cells = <0>; 74 75 phy0: ethernet-phy@0 { 76 reg = <0x0>; 77 }; 78 }; 79}; 80 81&nand { 82 status = "okay"; 83 84 nand@0 { 85 partitions { 86 compatible = "fixed-partitions"; 87 #address-cells = <1>; 88 #size-cells = <1>; 89 90 partition@0 { 91 label = "kernel"; 92 reg = <0x0 0x1000000>; 93 }; 94 95 partition@1000000 { 96 label = "rootfs"; 97 reg = <0x1000000 0x7000000>; 98 }; 99 }; 100 }; 101}; 102 103&ac97 { 104 status = "okay"; 105}; 106 107&ehci { 108 status = "okay"; 109}; 110 111&ohci { 112 status = "okay"; 113}; 114 115&rtc { 116 status = "okay"; 117}; 118 119&uart0 { 120 status = "okay"; 121}; 122 123&watchdog { 124 status = "okay"; 125}; 126