1402a3cb3SSebastian Reichel# SPDX-License-Identifier: GPL-2.0 2402a3cb3SSebastian Reichel%YAML 1.2 3402a3cb3SSebastian Reichel--- 4*1ea78ec5SKrzysztof Kozlowski$id: http://devicetree.org/schemas/power/supply/maxim,max8903.yaml# 5*1ea78ec5SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 6402a3cb3SSebastian Reichel 7402a3cb3SSebastian Reicheltitle: Maxim Semiconductor MAX8903 Battery Charger 8402a3cb3SSebastian Reichel 9402a3cb3SSebastian Reichelmaintainers: 10402a3cb3SSebastian Reichel - Sebastian Reichel <sre@kernel.org> 11402a3cb3SSebastian Reichel 12402a3cb3SSebastian ReichelallOf: 13402a3cb3SSebastian Reichel - $ref: power-supply.yaml# 14402a3cb3SSebastian Reichel 15402a3cb3SSebastian Reichelproperties: 16402a3cb3SSebastian Reichel compatible: 17402a3cb3SSebastian Reichel const: maxim,max8903 18402a3cb3SSebastian Reichel 19402a3cb3SSebastian Reichel dok-gpios: 20402a3cb3SSebastian Reichel maxItems: 1 21402a3cb3SSebastian Reichel description: Valid DC power has been detected (active low, input) 22402a3cb3SSebastian Reichel 23402a3cb3SSebastian Reichel uok-gpios: 24402a3cb3SSebastian Reichel maxItems: 1 25402a3cb3SSebastian Reichel description: Valid USB power has been detected (active low, input) 26402a3cb3SSebastian Reichel 27402a3cb3SSebastian Reichel cen-gpios: 28402a3cb3SSebastian Reichel maxItems: 1 29402a3cb3SSebastian Reichel description: Charge enable pin (active low, output) 30402a3cb3SSebastian Reichel 31402a3cb3SSebastian Reichel chg-gpios: 32402a3cb3SSebastian Reichel maxItems: 1 33402a3cb3SSebastian Reichel description: Charger status pin (active low, input) 34402a3cb3SSebastian Reichel 35402a3cb3SSebastian Reichel flt-gpios: 36402a3cb3SSebastian Reichel maxItems: 1 37402a3cb3SSebastian Reichel description: Fault pin (active low, output) 38402a3cb3SSebastian Reichel 39402a3cb3SSebastian Reichel dcm-gpios: 40402a3cb3SSebastian Reichel maxItems: 1 41402a3cb3SSebastian Reichel description: Current limit mode setting (DC=1 or USB=0, output) 42402a3cb3SSebastian Reichel 43402a3cb3SSebastian Reichel usus-gpios: 44402a3cb3SSebastian Reichel maxItems: 1 45402a3cb3SSebastian Reichel description: USB suspend pin (active high, output) 46402a3cb3SSebastian Reichel 47402a3cb3SSebastian Reichelrequired: 48402a3cb3SSebastian Reichel - compatible 49402a3cb3SSebastian Reichel 50402a3cb3SSebastian ReichelanyOf: 51402a3cb3SSebastian Reichel - required: 52402a3cb3SSebastian Reichel - dok-gpios 53402a3cb3SSebastian Reichel - required: 54402a3cb3SSebastian Reichel - uok-gpios 55402a3cb3SSebastian Reichel 56402a3cb3SSebastian ReicheladditionalProperties: false 57402a3cb3SSebastian Reichel 58402a3cb3SSebastian Reichelexamples: 59402a3cb3SSebastian Reichel - | 60402a3cb3SSebastian Reichel #include <dt-bindings/gpio/gpio.h> 61402a3cb3SSebastian Reichel charger { 62402a3cb3SSebastian Reichel compatible = "maxim,max8903"; 63402a3cb3SSebastian Reichel dok-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; 64402a3cb3SSebastian Reichel flt-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; 65402a3cb3SSebastian Reichel chg-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; 66402a3cb3SSebastian Reichel cen-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; 67402a3cb3SSebastian Reichel }; 68