|
6 | 6 | /dts-v1/;
|
7 | 7 |
|
8 | 8 | #include <dt-bindings/interrupt-controller/irq.h>
|
| 9 | +#include <dt-bindings/clock/loongson,ls2k-clk.h> |
9 | 10 |
|
10 | 11 | / {
|
11 | 12 | #address-cells = <2>;
|
|
19 | 20 | compatible = "loongson,la264";
|
20 | 21 | device_type = "cpu";
|
21 | 22 | reg = <0x0>;
|
22 |
| - clocks = <&cpu_clk>; |
| 23 | + clocks = <&clk LOONGSON2_NODE_CLK>; |
23 | 24 | };
|
24 | 25 | };
|
25 | 26 |
|
26 |
| - cpu_clk: cpu-clk { |
| 27 | + ref_100m: clock-ref-100m { |
27 | 28 | compatible = "fixed-clock";
|
28 | 29 | #clock-cells = <0>;
|
29 |
| - clock-frequency = <500000000>; |
| 30 | + clock-frequency = <100000000>; |
| 31 | + clock-output-names = "ref_100m"; |
30 | 32 | };
|
31 | 33 |
|
32 | 34 | cpuintc: interrupt-controller {
|
|
35 | 37 | interrupt-controller;
|
36 | 38 | };
|
37 | 39 |
|
| 40 | + thermal-zones { |
| 41 | + cpu-thermal { |
| 42 | + polling-delay-passive = <1000>; |
| 43 | + polling-delay = <5000>; |
| 44 | + thermal-sensors = <&tsensor 0>; |
| 45 | + |
| 46 | + trips { |
| 47 | + cpu-alert { |
| 48 | + temperature = <33000>; |
| 49 | + hysteresis = <2000>; |
| 50 | + type = "active"; |
| 51 | + }; |
| 52 | + |
| 53 | + cpu-crit { |
| 54 | + temperature = <85000>; |
| 55 | + hysteresis = <5000>; |
| 56 | + type = "critical"; |
| 57 | + }; |
| 58 | + }; |
| 59 | + }; |
| 60 | + }; |
| 61 | + |
38 | 62 | bus@10000000 {
|
39 | 63 | compatible = "simple-bus";
|
40 | 64 | ranges = <0x0 0x10000000 0x0 0x10000000 0x0 0x10000000>,
|
|
52 | 76 | ranges = <1 0x0 0x0 0x16400000 0x4000>;
|
53 | 77 | };
|
54 | 78 |
|
| 79 | + clk: clock-controller@1fe10400 { |
| 80 | + compatible = "loongson,ls2k0500-clk"; |
| 81 | + reg = <0x0 0x1fe10400 0x0 0x2c>; |
| 82 | + #clock-cells = <1>; |
| 83 | + clocks = <&ref_100m>; |
| 84 | + clock-names = "ref_100m"; |
| 85 | + }; |
| 86 | + |
| 87 | + dma-controller@1fe10c00 { |
| 88 | + compatible = "loongson,ls2k0500-apbdma", "loongson,ls2k1000-apbdma"; |
| 89 | + reg = <0 0x1fe10c00 0 0x8>; |
| 90 | + interrupt-parent = <&eiointc>; |
| 91 | + interrupts = <67>; |
| 92 | + clocks = <&clk LOONGSON2_APB_CLK>; |
| 93 | + #dma-cells = <1>; |
| 94 | + status = "disabled"; |
| 95 | + }; |
| 96 | + |
| 97 | + dma-controller@1fe10c10 { |
| 98 | + compatible = "loongson,ls2k0500-apbdma", "loongson,ls2k1000-apbdma"; |
| 99 | + reg = <0 0x1fe10c10 0 0x8>; |
| 100 | + interrupt-parent = <&eiointc>; |
| 101 | + interrupts = <68>; |
| 102 | + clocks = <&clk LOONGSON2_APB_CLK>; |
| 103 | + #dma-cells = <1>; |
| 104 | + status = "disabled"; |
| 105 | + }; |
| 106 | + |
| 107 | + dma-controller@1fe10c20 { |
| 108 | + compatible = "loongson,ls2k0500-apbdma", "loongson,ls2k1000-apbdma"; |
| 109 | + reg = <0 0x1fe10c20 0 0x8>; |
| 110 | + interrupt-parent = <&eiointc>; |
| 111 | + interrupts = <69>; |
| 112 | + clocks = <&clk LOONGSON2_APB_CLK>; |
| 113 | + #dma-cells = <1>; |
| 114 | + status = "disabled"; |
| 115 | + }; |
| 116 | + |
| 117 | + dma-controller@1fe10c30 { |
| 118 | + compatible = "loongson,ls2k0500-apbdma", "loongson,ls2k1000-apbdma"; |
| 119 | + reg = <0 0x1fe10c30 0 0x8>; |
| 120 | + interrupt-parent = <&eiointc>; |
| 121 | + interrupts = <70>; |
| 122 | + clocks = <&clk LOONGSON2_APB_CLK>; |
| 123 | + #dma-cells = <1>; |
| 124 | + status = "disabled"; |
| 125 | + }; |
| 126 | + |
55 | 127 | liointc0: interrupt-controller@1fe11400 {
|
56 | 128 | compatible = "loongson,liointc-2.0";
|
57 | 129 | reg = <0x0 0x1fe11400 0x0 0x40>,
|
|
139 | 211 | status = "disabled";
|
140 | 212 | };
|
141 | 213 |
|
| 214 | + tsensor: thermal-sensor@1fe11500 { |
| 215 | + compatible = "loongson,ls2k0500-thermal", "loongson,ls2k1000-thermal"; |
| 216 | + reg = <0x0 0x1fe11500 0x0 0x30>; |
| 217 | + interrupt-parent = <&liointc0>; |
| 218 | + interrupts = <7 IRQ_TYPE_LEVEL_HIGH>; |
| 219 | + #thermal-sensor-cells = <1>; |
| 220 | + }; |
| 221 | + |
142 | 222 | uart0: serial@1ff40800 {
|
143 | 223 | compatible = "ns16550a";
|
144 | 224 | reg = <0x0 0x1ff40800 0x0 0x10>;
|
|
0 commit comments