LoongArch: dts: Add new supported device nodes to Loongson-2K2000
By now, more Loongson-2K2000 related drivers are supported, such as clock controller and thermal controller. So we add these device nodes to the Loongson-2K2000 dts file. Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
This commit is contained in:
parent
bd7bc02b0c
commit
7c33c9111c
@ -6,6 +6,7 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
#include <dt-bindings/interrupt-controller/irq.h>
|
#include <dt-bindings/interrupt-controller/irq.h>
|
||||||
|
#include <dt-bindings/clock/loongson,ls2k-clk.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
#address-cells = <2>;
|
#address-cells = <2>;
|
||||||
@ -19,21 +20,22 @@
|
|||||||
compatible = "loongson,la364";
|
compatible = "loongson,la364";
|
||||||
device_type = "cpu";
|
device_type = "cpu";
|
||||||
reg = <0x0>;
|
reg = <0x0>;
|
||||||
clocks = <&cpu_clk>;
|
clocks = <&clk LOONGSON2_NODE_CLK>;
|
||||||
};
|
};
|
||||||
|
|
||||||
cpu1: cpu@2 {
|
cpu1: cpu@2 {
|
||||||
compatible = "loongson,la364";
|
compatible = "loongson,la364";
|
||||||
device_type = "cpu";
|
device_type = "cpu";
|
||||||
reg = <0x1>;
|
reg = <0x1>;
|
||||||
clocks = <&cpu_clk>;
|
clocks = <&clk LOONGSON2_NODE_CLK>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
cpu_clk: cpu-clk {
|
ref_100m: clock-ref-100m {
|
||||||
compatible = "fixed-clock";
|
compatible = "fixed-clock";
|
||||||
#clock-cells = <0>;
|
#clock-cells = <0>;
|
||||||
clock-frequency = <1400000000>;
|
clock-frequency = <100000000>;
|
||||||
|
clock-output-names = "ref_100m";
|
||||||
};
|
};
|
||||||
|
|
||||||
cpuintc: interrupt-controller {
|
cpuintc: interrupt-controller {
|
||||||
@ -42,6 +44,28 @@
|
|||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
thermal-zones {
|
||||||
|
cpu-thermal {
|
||||||
|
polling-delay-passive = <1000>;
|
||||||
|
polling-delay = <5000>;
|
||||||
|
thermal-sensors = <&tsensor 0>;
|
||||||
|
|
||||||
|
trips {
|
||||||
|
cpu-alert {
|
||||||
|
temperature = <40000>;
|
||||||
|
hysteresis = <2000>;
|
||||||
|
type = "active";
|
||||||
|
};
|
||||||
|
|
||||||
|
cpu-crit {
|
||||||
|
temperature = <85000>;
|
||||||
|
hysteresis = <5000>;
|
||||||
|
type = "critical";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
bus@10000000 {
|
bus@10000000 {
|
||||||
compatible = "simple-bus";
|
compatible = "simple-bus";
|
||||||
ranges = <0x0 0x10000000 0x0 0x10000000 0x0 0x10000000>,
|
ranges = <0x0 0x10000000 0x0 0x10000000 0x0 0x10000000>,
|
||||||
@ -58,6 +82,14 @@
|
|||||||
ranges = <1 0x0 0x0 0x18400000 0x4000>;
|
ranges = <1 0x0 0x0 0x18400000 0x4000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
clk: clock-controller@10010480 {
|
||||||
|
compatible = "loongson,ls2k2000-clk";
|
||||||
|
reg = <0x0 0x10010480 0x0 0x100>;
|
||||||
|
#clock-cells = <1>;
|
||||||
|
clocks = <&ref_100m>;
|
||||||
|
clock-names = "ref_100m";
|
||||||
|
};
|
||||||
|
|
||||||
pmc: power-management@100d0000 {
|
pmc: power-management@100d0000 {
|
||||||
compatible = "loongson,ls2k2000-pmc", "loongson,ls2k0500-pmc", "syscon";
|
compatible = "loongson,ls2k2000-pmc", "loongson,ls2k0500-pmc", "syscon";
|
||||||
reg = <0x0 0x100d0000 0x0 0x58>;
|
reg = <0x0 0x100d0000 0x0 0x58>;
|
||||||
@ -80,6 +112,15 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
tsensor: thermal-sensor@1fe01460 {
|
||||||
|
compatible = "loongson,ls2k2000-thermal";
|
||||||
|
reg = <0x0 0x1fe01460 0x0 0x30>,
|
||||||
|
<0x0 0x1fe0019c 0x0 0x4>;
|
||||||
|
interrupt-parent = <&liointc>;
|
||||||
|
interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
|
#thermal-sensor-cells = <1>;
|
||||||
|
};
|
||||||
|
|
||||||
liointc: interrupt-controller@1fe01400 {
|
liointc: interrupt-controller@1fe01400 {
|
||||||
compatible = "loongson,liointc-1.0";
|
compatible = "loongson,liointc-1.0";
|
||||||
reg = <0x0 0x1fe01400 0x0 0x64>;
|
reg = <0x0 0x1fe01400 0x0 0x64>;
|
||||||
|
Loading…
Reference in New Issue
Block a user