Skip to content

Commit 0e9b70c

Browse files
committed
riscv: dts: microchip: add mpfs specific macb reset support
The macb on PolarFire SoC has reset support which the generic compatible does not use. Add the newly introduced MPFS specific compatible as the primary compatible to avail of this support & wire up the reset to the clock controllers devicetree entry. Reviewed-by: Daire McNamara <daire.mcnamara@microchip.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
1 parent fe15c26 commit 0e9b70c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

arch/riscv/boot/dts/microchip/mpfs.dtsi

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@
234234
reg = <0x0 0x20002000 0x0 0x1000>, <0x0 0x3E001000 0x0 0x1000>;
235235
clocks = <&refclk>;
236236
#clock-cells = <1>;
237+
#reset-cells = <1>;
237238
};
238239

239240
ccc_se: clock-controller@38010000 {
@@ -415,7 +416,7 @@
415416
};
416417

417418
mac0: ethernet@20110000 {
418-
compatible = "cdns,macb";
419+
compatible = "microchip,mpfs-macb", "cdns,macb";
419420
reg = <0x0 0x20110000 0x0 0x2000>;
420421
#address-cells = <1>;
421422
#size-cells = <0>;
@@ -424,11 +425,12 @@
424425
local-mac-address = [00 00 00 00 00 00];
425426
clocks = <&clkcfg CLK_MAC0>, <&clkcfg CLK_AHB>;
426427
clock-names = "pclk", "hclk";
428+
resets = <&clkcfg CLK_MAC0>;
427429
status = "disabled";
428430
};
429431

430432
mac1: ethernet@20112000 {
431-
compatible = "cdns,macb";
433+
compatible = "microchip,mpfs-macb", "cdns,macb";
432434
reg = <0x0 0x20112000 0x0 0x2000>;
433435
#address-cells = <1>;
434436
#size-cells = <0>;
@@ -437,6 +439,7 @@
437439
local-mac-address = [00 00 00 00 00 00];
438440
clocks = <&clkcfg CLK_MAC1>, <&clkcfg CLK_AHB>;
439441
clock-names = "pclk", "hclk";
442+
resets = <&clkcfg CLK_MAC1>;
440443
status = "disabled";
441444
};
442445

0 commit comments

Comments
 (0)