Skip to content

Commit 9f19763

Browse files
kylebonnicinashif
authored andcommitted
devicetree: format SoC-level files in dts/riscv
Applying dts-linter results for SoC-level files in dts/riscv Signed-off-by: Kyle Micallef Bonnici <[email protected]>
1 parent 905b9f9 commit 9f19763

File tree

3 files changed

+227
-204
lines changed

3 files changed

+227
-204
lines changed

dts/riscv/neorv32.dtsi

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,22 @@
3333
firq: firq {
3434
#address-cells = <1>;
3535
interrupt-map-mask = <0x0 0xffffffff>;
36-
interrupt-map = <
37-
0 0 &intc 0 16
38-
0 1 &intc 0 17
39-
0 2 &intc 0 18
40-
0 3 &intc 0 19
41-
0 4 &intc 0 20
42-
0 5 &intc 0 21
43-
0 6 &intc 0 22
44-
0 7 &intc 0 23
45-
0 8 &intc 0 24
46-
0 9 &intc 0 25
47-
0 10 &intc 0 26
48-
0 11 &intc 0 27
49-
0 12 &intc 0 28
50-
0 13 &intc 0 29
51-
0 14 &intc 0 30
52-
0 15 &intc 0 31
53-
>;
36+
interrupt-map = <0 0 &intc 0 16
37+
0 1 &intc 0 17
38+
0 2 &intc 0 18
39+
0 3 &intc 0 19
40+
0 4 &intc 0 20
41+
0 5 &intc 0 21
42+
0 6 &intc 0 22
43+
0 7 &intc 0 23
44+
0 8 &intc 0 24
45+
0 9 &intc 0 25
46+
0 10 &intc 0 26
47+
0 11 &intc 0 27
48+
0 12 &intc 0 28
49+
0 13 &intc 0 29
50+
0 14 &intc 0 30
51+
0 15 &intc 0 31>;
5452
#interrupt-cells = <1>;
5553
};
5654
};

dts/riscv/renode_riscv32_virt.dtsi

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
cpus {
1414
#address-cells = <1>;
1515
#size-cells = <0>;
16+
1617
cpu@0 {
1718
clock-frequency = <0>;
1819
compatible = "renode,virt", "riscv";
1920
device_type = "cpu";
2021
reg = <0>;
2122
riscv,isa = "rv32imac_zicsr_zifencei";
23+
2224
hlic: interrupt-controller {
2325
compatible = "riscv,cpu-intc";
2426
#address-cells = <0>;
@@ -80,24 +82,24 @@
8082
};
8183

8284
uart0: uart@10000000 {
83-
interrupts = < 0x0a 1 >;
84-
interrupt-parent = < &plic0 >;
85+
interrupts = <0x0a 1>;
86+
interrupt-parent = <&plic0>;
8587
clock-frequency = <150000000>;
8688
current-speed = <115200>;
87-
reg = < 0x10000000 0x100 >;
89+
reg = <0x10000000 0x100>;
8890
compatible = "ns16550";
89-
reg-shift = < 0 >;
91+
reg-shift = <0>;
9092
status = "disabled";
9193
};
9294

9395
uart1: uart@10000100 {
94-
interrupts = < 0x0a 1 >;
95-
interrupt-parent = < &plic1 >;
96+
interrupts = <0x0a 1>;
97+
interrupt-parent = <&plic1>;
9698
clock-frequency = <150000000>;
9799
current-speed = <115200>;
98-
reg = < 0x10000100 0x100 >;
100+
reg = <0x10000100 0x100>;
99101
compatible = "ns16550";
100-
reg-shift = < 0 >;
102+
reg-shift = <0>;
101103
status = "disabled";
102104
};
103105
};

0 commit comments

Comments
 (0)