blob: fcd267afc60fb6e9ee9a62e10213cc3d8f2f41f2 [file] [log] [blame]
# Copyright 2024 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
%YAML 1.2
---
$id: http://devicetree.org/schemas/spmi/spmi.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: SPMI
maintainers:
- Puneetha Ramachandra (puneetha@google.com)
- Braden Kell (bradenkell@google.com)
properties:
$nodename:
pattern: "^spmi@"
"#address-cells":
const: 2
"#size-cells":
const: 0
patternProperties:
"@[0-9a-f]$":
type: object
properties:
"#address-cells":
const: 1
"#size-cells":
const: 1
reg:
items:
- items:
- description: Target ID from 0-15.
minimum: 0
maximum: 15
- description: Zero represents a target ID; other values are reserved.
const: 0
required:
- reg
additionalProperties: true
required:
- "#address-cells"
- "#size-cells"
additionalProperties: true
examples:
- |
spmi@abcd0000 {
compatible = "example,spmi-controller";
reg = <0xabcd0000 0x1000>;
#address-cells = <2>;
#size-cells = <0>;
pmic@0 {
reg = <0 SPMI_USID>;
reg-names = "pmic";
#address-cells = <1>;
#size-cells = <1>;
vreg@1000 {
compatible = "example,pmic-vreg";
reg = <0x1000 0x1000>;
};
gpio@2000 {
compatible = "example,pmic-gpio";
reg = <0x2000 0x800>;
};
i2c@3000 {
compatible = "example,pmic-i2c";
reg = <0x3000 0x400>, <0xffff 1>;
reg-names = "i2c-core", "i2c-config";
};
};
vreg@3 {
compatible = "example,spmi-vreg";
reg = <3 SPMI_USID>;
reg-names = "vreg";
};
};