ath79: move reference clock node to SoC dtsi
authorShiji Yang <yangshiji66@qq.com>
Sat, 8 Oct 2022 08:06:00 +0000 (16:06 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 9 Nov 2022 21:55:33 +0000 (22:55 +0100)
AR7161, AR724x, AR9132 and QCA95xx only support fixed frequency external
crystal oscillator, so move reference clock node to SoC dtsi files.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
25 files changed:
target/linux/ath79/dts/ar7100.dtsi
target/linux/ath79/dts/ar7161_aruba_ap-105.dts
target/linux/ath79/dts/ar7161_buffalo_wzr-hp-ag300h.dtsi
target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts
target/linux/ath79/dts/ar7161_jjplus_ja76pf2.dts
target/linux/ath79/dts/ar7161_meraki_mr16.dts
target/linux/ath79/dts/ar7161_netgear_wndap360.dts
target/linux/ath79/dts/ar7161_netgear_wndr.dtsi
target/linux/ath79/dts/ar7161_siemens_ws-ap3610.dts
target/linux/ath79/dts/ar7161_trendnet_tew-673gru.dts
target/linux/ath79/dts/ar7161_ubnt_routerstation.dtsi
target/linux/ath79/dts/ar7241_ubnt_unifi.dtsi
target/linux/ath79/dts/ar7242_buffalo_wzr-bhr.dtsi
target/linux/ath79/dts/ar7242_buffalo_wzr-hp-g302h-a1a0.dts
target/linux/ath79/dts/ar7242_meraki_mr12.dts
target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts
target/linux/ath79/dts/ar724x.dtsi
target/linux/ath79/dts/ar9132.dtsi
target/linux/ath79/dts/ar9132_buffalo_wzr-hp-g300nh.dtsi
target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts
target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts
target/linux/ath79/dts/qca9558_netgear_ex7300.dtsi
target/linux/ath79/dts/qca9558_ocedo_koala.dts
target/linux/ath79/dts/qca9558_ocedo_ursus.dts
target/linux/ath79/dts/qcn5502_netgear_ex7300-v2.dts

index 12ab7e503941d05a9ec65d1d54fe35556f82d30c..d91ef91ebd2c2ce7f118ed52baad72d12e2a4763 100644 (file)
                };
        };
 
