Pull more devicetree updates from Rob Herring: "This is mostly a treewide clean-up from Krzysztof. There's also a couple of fixes and things that fell thru the cracks. I must say this has been a nice merge window without bindings dumped in at the last minute introducing warnings. Summary: - Treewide dropping of redundant 'binding' or 'schema' from schema titles. This will be followed up with a automated check to catch these. - Re-sort vendor-prefies - Convert GPIO based watchdog to schema - Handle all the variations for clocks, resets, power domains in i.MX PCIe binding - Document missing 'power-domains' property in mxsfb - Fix error with path references in Tegra XUSB example - Honor CONFIG_CMDLINE* even without /chosen node" * tag 'devicetree-for-6.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: dt-bindings: drop redundant part of title (manual) dt-bindings: clock: drop redundant part of title dt-bindings: drop redundant part of title (beginning) dt-bindings: drop redundant part of title (end, part three) dt-bindings: drop redundant part of title (end, part two) dt-bindings: drop redundant part of title (end) dt-bindings: clock: st,stm32mp1-rcc: add proper title dt-bindings: memory-controllers: ti,gpmc-child: drop redundant part of title dt-bindings: drop redundant part of title of shared bindings dt-bindings: watchdog: gpio: Convert bindings to YAML dt-bindings: imx6q-pcie: Handle more resets on legacy platforms dt-bindings: imx6q-pcie: Handle various PD configurations dt-bindings: imx6q-pcie: Handle various clock configurations dt-bindings: hwmon: ntc-thermistor: drop Naveen Krishna Chatradhi from maintainers dt-bindings: mxsfb: Document i.MX8M/i.MX6SX/i.MX6SL power-domains property dt-bindings: vendor-prefixes: sort entries alphabetically dt-bindings: usb: tegra-xusb: Remove path references of: fdt: Honor CONFIG_CMDLINE* even without /chosen node
62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
# Copyright 2019-2020 Artur Rojek
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/power/supply/ingenic,battery.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Ingenic JZ47xx battery
|
|
|
|
maintainers:
|
|
- Artur Rojek <contact@artur-rojek.eu>
|
|
|
|
$ref: power-supply.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- const: ingenic,jz4740-battery
|
|
- items:
|
|
- enum:
|
|
- ingenic,jz4725b-battery
|
|
- ingenic,jz4770-battery
|
|
- const: ingenic,jz4740-battery
|
|
|
|
io-channels:
|
|
maxItems: 1
|
|
|
|
io-channel-names:
|
|
const: battery
|
|
|
|
monitored-battery:
|
|
description: >
|
|
This property must be a phandle to a node using the format described
|
|
in battery.yaml, with the following properties being required:
|
|
- voltage-min-design-microvolt: drained battery voltage,
|
|
- voltage-max-design-microvolt: fully charged battery voltage.
|
|
|
|
required:
|
|
- compatible
|
|
- io-channels
|
|
- io-channel-names
|
|
- monitored-battery
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/iio/adc/ingenic,adc.h>
|
|
|
|
simple_battery: battery {
|
|
compatible = "simple-battery";
|
|
voltage-min-design-microvolt = <3600000>;
|
|
voltage-max-design-microvolt = <4200000>;
|
|
};
|
|
|
|
ingenic-battery {
|
|
compatible = "ingenic,jz4740-battery";
|
|
io-channels = <&adc INGENIC_ADC_BATTERY>;
|
|
io-channel-names = "battery";
|
|
monitored-battery = <&simple_battery>;
|
|
};
|