]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mips: dts: realtek: Clean up CPU clocks
authorSander Vanheule <sander@svanheule.net>
Sun, 19 Jan 2025 18:34:17 +0000 (19:34 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 21 Feb 2025 14:09:56 +0000 (15:09 +0100)
The referenced CPU clock does not require any additional #clock-cells,
so drop the extraneous '0' in the referenced CPU clock.

The binding for MIPS cpus also does not allow for the clock-names
property, so just drop it.

This resolves some error message from 'dtbs_check':
    cpu@0: clocks: [[4], [0]] is too long
    'clock-names' does not match any of the regexes: 'pinctrl-[0-9]+'

Signed-off-by: Sander Vanheule <sander@svanheule.net>
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz> # For RTL9302C
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/realtek/rtl838x.dtsi
arch/mips/boot/dts/realtek/rtl930x.dtsi

index 722106e39194bbf853f01c2af72fd5b8f5f3436c..d2c6baabb38ce4a726daf98eb6eb8de42f54ccd4 100644 (file)
@@ -9,8 +9,7 @@
                        device_type = "cpu";
                        compatible = "mips,mips4KEc";
                        reg = <0>;
-                       clocks = <&baseclk 0>;
-                       clock-names = "cpu";
+                       clocks = <&baseclk>;
                };
        };
 
index 67261d6fcaa77f4afb5115d159820793af78c72c..f2e57ea3a60ceaed8079a42b6af9b1e80785d4a7 100644 (file)
@@ -26,8 +26,7 @@
                        device_type = "cpu";
                        compatible = "mips,mips34Kc";
                        reg = <0>;
-                       clocks = <&baseclk 0>;
-                       clock-names = "cpu";
+                       clocks = <&baseclk>;
                };
        };