Skip to content

Commit 1be858f

Browse files
tlebtsbogend
authored andcommitted
MIPS: mobileye: eyeq6h: add OLB nodes OLB and remove fixed clocks
Change the declaration of clocks: remove all fixed clocks and declare system-controllers (OLB) as clock providers. Remove eyeq6h-fixed-clocks.dtsi and move the crystal clock to the main eyeq6h.dtsi file. Signed-off-by: Théo Lebrun <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent d3c3c28 commit 1be858f

File tree

2 files changed

+69
-56
lines changed

2 files changed

+69
-56
lines changed

arch/mips/boot/dts/mobileye/eyeq6h-fixed-clocks.dtsi

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

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

Lines changed: 69 additions & 4 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 "eyeq6h-fixed-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 = <&occ_cpu>;
20+
clocks = <&olb_central EQ6HC_CENTRAL_CPU_OCC>;
2121
};
2222
};
2323

@@ -32,19 +32,42 @@
3232
#interrupt-cells = <1>;
3333
};
3434

35+
xtal: clock-30000000 {
36+
compatible = "fixed-clock";
37+
#clock-cells = <0>;
38+
clock-frequency = <30000000>;
39+
};
40+
3541
soc: soc {
3642
compatible = "simple-bus";
3743
#address-cells = <2>;
3844
#size-cells = <2>;
3945
ranges;
4046

47+
olb_acc: system-controller@d2003000 {
48+
compatible = "mobileye,eyeq6h-acc-olb", "syscon";
49+
reg = <0x0 0xd2003000 0x0 0x1000>;
50+
#reset-cells = <1>;
51+
#clock-cells = <1>;
52+
clocks = <&xtal>;
53+
clock-names = "ref";
54+
};
55+
56+
olb_central: system-controller@d3100000 {
57+
compatible = "mobileye,eyeq6h-central-olb", "syscon";
58+
reg = <0x0 0xd3100000 0x0 0x1000>;
59+
#clock-cells = <1>;
60+
clocks = <&xtal>;
61+
clock-names = "ref";
62+
};
63+
4164
uart0: serial@d3331000 {
4265
compatible = "arm,pl011", "arm,primecell";
4366
reg = <0 0xd3331000 0x0 0x1000>;
4467
reg-io-width = <4>;
4568
interrupt-parent = <&gic>;
4669
interrupts = <GIC_SHARED 43 IRQ_TYPE_LEVEL_HIGH>;
47-
clocks = <&occ_periph_w>, <&occ_periph_w>;
70+
clocks = <&olb_west EQ6HC_WEST_PER_UART>, <&olb_west EQ6HC_WEST_PER_OCC>;
4871
clock-names = "uartclk", "apb_pclk";
4972
};
5073

@@ -56,6 +79,15 @@
5679
pinctrl-single,function-mask = <0xffff>;
5780
};
5881

82+
olb_west: system-controller@d3338000 {
83+
compatible = "mobileye,eyeq6h-west-olb", "syscon";
84+
reg = <0x0 0xd3338000 0x0 0x1000>;
85+
#reset-cells = <1>;
86+
#clock-cells = <1>;
87+
clocks = <&xtal>;
88+
clock-names = "ref";
89+
};
90+
5991
pinctrl_east: pinctrl@d3357000 {
6092
compatible = "pinctrl-single";
6193
reg = <0x0 0xd3357000 0x0 0xb0>;
@@ -64,6 +96,23 @@
6496
pinctrl-single,function-mask = <0xffff>;
6597
};
6698

99+
olb_east: system-controller@d3358000 {
100+
compatible = "mobileye,eyeq6h-east-olb", "syscon";
101+
reg = <0x0 0xd3358000 0x0 0x1000>;
102+
#reset-cells = <1>;
103+
#clock-cells = <1>;
104+
clocks = <&xtal>;
105+
clock-names = "ref";
106+
};
107+
108+
olb_south: system-controller@d8013000 {
109+
compatible = "mobileye,eyeq6h-south-olb", "syscon";
110+
reg = <0x0 0xd8013000 0x0 0x1000>;
111+
#clock-cells = <1>;
112+
clocks = <&xtal>;
113+
clock-names = "ref";
114+
};
115+
67116
pinctrl_south: pinctrl@d8014000 {
68117
compatible = "pinctrl-single";
69118
reg = <0x0 0xd8014000 0x0 0xf8>;
@@ -72,6 +121,22 @@
72121
pinctrl-single,function-mask = <0xffff>;
73122
};
74123

124+
olb_ddr0: system-controller@e4080000 {
125+
compatible = "mobileye,eyeq6h-ddr0-olb", "syscon";
126+
reg = <0x0 0xe4080000 0x0 0x1000>;
127+
#clock-cells = <1>;
128+
clocks = <&xtal>;
129+
clock-names = "ref";
130+
};
131+
132+
olb_ddr1: system-controller@e4081000 {
133+
compatible = "mobileye,eyeq6h-ddr1-olb", "syscon";
134+
reg = <0x0 0xe4081000 0x0 0x1000>;
135+
#clock-cells = <1>;
136+
clocks = <&xtal>;
137+
clock-names = "ref";
138+
};
139+
75140
gic: interrupt-controller@f0920000 {
76141
compatible = "mti,gic";
77142
reg = <0x0 0xf0920000 0x0 0x20000>;
@@ -89,7 +154,7 @@
89154
timer {
90155
compatible = "mti,gic-timer";
91156
interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
92-
clocks = <&occ_cpu>;
157+
clocks = <&olb_central EQ6HC_CENTRAL_CPU_OCC>;
93158
};
94159
};
95160
};

0 commit comments

Comments
 (0)