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

dt-bindings: reset: Add TPS380x documentation

Add device-tree binding documentation for the tps380x reset driver. The
binding uses enum to make it easy to add more devices from that family.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20220530092226.748644-1-m.felsch@pengutronix.de

authored by

Marco Felsch and committed by
Philipp Zabel
729a8a57 9c68d4e6

+49
+49
Documentation/devicetree/bindings/reset/ti,tps380x-reset.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/reset/ti,tps380x-reset.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: TI TPS380x reset controller node bindings 8 + 9 + maintainers: 10 + - Marco Felsch <kernel@pengutronix.de> 11 + 12 + description: | 13 + The TPS380x family [1] of supervisory circuits monitor supply voltages to 14 + provide circuit initialization and timing supervision. The devices assert a 15 + RESET signal if the voltage drops below a preset threshold or upon a manual 16 + reset input (MR). The RESET output remains asserted for the factory 17 + programmed delay after the voltage return above its threshold or after the 18 + manual reset input is released. 19 + 20 + [1] https://www.ti.com/product/TPS3801 21 + 22 + properties: 23 + compatible: 24 + enum: 25 + - ti,tps3801 26 + 27 + reset-gpios: 28 + maxItems: 1 29 + description: Reference to the GPIO connected to the MR pin. 30 + 31 + "#reset-cells": 32 + const: 0 33 + 34 + required: 35 + - compatible 36 + - reset-gpios 37 + - "#reset-cells" 38 + 39 + additionalProperties: false 40 + 41 + examples: 42 + - | 43 + #include <dt-bindings/gpio/gpio.h> 44 + reset: reset-controller { 45 + compatible = "ti,tps3801"; 46 + #reset-cells = <0>; 47 + reset-gpios = <&gpio3 2 GPIO_ACTIVE_LOW>; 48 + }; 49 + ...