Skip to content

Commit d3c3c28

Browse files
tlebtsbogend
authored andcommitted
MIPS: mobileye: eyeq5: use OLB as provider for fixed factor clocks
Change the structure of the clock tree: rather than individual devicetree nodes registering each fixed factor clock derived from OLB PLLs, have the OLB node provide the necessary clocks. Remove eyeq5-clocks.dtsi and move the three remaining "fixed-clock"s to the main eyeq5.dtsi file. Signed-off-by: Théo Lebrun <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 56131e6 commit d3c3c28

File tree

2 files changed

+24
-276
lines changed

2 files changed

+24
-276
lines changed

arch/mips/boot/dts/mobileye/eyeq5-clocks.dtsi

Lines changed: 0 additions & 270 deletions
This file was deleted.

arch/mips/boot/dts/mobileye/eyeq5.dtsi

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#include <dt-bindings/interrupt-controller/mips-gic.h>
77

8-
#include "eyeq5-clocks.dtsi"
8+
#include <dt-bindings/clock/mobileye,eyeq5-clk.h>
99

1010
/ {
1111
#address-cells = <2>;
@@ -17,7 +17,7 @@
1717
device_type = "cpu";
1818
compatible = "img,i6500";
1919
reg = <0>;
20-
clocks = <&core0_clk>;
20+
clocks = <&olb EQ5C_CPU_CORE0>;
2121
};
2222
};
2323

@@ -64,6 +64,24 @@
6464
#interrupt-cells = <1>;
6565
};
6666

67+
xtal: xtal {
68+
compatible = "fixed-clock";
69+
#clock-cells = <0>;
70+
clock-frequency = <30000000>;
71+
};
72+
73+
pclk: pclk {
74+
compatible = "fixed-clock";
75+
#clock-cells = <0>;
76+
clock-frequency = <250000000>; /* 250MHz */
77+
};
78+
79+
tsu_clk: tsu-clk {
80+
compatible = "fixed-clock";
81+
#clock-cells = <0>;
82+
clock-frequency = <125000000>; /* 125MHz */
83+
};
84+
6785
soc: soc {
6886
#address-cells = <2>;
6987
#size-cells = <2>;
@@ -76,7 +94,7 @@
7694
reg-io-width = <4>;
7795
interrupt-parent = <&gic>;
7896
interrupts = <GIC_SHARED 6 IRQ_TYPE_LEVEL_HIGH>;
79-
clocks = <&uart_clk>, <&occ_periph>;
97+
clocks = <&olb EQ5C_PER_UART>, <&olb EQ5C_PER_OCC>;
8098
clock-names = "uartclk", "apb_pclk";
8199
resets = <&olb 0 10>;
82100
pinctrl-names = "default";
@@ -89,7 +107,7 @@
89107
reg-io-width = <4>;
90108
interrupt-parent = <&gic>;
91109
interrupts = <GIC_SHARED 6 IRQ_TYPE_LEVEL_HIGH>;
92-
clocks = <&uart_clk>, <&occ_periph>;
110+
clocks = <&olb EQ5C_PER_UART>, <&olb EQ5C_PER_OCC>;
93111
clock-names = "uartclk", "apb_pclk";
94112
resets = <&olb 0 11>;
95113
pinctrl-names = "default";
@@ -102,7 +120,7 @@
102120
reg-io-width = <4>;
103121
interrupt-parent = <&gic>;
104122
interrupts = <GIC_SHARED 6 IRQ_TYPE_LEVEL_HIGH>;
105-
clocks = <&uart_clk>, <&occ_periph>;
123+
clocks = <&olb EQ5C_PER_UART>, <&olb EQ5C_PER_OCC>;
106124
clock-names = "uartclk", "apb_pclk";
107125
resets = <&olb 0 12>;
108126
pinctrl-names = "default";
@@ -135,7 +153,7 @@
135153
timer {
136154
compatible = "mti,gic-timer";
137155
interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
138-
clocks = <&core0_clk>;
156+
clocks = <&olb EQ5C_CPU_CORE0>;
139157
};
140158
};
141159
};

0 commit comments

Comments
 (0)