MIPS: DTS: CI20: Misc. cleanups
authorPaul Cercueil <paul@crapouillou.net>
Sun, 4 Jun 2023 14:56:38 +0000 (16:56 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 9 Jun 2023 07:55:38 +0000 (09:55 +0200)
- Use the standard "ecc-engine" property instead of the custom
"ingenic,bch-controller" to get a handle to the BCH controller.

- Respect cell sizes in the Ethernet controller node.

- Use proper macro for interrupt type instead of hardcoding magic
  values.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/ingenic/ci20.dts

index 7f6e7a4..b7dbafa 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
 
-               ingenic,bch-controller = <&bch>;
+               ecc-engine = <&bch>;
 
                ingenic,nemc-tAS = <10>;
                ingenic,nemc-tAH = <5>;
                pinctrl-names = "default";
                pinctrl-0 = <&pins_nemc_cs6>;
 
-               reg = <6 0 1   /* addr */
-                      6 2 1>; /* data */
+               reg = <6 0 1>, /* addr */
+                     <6 2 1>; /* data */
 
                ingenic,nemc-tAS = <15>;
                ingenic,nemc-tAH = <10>;
                vcc-supply = <&eth0_power>;
 
                interrupt-parent = <&gpe>;
-               interrupts = <19 4>;
+               interrupts = <19 IRQ_TYPE_EDGE_RISING>;
 
                nvmem-cells = <&eth0_addr>;
                nvmem-cell-names = "mac-address";