+       extosc: ref {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-output-names = "ref";
+               clock-frequency = <40000000>;
+       };
+
        ahb {
                apb {
                        ddr_ctrl: memory-controller@18000000 {
@@ -73,8 +80,8 @@
                                compatible = "qca,ar7100-pll", "syscon";
                                reg = <0x18050000 0x20>;
 
+                               clocks = <&extosc>;
                                clock-names = "ref";
-                               /* The board must provides the ref clock */
 
                                #clock-cells = <1>;
                                clock-output-names = "cpu", "ddr", "ahb";
index da68ada2c0208351dc5eaa97859e0831cb71f8b8..949d70ec07a10f2ff75c39ecfc489ae33bf3709e 100644 (file)
                label-mac-device = &eth0;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-output-names = "ref";
-               clock-frequency = <40000000>;
-       };
-
        leds {
                compatible = "gpio-leds";
 
index 35e083bc6178d75cc0dc74f4a548efb3bbbde645..4fe8d51a00f8d9449c54f82f1290ef4496452be9 100644 (file)
                led-upgrade = &led_diag;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-output-names = "ref";
-               clock-frequency = <40000000>;
-       };
-
        leds {
                compatible = "gpio-leds";
 
        };
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &spi {
        status = "okay";
 
index b701f15421a0e347bac0d407ef93d6cd9d8325f2..fb5ab1adcb784a72ffed1ba5b67b85b5717083c7 100644 (file)
                led-upgrade = &led_power_orange;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-output-names = "ref";
-               clock-frequency = <40000000>;
-       };
-
        leds {
                compatible = "gpio-leds";
 
        };
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &spi {
        status = "okay";
 
index dca226d2623b582e946b09a794147bbf892ceb2a..7f2a118b8457d4baa2f89ce07aa9e9c531cbc958 100644 (file)
                led-upgrade = &led_d2;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-output-names = "ref";
-               clock-frequency = <40000000>;
-       };
-
        i2c {
                compatible = "i2c-gpio";
                sda-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
index eb27e16e563f665a8ab7f7165f18422bd0234b77..7a19da82e36ee889b92446e512278d7a2f122e50 100644 (file)
                led-upgrade = &led_power_orange;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-output-names = "ref";
-               clock-frequency = <40000000>;
-       };
-
        leds {
                compatible = "gpio-leds";
 
        };
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &mdio0 {
        status = "okay";
 
index 37a475d3ac7498491c9dedc17bb932f3c44b57c5..35c5dd36d2ee549f787ffd280816beda5ed31f47 100644 (file)
                led-upgrade = &led_power_orange;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-output-names = "ref";
-               clock-frequency = <40000000>;
-       };
-
        leds {
                compatible = "gpio-leds";
 
index c66348e71e3ca2ed79139a9180b1181ebe4e7ea5..d3d22b5d2dfa99c99d0e52ce2112b55464e1ed20 100644 (file)
                led-upgrade = &led_power_orange;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-output-names = "ref";
-               clock-frequency = <40000000>;
-       };
-
        reset-leds {
                compatible = "reset-leds";
 
index 2cdcce0d15279083b8cdce433c5a1707dbd80997..56a2cfab67b9161e2fd731059a539ac41d3d8dbf 100644 (file)
                label-mac-device = &eth0;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-output-names = "ref";
-               clock-frequency = <40000000>;
-       };
-
        leds {
                compatible = "gpio-leds";
 
index 8657e291bdc0f8ee689149bd517d75c909ee73bb..b6d66a08a5b747b459a3f391ff7d05b42f4c6344 100644 (file)
                led-upgrade = &led_wps;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-output-names = "ref";
-               clock-frequency = <40000000>;
-       };
-
        leds {
                compatible = "gpio-leds";
 
        };
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &spi {
        status = "okay";
 
index 172b0af1eb3bfe0c5561f92e1a5966cfe3ceac37..b12723beb2fe9695b11e2eccc831f42ecb93d189 100644 (file)
                led-upgrade = &led_rf;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-output-names = "ref";
-               clock-frequency = <40000000>;
-       };
-
        leds {
                compatible = "gpio-leds";
 
index d05ed080a8c5f986ceffec5016b0e47f3ed8f68a..ec8c6381e715f2bd3eef44f713749fa8cce076ae 100644 (file)
                label-mac-device = &eth0;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-frequency = <40000000>;
-       };
-
        keys {
                compatible = "gpio-keys";
 
        };
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &pcie {
        status = "okay";
 
index 18e524f802af5941572b5995e4f8a4535b1d1c7d..e9d1eafe24bcf9d84d3ec241560d9d02897c17a6 100644 (file)
                led-upgrade = &led_diag;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-frequency = <40000000>;
-       };
-
        keys: keys {
                compatible = "gpio-keys";
 
        phy-handle = <&phy0>;
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &usb_phy {
        status = "okay";
 };
index f454725f6a9ba9ee53bee44e885b4cf2cf38ff2d..b8aa2aa2102576a0c2e3158a10ec87a1403be6c0 100644 (file)
                led-upgrade = &led_diag;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-frequency = <40000000>;
-       };
-
        keys {
                compatible = "gpio-keys";
 
        };
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &usb_phy {
        status = "okay";
 };
index 5e82b5bb6bcedd70e890f53a0b78a2b81eede5e2..42b4966e744b75883f548238633d51a74ea5a3a2 100644 (file)
                led-upgrade = &led_power_orange;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-output-names = "ref";
-               clock-frequency = <40000000>;
-       };
-
        leds {
                compatible = "gpio-leds";
 
        };
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &mdio0 {
        status = "okay";
 
index ae4867521a7fd7b6c7c7d9d72dfe46477d480f5b..b524ea19961b99ae3f3a3779d9d0eb140a081557 100644 (file)
                bootargs = "console=ttyS0,115200n8";
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-frequency = <40000000>;
-       };
-
        keys {
                compatible = "gpio-keys";
 
        };
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &spi {
        status = "okay";
 
index 882b0bc51a93e37aa1398e5fbb9f152411786f40..c090eb5e0fc31b079492d66f9d75556a16598100 100644 (file)
                };
        };
 
