Skip to content

Commit fdcb4f1

Browse files
jhswartztsbogend
authored andcommitted
mips: dts: ralink: mt7621: reorder pcie node attributes and children
Reorder the attributes and child nodes of the PCIe Controller node to meet the DTS style guidelines. Signed-off-by: Justin Swartz <[email protected]> Reviewed-by: Arınç ÜNAL <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Sergio Paracuellos <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 6f04e52 commit fdcb4f1

File tree

1 file changed

+43
-25
lines changed

1 file changed

+43
-25
lines changed

arch/mips/boot/dts/ralink/mt7621.dtsi

Lines changed: 43 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -495,70 +495,88 @@
495495
<0x1e142000 0x100>, /* pcie port 0 RC control registers */
496496
<0x1e143000 0x100>, /* pcie port 1 RC control registers */
497497
<0x1e144000 0x100>; /* pcie port 2 RC control registers */
498+
ranges = <0x02000000 0 0x60000000 0x60000000 0 0x10000000>, /* pci memory */
499+
<0x01000000 0 0x00000000 0x1e160000 0 0x00010000>; /* io space */
500+
498501
#address-cells = <3>;
502+
#interrupt-cells = <1>;
499503
#size-cells = <2>;
500504

501-
pinctrl-names = "default";
502-
pinctrl-0 = <&pcie_pins>;
503-
504505
device_type = "pci";
505506

506-
ranges = <0x02000000 0 0x60000000 0x60000000 0 0x10000000>, /* pci memory */
507-
<0x01000000 0 0x00000000 0x1e160000 0 0x00010000>; /* io space */
508-
509-
#interrupt-cells = <1>;
510-
interrupt-map-mask = <0xF800 0 0 0>;
511-
interrupt-map = <0x0000 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>,
507+
interrupt-map-mask = <0xf800 0 0 0>;
508+
interrupt-map = <0x0000 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>,
512509
<0x0800 0 0 0 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>,
513510
<0x1000 0 0 0 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
514511

515-
status = "disabled";
512+
pinctrl-names = "default";
513+
pinctrl-0 = <&pcie_pins>;
516514

517515
reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
518516

517+
status = "disabled";
518+
519519
pcie@0,0 {
520520
reg = <0x0000 0 0 0 0>;
521+
ranges;
522+
521523
#address-cells = <3>;
524+
#interrupt-cells = <1>;
522525
#size-cells = <2>;
526+
527+
clocks = <&sysc MT7621_CLK_PCIE0>;
528+
523529
device_type = "pci";
524-
#interrupt-cells = <1>;
530+
525531
interrupt-map-mask = <0 0 0 0>;
526532
interrupt-map = <0 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>;
527-
resets = <&sysc MT7621_RST_PCIE0>;
528-
clocks = <&sysc MT7621_CLK_PCIE0>;
529-
phys = <&pcie0_phy 1>;
533+
530534
phy-names = "pcie-phy0";
531-
ranges;
535+
phys = <&pcie0_phy 1>;
536+
537+
resets = <&sysc MT7621_RST_PCIE0>;
532538
};
533539

534540
pcie@1,0 {
535541
reg = <0x0800 0 0 0 0>;
542+
ranges;
543+
536544
#address-cells = <3>;
545+
#interrupt-cells = <1>;
537546
#size-cells = <2>;
547+
548+
clocks = <&sysc MT7621_CLK_PCIE1>;
549+
538550
device_type = "pci";
539-
#interrupt-cells = <1>;
551+
540552
interrupt-map-mask = <0 0 0 0>;
541553
interrupt-map = <0 0 0 0 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>;
542-
resets = <&sysc MT7621_RST_PCIE1>;
543-
clocks = <&sysc MT7621_CLK_PCIE1>;
544-
phys = <&pcie0_phy 1>;
554+
545555
phy-names = "pcie-phy1";
546-
ranges;
556+
phys = <&pcie0_phy 1>;
557+
558+
resets = <&sysc MT7621_RST_PCIE1>;
547559
};
548560

549561
pcie@2,0 {
550562
reg = <0x1000 0 0 0 0>;
563+
ranges;
564+
551565
#address-cells = <3>;
566+
#interrupt-cells = <1>;
552567
#size-cells = <2>;
568+
569+
clocks = <&sysc MT7621_CLK_PCIE2>;
570+
553571
device_type = "pci";
554-
#interrupt-cells = <1>;
572+
555573
interrupt-map-mask = <0 0 0 0>;
556574
interrupt-map = <0 0 0 0 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
557-
resets = <&sysc MT7621_RST_PCIE2>;
558-
clocks = <&sysc MT7621_CLK_PCIE2>;
559-
phys = <&pcie2_phy 0>;
575+
560576
phy-names = "pcie-phy2";
561-
ranges;
577+
phys = <&pcie2_phy 0>;
578+
579+
resets = <&sysc MT7621_RST_PCIE2>;
562580
};
563581
};
564582

0 commit comments

Comments
 (0)