2020-01-12 15:36:13 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 Chen-Yu Tsai <wens@csie.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "sunxi-bananapi-m2-plus.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
/*
|
|
|
|
* Bananapi M2+ v1.2 uses a GPIO line to change the effective
|
|
|
|
* resistance on the CPU regulator's feedback pin.
|
|
|
|
*/
|
|
|
|
reg_vdd_cpux: vdd-cpux {
|
|
|
|
compatible = "regulator-gpio";
|
|
|
|
regulator-name = "vdd-cpux";
|
|
|
|
regulator-type = "voltage";
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-always-on;
|
2022-04-27 20:31:27 +00:00
|
|
|
regulator-min-microvolt = <1108475>;
|
|
|
|
regulator-max-microvolt = <1308475>;
|
2020-01-12 15:36:13 +00:00
|
|
|
regulator-ramp-delay = <50>; /* 4ms */
|
|
|
|
gpios = <&r_pio 0 1 GPIO_ACTIVE_HIGH>; /* PL1 */
|
|
|
|
gpios-states = <0x1>;
|
2022-04-27 20:31:27 +00:00
|
|
|
states = <1108475 0>, <1308475 1>;
|
2020-01-12 15:36:13 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&cpu0 {
|
|
|
|
cpu-supply = <®_vdd_cpux>;
|
|
|
|
};
|
2022-04-27 20:31:27 +00:00
|
|
|
|
|
|
|
&cpu1 {
|
|
|
|
cpu-supply = <®_vdd_cpux>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&cpu2 {
|
|
|
|
cpu-supply = <®_vdd_cpux>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&cpu3 {
|
|
|
|
cpu-supply = <®_vdd_cpux>;
|
|
|
|
};
|