+       extosc: ref {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-output-names = "ref";
+               clock-frequency = <40000000>;
+       };
+
        ahb: ahb {
                apb {
                        ddr_ctrl: memory-controller@18000000 {
@@ -89,8 +96,8 @@
                                compatible = "qca,ar7240-pll", "syscon";
                                reg = <0x18050000 0x3c>;
 
+                               clocks = <&extosc>;
                                clock-names = "ref";
-                               /* The board must provides the ref clock */
 
                                #clock-cells = <1>;
                                clock-output-names = "cpu", "ddr", "ahb";
index 44a5870ad7afe3dd67b689b1f66f46dc628c2fab..29891ccebbafcadd33cb1d3af600ab1761f13793 100644 (file)
                };
        };
 
+       extosc: ref {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-output-names = "ref";
+               clock-frequency = <40000000>;
+       };
+
        cpuintc: interrupt-controller {
                compatible = "qca,ar9132-cpu-intc", "qca,ar7100-cpu-intc";
 
                                                "qca,ar9130-pll", "syscon";
                                reg = <0x18050000 0x20>;
 
+                               clocks = <&extosc>;
                                clock-names = "ref";
-                               /* The board must provides the ref clock */
 
                                #clock-cells = <1>;
                                clock-output-names = "cpu", "ddr", "ahb";
index a84e794c0b6530fa7a16a5561a13d60eafd7ae3f..f3b13b5d0cfa3aed518056539c093413fcec9e56 100644 (file)
                led-upgrade = &led_diag;
        };
 
-       clock40mhz: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-frequency = <40000000>;
-       };
-
        /* There is a GPIO driven NXP 74HC153 dual 4-way multiplexer on board
         * used for buttons that are on top of the the device.
          */
        status = "okay";
 };
 
-&pll {
-       clocks = <&clock40mhz>;
-};
-
 &usb {
        status = "okay";
 
index 354213c440487a13035c0178b3fac2808e18839c..fd4a6c7a4d34c764d4f12450e3434b14238376c7 100644 (file)
                label-mac-device = &eth0;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-frequency = <40000000>;
-       };
-
        keys {
                compatible = "gpio-keys";
 
        };
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &spi {
        status = "okay";
 
index 12e417d3a479f91a5827eacb5fbc96b40bb6b605..7ff2e4f29b9d480668c1d0591b851e16690b4873 100644 (file)
                label-mac-device = &eth0;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-frequency = <40000000>;
-       };
-
        keys {
                compatible = "gpio-keys";
 
        };
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &usb {
        #address-cells = <1>;
        #size-cells = <0>;
index 6c5ed4defb2dd05e0b219d1bf011e796df8b58e2..c266c52dad8e4c18a7b7396367224e6309ec5437 100644 (file)
        status = "okay";
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &spi {
        status = "okay";
 
index 66f8c6589b20221edc41a2f882b28229ff8633b9..8441e5c9a3c84b7b826d9b110ee1280d7696278b 100644 (file)
        status = "okay";
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &spi {
        status = "okay";
 
index 2dc4c07e918c50eb522100eb7f72c8804d5ba5fb..e99059df04740c238199a7d9ec830625a9915c11 100644 (file)
        status = "okay";
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &spi {
        status = "okay";
 
index e5d897029dd5409d0a1d1cf70fe80332eee07928..4ebbdcc1054d24c0367e15a42b4fd0f4ac87d3dd 100644 (file)
        };
 };
 
-&pll {
-       clocks = <&extosc>;
-};
-
 &spi {
        status = "okay";