Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (C) 2018 Chen-Yu Tsai <wens@csie.org>
0004  */
0005 
0006 #include "sunxi-bananapi-m2-plus.dtsi"
0007 
0008 / {
0009         /*
0010          * Bananapi M2+ v1.2 uses a GPIO line to change the effective
0011          * resistance on the CPU regulator's feedback pin.
0012          */
0013         reg_vdd_cpux: vdd-cpux {
0014                 compatible = "regulator-gpio";
0015                 regulator-name = "vdd-cpux";
0016                 regulator-type = "voltage";
0017                 regulator-boot-on;
0018                 regulator-always-on;
0019                 regulator-min-microvolt = <1108475>;
0020                 regulator-max-microvolt = <1308475>;
0021                 regulator-ramp-delay = <50>; /* 4ms */
0022                 gpios = <&r_pio 0 1 GPIO_ACTIVE_HIGH>; /* PL1 */
0023                 gpios-states = <0x1>;
0024                 states = <1108475 0>, <1308475 1>;
0025         };
0026 };
0027 
0028 &cpu0 {
0029         cpu-supply = <&reg_vdd_cpux>;
0030 };
0031 
0032 &cpu1 {
0033         cpu-supply = <&reg_vdd_cpux>;
0034 };
0035 
0036 &cpu2 {
0037         cpu-supply = <&reg_vdd_cpux>;
0038 };
0039 
0040 &cpu3 {
0041         cpu-supply = <&reg_vdd_cpux>;
0042 };