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#include "rk3288-evb.dtsi"
 43
 44/ {
 
 45	compatible = "rockchip,rk3288-evb-act8846", "rockchip,rk3288";
 46
 47	vcc_lcd: vcc-lcd {
 48		compatible = "regulator-fixed";
 49		enable-active-high;
 50		gpio = <&gpio7 RK_PA3 GPIO_ACTIVE_HIGH>;
 51		pinctrl-names = "default";
 52		pinctrl-0 = <&lcd_en>;
 53		regulator-name = "vcc_lcd";
 54		vin-supply = <&vcc_io>;
 55	};
 56
 57	vcc_wl: vcc-wl {
 58		compatible = "regulator-fixed";
 59		enable-active-high;
 60		gpio = <&gpio7 RK_PB1 GPIO_ACTIVE_HIGH>;
 61		pinctrl-names = "default";
 62		pinctrl-0 = <&wifi_pwr>;
 63		regulator-name = "vcc_wl";
 64		vin-supply = <&vcc_18>;
 65	};
 66};
 67
 68&i2c0 {
 69	clock-frequency = <400000>;
 70
 71	vdd_cpu: syr827@40 {
 72		compatible = "silergy,syr827";
 73		fcs,suspend-voltage-selector = <1>;
 74		reg = <0x40>;
 75		regulator-name = "vdd_cpu";
 76		regulator-min-microvolt = <850000>;
 77		regulator-max-microvolt = <1350000>;
 78		regulator-always-on;
 79		regulator-boot-on;
 80		vin-supply = <&vcc_sys>;
 81	};
 82
 83	vdd_gpu: syr828@41 {
 84		compatible = "silergy,syr828";
 85		fcs,suspend-voltage-selector = <1>;
 86		reg = <0x41>;
 87		regulator-name = "vdd_gpu";
 88		regulator-min-microvolt = <850000>;
 89		regulator-max-microvolt = <1350000>;
 90		regulator-always-on;
 91		vin-supply = <&vcc_sys>;
 92	};
 93
 94	hym8563@51 {
 95		compatible = "haoyu,hym8563";
 96		reg = <0x51>;
 97
 98		interrupt-parent = <&gpio0>;
 99		interrupts = <RK_PA4 IRQ_TYPE_EDGE_FALLING>;
100
101		pinctrl-names = "default";
102		pinctrl-0 = <&pmic_int>;
103
104		#clock-cells = <0>;
105		clock-output-names = "xin32k";
106	};
107
108	act8846: act8846@5a {
109		compatible = "active-semi,act8846";
110		reg = <0x5a>;
111		status = "okay";
112
113		vp1-supply = <&vcc_sys>;
114		vp2-supply = <&vcc_sys>;
115		vp3-supply = <&vcc_sys>;
116		vp4-supply = <&vcc_sys>;
117		inl1-supply = <&vcc_io>;
118		inl2-supply = <&vcc_sys>;
119		inl3-supply = <&vcc_20>;
120
121		regulators {
122			vcc_ddr: REG1 {
123				regulator-name = "VCC_DDR";
124				regulator-min-microvolt = <1200000>;
125				regulator-max-microvolt = <1200000>;
126				regulator-always-on;
127			};
128
129			vcc_io: REG2 {
130				regulator-name = "VCC_IO";
131				regulator-min-microvolt = <3300000>;
132				regulator-max-microvolt = <3300000>;
133				regulator-always-on;
134			};
135
136			vdd_log: REG3 {
137				regulator-name = "VDD_LOG";
138				regulator-min-microvolt = <700000>;
139				regulator-max-microvolt = <1500000>;
140				regulator-always-on;
141			};
142
143			vcc_20: REG4 {
144				regulator-name = "VCC_20";
145				regulator-min-microvolt = <2000000>;
146				regulator-max-microvolt = <2000000>;
147				regulator-always-on;
148			};
149
150			vccio_sd: REG5 {
151				regulator-name = "VCCIO_SD";
152				regulator-min-microvolt = <1800000>;
153				regulator-max-microvolt = <3300000>;
154				regulator-always-on;
155			};
156
157			vdd10_lcd: REG6 {
158				regulator-name = "VDD10_LCD";
159				regulator-min-microvolt = <1000000>;
160				regulator-max-microvolt = <1000000>;
161				regulator-always-on;
162			};
163
164			vcca_codec: REG7 {
165				regulator-name = "VCCA_CODEC";
166				regulator-min-microvolt = <3300000>;
167				regulator-max-microvolt = <3300000>;
168				regulator-always-on;
169			};
170
171			vcc_tp: REG8 {
172				regulator-name = "VCCA_TP";
173				regulator-min-microvolt = <3300000>;
174				regulator-max-microvolt = <3300000>;
175				regulator-always-on;
176			};
177
178			vccio_pmu: REG9 {
179				regulator-name = "VCCIO_PMU";
180				regulator-min-microvolt = <3300000>;
181				regulator-max-microvolt = <3300000>;
182				regulator-always-on;
183			};
184
185			vdd_10: REG10 {
186				regulator-name = "VDD_10";
187				regulator-min-microvolt = <1000000>;
188				regulator-max-microvolt = <1000000>;
189				regulator-always-on;
190			};
191
192			vcc_18: REG11 {
193				regulator-name = "VCC_18";
194				regulator-min-microvolt = <1800000>;
195				regulator-max-microvolt = <1800000>;
196				regulator-always-on;
197			};
198
199			vcc18_lcd: REG12 {
200				regulator-name = "VCC18_LCD";
201				regulator-min-microvolt = <1800000>;
202				regulator-max-microvolt = <1800000>;
203				regulator-always-on;
204			};
205		};
206	};
207};
208
209&panel {
210	power-supply = <&vcc_lcd>;
211};
212
213&pinctrl {
214	lcd {
215		lcd_en: lcd-en  {
216			rockchip,pins = <7 3 RK_FUNC_GPIO &pcfg_pull_none>;
217		};
218	};
219
220	wifi {
221		wifi_pwr: wifi-pwr {
222			rockchip,pins = <7 9 RK_FUNC_GPIO &pcfg_pull_none>;
223		};
224	};
225};
v5.14.15
  1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  2
  3/dts-v1/;
  4#include "rk3288-evb.dtsi"
  5
  6/ {
  7	model = "Rockchip RK3288 EVB ACT8846";
  8	compatible = "rockchip,rk3288-evb-act8846", "rockchip,rk3288";
  9
 10	vcc_lcd: vcc-lcd {
 11		compatible = "regulator-fixed";
 12		enable-active-high;
 13		gpio = <&gpio7 RK_PA3 GPIO_ACTIVE_HIGH>;
 14		pinctrl-names = "default";
 15		pinctrl-0 = <&lcd_en>;
 16		regulator-name = "vcc_lcd";
 17		vin-supply = <&vcc_io>;
 18	};
 19
 20	vcc_wl: vcc-wl {
 21		compatible = "regulator-fixed";
 22		enable-active-high;
 23		gpio = <&gpio7 RK_PB1 GPIO_ACTIVE_HIGH>;
 24		pinctrl-names = "default";
 25		pinctrl-0 = <&wifi_pwr>;
 26		regulator-name = "vcc_wl";
 27		vin-supply = <&vcc_18>;
 28	};
 29};
 30
 31&i2c0 {
 32	clock-frequency = <400000>;
 33
 34	vdd_cpu: syr827@40 {
 35		compatible = "silergy,syr827";
 36		fcs,suspend-voltage-selector = <1>;
 37		reg = <0x40>;
 38		regulator-name = "vdd_cpu";
 39		regulator-min-microvolt = <850000>;
 40		regulator-max-microvolt = <1350000>;
 41		regulator-always-on;
 42		regulator-boot-on;
 43		vin-supply = <&vcc_sys>;
 44	};
 45
 46	vdd_gpu: syr828@41 {
 47		compatible = "silergy,syr828";
 48		fcs,suspend-voltage-selector = <1>;
 49		reg = <0x41>;
 50		regulator-name = "vdd_gpu";
 51		regulator-min-microvolt = <850000>;
 52		regulator-max-microvolt = <1350000>;
 53		regulator-always-on;
 54		vin-supply = <&vcc_sys>;
 55	};
 56
 57	hym8563@51 {
 58		compatible = "haoyu,hym8563";
 59		reg = <0x51>;
 60
 61		interrupt-parent = <&gpio0>;
 62		interrupts = <RK_PA4 IRQ_TYPE_EDGE_FALLING>;
 63
 64		pinctrl-names = "default";
 65		pinctrl-0 = <&pmic_int>;
 66
 67		#clock-cells = <0>;
 68		clock-output-names = "xin32k";
 69	};
 70
 71	act8846: act8846@5a {
 72		compatible = "active-semi,act8846";
 73		reg = <0x5a>;
 74		status = "okay";
 75
 76		vp1-supply = <&vcc_sys>;
 77		vp2-supply = <&vcc_sys>;
 78		vp3-supply = <&vcc_sys>;
 79		vp4-supply = <&vcc_sys>;
 80		inl1-supply = <&vcc_io>;
 81		inl2-supply = <&vcc_sys>;
 82		inl3-supply = <&vcc_20>;
 83
 84		regulators {
 85			vcc_ddr: REG1 {
 86				regulator-name = "VCC_DDR";
 87				regulator-min-microvolt = <1200000>;
 88				regulator-max-microvolt = <1200000>;
 89				regulator-always-on;
 90			};
 91
 92			vcc_io: REG2 {
 93				regulator-name = "VCC_IO";
 94				regulator-min-microvolt = <3300000>;
 95				regulator-max-microvolt = <3300000>;
 96				regulator-always-on;
 97			};
 98
 99			vdd_log: REG3 {
100				regulator-name = "VDD_LOG";
101				regulator-min-microvolt = <700000>;
102				regulator-max-microvolt = <1500000>;
103				regulator-always-on;
104			};
105
106			vcc_20: REG4 {
107				regulator-name = "VCC_20";
108				regulator-min-microvolt = <2000000>;
109				regulator-max-microvolt = <2000000>;
110				regulator-always-on;
111			};
112
113			vccio_sd: REG5 {
114				regulator-name = "VCCIO_SD";
115				regulator-min-microvolt = <1800000>;
116				regulator-max-microvolt = <3300000>;
117				regulator-always-on;
118			};
119
120			vdd10_lcd: REG6 {
121				regulator-name = "VDD10_LCD";
122				regulator-min-microvolt = <1000000>;
123				regulator-max-microvolt = <1000000>;
124				regulator-always-on;
125			};
126
127			vcca_codec: REG7 {
128				regulator-name = "VCCA_CODEC";
129				regulator-min-microvolt = <3300000>;
130				regulator-max-microvolt = <3300000>;
131				regulator-always-on;
132			};
133
134			vcc_tp: REG8 {
135				regulator-name = "VCCA_TP";
136				regulator-min-microvolt = <3300000>;
137				regulator-max-microvolt = <3300000>;
138				regulator-always-on;
139			};
140
141			vccio_pmu: REG9 {
142				regulator-name = "VCCIO_PMU";
143				regulator-min-microvolt = <3300000>;
144				regulator-max-microvolt = <3300000>;
145				regulator-always-on;
146			};
147
148			vdd_10: REG10 {
149				regulator-name = "VDD_10";
150				regulator-min-microvolt = <1000000>;
151				regulator-max-microvolt = <1000000>;
152				regulator-always-on;
153			};
154
155			vcc_18: REG11 {
156				regulator-name = "VCC_18";
157				regulator-min-microvolt = <1800000>;
158				regulator-max-microvolt = <1800000>;
159				regulator-always-on;
160			};
161
162			vcc18_lcd: REG12 {
163				regulator-name = "VCC18_LCD";
164				regulator-min-microvolt = <1800000>;
165				regulator-max-microvolt = <1800000>;
166				regulator-always-on;
167			};
168		};
169	};
170};
171
172&panel {
173	power-supply = <&vcc_lcd>;
174};
175
176&pinctrl {
177	lcd {
178		lcd_en: lcd-en  {
179			rockchip,pins = <7 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
180		};
181	};
182
183	wifi {
184		wifi_pwr: wifi-pwr {
185			rockchip,pins = <7 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
186		};
187	};
188};