Skip to content

Commit 7d2b23f

Browse files
MrVansudeep-holla
authored andcommitted
dt-bindings: firmware: Add i.MX95 SCMI Extension protocol
Add i.MX SCMI Extension protocols bindings for: - Battery Backed Module(BBM) Protocol This contains persistent storage (GPR), an RTC, and the ON/OFF button. The protocol can also provide access to similar functions implemented via external board components. - MISC Protocol. This includes controls that are misc settings/actions that must be exposed from the SM to agents. They are device specific and are usually define to access bit fields in various mix block control modules, IOMUX_GPR, and other GPR/CSR owned by the SM. Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: Cristian Marussi <cristian.marussi@arm.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> Message-Id: <20240823-imx95-bbm-misc-v2-v8-1-e600ed9e9271@nxp.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
1 parent c4b908a commit 7d2b23f

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

Documentation/devicetree/bindings/firmware/arm,scmi.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ description: |
2222
2323
[0] https://developer.arm.com/documentation/den0056/latest
2424
25+
anyOf:
26+
- $ref: /schemas/firmware/nxp,imx95-scmi.yaml
27+
2528
properties:
2629
$nodename:
2730
const: scmi
@@ -299,7 +302,7 @@ properties:
299302
required:
300303
- reg
301304

302-
additionalProperties: false
305+
unevaluatedProperties: false
303306

304307
$defs:
305308
protocol-node:
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
# Copyright 2024 NXP
3+
%YAML 1.2
4+
---
5+
$id: http://devicetree.org/schemas/firmware/nxp,imx95-scmi.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: i.MX95 System Control and Management Interface(SCMI) Vendor Protocols Extension
9+
10+
maintainers:
11+
- Peng Fan <peng.fan@nxp.com>
12+
13+
properties:
14+
protocol@81:
15+
$ref: '/schemas/firmware/arm,scmi.yaml#/$defs/protocol-node'
16+
unevaluatedProperties: false
17+
18+
properties:
19+
reg:
20+
const: 0x81
21+
22+
protocol@84:
23+
$ref: '/schemas/firmware/arm,scmi.yaml#/$defs/protocol-node'
24+
unevaluatedProperties: false
25+
26+
properties:
27+
reg:
28+
const: 0x84
29+
30+
nxp,ctrl-ids:
31+
description:
32+
Each entry consists of 2 integers, represents the ctrl id and the value
33+
items:
34+
items:
35+
- description: the ctrl id index
36+
enum: [0, 1, 2, 3, 4, 5, 6, 7, 0x8000, 0x8001, 0x8002, 0x8003,
37+
0x8004, 0x8005, 0x8006, 0x8007]
38+
- description: the value assigned to the ctrl id
39+
minItems: 1
40+
maxItems: 16
41+
$ref: /schemas/types.yaml#/definitions/uint32-matrix
42+
43+
additionalProperties: true

0 commit comments

Comments
 (0)