mirror of
https://gitee.com/open-loongarch/linux-6.12.git
synced 2026-10-29 06:27:12 +08:00
feat: add loongson timer mfd driver
This commit is contained in:
@@ -889,6 +889,26 @@
|
||||
/* Optional for that dr_mode = "host" or dr_mode = "peripheral" */
|
||||
};
|
||||
|
||||
timers1: timer@16118000 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "loongson,loongson-timers";
|
||||
reg = <0 0x16118000 0 0x1000>;
|
||||
interrupt-parent = <&liointc0>;
|
||||
interrupts = <13 IRQ_TYPE_LEVEL_HIGH>;
|
||||
clocks = <&clocks CLK_APB>;
|
||||
clock-names = "int";
|
||||
dmas = <&dma 0 0x400>,
|
||||
<&dma 1 0x400>,
|
||||
<&dma 2 0x400>,
|
||||
<&dma 3 0x400>,
|
||||
<&dma 4 0x400>,
|
||||
<&dma 5 0x400>,
|
||||
<&dma 6 0x400>;
|
||||
dma-names = "ch1", "ch2", "ch3", "ch4", "com", "up", "trig";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
pwm_atim: pwm@16118000{
|
||||
compatible = "loongson,ls2k-pwm-atim";
|
||||
reg = <0 0x16118000 0 0x1000>;
|
||||
@@ -900,6 +920,25 @@
|
||||
clock-frequency = <200000000>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
timers2: timer@16119000 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "loongson,loongson-timers";
|
||||
reg = <0 0x16119000 0 0x1000>;
|
||||
interrupt-parent = <&liointc0>;
|
||||
interrupts = <14 IRQ_TYPE_LEVEL_HIGH>;
|
||||
clocks = <&clocks CLK_APB>;
|
||||
clock-names = "int";
|
||||
dmas = <&dma 0 0x400>,
|
||||
<&dma 1 0x400>,
|
||||
<&dma 2 0x400>,
|
||||
<&dma 3 0x400>,
|
||||
<&dma 5 0x400>,
|
||||
<&dma 6 0x400>;
|
||||
dma-names = "ch1", "ch2", "ch3", "ch4", "up", "trig";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
pwm_gtim: pwm@16119000{
|
||||
compatible = "loongson,ls2k-pwm-gtim";
|
||||
|
||||
Reference in New Issue
Block a user