1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/mfd/rohm,bd 4 $id: http://devicetree.org/schemas/mfd/rohm,bd9576-pmic.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: ROHM BD9576MUF and BD9573MUF Power Mana !! 7 title: ROHM BD9576MUF and BD9573MUF Power Management Integrated Circuit bindings 8 8 9 maintainers: 9 maintainers: 10 - Matti Vaittinen <mazziesaccount@gmail.com> !! 10 - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> 11 11 12 description: | 12 description: | 13 BD9576MUF and BD9573MUF are power management 13 BD9576MUF and BD9573MUF are power management ICs primarily intended for 14 powering the R-Car series processors. 14 powering the R-Car series processors. 15 The IC provides 6 power outputs with configu 15 The IC provides 6 power outputs with configurable sequencing and safety 16 monitoring. A watchdog logic with slow ping/ 16 monitoring. A watchdog logic with slow ping/windowed modes is also included. 17 17 18 properties: 18 properties: 19 compatible: 19 compatible: 20 enum: 20 enum: 21 - rohm,bd9576 21 - rohm,bd9576 22 - rohm,bd9573 22 - rohm,bd9573 23 23 24 reg: 24 reg: 25 description: 25 description: 26 I2C slave address. 26 I2C slave address. 27 maxItems: 1 27 maxItems: 1 28 28 29 interrupts: 29 interrupts: 30 maxItems: 1 30 maxItems: 1 31 31 32 rohm,vout1-en-low: 32 rohm,vout1-en-low: 33 description: 33 description: 34 BD9576 and BD9573 VOUT1 regulator enable 34 BD9576 and BD9573 VOUT1 regulator enable state can be individually 35 controlled by a GPIO. This is dictated b 35 controlled by a GPIO. This is dictated by state of vout1-en pin during 36 the PMIC startup. If vout1-en is LOW dur 36 the PMIC startup. If vout1-en is LOW during PMIC startup then the VOUT1 37 enable state is controlled via this pin. !! 37 enable sate is controlled via this pin. Set this property if vout1-en 38 is wired to be down at PMIC start-up. 38 is wired to be down at PMIC start-up. 39 type: boolean 39 type: boolean 40 40 41 rohm,vout1-en-gpios: 41 rohm,vout1-en-gpios: 42 description: 42 description: 43 GPIO specifier to specify the GPIO conne 43 GPIO specifier to specify the GPIO connected to vout1-en for vout1 ON/OFF 44 state control. 44 state control. 45 maxItems: 1 45 maxItems: 1 46 46 47 rohm,ddr-sel-low: 47 rohm,ddr-sel-low: 48 description: 48 description: 49 The BD9576 and BD9573 output voltage for 49 The BD9576 and BD9573 output voltage for DDR can be selected by setting 50 the ddr-sel pin low or high. Set this pr 50 the ddr-sel pin low or high. Set this property if ddr-sel is grounded. 51 type: boolean 51 type: boolean 52 52 53 rohm,watchdog-enable-gpios: 53 rohm,watchdog-enable-gpios: 54 description: The GPIO line used to enable 54 description: The GPIO line used to enable the watchdog. 55 maxItems: 1 55 maxItems: 1 56 56 57 rohm,watchdog-ping-gpios: 57 rohm,watchdog-ping-gpios: 58 description: The GPIO line used to ping th 58 description: The GPIO line used to ping the watchdog. 59 maxItems: 1 59 maxItems: 1 60 60 61 rohm,hw-timeout-ms: 61 rohm,hw-timeout-ms: 62 maxItems: 2 62 maxItems: 2 63 description: 63 description: 64 Watchdog timeout in milliseconds. If sin !! 64 Watchog timeout in milliseconds. If single value is given it is 65 the maximum timeout. Eg. if pinging watc 65 the maximum timeout. Eg. if pinging watchdog is not done within this time 66 limit the watchdog will be triggered. If 66 limit the watchdog will be triggered. If two values are given watchdog 67 is configured in "window mode". Then fir 67 is configured in "window mode". Then first value is limit for short-ping 68 Eg. if watchdog is pinged sooner than th 68 Eg. if watchdog is pinged sooner than that the watchdog will trigger. 69 When two values is given the second valu 69 When two values is given the second value is the maximum timeout. 70 # (HW) minimum for short timeout is 2ms, 70 # (HW) minimum for short timeout is 2ms, maximum 220 ms. 71 # (HW) minimum for max timeout is 4ms, m 71 # (HW) minimum for max timeout is 4ms, maximum 4416 ms. 72 72 73 regulators: 73 regulators: 74 $ref: /schemas/regulator/rohm,bd9576-regul !! 74 $ref: ../regulator/rohm,bd9576-regulator.yaml 75 description: 75 description: 76 List of child nodes that specify the reg 76 List of child nodes that specify the regulators. 77 77 78 required: 78 required: 79 - compatible 79 - compatible 80 - reg 80 - reg 81 - regulators 81 - regulators 82 82 83 additionalProperties: false 83 additionalProperties: false 84 84 85 examples: 85 examples: 86 - | 86 - | 87 #include <dt-bindings/gpio/gpio.h> 87 #include <dt-bindings/gpio/gpio.h> 88 #include <dt-bindings/leds/common.h> 88 #include <dt-bindings/leds/common.h> 89 i2c { 89 i2c { 90 #address-cells = <1>; 90 #address-cells = <1>; 91 #size-cells = <0>; 91 #size-cells = <0>; 92 pmic: pmic@30 { 92 pmic: pmic@30 { 93 compatible = "rohm,bd9576"; 93 compatible = "rohm,bd9576"; 94 reg = <0x30>; 94 reg = <0x30>; 95 rohm,vout1-en-low; 95 rohm,vout1-en-low; 96 rohm,vout1-en-gpios = <&gpio2 6 GP 96 rohm,vout1-en-gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>; 97 rohm,ddr-sel-low; 97 rohm,ddr-sel-low; 98 rohm,watchdog-enable-gpios = <&gpi 98 rohm,watchdog-enable-gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>; 99 rohm,watchdog-ping-gpios = <&gpio2 99 rohm,watchdog-ping-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>; 100 rohm,hw-timeout-ms = <150>, <2300> 100 rohm,hw-timeout-ms = <150>, <2300>; 101 101 102 regulators { 102 regulators { 103 boost1: regulator-vd50 { 103 boost1: regulator-vd50 { 104 regulator-name = "VD50"; 104 regulator-name = "VD50"; 105 }; 105 }; 106 buck1: regulator-vd18 { 106 buck1: regulator-vd18 { 107 regulator-name = "VD18"; 107 regulator-name = "VD18"; 108 }; 108 }; 109 buck2: regulator-vdddr { 109 buck2: regulator-vdddr { 110 regulator-name = "VDDDR"; 110 regulator-name = "VDDDR"; 111 }; 111 }; 112 buck3: regulator-vd10 { 112 buck3: regulator-vd10 { 113 regulator-name = "VD10"; 113 regulator-name = "VD10"; 114 }; 114 }; 115 ldo: regulator-voutl1 { 115 ldo: regulator-voutl1 { 116 regulator-name = "VOUTL1"; 116 regulator-name = "VOUTL1"; 117 }; 117 }; 118 sw: regulator-vouts1 { 118 sw: regulator-vouts1 { 119 regulator-name = "VOUTS1"; 119 regulator-name = "VOUTS1"; 120 }; 120 }; 121 }; 121 }; 122 }; 122 }; 123 }; 123 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.