ath79: move reference clock node to SoC dtsi

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>
This commit is contained in:
Shiji Yang 2022-10-08 16:06:00 +08:00 committed by Hauke Mehrtens
parent 901366ad66
commit 520c90854c
25 changed files with 24 additions and 186 deletions

View File

@ -21,6 +21,13 @@
};
};
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";

View File

@ -21,13 +21,6 @@
label-mac-device = &eth0;
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-output-names = "ref";
clock-frequency = <40000000>;
};
leds {
compatible = "gpio-leds";

View File

@ -12,13 +12,6 @@
led-upgrade = &led_diag;
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-output-names = "ref";
clock-frequency = <40000000>;
};
leds {
compatible = "gpio-leds";
@ -218,10 +211,6 @@
};
};
&pll {
clocks = <&extosc>;
};
&spi {
status = "okay";

View File

@ -16,13 +16,6 @@
led-upgrade = &led_power_orange;
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-output-names = "ref";
clock-frequency = <40000000>;
};
leds {
compatible = "gpio-leds";
@ -174,10 +167,6 @@
};
};
&pll {
clocks = <&extosc>;
};
&spi {
status = "okay";

View File

@ -26,13 +26,6 @@
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>;

View File

@ -16,13 +16,6 @@
led-upgrade = &led_power_orange;
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-output-names = "ref";
clock-frequency = <40000000>;
};
leds {
compatible = "gpio-leds";
@ -100,10 +93,6 @@
};
};
&pll {
clocks = <&extosc>;
};
&mdio0 {
status = "okay";

View File

@ -16,13 +16,6 @@
led-upgrade = &led_power_orange;
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-output-names = "ref";
clock-frequency = <40000000>;
};
leds {
compatible = "gpio-leds";

View File

@ -14,13 +14,6 @@
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";

View File

@ -17,13 +17,6 @@
label-mac-device = &eth0;
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-output-names = "ref";
clock-frequency = <40000000>;
};
leds {
compatible = "gpio-leds";

View File

@ -16,13 +16,6 @@
led-upgrade = &led_wps;
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-output-names = "ref";
clock-frequency = <40000000>;
};
leds {
compatible = "gpio-leds";
@ -112,10 +105,6 @@
};
};
&pll {
clocks = <&extosc>;
};
&spi {
status = "okay";

View File

@ -14,13 +14,6 @@
led-upgrade = &led_rf;
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-output-names = "ref";
clock-frequency = <40000000>;
};
leds {
compatible = "gpio-leds";

View File

@ -10,12 +10,6 @@
label-mac-device = &eth0;
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <40000000>;
};
keys {
compatible = "gpio-keys";
@ -27,10 +21,6 @@
};
};
&pll {
clocks = <&extosc>;
};
&pcie {
status = "okay";

View File

@ -12,12 +12,6 @@
led-upgrade = &led_diag;
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <40000000>;
};
keys: keys {
compatible = "gpio-keys";
@ -136,10 +130,6 @@
phy-handle = <&phy0>;
};
&pll {
clocks = <&extosc>;
};
&usb_phy {
status = "okay";
};

View File

@ -15,12 +15,6 @@
led-upgrade = &led_diag;
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <40000000>;
};
keys {
compatible = "gpio-keys";
@ -211,10 +205,6 @@
};
};
&pll {
clocks = <&extosc>;
};
&usb_phy {
status = "okay";
};

View File

@ -16,13 +16,6 @@
led-upgrade = &led_power_orange;
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-output-names = "ref";
clock-frequency = <40000000>;
};
leds {
compatible = "gpio-leds";
@ -87,10 +80,6 @@
};
};
&pll {
clocks = <&extosc>;
};
&mdio0 {
status = "okay";

View File

@ -21,12 +21,6 @@
bootargs = "console=ttyS0,115200n8";
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <40000000>;
};
keys {
compatible = "gpio-keys";
@ -95,10 +89,6 @@
};
};
&pll {
clocks = <&extosc>;
};
&spi {
status = "okay";

View File

@ -24,6 +24,13 @@
};
};
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";

View File

@ -24,6 +24,13 @@
};
};
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";
@ -94,8 +101,8 @@
"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";

View File

@ -11,12 +11,6 @@
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.
*/
@ -250,10 +244,6 @@
status = "okay";
};
&pll {
clocks = <&clock40mhz>;
};
&usb {
status = "okay";

View File

@ -17,12 +17,6 @@
label-mac-device = &eth0;
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <40000000>;
};
keys {
compatible = "gpio-keys";
@ -62,10 +56,6 @@
};
};
&pll {
clocks = <&extosc>;
};
&spi {
status = "okay";

View File

@ -17,12 +17,6 @@
label-mac-device = &eth0;
};
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <40000000>;
};
keys {
compatible = "gpio-keys";
@ -79,10 +73,6 @@
};
};
&pll {
clocks = <&extosc>;
};
&usb {
#address-cells = <1>;
#size-cells = <0>;

View File

@ -120,10 +120,6 @@
status = "okay";
};
&pll {
clocks = <&extosc>;
};
&spi {
status = "okay";

View File

@ -59,10 +59,6 @@
status = "okay";
};
&pll {
clocks = <&extosc>;
};
&spi {
status = "okay";

View File

@ -30,10 +30,6 @@
status = "okay";
};
&pll {
clocks = <&extosc>;
};
&spi {
status = "okay";

View File

@ -124,10 +124,6 @@
};
};
&pll {
clocks = <&extosc>;
};
&spi {
status = "okay";