OSDN Git Service

arm64: dts: apple: t8103: Rename clk24 to clkref
authorHector Martin <marcan@marcan.st>
Tue, 5 Oct 2021 14:24:21 +0000 (23:24 +0900)
committerHector Martin <marcan@marcan.st>
Wed, 15 Dec 2021 11:20:17 +0000 (20:20 +0900)
We now know that this frequency comes from the external reference
oscillator and is used for various SoC blocks, and isn't just a random
24MHz clock, so let's call it something more appropriate.

Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Hector Martin <marcan@marcan.st>
arch/arm64/boot/dts/apple/t8103.dtsi

index 8203c60..33c9ea6 100644 (file)
                             <AIC_FIQ AIC_TMR_HV_VIRT IRQ_TYPE_LEVEL_HIGH>;
        };
 
-       clk24: clock-24m {
+       clkref: clock-ref {
                compatible = "fixed-clock";
                #clock-cells = <0>;
                clock-frequency = <24000000>;
-               clock-output-names = "clk24";
+               clock-output-names = "clkref";
        };
 
        soc {
                i2c0: i2c@235010000 {
                        compatible = "apple,t8103-i2c", "apple,i2c";
                        reg = <0x2 0x35010000 0x0 0x4000>;
-                       clocks = <&clk24>;
+                       clocks = <&clkref>;
                        interrupt-parent = <&aic>;
                        interrupts = <AIC_IRQ 627 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-0 = <&i2c0_pins>;
                i2c1: i2c@235014000 {
                        compatible = "apple,t8103-i2c", "apple,i2c";
                        reg = <0x2 0x35014000 0x0 0x4000>;
-                       clocks = <&clk24>;
+                       clocks = <&clkref>;
                        interrupt-parent = <&aic>;
                        interrupts = <AIC_IRQ 628 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-0 = <&i2c1_pins>;
                i2c2: i2c@235018000 {
                        compatible = "apple,t8103-i2c", "apple,i2c";
                        reg = <0x2 0x35018000 0x0 0x4000>;
-                       clocks = <&clk24>;
+                       clocks = <&clkref>;
                        interrupt-parent = <&aic>;
                        interrupts = <AIC_IRQ 629 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-0 = <&i2c2_pins>;
                i2c3: i2c@23501c000 {
                        compatible = "apple,t8103-i2c", "apple,i2c";
                        reg = <0x2 0x3501c000 0x0 0x4000>;
-                       clocks = <&clk24>;
+                       clocks = <&clkref>;
                        interrupt-parent = <&aic>;
                        interrupts = <AIC_IRQ 630 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-0 = <&i2c3_pins>;
                i2c4: i2c@235020000 {
                        compatible = "apple,t8103-i2c", "apple,i2c";
                        reg = <0x2 0x35020000 0x0 0x4000>;
-                       clocks = <&clk24>;
+                       clocks = <&clkref>;
                        interrupt-parent = <&aic>;
                        interrupts = <AIC_IRQ 631 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-0 = <&i2c4_pins>;
                         * TODO: figure out the clocking properly, there may
                         * be a third selectable clock.
                         */
-                       clocks = <&clk24>, <&clk24>;
+                       clocks = <&clkref>, <&clkref>;
                        clock-names = "uart", "clk_uart_baud0";
                        power-domains = <&ps_uart0>;
                        status = "disabled";
                        reg-io-width = <4>;
                        interrupt-parent = <&aic>;
                        interrupts = <AIC_IRQ 607 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&clk24>, <&clk24>;
+                       clocks = <&clkref>, <&clkref>;
                        clock-names = "uart", "clk_uart_baud0";
                        power-domains = <&ps_uart2>;
                        status = "disabled";
                wdt: watchdog@23d2b0000 {
                        compatible = "apple,t8103-wdt", "apple,wdt";
                        reg = <0x2 0x3d2b0000 0x0 0x4000>;
-                       clocks = <&clk24>;
+                       clocks = <&clkref>;
                        interrupt-parent = <&aic>;
                        interrupts = <AIC_IRQ 338 IRQ_TYPE_LEVEL_HIGH>;
                };