706eacadd5
DT core: - Fix node refcounting in of_find_last_cache_level() - Constify device_node in of_device_compatible_match() - Fix 'dma-ranges' handling in bus controller nodes - Fix handling of initrd start > end - Improve error reporting in of_irq_init() - Taint kernel on DT unittest running - Use strscpy instead of strlcpy - Add a build target, dt_compatible_check, to check for compatible strings used in kernel sources against compatible strings in DT schemas. - Handle DT_SCHEMA_FILES changes when rebuilding DT bindings: - LED bindings for MT6370 PMIC - Convert Mediatek mtk-gce mailbox, MIPS CPU interrupt controller, mt7621 I2C, virtio,pci-iommu, nxp,tda998x, QCom fastrpc, qcom,pdc, and arm,versatile-sysreg to DT schema format - Add nvmem cells to u-boot,env schema - Add more LED_COLOR_ID definitions - Require 'opp-table' uses to be a node - Various schema fixes to match QEMU 'virt' DT usage - Tree wide dropping of redundant 'Device Tree Binding' in schema titles - More (unevaluated|additional)Properties fixes in schema child nodes - Drop various redundant minItems equal to maxItems -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEktVUI4SxYhzZyEuo+vtdtY28YcMFAmM7QzsACgkQ+vtdtY28 YcNMgg//eZr/y+FUyF3tE7DRRmCzbptAfRG0Ccmj6z0VM9HNmOiacnNdqGjOFHj6 CCFUHYsFJhiTwgM5MzMMZcQetrF+dZDok5HQNAkYqz5jtdcg1T0ZgrcpHcZpxfGv lpAFaDkyoWQ7BXJbgLJJFP6pZ4IDyekWjU49php5pYlmTvzLwMvYW2MYvElLJ4It tKi0XAzVyT/TrynFAOYDVO+kwZ4DDctsJM44K0LRW0e05Den9zCZDeVXik0J9l8o jMpVy5xgqAbNUe/TCj8n91nG/Cl3wiW8l8JGWPAcb3D1Em6CQlsJCGN1a/rSHUiE Pseql1ufUzpjcpTMnmdbRE/jWwJcLI2DqandxqIrEpUFmF4hlGeSviKib9qtacN0 pWC5pZgxrWvM9rHbbe2cYLozkYd8eiRo2l8hfefTopYbQ3UHa2hsU+f6vm9t0Gru vxH7BmdlI22aGlnP0jl8t84v5cpu8O4C6Zmf2B/b5xj3Tif2GTLU1aYPuX3PkqHL F9Ni+JqhnQBl1+t90PJogEFicjeyrjUO9lkKbzuoWwiJk5AgJcGck8tkBotlWYPc B59DTigELMlssYIoF4/oX8ZF1QVmws6Xc0f9/GkgCEA0bR1qdo63qPjM9FIpd1G4 9sUhxiQbPCtIMMwD1M26LGUE/C4WESL9VXjdakoMaj7ekon2vjw= =IDIz -----END PGP SIGNATURE----- Merge tag 'devicetree-for-6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux Pull devicetree updates from Rob Herring: "DT core: - Fix node refcounting in of_find_last_cache_level() - Constify device_node in of_device_compatible_match() - Fix 'dma-ranges' handling in bus controller nodes - Fix handling of initrd start > end - Improve error reporting in of_irq_init() - Taint kernel on DT unittest running - Use strscpy instead of strlcpy - Add a build target, dt_compatible_check, to check for compatible strings used in kernel sources against compatible strings in DT schemas. - Handle DT_SCHEMA_FILES changes when rebuilding DT bindings: - LED bindings for MT6370 PMIC - Convert Mediatek mtk-gce mailbox, MIPS CPU interrupt controller, mt7621 I2C, virtio,pci-iommu, nxp,tda998x, QCom fastrpc, qcom,pdc, and arm,versatile-sysreg to DT schema format - Add nvmem cells to u-boot,env schema - Add more LED_COLOR_ID definitions - Require 'opp-table' uses to be a node - Various schema fixes to match QEMU 'virt' DT usage - Tree wide dropping of redundant 'Device Tree Binding' in schema titles - More (unevaluated|additional)Properties fixes in schema child nodes - Drop various redundant minItems equal to maxItems" * tag 'devicetree-for-6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (62 commits) of: base: Shift refcount decrement in of_find_last_cache_level() dt-bindings: leds: Add MediaTek MT6370 flashlight dt-bindings: leds: mt6370: Add MediaTek MT6370 current sink type LED indicator dt-bindings: mailbox: Convert mtk-gce to DT schema of: base: make of_device_compatible_match() accept const device node of: Fix "dma-ranges" handling for bus controllers of: fdt: Remove unused struct fdt_scan_status dt-bindings: display: st,stm32-dsi: Handle data-lanes in DSI port node dt-bindings: timer: Add power-domains for TI timer-dm on K3 dt: Add a check for undocumented compatible strings in kernel kbuild: take into account DT_SCHEMA_FILES changes while checking dtbs dt-bindings: interrupt-controller: migrate MIPS CPU interrupt controller text bindings to YAML dt-bindings: i2c: migrate mt7621 text bindings to YAML dt-bindings: power: gpcv2: correct patternProperties dt-bindings: virtio: Convert virtio,pci-iommu to DT schema dt-bindings: timer: arm,arch_timer: Allow dual compatible string dt-bindings: arm: cpus: Add kryo240 compatible dt-bindings: display: bridge: nxp,tda998x: Convert to json-schema dt-bindings: nvmem: u-boot,env: add basic NVMEM cells dt-bindings: remoteproc: qcom,adsp: enforce smd-edge schema ...
405 lines
9.7 KiB
YAML
405 lines
9.7 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/mfd/x-powers,axp152.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: X-Powers AXP PMIC
|
|
|
|
maintainers:
|
|
- Chen-Yu Tsai <wens@csie.org>
|
|
|
|
allOf:
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- x-powers,axp152
|
|
- x-powers,axp202
|
|
- x-powers,axp209
|
|
|
|
then:
|
|
properties:
|
|
regulators:
|
|
properties:
|
|
x-powers,dcdc-freq:
|
|
minimum: 750
|
|
maximum: 1875
|
|
default: 1500
|
|
|
|
else:
|
|
properties:
|
|
regulators:
|
|
properties:
|
|
x-powers,dcdc-freq:
|
|
minimum: 1800
|
|
maximum: 4050
|
|
default: 3000
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- x-powers,axp152
|
|
- x-powers,axp202
|
|
- x-powers,axp209
|
|
|
|
then:
|
|
not:
|
|
required:
|
|
- x-powers,drive-vbus-en
|
|
|
|
- if:
|
|
not:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: x-powers,axp806
|
|
|
|
then:
|
|
allOf:
|
|
- not:
|
|
required:
|
|
- x-powers,self-working-mode
|
|
|
|
- not:
|
|
required:
|
|
- x-powers,master-mode
|
|
|
|
- if:
|
|
not:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: x-powers,axp305
|
|
|
|
then:
|
|
required:
|
|
- interrupts
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- enum:
|
|
- x-powers,axp152
|
|
- x-powers,axp202
|
|
- x-powers,axp209
|
|
- x-powers,axp221
|
|
- x-powers,axp223
|
|
- x-powers,axp803
|
|
- x-powers,axp806
|
|
- x-powers,axp809
|
|
- x-powers,axp813
|
|
- items:
|
|
- const: x-powers,axp228
|
|
- const: x-powers,axp221
|
|
- items:
|
|
- const: x-powers,axp805
|
|
- const: x-powers,axp806
|
|
- items:
|
|
- const: x-powers,axp305
|
|
- const: x-powers,axp805
|
|
- const: x-powers,axp806
|
|
- items:
|
|
- const: x-powers,axp818
|
|
- const: x-powers,axp813
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
interrupt-controller: true
|
|
|
|
"#interrupt-cells":
|
|
const: 1
|
|
|
|
x-powers,drive-vbus-en:
|
|
type: boolean
|
|
description: >
|
|
Set this when the N_VBUSEN pin is used as an output pin to control an
|
|
external regulator to drive the OTG VBus, rather then as an input pin
|
|
which signals whether the board is driving OTG VBus or not.
|
|
|
|
x-powers,self-working-mode:
|
|
type: boolean
|
|
description: >
|
|
Set this when the PMIC is wired for self-working mode through the MODESET
|
|
pin.
|
|
|
|
x-powers,master-mode:
|
|
type: boolean
|
|
description: >
|
|
Set this when the PMIC is wired for master mode through the MODESET pin.
|
|
|
|
vin1-supply:
|
|
description: >
|
|
DCDC1 power supply node, if present.
|
|
|
|
vin2-supply:
|
|
description: >
|
|
DCDC2 power supply node, if present.
|
|
|
|
vin3-supply:
|
|
description: >
|
|
DCDC3 power supply node, if present.
|
|
|
|
vin4-supply:
|
|
description: >
|
|
DCDC4 power supply node, if present.
|
|
|
|
vin5-supply:
|
|
description: >
|
|
DCDC5 power supply node, if present.
|
|
|
|
vin6-supply:
|
|
description: >
|
|
DCDC6 power supply node, if present.
|
|
|
|
vin7-supply:
|
|
description: >
|
|
DCDC7 power supply node, if present.
|
|
|
|
vina-supply:
|
|
description: >
|
|
DCDCA power supply node, if present.
|
|
|
|
vinb-supply:
|
|
description: >
|
|
DCDCB power supply node, if present.
|
|
|
|
vinc-supply:
|
|
description: >
|
|
DCDCC power supply node, if present.
|
|
|
|
vind-supply:
|
|
description: >
|
|
DCDCD power supply node, if present.
|
|
|
|
vine-supply:
|
|
description: >
|
|
DCDCE power supply node, if present.
|
|
|
|
acin-supply:
|
|
description: >
|
|
LDO1 power supply node, if present.
|
|
|
|
ldo24in-supply:
|
|
description: >
|
|
LDO2 and LDO4 power supply node, if present.
|
|
|
|
ldo3in-supply:
|
|
description: >
|
|
LDO3 power supply node, if present.
|
|
|
|
ldo5in-supply:
|
|
description: >
|
|
LDO5 power supply node, if present.
|
|
|
|
aldoin-supply:
|
|
description: >
|
|
ALDO* power supply node, if present.
|
|
|
|
bldoin-supply:
|
|
description: >
|
|
BLDO* power supply node, if present.
|
|
|
|
cldoin-supply:
|
|
description: >
|
|
CLDO* power supply node, if present.
|
|
|
|
dldoin-supply:
|
|
description: >
|
|
DLDO* power supply node, if present.
|
|
|
|
eldoin-supply:
|
|
description: >
|
|
ELDO* power supply node, if present.
|
|
|
|
fldoin-supply:
|
|
description: >
|
|
FLDO* power supply node, if present.
|
|
|
|
ips-supply:
|
|
description: >
|
|
LDO_IO0, LDO_IO1 and RTC_LDO power supply node, if present.
|
|
|
|
drivevbus-supply:
|
|
description: >
|
|
DRIVEVBUS power supply node, if present.
|
|
|
|
swin-supply:
|
|
description: >
|
|
SW power supply node, if present.
|
|
|
|
adc:
|
|
$ref: /schemas/iio/adc/x-powers,axp209-adc.yaml#
|
|
|
|
gpio:
|
|
$ref: /schemas/gpio/x-powers,axp209-gpio.yaml#
|
|
|
|
ac-power:
|
|
$ref: /schemas/power/supply/x-powers,axp20x-ac-power-supply.yaml#
|
|
|
|
battery-power:
|
|
$ref: /schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#
|
|
|
|
usb-power:
|
|
$ref: /schemas/power/supply/x-powers,axp20x-usb-power-supply.yaml#
|
|
|
|
regulators:
|
|
type: object
|
|
|
|
properties:
|
|
x-powers,dcdc-freq:
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
description: >
|
|
Defines the work frequency of DC-DC in kHz.
|
|
|
|
patternProperties:
|
|
"^(([a-f])?ldo[0-9]|dcdc[0-7a-e]|ldo(_|-)io(0|1)|(dc1)?sw|rtc(_|-)ldo|drivevbus|dc5ldo)$":
|
|
$ref: /schemas/regulator/regulator.yaml#
|
|
type: object
|
|
unevaluatedProperties: false
|
|
|
|
properties:
|
|
regulator-ramp-delay:
|
|
description: >
|
|
Only 800 and 1600 are valid for the DCDC2 and LDO3 regulators on
|
|
the AXP209.
|
|
|
|
regulator-soft-start:
|
|
description: >
|
|
Only valid for the LDO3 regulator.
|
|
|
|
x-powers,dcdc-workmode:
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
enum: [0, 1]
|
|
description: >
|
|
Only valid for DCDC regulators. Setup 1 for PWM mode, 0
|
|
for AUTO (PWM/PFM) mode. The DCDC regulators work in a
|
|
mixed PWM/PFM mode, using PFM under light loads and
|
|
switching to PWM for heavier loads. Forcing PWM mode
|
|
trades efficiency under light loads for lower output
|
|
noise. This probably makes sense for HiFi audio related
|
|
applications that aren't battery constrained.
|
|
|
|
additionalProperties: false
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- "#interrupt-cells"
|
|
- interrupt-controller
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
i2c0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
pmic@30 {
|
|
compatible = "x-powers,axp152";
|
|
reg = <0x30>;
|
|
interrupts = <0>;
|
|
interrupt-controller;
|
|
#interrupt-cells = <1>;
|
|
};
|
|
};
|
|
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
i2c0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
pmic@34 {
|
|
compatible = "x-powers,axp209";
|
|
reg = <0x34>;
|
|
interrupt-parent = <&nmi_intc>;
|
|
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
|
|
interrupt-controller;
|
|
#interrupt-cells = <1>;
|
|
|
|
ac_power_supply: ac-power {
|
|
compatible = "x-powers,axp202-ac-power-supply";
|
|
};
|
|
|
|
axp_adc: adc {
|
|
compatible = "x-powers,axp209-adc";
|
|
#io-channel-cells = <1>;
|
|
};
|
|
|
|
axp_gpio: gpio {
|
|
compatible = "x-powers,axp209-gpio";
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
|
|
gpio0-adc-pin {
|
|
pins = "GPIO0";
|
|
function = "adc";
|
|
};
|
|
};
|
|
|
|
battery_power_supply: battery-power {
|
|
compatible = "x-powers,axp209-battery-power-supply";
|
|
};
|
|
|
|
regulators {
|
|
/* Default work frequency for buck regulators */
|
|
x-powers,dcdc-freq = <1500>;
|
|
|
|
reg_dcdc2: dcdc2 {
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <1000000>;
|
|
regulator-max-microvolt = <1450000>;
|
|
regulator-name = "vdd-cpu";
|
|
};
|
|
|
|
reg_dcdc3: dcdc3 {
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <1000000>;
|
|
regulator-max-microvolt = <1400000>;
|
|
regulator-name = "vdd-int-dll";
|
|
};
|
|
|
|
reg_ldo1: ldo1 {
|
|
/* LDO1 is a fixed output regulator */
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <1300000>;
|
|
regulator-max-microvolt = <1300000>;
|
|
regulator-name = "vdd-rtc";
|
|
};
|
|
|
|
reg_ldo2: ldo2 {
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <3000000>;
|
|
regulator-max-microvolt = <3000000>;
|
|
regulator-name = "avcc";
|
|
};
|
|
|
|
reg_ldo3: ldo3 {
|
|
regulator-name = "ldo3";
|
|
};
|
|
|
|
reg_ldo4: ldo4 {
|
|
regulator-name = "ldo4";
|
|
};
|
|
|
|
reg_ldo5: ldo5 {
|
|
regulator-name = "ldo5";
|
|
};
|
|
};
|
|
|
|
usb_power_supply: usb-power {
|
|
compatible = "x-powers,axp202-usb-power-supply";
|
|
};
|
|
};
|
|
};
|