.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Device tree for LEGO MINDSTORMS EV3 |
---|
3 | 4 | * |
---|
4 | 5 | * 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. |
---|
9 | 6 | */ |
---|
10 | 7 | |
---|
11 | 8 | /dts-v1/; |
---|
.. | .. |
---|
125 | 122 | amp-supply = <&>; |
---|
126 | 123 | }; |
---|
127 | 124 | |
---|
| 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 | + |
---|
128 | 134 | /* |
---|
129 | 135 | * This is a 5V current limiting regulator that is shared by USB, |
---|
130 | 136 | * the sensor (input) ports, the motor (output) ports and the A/DC. |
---|
.. | .. |
---|
202 | 208 | |
---|
203 | 209 | &ref_clk { |
---|
204 | 210 | 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"; |
---|
205 | 232 | }; |
---|
206 | 233 | |
---|
207 | 234 | &pmx_core { |
---|
.. | .. |
---|
352 | 379 | compatible = "ti,ads7957"; |
---|
353 | 380 | reg = <3>; |
---|
354 | 381 | #io-channel-cells = <1>; |
---|
355 | | - spi-max-frequency = <10000000>; |
---|
| 382 | + spi-max-frequency = <1000000>; |
---|
| 383 | + ti,spi-wdelay = <63>; |
---|
356 | 384 | vref-supply = <&adc_ref>; |
---|
357 | 385 | }; |
---|
358 | 386 | }; |
---|