dt-bindings: gunyah: Perform some correction on vm schema
Start correcting the gunyah/vm.yaml schema. It passes basic validation now, but is still incomplete with Gunyah Resource Manager's parsing. Change-Id: I9d3123fa5fa9752960523249136c11adcfd8e092 Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
%YAML 1.2
|
%YAML 1.2
|
||||||
---
|
---
|
||||||
$id: http://devicetree.org/schemas/gunyah/vm.yaml#
|
$id: http://devicetree.org/schemas/gunyah/vm.yaml#
|
||||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
$schema: http://devicetree.org/meta-schemas/base.yaml#
|
||||||
|
|
||||||
title: Virtual Machine (VM) Configuration
|
title: Virtual Machine (VM) Configuration
|
||||||
|
|
||||||
@@ -17,28 +17,23 @@ description: |+
|
|||||||
|
|
||||||
properties:
|
properties:
|
||||||
compatible:
|
compatible:
|
||||||
oneOf:
|
const: qcom,vm-1.0
|
||||||
- const: qcom,vm-1.0
|
|
||||||
|
|
||||||
vm-type:
|
vm-type:
|
||||||
description: type of virtual machine e.g aarch64, x86 etc
|
description: type of virtual machine e.g aarch64, x86 etc
|
||||||
oneOf:
|
const: aarch64-guest
|
||||||
- const: aarch64-guest
|
|
||||||
|
|
||||||
boot-config:
|
boot-config:
|
||||||
oneOf:
|
const: fdt,unified
|
||||||
- const: fdt,unified
|
|
||||||
|
|
||||||
os-type:
|
os-type:
|
||||||
description: Type of the operating system being used in virtual machine
|
const: linux
|
||||||
oneOf:
|
|
||||||
- const: linux
|
|
||||||
|
|
||||||
kernel-entry-segment:
|
kernel-entry-segment:
|
||||||
$ref: /schemas/types.yaml#/definitions/string-array
|
$ref: /schemas/types.yaml#/definitions/string-array
|
||||||
|
|
||||||
kernel-entry-offset:
|
kernel-entry-offset:
|
||||||
$ref: '/schemas/types.yaml#/definitions/uint64'
|
$ref: /schemas/types.yaml#/definitions/uint64
|
||||||
|
|
||||||
vendor:
|
vendor:
|
||||||
$ref: /schemas/types.yaml#/definitions/string-array
|
$ref: /schemas/types.yaml#/definitions/string-array
|
||||||
@@ -47,9 +42,11 @@ properties:
|
|||||||
$ref: /schemas/types.yaml#/definitions/string-array
|
$ref: /schemas/types.yaml#/definitions/string-array
|
||||||
|
|
||||||
qcom,pasid:
|
qcom,pasid:
|
||||||
$ref: '/schemas/types.yaml#/definitions/uint64'
|
$ref: /schemas/types.yaml#/definitions/uint64
|
||||||
|
description: PIL SW-ID, only for PIL VMs
|
||||||
|
|
||||||
memory:
|
memory:
|
||||||
|
type: object
|
||||||
properties:
|
properties:
|
||||||
"#address-cells":
|
"#address-cells":
|
||||||
const: 2
|
const: 2
|
||||||
@@ -63,6 +60,7 @@ properties:
|
|||||||
maxItems: 2
|
maxItems: 2
|
||||||
|
|
||||||
segments:
|
segments:
|
||||||
|
type: object
|
||||||
properties:
|
properties:
|
||||||
kernel:
|
kernel:
|
||||||
maxItems: 4
|
maxItems: 4
|
||||||
@@ -72,19 +70,60 @@ properties:
|
|||||||
description: Load location offset of devicetree
|
description: Load location offset of devicetree
|
||||||
|
|
||||||
vcpus:
|
vcpus:
|
||||||
|
type: object
|
||||||
properties:
|
properties:
|
||||||
config
|
config:
|
||||||
affinity
|
$ref: /schemas/types.yaml#/definitions/string
|
||||||
affinity-map
|
description: path to DT node where CPU configuration will be overlaid by RM
|
||||||
|
affinity:
|
||||||
|
enum:
|
||||||
|
- static
|
||||||
|
- sticky
|
||||||
|
- proxy
|
||||||
|
affinity-map:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32-array
|
||||||
|
description: |
|
||||||
|
Array where index is the vCPU id.
|
||||||
|
The value at the index is the physical cpu to affine that vcpu to.
|
||||||
|
|
||||||
interrupts:
|
interrupts:
|
||||||
|
type: object
|
||||||
properties:
|
properties:
|
||||||
config
|
config:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/phandle
|
||||||
|
description: Phandle to the interrupt controller
|
||||||
|
|
||||||
vdevices:
|
vdevices:
|
||||||
|
type: object
|
||||||
properties:
|
properties:
|
||||||
peer-default
|
generate:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/string
|
||||||
|
description: path to DT node where vdevices configuration will be overlaid by RM
|
||||||
|
patternProperties:
|
||||||
|
".*":
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
vdevice-type:
|
||||||
|
enum:
|
||||||
|
- rm-rpc
|
||||||
|
- doorbell-source
|
||||||
|
- doorbell
|
||||||
|
- message-queue
|
||||||
|
- shm
|
||||||
|
- shm-doorbell
|
||||||
|
- iomem
|
||||||
|
generate:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/string
|
||||||
|
description: path to DT node where vdevices configuration will be overlaid by RM
|
||||||
|
push-compatible:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/string-array
|
||||||
|
description: Additional compatible strings to apply to the vdevice DT node
|
||||||
|
qcom,label:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
|
description: label provided by RM when providing the capability to VM
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- compatible
|
- compatible
|
||||||
- image_to_be_loaded
|
- image_to_be_loaded
|
||||||
|
|
||||||
|
additionalProperties: true
|
||||||
|
Reference in New Issue
Block a user