Linux Audio

Check our new training course

Loading...
v4.17
  1/*
  2 * This file is dual-licensed: you can use it either under the terms
  3 * of the GPL or the X11 license, at your option. Note that this dual
  4 * licensing only applies to this file, and not this project as a
  5 * whole.
  6 *
  7 *  a) This file is free software; you can redistribute it and/or
  8 *     modify it under the terms of the GNU General Public License as
  9 *     published by the Free Software Foundation; either version 2 of the
 10 *     License, or (at your option) any later version.
 11 *
 12 *     This file is distributed in the hope that it will be useful,
 13 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 14 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 15 *     GNU General Public License for more details.
 16 *
 17 *  Or, alternatively,
 18 *
 19 *  b) Permission is hereby granted, free of charge, to any person
 20 *     obtaining a copy of this software and associated documentation
 21 *     files (the "Software"), to deal in the Software without
 22 *     restriction, including without limitation the rights to use,
 23 *     copy, modify, merge, publish, distribute, sublicense, and/or
 24 *     sell copies of the Software, and to permit persons to whom the
 25 *     Software is furnished to do so, subject to the following
 26 *     conditions:
 27 *
 28 *     The above copyright notice and this permission notice shall be
 29 *     included in all copies or substantial portions of the Software.
 30 *
 31 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 32 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 33 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 34 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 35 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 36 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 37 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 38 *     OTHER DEALINGS IN THE SOFTWARE.
 39 */
 40
 41/dts-v1/;
 42
 43#include "rk322x.dtsi"
 44
 45/ {
 46	model = "Rockchip RK3228 Evaluation board";
 47	compatible = "rockchip,rk3228-evb", "rockchip,rk3228";
 48
 49	memory@60000000 {
 50		device_type = "memory";
 51		reg = <0x60000000 0x40000000>;
 52	};
 53
 54	vcc_phy: vcc-phy-regulator {
 55		compatible = "regulator-fixed";
 56		enable-active-high;
 57		regulator-name = "vcc_phy";
 58		regulator-min-microvolt = <1800000>;
 59		regulator-max-microvolt = <1800000>;
 60		regulator-always-on;
 61		regulator-boot-on;
 62	};
 63};
 64
 65&emmc {
 
 66	cap-mmc-highspeed;
 67	mmc-ddr-1_8v;
 68	disable-wp;
 69	non-removable;
 70	status = "okay";
 71};
 72
 73&gmac {
 74	assigned-clocks = <&cru SCLK_MAC_SRC>;
 75	assigned-clock-rates = <50000000>;
 76	clock_in_out = "output";
 77	phy-supply = <&vcc_phy>;
 78	phy-mode = "rmii";
 79	phy-handle = <&phy>;
 80	status = "okay";
 81
 82	mdio {
 83		compatible = "snps,dwmac-mdio";
 84		#address-cells = <1>;
 85		#size-cells = <0>;
 86
 87		phy: phy@0 {
 88			compatible = "ethernet-phy-id1234.d400", "ethernet-phy-ieee802.3-c22";
 89			reg = <0>;
 90			clocks = <&cru SCLK_MAC_PHY>;
 91			resets = <&cru SRST_MACPHY>;
 92			phy-is-integrated;
 93		};
 94	};
 95};
 96
 97&tsadc {
 98	status = "okay";
 99
100	rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
101	rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
102};
103
104&uart2 {
105	status = "okay";
106};
v4.6
 1/*
 2 * This file is dual-licensed: you can use it either under the terms
 3 * of the GPL or the X11 license, at your option. Note that this dual
 4 * licensing only applies to this file, and not this project as a
 5 * whole.
 6 *
 7 *  a) This file is free software; you can redistribute it and/or
 8 *     modify it under the terms of the GNU General Public License as
 9 *     published by the Free Software Foundation; either version 2 of the
10 *     License, or (at your option) any later version.
11 *
12 *     This file is distributed in the hope that it will be useful,
13 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
14 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 *     GNU General Public License for more details.
16 *
17 *  Or, alternatively,
18 *
19 *  b) Permission is hereby granted, free of charge, to any person
20 *     obtaining a copy of this software and associated documentation
21 *     files (the "Software"), to deal in the Software without
22 *     restriction, including without limitation the rights to use,
23 *     copy, modify, merge, publish, distribute, sublicense, and/or
24 *     sell copies of the Software, and to permit persons to whom the
25 *     Software is furnished to do so, subject to the following
26 *     conditions:
27 *
28 *     The above copyright notice and this permission notice shall be
29 *     included in all copies or substantial portions of the Software.
30 *
31 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
33 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
34 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
35 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
36 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
37 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
38 *     OTHER DEALINGS IN THE SOFTWARE.
39 */
40
41/dts-v1/;
42
43#include "rk3228.dtsi"
44
45/ {
46	model = "Rockchip RK3228 Evaluation board";
47	compatible = "rockchip,rk3228-evb", "rockchip,rk3228";
48
49	memory {
50		device_type = "memory";
51		reg = <0x60000000 0x40000000>;
52	};
 
 
 
 
 
 
 
 
 
 
53};
54
55&emmc {
56	broken-cd;
57	cap-mmc-highspeed;
58	mmc-ddr-1_8v;
59	disable-wp;
60	non-removable;
61	status = "okay";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62};
63
64&uart2 {
65	status = "okay";
66};