Linux Audio

Check our new training course

Loading...
v4.17
 
  1/*
  2 * Copyright (c) 2014 Romain Perier <romain.perier@gmail.com>
  3 *
  4 * This file is dual-licensed: you can use it either under the terms
  5 * of the GPL or the X11 license, at your option. Note that this dual
  6 * licensing only applies to this file, and not this project as a
  7 * whole.
  8 *
  9 *  a) This file is free software; you can redistribute it and/or
 10 *     modify it under the terms of the GNU General Public License as
 11 *     published by the Free Software Foundation; either version 2 of the
 12 *     License, or (at your option) any later version.
 13 *
 14 *     This file is distributed in the hope that it will be useful,
 15 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 16 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 17 *     GNU General Public License for more details.
 18 *
 19 * Or, alternatively,
 20 *
 21 *  b) Permission is hereby granted, free of charge, to any person
 22 *     obtaining a copy of this software and associated documentation
 23 *     files (the "Software"), to deal in the Software without
 24 *     restriction, including without limitation the rights to use,
 25 *     copy, modify, merge, publish, distribute, sublicense, and/or
 26 *     sell copies of the Software, and to permit persons to whom the
 27 *     Software is furnished to do so, subject to the following
 28 *     conditions:
 29 *
 30 *     The above copyright notice and this permission notice shall be
 31 *     included in all copies or substantial portions of the Software.
 32 *
 33 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 34 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 35 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 36 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 37 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 38 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 39 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 40 *     OTHER DEALINGS IN THE SOFTWARE.
 41 */
 42
 43/dts-v1/;
 44#include "rk3066a.dtsi"
 45
 46/ {
 47	model = "MarsBoard RK3066";
 48	compatible = "haoyu,marsboard-rk3066", "rockchip,rk3066a";
 49
 
 
 
 
 50	memory@60000000 {
 51		device_type = "memory";
 52		reg = <0x60000000 0x40000000>;
 53	};
 54
 55	vdd_log: vdd-log {
 56		compatible = "pwm-regulator";
 57		pwms = <&pwm3 0 1000>;
 58		regulator-name = "vdd_log";
 59		regulator-min-microvolt = <1200000>;
 60		regulator-max-microvolt = <1200000>;
 61		regulator-always-on;
 62		voltage-table = <1000000 100>,
 63				<1200000 42>;
 64		status = "okay";
 65	};
 66
 67	vcc_sd0: sdmmc-regulator {
 68		compatible = "regulator-fixed";
 69		regulator-name = "sdmmc-supply";
 70		regulator-min-microvolt = <3000000>;
 71		regulator-max-microvolt = <3000000>;
 72		gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
 73		startup-delay-us = <100000>;
 74		vin-supply = <&vcc_io>;
 75	};
 76
 77	vsys: vsys-regulator {
 78		compatible = "regulator-fixed";
 79		regulator-name = "vsys";
 80		regulator-min-microvolt = <5000000>;
 81		regulator-max-microvolt = <5000000>;
 82		regulator-boot-on;
 83	};
 84};
 85
 86&cpu0 {
 87	cpu0-supply = <&vdd_arm>;
 
 
 
 
 88};
 89
 90&i2c1 {
 91	status = "okay";
 92	clock-frequency = <400000>;
 93
 94	tps: tps@2d {
 95		reg = <0x2d>;
 96
 97		interrupt-parent = <&gpio6>;
 98		interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
 99
100		vcc1-supply = <&vsys>;
101		vcc2-supply = <&vsys>;
102		vcc3-supply = <&vsys>;
103		vcc4-supply = <&vsys>;
104		vcc5-supply = <&vcc_io>;
105		vcc6-supply = <&vcc_io>;
106		vcc7-supply = <&vsys>;
107		vccio-supply = <&vsys>;
108
109		regulators {
110			vcc_rtc: regulator@0 {
111				regulator-name = "vcc_rtc";
112				regulator-always-on;
113			};
114
115			vcc_io: regulator@1 {
116				regulator-name = "vcc_io";
117				regulator-always-on;
118			};
119
120			vdd_arm: regulator@2 {
121				regulator-name = "vdd_arm";
122				regulator-min-microvolt = <600000>;
123				regulator-max-microvolt = <1500000>;
124				regulator-boot-on;
125				regulator-always-on;
126			};
127
128			vcc_ddr: regulator@3 {
129				regulator-name = "vcc_ddr";
130				regulator-min-microvolt = <600000>;
131				regulator-max-microvolt = <1500000>;
132				regulator-boot-on;
133				regulator-always-on;
134			};
135
136			vcc18_cif: regulator@5 {
137				regulator-name = "vcc18_cif";
138				regulator-always-on;
139			};
140
141			vdd_11: regulator@6 {
142				regulator-name = "vdd_11";
143				regulator-always-on;
144			};
145
146			vcc_25: regulator@7 {
147				regulator-name = "vcc_25";
148				regulator-always-on;
149			};
150
151			vcc_18: regulator@8 {
152				regulator-name = "vcc_18";
153				regulator-always-on;
154			};
155
156			vcc25_hdmi: regulator@9 {
157				regulator-name = "vcc25_hdmi";
158				regulator-always-on;
159			};
160
161			vcca_33: regulator@10 {
162				regulator-name = "vcca_33";
163				regulator-always-on;
164			};
165
166			vcc_rmii: regulator@11 {
167				regulator-name = "vcc_rmii";
168			};
169
170			vcc28_cif: regulator@12 {
171				regulator-name = "vcc28_cif";
172				regulator-always-on;
173			};
174		};
175	};
176};
177
178/* must be included after &tps gets defined */
179#include "tps65910.dtsi"
180
181&emac {
182	status = "okay";
183
184	phy = <&phy0>;
185	phy-supply = <&vcc_rmii>;
186
187	pinctrl-names = "default";
188	pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
189
190	phy0: ethernet-phy@0 {
191		reg = <0>;
192		interrupt-parent = <&gpio1>;
193		interrupts = <RK_PD2 IRQ_TYPE_LEVEL_LOW>;
194	};
195};
196
197&mmc0 {
198	status = "okay";
199
200	pinctrl-names = "default";
201	pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
202	vmmc-supply = <&vcc_sd0>;
203};
204
205&pinctrl {
206	lan8720a {
207		phy_int: phy-int {
208			rockchip,pins = <RK_GPIO1 26 RK_FUNC_GPIO &pcfg_pull_none>;
209		};
210	};
211};
212
213&pwm3 {
214	status = "okay";
215};
216
217&uart0 {
218	status = "okay";
219};
220
221&uart1 {
222	status = "okay";
223};
224
225&uart2 {
226	status = "okay";
227};
228
229&uart3 {
230	status = "okay";
231};
232
233&usbphy {
234	status = "okay";
235};
236
237&usb_host {
238	status = "okay";
239};
240
241&usb_otg {
242	status = "okay";
243};
244
245&wdt {
246	status = "okay";
247};
v5.14.15
  1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2/*
  3 * Copyright (c) 2014 Romain Perier <romain.perier@gmail.com>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  4 */
  5
  6/dts-v1/;
  7#include "rk3066a.dtsi"
  8
  9/ {
 10	model = "MarsBoard RK3066";
 11	compatible = "haoyu,marsboard-rk3066", "rockchip,rk3066a";
 12
 13	aliases {
 14		mmc0 = &mmc0;
 15	};
 16
 17	memory@60000000 {
 18		device_type = "memory";
 19		reg = <0x60000000 0x40000000>;
 20	};
 21
 22	vdd_log: vdd-log {
 23		compatible = "pwm-regulator";
 24		pwms = <&pwm3 0 1000>;
 25		regulator-name = "vdd_log";
 26		regulator-min-microvolt = <1200000>;
 27		regulator-max-microvolt = <1200000>;
 28		regulator-always-on;
 29		voltage-table = <1000000 100>,
 30				<1200000 42>;
 31		status = "okay";
 32	};
 33
 34	vcc_sd0: sdmmc-regulator {
 35		compatible = "regulator-fixed";
 36		regulator-name = "sdmmc-supply";
 37		regulator-min-microvolt = <3000000>;
 38		regulator-max-microvolt = <3000000>;
 39		gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
 40		startup-delay-us = <100000>;
 41		vin-supply = <&vcc_io>;
 42	};
 43
 44	vsys: vsys-regulator {
 45		compatible = "regulator-fixed";
 46		regulator-name = "vsys";
 47		regulator-min-microvolt = <5000000>;
 48		regulator-max-microvolt = <5000000>;
 49		regulator-boot-on;
 50	};
 51};
 52
 53&cpu0 {
 54	cpu-supply = <&vdd_arm>;
 55};
 56
 57&cpu1 {
 58	cpu-supply = <&vdd_arm>;
 59};
 60
 61&i2c1 {
 62	status = "okay";
 63	clock-frequency = <400000>;
 64
 65	tps: tps@2d {
 66		reg = <0x2d>;
 67
 68		interrupt-parent = <&gpio6>;
 69		interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
 70
 71		vcc1-supply = <&vsys>;
 72		vcc2-supply = <&vsys>;
 73		vcc3-supply = <&vsys>;
 74		vcc4-supply = <&vsys>;
 75		vcc5-supply = <&vcc_io>;
 76		vcc6-supply = <&vcc_io>;
 77		vcc7-supply = <&vsys>;
 78		vccio-supply = <&vsys>;
 79
 80		regulators {
 81			vcc_rtc: regulator@0 {
 82				regulator-name = "vcc_rtc";
 83				regulator-always-on;
 84			};
 85
 86			vcc_io: regulator@1 {
 87				regulator-name = "vcc_io";
 88				regulator-always-on;
 89			};
 90
 91			vdd_arm: regulator@2 {
 92				regulator-name = "vdd_arm";
 93				regulator-min-microvolt = <600000>;
 94				regulator-max-microvolt = <1500000>;
 95				regulator-boot-on;
 96				regulator-always-on;
 97			};
 98
 99			vcc_ddr: regulator@3 {
100				regulator-name = "vcc_ddr";
101				regulator-min-microvolt = <600000>;
102				regulator-max-microvolt = <1500000>;
103				regulator-boot-on;
104				regulator-always-on;
105			};
106
107			vcc18_cif: regulator@5 {
108				regulator-name = "vcc18_cif";
109				regulator-always-on;
110			};
111
112			vdd_11: regulator@6 {
113				regulator-name = "vdd_11";
114				regulator-always-on;
115			};
116
117			vcc_25: regulator@7 {
118				regulator-name = "vcc_25";
119				regulator-always-on;
120			};
121
122			vcc_18: regulator@8 {
123				regulator-name = "vcc_18";
124				regulator-always-on;
125			};
126
127			vcc25_hdmi: regulator@9 {
128				regulator-name = "vcc25_hdmi";
129				regulator-always-on;
130			};
131
132			vcca_33: regulator@10 {
133				regulator-name = "vcca_33";
134				regulator-always-on;
135			};
136
137			vcc_rmii: regulator@11 {
138				regulator-name = "vcc_rmii";
139			};
140
141			vcc28_cif: regulator@12 {
142				regulator-name = "vcc28_cif";
143				regulator-always-on;
144			};
145		};
146	};
147};
148
149/* must be included after &tps gets defined */
150#include "tps65910.dtsi"
151
152&emac {
153	status = "okay";
154
155	phy = <&phy0>;
156	phy-supply = <&vcc_rmii>;
157
158	pinctrl-names = "default";
159	pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
160
161	phy0: ethernet-phy@0 {
162		reg = <0>;
163		interrupt-parent = <&gpio1>;
164		interrupts = <RK_PD2 IRQ_TYPE_LEVEL_LOW>;
165	};
166};
167
168&mmc0 {
169	status = "okay";
170
171	pinctrl-names = "default";
172	pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
173	vmmc-supply = <&vcc_sd0>;
174};
175
176&pinctrl {
177	lan8720a {
178		phy_int: phy-int {
179			rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
180		};
181	};
182};
183
184&pwm3 {
185	status = "okay";
186};
187
188&uart0 {
189	status = "okay";
190};
191
192&uart1 {
193	status = "okay";
194};
195
196&uart2 {
197	status = "okay";
198};
199
200&uart3 {
201	status = "okay";
202};
203
204&usbphy {
205	status = "okay";
206};
207
208&usb_host {
209	status = "okay";
210};
211
212&usb_otg {
213	status = "okay";
214};
215
216&wdt {
217	status = "okay";
218};