Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: sunxi: bananapi-m2-plus-v1.2: Fix CPU supply voltages

The Bananapi M2+ uses a GPIO line to change the effective resistance of
the CPU supply regulator's feedback resistor network. The voltages
described in the device tree were given directly by the vendor. This
turns out to be slightly off compared to the real values.

The updated voltages are based on calculations of the feedback resistor
network, and verified down to three decimal places with a multi-meter.

Fixes: 6eeb4180d4b9 ("ARM: dts: sunxi: h3-h5: Add Bananapi M2+ v1.2 device trees")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20200717160053.31191-4-wens@kernel.org

authored by

Chen-Yu Tsai and committed by
Maxime Ripard
e4dae01b 55b271af

+3 -3
+3 -3
arch/arm/boot/dts/sunxi-bananapi-m2-plus-v1.2.dtsi
··· 16 16 regulator-type = "voltage"; 17 17 regulator-boot-on; 18 18 regulator-always-on; 19 - regulator-min-microvolt = <1100000>; 20 - regulator-max-microvolt = <1300000>; 19 + regulator-min-microvolt = <1108475>; 20 + regulator-max-microvolt = <1308475>; 21 21 regulator-ramp-delay = <50>; /* 4ms */ 22 22 gpios = <&r_pio 0 1 GPIO_ACTIVE_HIGH>; /* PL1 */ 23 23 gpios-states = <0x1>; 24 - states = <1100000 0>, <1300000 1>; 24 + states = <1108475 0>, <1308475 1>; 25 25 }; 26 26 }; 27 27