Lines Matching +full:loongson +full:- +full:1 +full:b
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2023 Loongson Technology Corporation Limited
6 /dts-v1/;
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/clock/loongson,ls2k-clk.h>
10 #include <dt-bindings/gpio/gpio.h>
13 #address-cells = <2>;
14 #size-cells = <2>;
17 #address-cells = <1>;
18 #size-cells = <0>;
21 compatible = "loongson,la264";
27 cpu1: cpu@1 {
28 compatible = "loongson,la264";
35 ref_100m: clock-ref-100m {
36 compatible = "fixed-clock";
37 #clock-cells = <0>;
38 clock-frequency = <100000000>;
39 clock-output-names = "ref_100m";
42 cpuintc: interrupt-controller {
43 compatible = "loongson,cpu-interrupt-controller";
44 #interrupt-cells = <1>;
45 interrupt-controller;
49 i2c-gpio-0 {
50 compatible = "i2c-gpio";
51 scl-gpios = <&gpio0 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
52 sda-gpios = <&gpio0 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
53 i2c-gpio,delay-us = <5>; /* ~100 kHz */
54 #address-cells = <1>;
55 #size-cells = <0>;
60 i2c-gpio-1 {
61 compatible = "i2c-gpio";
62 scl-gpios = <&gpio0 33 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
63 sda-gpios = <&gpio0 32 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
64 i2c-gpio,delay-us = <5>; /* ~100 kHz */
65 #address-cells = <1>;
66 #size-cells = <0>;
70 thermal-zones {
71 cpu-thermal {
72 polling-delay-passive = <1000>;
73 polling-delay = <5000>;
74 thermal-sensors = <&tsensor 0>;
77 cpu_alert: cpu-alert {
83 cpu_crit: cpu-crit {
93 compatible = "simple-bus";
99 #address-cells = <2>;
100 #size-cells = <2>;
101 dma-coherent;
105 #size-cells = <1>;
106 #address-cells = <2>;
107 ranges = <1 0x0 0x0 0x18000000 0x4000>;
110 liointc0: interrupt-controller@1fe01400 {
111 compatible = "loongson,liointc-2.0";
115 reg-names = "main", "isr0", "isr1";
116 interrupt-controller;
117 #interrupt-cells = <2>;
118 interrupt-parent = <&cpuintc>;
120 interrupt-names = "int0";
121 loongson,parent_int_map = <0xffffffff>, /* int0 */
127 liointc1: interrupt-controller@1fe01440 {
128 compatible = "loongson,liointc-2.0";
132 reg-names = "main", "isr0", "isr1";
133 interrupt-controller;
134 #interrupt-cells = <2>;
135 interrupt-parent = <&cpuintc>;
137 interrupt-names = "int1";
138 loongson,parent_int_map = <0x00000000>, /* int0 */
144 chipid@1fe00000 {
145 compatible = "loongson,ls2k-chipid";
147 little-endian;
150 pctrl: pinctrl@1fe00420 {
151 compatible = "loongson,ls2k-pinctrl";
156 clk: clock-controller@1fe00480 {
157 compatible = "loongson,ls2k-clk";
159 #clock-cells = <1>;
161 clock-names = "ref_100m";
164 gpio0: gpio@1fe00500 {
165 compatible = "loongson,ls2k-gpio";
168 #gpio-cells = <2>;
169 gpio-controller;
170 gpio-ranges = <&pctrl 0x0 0x0 15>,
174 interrupt-parent = <&liointc1>;
241 tsensor: thermal-sensor@1fe01500 {
242 compatible = "loongson,ls2k1000-thermal";
244 interrupt-parent = <&liointc0>;
246 #thermal-sensor-cells = <1>;
249 dma-controller@1fe00c00 {
250 compatible = "loongson,ls2k1000-apbdma";
252 interrupt-parent = <&liointc1>;
255 #dma-cells = <1>;
259 dma-controller@1fe00c10 {
260 compatible = "loongson,ls2k1000-apbdma";
262 interrupt-parent = <&liointc1>;
265 #dma-cells = <1>;
269 dma-controller@1fe00c20 {
270 compatible = "loongson,ls2k1000-apbdma";
272 interrupt-parent = <&liointc1>;
275 #dma-cells = <1>;
279 dma-controller@1fe00c30 {
280 compatible = "loongson,ls2k1000-apbdma";
282 interrupt-parent = <&liointc1>;
285 #dma-cells = <1>;
289 dma-controller@1fe00c40 {
290 compatible = "loongson,ls2k1000-apbdma";
292 interrupt-parent = <&liointc1>;
295 #dma-cells = <1>;
299 uart0: serial@1fe20000 {
302 clock-frequency = <125000000>;
303 interrupt-parent = <&liointc0>;
305 no-loopback-test;
309 i2c2: i2c@1fe21000 {
310 compatible = "loongson,ls2k-i2c";
312 interrupt-parent = <&liointc0>;
317 i2c3: i2c@1fe21800 {
318 compatible = "loongson,ls2k-i2c";
320 interrupt-parent = <&liointc0>;
325 pmc: power-management@1fe27000 {
326 compatible = "loongson,ls2k1000-pmc", "loongson,ls2k0500-pmc", "syscon";
328 interrupt-parent = <&liointc1>;
330 loongson,suspend-address = <0x0 0x1c000500>;
332 syscon-reboot {
333 compatible = "syscon-reboot";
338 syscon-poweroff {
339 compatible = "syscon-poweroff";
347 rtc0: rtc@1fe27800 {
348 compatible = "loongson,ls2k1000-rtc";
350 interrupt-parent = <&liointc1>;
355 spi0: spi@1fff0220 {
356 compatible = "loongson,ls2k1000-spi";
362 pcie@1a000000 {
363 compatible = "loongson,ls2k-pci";
366 #address-cells = <3>;
367 #size-cells = <2>;
369 bus-range = <0x0 0xff>;
375 interrupt-parent = <&liointc0>;
378 interrupt-names = "macirq", "eth_lpi";
382 gmac1: ethernet@3,1 {
384 interrupt-parent = <&liointc0>;
387 interrupt-names = "macirq", "eth_lpi";
391 ehci0: usb@4,1 {
393 interrupt-parent = <&liointc1>;
400 interrupt-parent = <&liointc1>;
407 interrupt-parent = <&liointc0>;
414 interrupt-parent = <&liointc0>;
421 interrupt-parent = <&liointc0>;
428 #address-cells = <3>;
429 #size-cells = <2>;
431 #interrupt-cells = <1>;
432 interrupt-map-mask = <0x0 0x0 0x0 0x0>;
433 interrupt-map = <0x0 0x0 0x0 0x0 &liointc1 0x0 IRQ_TYPE_LEVEL_HIGH>;
439 #address-cells = <3>;
440 #size-cells = <2>;
442 interrupt-parent = <&liointc1>;
443 #interrupt-cells = <1>;
444 interrupt-map-mask = <0x0 0x0 0x0 0x0>;
445 interrupt-map = <0x0 0x0 0x0 0x0 &liointc1 1 IRQ_TYPE_LEVEL_HIGH>;
449 pcie@b,0 {
451 #address-cells = <3>;
452 #size-cells = <2>;
454 interrupt-parent = <&liointc1>;
455 #interrupt-cells = <1>;
456 interrupt-map-mask = <0x0 0x0 0x0 0x0>;
457 interrupt-map = <0x0 0x0 0x0 0x0 &liointc1 2 IRQ_TYPE_LEVEL_HIGH>;
463 #address-cells = <3>;
464 #size-cells = <2>;
466 interrupt-parent = <&liointc1>;
467 #interrupt-cells = <1>;
468 interrupt-map-mask = <0x0 0x0 0x0 0x0>;
469 interrupt-map = <0x0 0x0 0x0 0x0 &liointc1 3 IRQ_TYPE_LEVEL_HIGH>;
475 #address-cells = <3>;
476 #size-cells = <2>;
478 interrupt-parent = <&liointc1>;
479 #interrupt-cells = <1>;
480 interrupt-map-mask = <0x0 0x0 0x0 0x0>;
481 interrupt-map = <0x0 0x0 0x0 0x0 &liointc1 4 IRQ_TYPE_LEVEL_HIGH>;
487 #address-cells = <3>;
488 #size-cells = <2>;
490 interrupt-parent = <&liointc1>;
491 #interrupt-cells = <1>;
492 interrupt-map-mask = <0x0 0x0 0x0 0x0>;
493 interrupt-map = <0x0 0x0 0x0 0x0 &liointc1 5 IRQ_TYPE_LEVEL_HIGH>;