hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/arm/boot/dts/da850-lego-ev3.dts
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Device tree for LEGO MINDSTORMS EV3
34 *
45 * Copyright (C) 2017 David Lechner <david@lechnology.com>
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License as published by the
8
- * Free Software Foundation, version 2.
96 */
107
118 /dts-v1/;
....@@ -125,6 +122,15 @@
125122 amp-supply = <&amp>;
126123 };
127124
125
+ cvdd: regulator0 {
126
+ compatible = "regulator-fixed";
127
+ regulator-name = "cvdd";
128
+ regulator-min-microvolt = <1200000>;
129
+ regulator-max-microvolt = <1200000>;
130
+ regulator-always-on;
131
+ regulator-boot-on;
132
+ };
133
+
128134 /*
129135 * This is a 5V current limiting regulator that is shared by USB,
130136 * the sensor (input) ports, the motor (output) ports and the A/DC.
....@@ -202,6 +208,27 @@
202208
203209 &ref_clk {
204210 clock-frequency = <24000000>;
211
+};
212
+
213
+&cpu {
214
+ cpu-supply = <&cvdd>;
215
+};
216
+
217
+/* since we have a fixed regulator, we can't run at these points */
218
+&opp_100 {
219
+ status = "disabled";
220
+};
221
+
222
+&opp_200 {
223
+ status = "disabled";
224
+};
225
+
226
+/*
227
+ * The SoC is actually the 456MHz version, but because of the fixed regulator
228
+ * This is the fastest we can go.
229
+ */
230
+&opp_375 {
231
+ status = "okay";
205232 };
206233
207234 &pmx_core {
....@@ -352,7 +379,8 @@
352379 compatible = "ti,ads7957";
353380 reg = <3>;
354381 #io-channel-cells = <1>;
355
- spi-max-frequency = <10000000>;
382
+ spi-max-frequency = <1000000>;
383
+ ti,spi-wdelay = <63>;
356384 vref-supply = <&adc_ref>;
357385 };
358386 };