[PATCH v1 17/23] arm: dts: nbxv3: add the +3V3_FAN regulator
Vincent Jardin <[email protected]>
| Newsgroups | org.u-boot-project.lists.u-boot |
|---|---|
| Message-ID | <[email protected]> |
Declare the +3V3_FAN fixed regulator (fan-en-pwr) on the carrier chassis management expander of the IIC6 mux tree. Signed-off-by: Vincent Jardin <[email protected]> --- arch/arm/dts/fsl-lx2160a-nbxv3.dts | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/fsl-lx2160a-nbxv3.dts b/arch/arm/dts/fsl-lx2160a-nbxv3.dts index 3b87ee32d94..2047709f5b7 100644 --- a/arch/arm/dts/fsl-lx2160a-nbxv3.dts +++ b/arch/arm/dts/fsl-lx2160a-nbxv3.dts @@ -8,6 +8,7 @@ /dts-v1/; +#include <dt-bindings/gpio/gpio.h> #include "fsl-lx2160a.dtsi" / { @@ -248,7 +249,6 @@ reg = <0x76>; #gpio-cells = <2>; gpio-controller; - /* P0_4 = fan-en-pwr -- FAN power rail enable, U186.P0_4 */ }; }; @@ -315,10 +315,10 @@ #address-cells = <1>; #size-cells = <0>; - fan-controller@2c { compatible = "microchip,emc2305"; reg = <0x2c>; }; - eeprom@50 { compatible = "atmel,24c32"; reg = <0x50>; }; - tmp411@4c { compatible = "ti,tmp411"; reg = <0x4c>; }; - tmp411@4d { compatible = "ti,tmp411"; reg = <0x4d>; }; + fan-controller@2c { compatible = "microchip,emc2305"; reg = <0x2c>; vcc-supply = <&fan_3v3>; }; + eeprom@50 { compatible = "atmel,24c32"; reg = <0x50>; vcc-supply = <&fan_3v3>; }; + tmp411@4c { compatible = "ti,tmp411"; reg = <0x4c>; vcc-supply = <&fan_3v3>; }; + tmp411@4d { compatible = "ti,tmp411"; reg = <0x4d>; vcc-supply = <&fan_3v3>; }; }; i2c@1 { reg = <1>; #address-cells = <1>; #size-cells = <0>; }; @@ -340,3 +340,15 @@ }; }; }; + +/ { + fan_3v3: regulator-fan-3v3 { + compatible = "regulator-fixed"; + regulator-name = "+3V3_FAN"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&carrier_u186 4 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + }; +}; -- 2.43.0