Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Firmware bindings

Single-page view · as markdown

Xilinx firmware driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings / xilinx

Schema identifier ($id): "http://devicetree.org/schemas/firmware/xilinx/xlnx,zynqmp-firmware.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Nava kishore Manne <nava.kishore.manne@amd.com>"

The zynqmp-firmware node describes the interface to platform firmware. ZynqMP has an interface to communicate with secure firmware. Firmware driver provides an interface to firmware APIs. Interface APIs can be used by any driver to communicate to PMUFW(Platform Management Unit). These requests include clock management, pin control, device control, power management service, FPGA service and other platform management services.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

For implementations complying for Zynq Ultrascale+ MPSoC.

Exact value (const): "xlnx,zynqmp-firmware"

Rule 2

For implementations complying for Versal.

Exact value (const): "xlnx,versal-firmware"

Rule 3

For implementations complying for Versal NET.

Array item rules (items)

Item 1

Allowed values (enum): "xlnx,versal-net-firmware"

Item 2

Exact value (const): "xlnx,versal-firmware"

method — not listed as required here #

The method of calling the PM-API firmware layer. Permitted values are. - "smc" : SMC #0, following the SMCCC - "hvc" : HVC #0, following the SMCCC

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array

Allowed values (enum): "smc", "hvc"

#power-domain-cells — not listed as required here #

Exact value (const): 1

clock-controller — not listed as required here #

Shared schema rule ($ref): /schemas/clock/xlnx,versal-clk.yaml#

The clock controller is a hardware block of Xilinx versal clock tree. It reads required input clock frequencies from the devicetree and acts as clock provider for all clock consumers of PS clocks.list of clock specifiers which are external input clocks to the given clock controller.

Value type (type): "object"

gpio — not listed as required here #

Shared schema rule ($ref): /schemas/gpio/xlnx,zynqmp-gpio-modepin.yaml#

The gpio node describes connect to PS_MODE pins via firmware interface.

Value type (type): "object"

soc-nvmem — not listed as required here #

Shared schema rule ($ref): /schemas/nvmem/xlnx,zynqmp-nvmem.yaml#

The ZynqMP MPSoC provides access to the hardware related data like SOC revision, IDCODE and specific purpose efuses.

Value type (type): "object"

pcap — not listed as required here #

Shared schema rule ($ref): /schemas/fpga/xlnx,zynqmp-pcap-fpga.yaml

The ZynqMP SoC uses the PCAP (Processor Configuration Port) to configure the Programmable Logic (PL). The configuration uses the firmware interface.

Value type (type): "object"

pinctrl — not listed as required here #

The pinctrl node provides access to pinconfig and pincontrol functionality available in firmware.

Value type (type): "object"

power-management — not listed as required here #

Shared schema rule ($ref): /schemas/power/reset/xlnx,zynqmp-power.yaml#

The zynqmp-power node describes the power management configurations. It will control remote suspend/shutdown interfaces.

Value type (type): "object"

reset-controller — not listed as required here #

Shared schema rule ($ref): /schemas/reset/xlnx,zynqmp-reset.yaml#

The reset-controller node describes connection to the reset functionality via firmware interface.

Value type (type): "object"

versal-fpga — not listed as required here #

Shared schema rule ($ref): /schemas/fpga/xlnx,versal-fpga.yaml#

Compatible of the FPGA device.

Value type (type): "object"

zynqmp-aes — not listed as required here #

Shared schema rule ($ref): /schemas/crypto/xlnx,zynqmp-aes.yaml#

The ZynqMP AES-GCM hardened cryptographic accelerator is used to encrypt or decrypt the data with provided key and initialization vector.

Value type (type): "object"

Deprecated (deprecated): true

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "xlnx,zynqmp-firmware"

When the condition matches (then) #

Properties and child nodes (properties)

pinctrl — not listed as required here

Shared schema rule ($ref): /schemas/pinctrl/xlnx,zynqmp-pinctrl.yaml#

When the condition does not match (else) #

Properties and child nodes (properties)

pinctrl — not listed as required here

Shared schema rule ($ref): /schemas/pinctrl/xlnx,versal-pinctrl.yaml#

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/power/xlnx-zynqmp-power.h>
firmware {
  zynqmp_firmware: zynqmp-firmware {
    compatible = "xlnx,zynqmp-firmware";
    #power-domain-cells = <1>;
    soc-nvmem {
      compatible = "xlnx,zynqmp-nvmem-fw";
      nvmem-layout {
        compatible = "fixed-layout";
        #address-cells = <1>;
        #size-cells = <1>;

        soc_revision: soc-revision@0 {
            reg = <0x0 0x4>;
        };
      };
    };
    gpio {
      compatible = "xlnx,zynqmp-gpio-modepin";
      gpio-controller;
      #gpio-cells = <2>;
    };
    pcap {
      compatible = "xlnx,zynqmp-pcap-fpga";
    };
    pinctrl {
      compatible = "xlnx,zynqmp-pinctrl";
    };
    power-management {
      compatible = "xlnx,zynqmp-power";
      interrupts = <0 35 4>;
    };
    reset-controller {
      compatible = "xlnx,zynqmp-reset";
      #reset-cells = <1>;
    };
  };
};

sata {
  power-domains = <&zynqmp_firmware PD_SATA>;
};

versal-firmware {
  compatible = "xlnx,versal-firmware";
  method = "smc";

  versal_fpga: versal-fpga {
    compatible = "xlnx,versal-fpga";
  };

  pinctrl {
    compatible = "xlnx,versal-pinctrl";
  };

  xlnx_aes: zynqmp-aes {
    compatible = "xlnx,zynqmp-aes";
  };

  versal_clk: clock-controller {
    #clock-cells = <1>;
    compatible = "xlnx,versal-clk";
    clocks = <&ref>, <&pl_alt_ref>;
    clock-names = "ref", "pl_alt_ref";
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Amlogic Secure Monitor (SM)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/amlogic,meson-gxbb-sm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

In the Amlogic SoCs the Secure Monitor code is used to provide access to the NVMEM, enable JTAG, set USB boot, etc...

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "amlogic,meson-gxbb-sm"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "amlogic,meson-gx-sm"

Item 2

Exact value (const): "amlogic,meson-gxbb-sm"

power-controller — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/power/amlogic,meson-sec-pwrc.yaml#

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

firmware {
    secure-monitor {
        compatible = "amlogic,meson-gxbb-sm";
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

System Control and Management Interface (SCMI) Message Protocol

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/arm,scmi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sudeep Holla <sudeep.holla@arm.com>"

The SCMI is intended to allow agents such as OSPM to manage various functions that are provided by the hardware platform it is running on, including power and performance functions.

This binding is intended to define the interface the firmware implementing the SCMI as described in ARM document number ARM DEN 0056 ("ARM System Control and Management Interface Platform Design Document")[0] provide for OSPM in the device tree.

[0] https://developer.arm.com/documentation/den0056/latest

At least one of these rules must match (anyOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/firmware/nxp,imx95-scmi.yaml

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^scmi(-[0-9]+)?$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

SCMI compliant firmware with mailbox transport

Array item rules (items)

Item 1

Exact value (const): "arm,scmi"

Rule 2

SCMI compliant firmware with ARM SMC/HVC transport

Array item rules (items)

Item 1

Exact value (const): "arm,scmi-smc"

Rule 3

SCMI compliant firmware with ARM SMC/HVC transport with shmem address(4KB-page, offset) as parameters

Array item rules (items)

Item 1

Exact value (const): "arm,scmi-smc-param"

Rule 4

SCMI compliant firmware with Qualcomm SMC/HVC transport

Array item rules (items)

Item 1

Exact value (const): "qcom,scmi-smc"

Rule 5

SCMI compliant firmware with SCMI Virtio transport. The virtio transport only supports a single device.

Array item rules (items)

Item 1

Exact value (const): "arm,scmi-virtio"

Rule 6

SCMI compliant firmware with OP-TEE transport

Array item rules (items)

Item 1

Exact value (const): "linaro,scmi-optee"

interrupts — not listed as required here #

The interrupt that indicates message completion by the platform rather than by the return of the smc call. This should not be used except when the platform requires such behavior.

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here #

Exact value (const): "a2p"

mbox-names — not listed as required here #

Specifies the mailboxes used to communicate with SCMI compliant firmware.

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

Minimum number of items (minItems): 1

Rule 2

Array item rules (items)

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "tx_reply"

Item 3

Exact value (const): "rx"

Item 4

Exact value (const): "rx_reply"

Minimum number of items (minItems): 2

mboxes — not listed as required here #

List of phandle and mailbox channel specifiers. It should contain exactly one, two, three or four mailboxes; the first one or two for transmitting messages ("tx") and another optional ("rx") for receiving notifications and delayed responses, if supported by the platform. The optional ("rx_reply") is for notifications completion interrupt, if supported by the platform. The number of mailboxes needed for transmitting messages depends on the type of channels exposed by the specific underlying mailbox controller; one single channel descriptor is enough if such channel is bidirectional, while two channel descriptors are needed to represent the SCMI ("tx") channel if the underlying mailbox channels are of unidirectional type. The effective combination in numbers of mboxes and shmem descriptors let the SCMI subsystem determine unambiguosly which type of SCMI channels are made available by the underlying mailbox controller and how to use them. 1 mbox / 1 shmem => SCMI TX over 1 mailbox bidirectional channel 2 mbox / 2 shmem => SCMI TX and RX over 2 mailbox bidirectional channels 2 mbox / 1 shmem => SCMI TX over 2 mailbox unidirectional channels 3 mbox / 2 shmem => SCMI TX and RX over 3 mailbox unidirectional channels 4 mbox / 2 shmem => SCMI TX and RX over 4 mailbox unidirectional channels Any other combination of mboxes and shmem is invalid.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

shmem — not listed as required here #

List of phandle pointing to the shared memory(SHM) area, for each transport channel specified.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

atomic-threshold-us — not listed as required here #

An optional time value, expressed in microseconds, representing, on this platform, the threshold above which any SCMI command, advertised to have an higher-than-threshold execution latency, should not be considered for atomic mode of operation, even if requested.

Default value (default): 0

arm,max-rx-timeout-ms — not listed as required here #

An optional time value, expressed in milliseconds, representing the transport maximum timeout value for the receive channel. The value should be a non-zero value if set.

Minimum value (minimum): 1

arm,max-msg-size — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

An optional value, expressed in bytes, representing the maximum size allowed for the payload of messages transmitted on this transport.

arm,max-msg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

An optional value representing the maximum number of concurrent in-flight messages allowed by this transport; this number represents the maximum number of concurrently outstanding messages that the server can handle on this platform. If set, the value should be non-zero.

Minimum value (minimum): 1

arm,smc-id — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

SMC id required when using smc or hvc transports

linaro,optee-channel-id — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Channel specifier required when using OP-TEE transport.

protocol@11 — not listed as required here #

Shared schema rule ($ref): #/$defs/protocol-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Exact value (const): 17

#power-domain-cells — required here

Exact value (const): 1

Required in this object (required): "#power-domain-cells"

protocol@12 — not listed as required here #

Shared schema rule ($ref): #/$defs/protocol-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Exact value (const): 18

protocol@13 — not listed as required here #

Shared schema rule ($ref): #/$defs/protocol-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Exact value (const): 19

#clock-cells — not listed as required here

Exact value (const): 1

#power-domain-cells — not listed as required here

Exact value (const): 1

Exactly one of these rules must match (oneOf) #

Rule 1

Required in this object (required): "#clock-cells"

Rule 2

Required in this object (required): "#power-domain-cells"

protocol@14 — not listed as required here #

Shared schema rule ($ref): #/$defs/protocol-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Exact value (const): 20

#clock-cells — required here

Exact value (const): 1

Required in this object (required): "#clock-cells"

protocol@15 — not listed as required here #

Shared schema rule ($ref): #/$defs/protocol-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Exact value (const): 21

#thermal-sensor-cells — required here

Exact value (const): 1

Required in this object (required): "#thermal-sensor-cells"

protocol@16 — not listed as required here #

Shared schema rule ($ref): #/$defs/protocol-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Exact value (const): 22

#reset-cells — required here

Exact value (const): 1

Required in this object (required): "#reset-cells"

protocol@17 — not listed as required here #

Shared schema rule ($ref): #/$defs/protocol-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Exact value (const): 23

regulators — not listed as required here

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

The list of all regulators provided by this SCMI controller.

Properties and child nodes (properties)

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

Properties matching a name pattern (patternProperties)

^regulator@[0-9a-f]+$ — name matches this regular expression

Value type (type): "object"

Shared schema rule ($ref): /schemas/regulator/regulator.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

reg — required here

Maximum number of items (maxItems): 1

Identifier for the voltage regulator.

Required in this object (required): "reg"

protocol@18 — not listed as required here #

Shared schema rule ($ref): #/$defs/protocol-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Exact value (const): 24

protocol@19 — not listed as required here #

Value type (type): "object"

All of these rules must match (allOf) #

Rule 1

Shared schema rule ($ref): #/$defs/protocol-node

Rule 2

At least one of these rules must match (anyOf)

Rule 1

Shared schema rule ($ref): /schemas/pinctrl/pinctrl.yaml

Rule 2

Shared schema rule ($ref): /schemas/firmware/nxp,imx95-scmi-pinctrl.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — required here

Exact value (const): 25

Properties matching a name pattern (patternProperties) #

-pins$ — name matches this regular expression

Value type (type): "object"

All of these rules must match (allOf)

Rule 1

Shared schema rule ($ref): /schemas/pinctrl/pincfg-node.yaml#

Rule 2

Shared schema rule ($ref): /schemas/pinctrl/pinmux-node.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

A pin multiplexing sub-node describes how to configure a set of pins in some desired function. A single sub-node may define several pin configurations. This sub-node is using the default pinctrl bindings to configure pin multiplexing and using SCMI protocol to apply a specified configuration.

Required in this object (required): "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Reusable definitions ($defs) #

protocol-node #

Value type (type): "object"

Each sub-node represents a protocol supported. If the platform supports a dedicated communication channel for a particular protocol, then the corresponding transport properties must be present. The virtio transport does not support a dedicated communication channel.

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

mbox-names — not listed as required here

Exactly one of these rules must match (oneOf)

Rule 1

Array item rules (items)

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

Minimum number of items (minItems): 1

Rule 2

Array item rules (items)

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "tx_reply"

Item 3

Exact value (const): "rx"

Minimum number of items (minItems): 2

mboxes — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

shmem — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

linaro,optee-channel-id — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Channel specifier required when using OP-TEE transport and protocol has a dedicated communication channel.

Required in this object (required): "reg"

Required in this object (required): "compatible"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Exact value (const): "arm,scmi"

When the condition matches (then) #

Properties and child nodes (properties) #

interrupts — not listed as required here #

false — Not permitted by this property rule.

interrupt-names — not listed as required here #

false — Not permitted by this property rule.

Required in this object (required): "mboxes", "shmem"

When the condition does not match (else) #

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "arm,scmi-smc", "arm,scmi-smc-param", "qcom,scmi-smc"

When the condition matches (then) #

Required in this object (required): "arm,smc-id", "shmem"

When the condition does not match (else) #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "linaro,scmi-optee"

When the condition matches (then) #

Required in this object (required): "linaro,optee-channel-id"

Examples (examples) #

firmware {
    scmi {
        compatible = "arm,scmi";
        mboxes = <&mhuB 0 0>,
                 <&mhuB 0 1>;
        mbox-names = "tx", "rx";
        shmem = <&cpu_scp_lpri0>,
                <&cpu_scp_lpri1>;

        #address-cells = <1>;
        #size-cells = <0>;

        atomic-threshold-us = <10000>;

        scmi_devpd: protocol@11 {
            reg = <0x11>;
            #power-domain-cells = <1>;
        };

        scmi_dvfs: protocol@13 {
            reg = <0x13>;
            #power-domain-cells = <1>;

            mboxes = <&mhuB 1 0>,
                     <&mhuB 1 1>;
            mbox-names = "tx", "rx";
            shmem = <&cpu_scp_hpri0>,
                    <&cpu_scp_hpri1>;
        };

        scmi_clk: protocol@14 {
            reg = <0x14>;
            #clock-cells = <1>;
        };

        scmi_sensors: protocol@15 {
            reg = <0x15>;
            #thermal-sensor-cells = <1>;
        };

        scmi_reset: protocol@16 {
            reg = <0x16>;
            #reset-cells = <1>;
        };

        scmi_voltage: protocol@17 {
            reg = <0x17>;
            regulators {
                #address-cells = <1>;
                #size-cells = <0>;

                regulator_devX: regulator@0 {
                    reg = <0x0>;
                    regulator-max-microvolt = <3300000>;
                };

                regulator_devY: regulator@9 {
                    reg = <0x9>;
                    regulator-min-microvolt = <500000>;
                    regulator-max-microvolt = <4200000>;
                };
            };
        };

        scmi_powercap: protocol@18 {
            reg = <0x18>;
        };

        scmi_pinctrl: protocol@19 {
            reg = <0x19>;

            i2c2-pins {
                groups = "g_i2c2_a", "g_i2c2_b";
                function = "f_i2c2";
            };

            mdio-pins {
                groups = "g_avb_mdio";
                drive-strength = <24>;
            };

            keys_pins: keys-pins {
                pins = "gpio_5_17", "gpio_5_20", "gpio_5_22", "gpio_2_1";
                bias-pull-up;
            };
        };
    };
};

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    sram@50000000 {
        compatible = "mmio-sram";
        reg = <0x0 0x50000000 0x0 0x10000>;

        #address-cells = <1>;
        #size-cells = <1>;
        ranges = <0 0x0 0x50000000 0x10000>;

        cpu_scp_lpri0: scp-sram-section@0 {
            compatible = "arm,scmi-shmem";
            reg = <0x0 0x80>;
        };

        cpu_scp_lpri1: scp-sram-section@80 {
            compatible = "arm,scmi-shmem";
            reg = <0x80 0x80>;
        };

        cpu_scp_hpri0: scp-sram-section@100 {
            compatible = "arm,scmi-shmem";
            reg = <0x100 0x80>;
        };

        cpu_scp_hpri2: scp-sram-section@180 {
            compatible = "arm,scmi-shmem";
            reg = <0x180 0x80>;
        };
    };
};
firmware {
    scmi {
        compatible = "arm,scmi-smc";
        shmem = <&cpu_scp_lpri0>, <&cpu_scp_lpri1>;
        arm,smc-id = <0xc3000001>;

        #address-cells = <1>;
        #size-cells = <0>;

        scmi_devpd1: protocol@11 {
            reg = <0x11>;
            #power-domain-cells = <1>;
        };
    };
};
firmware {
    scmi {
        compatible = "linaro,scmi-optee";
        linaro,optee-channel-id = <0>;

        #address-cells = <1>;
        #size-cells = <0>;

        scmi_dvfs1: protocol@13 {
            reg = <0x13>;
            linaro,optee-channel-id = <1>;
            shmem = <&cpu_optee_lpri0>;
            #power-domain-cells = <1>;
        };

        scmi_clk0: protocol@14 {
            reg = <0x14>;
            #clock-cells = <1>;
        };
    };
};

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    sram@51000000 {
        compatible = "mmio-sram";
        reg = <0x0 0x51000000 0x0 0x10000>;

        #address-cells = <1>;
        #size-cells = <1>;
        ranges = <0 0x0 0x51000000 0x10000>;

        cpu_optee_lpri0: optee-sram-section@0 {
            compatible = "arm,scmi-shmem";
            reg = <0x0 0x80>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright 2021 ARM Ltd.

System Control and Power Interface (SCPI) Message Protocol

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/arm,scpi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sudeep Holla <sudeep.holla@arm.com>"

Firmware implementing the SCPI described in ARM document number ARM DUI 0922B ("ARM Compute Subsystem SCP: Message Interface Protocols")[0] can be used by Linux to initiate various system control and power operations.

This binding is intended to define the interface the firmware implementing the SCPI provide for OSPM in the device tree.

[0] http://infocenter.arm.com/help/topic/com.arm.doc.dui0922b/index.html

Properties and child nodes (properties) #

$nodename — not listed as required here #

Exact value (const): "scpi"

compatible — required here #

SCPI compliant firmware complying to SCPI v1.0 and above OR SCPI compliant firmware complying to all unversioned releases prior to SCPI v1.0

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "arm,scpi"

Rule 2

Exact value (const): "arm,scpi-pre-1.0"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,meson-gxbb-scpi"

Item 2

Exact value (const): "arm,scpi-pre-1.0"

mboxes — required here #

List of phandle and mailbox channel specifiers. All the channels reserved by remote SCP firmware for use by SCPI message protocol should be specified in any order.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

shmem — required here #

List of phandle pointing to the shared memory(SHM) area between the processors using these mailboxes for IPC, one for each mailbox SHM can be any memory reserved for the purpose of this communication between the processors.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

power-controller — not listed as required here #

Value type (type): "object"

This sub-node represents SCPI power domain controller.

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "arm,scpi-power-domains"

#power-domain-cells — required here

Exact value (const): 1

num-domains — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Total number of power domains provided by SCPI. This is needed as the SCPI message protocol lacks a mechanism to query this information at runtime.

Required in this object (required): "compatible", "#power-domain-cells", "num-domains"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

sensors — not listed as required here #

Value type (type): "object"

This sub-node represents SCPI sensors controller.

Properties and child nodes (properties) #

compatible — required here

Exactly one of these rules must match (oneOf)

Rule 1

Exact value (const): "arm,scpi-sensors"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,meson-gxbb-scpi-sensors"

Item 2

Exact value (const): "arm,scpi-sensors"

#thermal-sensor-cells — required here

Exact value (const): 1

Required in this object (required): "compatible", "#thermal-sensor-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

clocks — not listed as required here #

Value type (type): "object"

This is the container node. Each sub-node represents one of the types of clock controller - indexed or full range.

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "arm,scpi-clocks"

Properties matching a name pattern (patternProperties) #

^clocks-[0-9a-f]+$ — name matches this regular expression

Value type (type): "object"

This sub-node represents one of the types of clock controller - indexed or full range.

"arm,scpi-dvfs-clocks" - all the clocks that are variable and index based. These clocks don't provide an entire range of values between the limits but only discrete points within the range. The firmware provides the mapping for each such operating frequency and the index associated with it. The firmware also manages the voltage scaling appropriately with the clock scaling.

"arm,scpi-variable-clocks" - all the clocks that are variable and provide full range within the specified range. The firmware provides the range of values within a specified range.

Properties and child nodes (properties)

compatible — required here

Allowed values (enum): "arm,scpi-dvfs-clocks", "arm,scpi-variable-clocks"

#clock-cells — required here

Exact value (const): 1

clock-output-names — required here

true — No constraints added by this property rule.

clock-indices — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

The identifying number for the clocks(i.e.clock_id) in the node. It can be non linear and hence provide the mapping of identifiers into the clock-output-names array.

Required in this object (required): "compatible", "#clock-cells", "clock-output-names", "clock-indices"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "mboxes", "shmem"

Examples (examples) #

firmware {
    scpi {
        compatible = "arm,scpi";
        mboxes = <&mhuA 1>;
        shmem = <&cpu_scp_hpri>; /* HP-NonSecure */

        scpi_devpd: power-controller {
            compatible = "arm,scpi-power-domains";
            num-domains = <2>;
            #power-domain-cells = <1>;
        };

        clocks {
            compatible = "arm,scpi-clocks";

            scpi_dvfs: clocks-0 {
                compatible = "arm,scpi-dvfs-clocks";
                #clock-cells = <1>;
                clock-indices = <0>, <1>, <2>;
                clock-output-names = "atlclk", "aplclk","gpuclk";
            };

            scpi_clk: clocks-1 {
                compatible = "arm,scpi-variable-clocks";
                #clock-cells = <1>;
                clock-indices = <3>, <4>;
                clock-output-names = "pxlclk0", "pxlclk1";
            };
        };

        scpi_sensors: sensors {
            compatible = "arm,scpi-sensors";
            #thermal-sensor-cells = <1>;
        };

    };
};

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    sram@50000000 {
        compatible = "mmio-sram";
        reg = <0x0 0x50000000 0x0 0x10000>;

        #address-cells = <1>;
        #size-cells = <1>;
        ranges = <0 0x0 0x50000000 0x10000>;

        cpu_scp_lpri: scp-sram-section@0 {
            compatible = "arm,scp-shmem";
            reg = <0x0 0x200>;
        };

        cpu_scp_hpri: scp-sram-section@200 {
            compatible = "arm,scp-shmem";
            reg = <0x200 0x200>;
        };
    };
};
firmware {
    scpi {
        compatible = "amlogic,meson-gxbb-scpi", "arm,scpi-pre-1.0";
        mboxes = <&mailbox 1>, <&mailbox 2>;
        shmem = <&cpu_scp_lpri>, <&cpu_scp_hpri>;

        scpi_sensors1: sensors {
            compatible = "amlogic,meson-gxbb-scpi-sensors", "arm,scpi-sensors";
            #thermal-sensor-cells = <1>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright 2021 ARM Ltd.

Line 33: SCPI v1.0 and above

Line 34: Unversioned SCPI before v1.0

Broadcom Kona family Secure Monitor bounce buffer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/brcm,kona-smc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

A bounce buffer used for non-secure to secure communications.

Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "brcm,bcm11351-smc", "brcm,bcm21664-smc", "brcm,bcm23550-smc"

Item 2

Exact value (const): "brcm,kona-smc"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

smc@3404c000 {
    compatible = "brcm,bcm11351-smc", "brcm,kona-smc";
    reg = <0x3404c000 0x400>; /* 1 KiB in SRAM */
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

CZ.NIC Turris Mox rWTM firmware

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/cznic,turris-mox-rwtm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Marek Behún <kabel@kernel.org>"

This device tree node should be used on Turris Mox, or potentially another A3700 compatible device running the Mox's rWTM firmware in the secure processor (for example it is possible to flash this firmware into EspressoBin).

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "marvell,armada-3700-rwtm-firmware"

Item 2

Exact value (const): "cznic,turris-mox-rwtm"

Rule 2

Exact value (const): "marvell,armada-3700-rwtm-firmware"

mboxes — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "mboxes"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

turris-mox-rwtm {
    compatible = "marvell,armada-3700-rwtm-firmware", "cznic,turris-mox-rwtm";
    mboxes = <&rwtm 0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

CZ.NIC's Turris Omnia MCU

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/cznic,turris-omnia-mcu.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Marek Behún <kabel@kernel.org>"

The MCU on Turris Omnia acts as a system controller providing additional GPIOs, interrupts, watchdog, system power off and wakeup configuration.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cznic,turris-omnia-mcu"

reg — required here #

MCU I2C slave address

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

The first cell specifies the interrupt number (0 to 63), the second cell
specifies interrupt type (which can be one of IRQ_TYPE_EDGE_RISING,
IRQ_TYPE_EDGE_FALLING or IRQ_TYPE_EDGE_BOTH).
The interrupt numbers correspond sequentially to GPIO numbers, taking the
GPIO banks into account:
  IRQ number   GPIO bank   GPIO pin within bank
     0 - 15      0           0 - 15
    16 - 47      1           0 - 31
    48 - 63      2           0 - 15
There are several exceptions:
  IRQ number   meaning
    11           LED panel brightness changed by button press
    13           TRNG entropy ready
    14           ECDSA message signature computation done

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — not listed as required here #

Exact value (const): 3

The first cell is bank number (0, 1 or 2), the second cell is pin number within the bank (0 to 15 for banks 0 and 2, 0 to 31 for bank 1), and the third cell specifies consumer flags.

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "gpio-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    system-controller@2a {
        compatible = "cznic,turris-omnia-mcu";
        reg = <0x2a>;

        interrupt-parent = <&gpio1>;
        interrupts = <11 IRQ_TYPE_NONE>;

        gpio-controller;
        #gpio-cells = <3>;

        interrupt-controller;
        #interrupt-cells = <2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

NXP i.MX System Controller Firmware (SCFW)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/fsl,scu.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Dong Aisheng <aisheng.dong@nxp.com>"

The System Controller Firmware (SCFW) is a low-level system function which runs on a dedicated Cortex-M core to provide power, clock, and resource management. It exists on some i.MX8 processors. e.g. i.MX8QM (QM, QP), and i.MX8QX (QXP, DX). The AP communicates with the SC using a multi-ported MU module found in the LSIO subsystem. The current definition of this MU module provides 5 remote AP connections to the SC to support up to 5 execution environments (TZ, HV, standard Linux, etc.). The SC side of this MU module interfaces with the LSIO DSC IP bus. The SC firmware will communicate with this MU using the MSI bus.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,imx-scu"

clock-controller — not listed as required here #

Clock controller node that provides the clocks controlled by the SCU

Shared schema rule ($ref): /schemas/clock/fsl,scu-clk.yaml

gpio — not listed as required here #

Control the GPIO PINs on SCU domain over the firmware APIs

Shared schema rule ($ref): /schemas/gpio/fsl,imx8qxp-sc-gpio.yaml

ocotp — not listed as required here #

OCOTP controller node provided by the SCU

Shared schema rule ($ref): /schemas/nvmem/fsl,scu-ocotp.yaml

keys — not listed as required here #

Keys provided by the SCU

Shared schema rule ($ref): /schemas/input/fsl,scu-key.yaml

reset-controller — not listed as required here #

Value type (type): "object"

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "fsl,imx-scu-reset"

#reset-cells — required here

Exact value (const): 1

Required in this object (required): "compatible", "#reset-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

mboxes — required here #

A list of phandles of TX MU channels followed by a list of phandles of RX MU channels. The list may include at the end one more optional MU channel for general interrupt. The number of expected tx and rx channels is 1 TX and 1 RX channels if MU instance is "fsl,imx8-mu-scu" compatible, 4 TX and 4 RX channels otherwise. All MU channels must be within the same MU instance. Cross instances are not allowed. The MU instance can only be one of LSIO MU0~M4 for imx8qxp and imx8qm. Users need to ensure that one is used that does not conflict with other execution environments such as ATF.

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

TX0 MU channel

Item 2

RX0 MU channel

Rule 2

Array item rules (items)

Item 1

TX0 MU channel

Item 2

RX0 MU channel

Item 3

optional MU channel for general interrupt

Rule 3

Deprecated (deprecated): true

Array item rules (items)

Item 1

TX0 MU channel

Item 2

TX1 MU channel

Item 3

TX2 MU channel

Item 4

TX3 MU channel

Item 5

RX0 MU channel

Item 6

RX1 MU channel

Item 7

RX2 MU channel

Item 8

RX3 MU channel

Rule 4

Deprecated (deprecated): true

Array item rules (items)

Item 1

TX0 MU channel

Item 2

TX1 MU channel

Item 3

TX2 MU channel

Item 4

TX3 MU channel

Item 5

RX0 MU channel

Item 6

RX1 MU channel

Item 7

RX2 MU channel

Item 8

RX3 MU channel

Item 9

optional MU channel for general interrupt

mbox-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "tx0"

Item 2

Exact value (const): "rx0"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "tx0"

Item 2

Exact value (const): "rx0"

Item 3

Exact value (const): "gip3"

Rule 3

Deprecated (deprecated): true

Array item rules (items)

Item 1

Exact value (const): "tx0"

Item 2

Exact value (const): "tx1"

Item 3

Exact value (const): "tx2"

Item 4

Exact value (const): "tx3"

Item 5

Exact value (const): "rx0"

Item 6

Exact value (const): "rx1"

Item 7

Exact value (const): "rx2"

Item 8

Exact value (const): "rx3"

Rule 4

Deprecated (deprecated): true

Array item rules (items)

Item 1

Exact value (const): "tx0"

Item 2

Exact value (const): "tx1"

Item 3

Exact value (const): "tx2"

Item 4

Exact value (const): "tx3"

Item 5

Exact value (const): "rx0"

Item 6

Exact value (const): "rx1"

Item 7

Exact value (const): "rx2"

Item 8

Exact value (const): "rx3"

Item 9

Exact value (const): "gip3"

pinctrl — not listed as required here #

Pin controller provided by the SCU

Shared schema rule ($ref): /schemas/pinctrl/fsl,scu-pinctrl.yaml

power-controller — not listed as required here #

Power domains controller node that provides the power domains controlled by the SCU

Shared schema rule ($ref): /schemas/power/fsl,scu-pd.yaml

rtc — not listed as required here #

RTC controller provided by the SCU

Shared schema rule ($ref): /schemas/rtc/fsl,scu-rtc.yaml

thermal-sensor — not listed as required here #

Thermal sensor provided by the SCU

Shared schema rule ($ref): /schemas/thermal/fsl,scu-thermal.yaml

watchdog — not listed as required here #

Watchdog controller provided by the SCU

Shared schema rule ($ref): /schemas/watchdog/fsl,scu-wdt.yaml

Required in this object (required): "compatible", "mbox-names", "mboxes"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/firmware/imx/rsrc.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/pads-imx8qxp.h>

firmware {
    system-controller {
        compatible = "fsl,imx-scu";
        mbox-names = "tx0", "rx0", "gip3";
        mboxes = <&lsio_mu1 0 0
                  &lsio_mu1 1 0
                  &lsio_mu1 3 3>;

        clock-controller {
            compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";
            #clock-cells = <2>;
        };

        pinctrl {
            compatible = "fsl,imx8qxp-iomuxc";

            pinctrl_lpuart0: lpuart0grp {
                fsl,pins = <
                    IMX8QXP_UART0_RX_ADMA_UART0_RX   0x06000020
                    IMX8QXP_UART0_TX_ADMA_UART0_TX   0x06000020
                >;
            };
        };

        ocotp {
            compatible = "fsl,imx8qxp-scu-ocotp";
            #address-cells = <1>;
            #size-cells = <1>;

            fec_mac0: mac@2c4 {
                reg = <0x2c4 6>;
            };
        };

        power-controller {
            compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";
            #power-domain-cells = <1>;
        };

        rtc {
            compatible = "fsl,imx8qxp-sc-rtc";
        };

        keys {
            compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
            linux,keycodes = <KEY_POWER>;
        };

        watchdog {
            compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";
            timeout-sec = <60>;
        };

        thermal-sensor {
            compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal";
            #thermal-sensor-cells = <1>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Samsung Exynos ACPM mailbox protocol

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/google,gs101-acpm-ipc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Tudor Ambarus <tudor.ambarus@linaro.org>"

ACPM (Alive Clock and Power Manager) is a firmware that operates on the APM (Active Power Management) module that handles overall power management activities. ACPM and masters regard each other as independent hardware component and communicate with each other using mailbox messages and shared memory.

This binding is intended to define the interface the firmware implementing ACPM provides for OSPM in the device tree.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "google,gs101-acpm-ipc"

#clock-cells — required here #

Exact value (const): 1

Clocks that are variable and index based. These clocks don't provide an entire range of values between the limits but only discrete points within the range. The firmware also manages the voltage scaling appropriately with the clock scaling. The argument is the ID of the clock contained by the firmware messages.

mboxes — required here #

Maximum number of items (maxItems): 1

pmic — not listed as required here #

Child node describing the main PMIC.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Properties and child nodes (properties) #

compatible — not listed as required here

Exact value (const): "samsung,s2mpg10-pmic"

shmem — required here #

List of phandle pointing to the shared memory (SHM) area. The memory contains channels configuration data and the TX/RX ring buffers that are used for passing messages to/from the ACPM firmware.

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "#clock-cells", "mboxes", "shmem"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

power-management {
    compatible = "google,gs101-acpm-ipc";
    #clock-cells = <1>;
    mboxes = <&ap2apm_mailbox>;
    shmem = <&apm_sram>;

    pmic {
        compatible = "samsung,s2mpg10-pmic";
        interrupts-extended = <&gpa0 6 IRQ_TYPE_LEVEL_LOW>;

        regulators {
            ldo1m {
                regulator-name = "vdd_ldo1";
                regulator-min-microvolt = <700000>;
                regulator-max-microvolt = <1300000>;
                regulator-always-on;
            };

            // ...

            buck8m {
                regulator-name = "vdd_mif";
                regulator-min-microvolt = <450000>;
                regulator-max-microvolt = <1300000>;
                regulator-always-on;
                regulator-boot-on;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright 2024 Linaro Ltd.

Intel IXP4xx Network Processing Engine

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/intel,ixp4xx-network-processing-engine.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

On the IXP4xx SoCs, the Network Processing Engine (NPE) is a small processor that can load a firmware to perform offloading of networking and crypto tasks. It also manages the MDIO bus to the ethernet PHYs on the IXP4xx platform. All IXP4xx platforms have three NPEs at consecutive memory locations. They are all included in the same device node since they are not independent of each other.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "intel,ixp4xx-network-processing-engine"

reg — required here #

Array item rules (items) #

Item 1

NPE0 (NPE-A) register range

Item 2

NPE1 (NPE-B) register range

Item 3

NPE2 (NPE-C) register range

crypto — not listed as required here #

Shared schema rule ($ref): /schemas/crypto/intel,ixp4xx-crypto.yaml#

Value type (type): "object"

Optional node for the embedded crypto engine, the node should be named with the instance number of the NPE engine used for the crypto engine.

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

hss@[0-9]+$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/net/intel,ixp4xx-hss.yaml#

Value type (type): "object"

Optional node for the High Speed Serial link (HSS), the node should be named with the instance number of the NPE engine used for the HSS.

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

npe: npe@c8006000 {
    compatible = "intel,ixp4xx-network-processing-engine";
    reg = <0xc8006000 0x1000>, <0xc8007000 0x1000>, <0xc8008000 0x1000>;
    #address-cells = <1>;
    #size-cells = <0>;

    hss@0 {
        compatible = "intel,ixp4xx-hss";
        reg = <0>;
        intel,npe-handle = <&npe 0>;
        intel,queue-chl-rxtrig = <&qmgr 12>;
        intel,queue-chl-txready = <&qmgr 34>;
        intel,queue-pkt-rx = <&qmgr 13>;
        intel,queue-pkt-tx = <&qmgr 14>, <&qmgr 15>, <&qmgr 16>, <&qmgr 17>;
        intel,queue-pkt-rxfree = <&qmgr 18>, <&qmgr 19>, <&qmgr 20>, <&qmgr 21>;
        intel,queue-pkt-txdone = <&qmgr 22>;
        cts-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
        rts-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
        dcd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
        dtr-gpios = <&gpio_74 2 GPIO_ACTIVE_LOW>;
        clk-internal-gpios = <&gpio_74 0 GPIO_ACTIVE_HIGH>;
    };

    crypto {
        compatible = "intel,ixp4xx-crypto";
        intel,npe-handle = <&npe 2>;
        queue-rx = <&qmgr 30>;
        queue-txready = <&qmgr 29>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright 2019 Linaro Ltd.

Intel Service Layer Driver for Stratix10 SoC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/intel,stratix10-svc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Dinh Nguyen <dinguyen@kernel.org>", "Mahesh Rao <mahesh.rao@altera.com>"

Intel Stratix10 SoC is composed of a 64 bit quad-core ARM Cortex A53 hard processor system (HPS) and Secure Device Manager (SDM). When the FPGA is configured from HPS, there needs to be a way for HPS to notify SDM the location and size of the configuration data. Then SDM will get the configuration data from that location and perform the FPGA configuration. To meet the whole system security needs and support virtual machine requesting communication with SDM, only the secure world of software (EL3, Exception Layer 3) can interface with SDM. All software entities running on other exception layers must channel through the EL3 software whenever it needs service from SDM. Intel Stratix10 service layer driver, running at privileged exception level (EL1, Exception Layer 1), interfaces with the service providers and provides the services for FPGA configuration, QSPI, Crypto and warm reset. Service layer driver also manages secure monitor call (SMC) to communicate with secure monitor code running in EL3.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "intel,stratix10-svc", "intel,agilex-svc", "intel,agilex5-svc"

method — required here #

Supervisory call method to be used to communicate with the secure service layer. Permitted values are: - "smc" : SMC #0, following the SMCCC - "hvc" : HVC #0, following the SMCCC

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array

Allowed values (enum): "smc", "hvc"

memory-region — required here #

Maximum number of items (maxItems): 1

reserved memory region for the service layer driver to communicate with the secure device manager.

iommus — not listed as required here #

Maximum number of items (maxItems): 1

fpga-mgr — not listed as required here #

Shared schema rule ($ref): /schemas/fpga/intel,stratix10-soc-fpga-mgr.yaml

Optional child node for fpga manager to perform fabric configuration.

Required in this object (required): "compatible", "method", "memory-region"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "intel,agilex5-svc"

When the condition matches (then) #

Required in this object (required): "iommus"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

reserved-memory {
  #address-cells = <2>;
  #size-cells = <2>;

  service_reserved: svcbuffer@0 {
          compatible = "shared-dma-pool";
          reg = <0x0 0x0 0x0 0x1000000>;
          alignment = <0x1000>;
          no-map;
  };
};

firmware {
  svc {
    compatible = "intel,stratix10-svc";
    method = "smc";
    memory-region = <&service_reserved>;

    fpga-mgr {
      compatible = "intel,stratix10-soc-fpga-mgr";
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra Boot and Power Management Processor (BPMP)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/nvidia,tegra186-bpmp.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"

The BPMP is a specific processor in Tegra chip, which is designed for booting process handling and offloading the power management, clock management, and reset control tasks from the CPU. The binding document defines the resources that would be used by the BPMP firmware driver, which can create the interprocessor communication (IPC) between the CPU and BPMP.

This node is a mailbox consumer. See the following files for details of the mailbox subsystem, and the specifiers implemented by the relevant provider(s):

  - .../mailbox/mailbox.txt
  - .../mailbox/nvidia,tegra186-hsp.yaml

This node is a clock, power domain, and reset provider. See the following files for general documentation of those features, and the specifiers implemented by this node:

  - .../clock/clock-bindings.txt
  - <dt-bindings/clock/tegra186-clock.h>
  - ../power/power-domain.yaml
  - <dt-bindings/power/tegra186-powergate.h>
  - .../reset/reset.txt
  - <dt-bindings/reset/tegra186-reset.h>

The BPMP implements some services which must be represented by separate nodes. For example, it can provide access to certain I2C controllers, and the I2C bindings represent each I2C controller as a device tree node. Such nodes should be nested directly inside the main BPMP node.

Software can determine whether a child node of the BPMP node represents a device by checking for a compatible property. Any node with a compatible property represents a device that can be instantiated. Nodes without a compatible property may be used to provide configuration information regarding the BPMP itself, although no such configuration nodes are currently defined by this binding.

The BPMP firmware defines no single global name-/numbering-space for such services. Put another way, the numbering scheme for I2C buses is distinct from the numbering scheme for any other service the BPMP may provide (e.g. a future hypothetical SPI bus service). As such, child device nodes will have no reg property, and the BPMP node will have no "#address-cells" or "#size-cells" property.

The shared memory area for the IPC TX and RX between CPU and BPMP are predefined and work on top of either sysram, which is an SRAM inside the chip, or in normal SDRAM. See ".../sram/sram.yaml" for the bindings for the SRAM case. See "../reserved-memory/nvidia,tegra264-bpmp-shmem.yaml" for bindings for the SDRAM case.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra194-bpmp", "nvidia,tegra234-bpmp", "nvidia,tegra264-bpmp"

Item 2

Exact value (const): "nvidia,tegra186-bpmp"

Rule 2

Exact value (const): "nvidia,tegra186-bpmp"

mboxes — required here #

A phandle and channel specifier for the mailbox used to communicate with the BPMP.

Maximum number of items (maxItems): 1

shmem — not listed as required here #

List of the phandle to the TX and RX shared memory area that the IPC between CPU and BPMP is based on.

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

memory-region — not listed as required here #

phandle to reserved memory region used for IPC between CPU-NS and BPMP.

Maximum number of items (maxItems): 1

#clock-cells — required here #

Exact value (const): 1

#power-domain-cells — required here #

Exact value (const): 1

#reset-cells — required here #

Exact value (const): 1

interconnects — not listed as required here #

Array item rules (items) #

Item 1

memory read client

Item 2

memory write client

Item 3

DMA read client

Item 4

DMA write client

interconnect-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "read"

Item 2

Exact value (const): "write"

Item 3

Exact value (const): "dma-mem"

Item 4

Exact value (const): "dma-write"

iommus — not listed as required here #

Maximum number of items (maxItems): 1

i2c — not listed as required here #

Value type (type): "object"

thermal — not listed as required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "memory-region"

Rule 2 #

Required in this object (required): "shmem"

Required in this object (required): "compatible", "mboxes", "#clock-cells", "#power-domain-cells", "#reset-cells"

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/mailbox/tegra186-hsp.h>
#include <dt-bindings/memory/tegra186-mc.h>

hsp_top0: hsp@3c00000 {
    compatible = "nvidia,tegra186-hsp";
    reg = <0x03c00000 0xa0000>;
    interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "doorbell";
    #mbox-cells = <2>;
};

sram@30000000 {
    compatible = "nvidia,tegra186-sysram", "mmio-sram";
    reg = <0x30000000 0x50000>;
    #address-cells = <1>;
    #size-cells = <1>;
    ranges = <0x0 0x30000000 0x50000>;

    cpu_bpmp_tx: sram@4e000 {
        reg = <0x4e000 0x1000>;
        label = "cpu-bpmp-tx";
        pool;
    };

    cpu_bpmp_rx: sram@4f000 {
        reg = <0x4f000 0x1000>;
        label = "cpu-bpmp-rx";
        pool;
    };
};

bpmp {
    compatible = "nvidia,tegra186-bpmp";
    interconnects = <&mc TEGRA186_MEMORY_CLIENT_BPMPR &emc>,
                    <&mc TEGRA186_MEMORY_CLIENT_BPMPW &emc>,
                    <&mc TEGRA186_MEMORY_CLIENT_BPMPDMAR &emc>,
                    <&mc TEGRA186_MEMORY_CLIENT_BPMPDMAW &emc>;
    interconnect-names = "read", "write", "dma-mem", "dma-write";
    iommus = <&smmu TEGRA186_SID_BPMP>;
    mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_DB TEGRA_HSP_DB_MASTER_BPMP>;
    shmem = <&cpu_bpmp_tx>, <&cpu_bpmp_rx>;
    #clock-cells = <1>;
    #power-domain-cells = <1>;
    #reset-cells = <1>;

    i2c {
        compatible = "nvidia,tegra186-bpmp-i2c";
        nvidia,bpmp-bus-id = <5>;
        #address-cells = <1>;
        #size-cells = <0>;
    };

    thermal {
        compatible = "nvidia,tegra186-bpmp-thermal";
        #thermal-sensor-cells = <1>;
    };
};
#include <dt-bindings/mailbox/tegra186-hsp.h>

bpmp {
    compatible = "nvidia,tegra186-bpmp";
    interconnects = <&mc TEGRA186_MEMORY_CLIENT_BPMPR &emc>,
                    <&mc TEGRA186_MEMORY_CLIENT_BPMPW &emc>,
                    <&mc TEGRA186_MEMORY_CLIENT_BPMPDMAR &emc>,
                    <&mc TEGRA186_MEMORY_CLIENT_BPMPDMAW &emc>;
    interconnect-names = "read", "write", "dma-mem", "dma-write";
    mboxes = <&hsp_top1 TEGRA_HSP_MBOX_TYPE_DB TEGRA_HSP_DB_MASTER_BPMP>;
    memory-region = <&dram_cpu_bpmp_mail>;
    #clock-cells = <1>;
    #power-domain-cells = <1>;
    #reset-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 113: dma-read

i.MX System Control and Management Interface (SCMI) Pinctrl Protocol

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/nxp,imx95-scmi-pinctrl.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Peng Fan <peng.fan@nxp.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/pinctrl/pinctrl.yaml

Properties matching a name pattern (patternProperties) #

grp$ — name matches this regular expression #

Value type (type): "object"

Pinctrl node's client devices use subnodes for desired pin configuration. Client device subnodes use below standard properties.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

fsl,pins — required here

each entry consists of 6 integers and represents the mux and config setting for one pin. The first 5 integers <mux_reg conf_reg input_reg mux_val input_val> are specified using a PIN_FUNC_ID macro, which can be found in <arch/arm64/boot/dts/freescale/imx95-pinfunc.h>. The last integer CONFIG is the pad setting value like pull-up on this pin. Please refer to i.MX95 Reference Manual for detailed CONFIG settings.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix

Array item rules (items)

Array item rules (items)

Item 1

"mux_reg" indicates the offset of mux register.

Item 2

"conf_reg" indicates the offset of pad configuration register.

Item 3

"input_reg" indicates the offset of select input register.

Item 4

"mux_val" indicates the mux value to be applied.

Item 5

"input_val" indicates the select input value to be applied.

Item 6

"pad_setting" indicates the pad configuration value to be applied.

Required in this object (required): "fsl,pins"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright 2024 NXP

i.MX95 System Control and Management Interface(SCMI) Vendor Protocols Extension

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/nxp,imx95-scmi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Peng Fan <peng.fan@nxp.com>"

Properties and child nodes (properties) #

protocol@80 — not listed as required here #

SCMI LMM protocol which is for boot, shutdown, and reset of other logical machines (LM). It is usually used to allow one LM to manage another used as an offload or accelerator engine.

Shared schema rule ($ref): /schemas/firmware/arm,scmi.yaml#/$defs/protocol-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Exact value (const): 128

protocol@81 — not listed as required here #

Value type (type): "object"

All of these rules must match (allOf) #

Rule 1

Shared schema rule ($ref): /schemas/firmware/arm,scmi.yaml#/$defs/protocol-node

Rule 2

Shared schema rule ($ref): /schemas/input/input.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Exact value (const): 129

linux,code — not listed as required here

Default value (default): 116

protocol@82 — not listed as required here #

SCMI CPU Protocol which allows an agent to start or stop a CPU. It is used to manage auxiliary CPUs in a LM.

Shared schema rule ($ref): /schemas/firmware/arm,scmi.yaml#/$defs/protocol-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Exact value (const): 130

protocol@84 — not listed as required here #

Shared schema rule ($ref): /schemas/firmware/arm,scmi.yaml#/$defs/protocol-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Exact value (const): 132

nxp,ctrl-ids — not listed as required here

Each entry consists of 2 integers, represents the ctrl id and the value

Array item rules (items)

Array item rules (items)

Item 1

the ctrl id index

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7, 32768, 32769, 32770, 32771, 32772, 32773, 32774, 32775

Item 2

the value assigned to the ctrl id

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright 2024 NXP

Line 38: KEY_POWER

QCOM Secure Channel Manager (SCM)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/qcom,scm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Qualcomm processors include an interface to communicate to the secure firmware. This interface allows for clients to request different types of actions. These can include CPU power up/down, HDCP requests, loading of firmware, and other assorted actions.

Maintainers (maintainers): "Bjorn Andersson <bjorn.andersson@linaro.org>", "Robert Marko <robimarko@gmail.com>", "Guru Das Srinagesh <quic_gurus@quicinc.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "qcom,scm-apq8064", "qcom,scm-apq8084", "qcom,scm-glymur", "qcom,scm-ipq4019", "qcom,scm-ipq5018", "qcom,scm-ipq5332", "qcom,scm-ipq5424", "qcom,scm-ipq6018", "qcom,scm-ipq806x", "qcom,scm-ipq8074", "qcom,scm-ipq9574", "qcom,scm-kaanapali", "qcom,scm-mdm9607", "qcom,scm-milos", "qcom,scm-msm8226", "qcom,scm-msm8660", "qcom,scm-msm8916", "qcom,scm-msm8937", "qcom,scm-msm8953", "qcom,scm-msm8960", "qcom,scm-msm8974", "qcom,scm-msm8976", "qcom,scm-msm8994", "qcom,scm-msm8996", "qcom,scm-msm8998", "qcom,scm-qcm2290", "qcom,scm-qcs615", "qcom,scm-qcs8300", "qcom,scm-qdu1000", "qcom,scm-sa8255p", "qcom,scm-sa8775p", "qcom,scm-sar2130p", "qcom,scm-sc7180", "qcom,scm-sc7280", "qcom,scm-sc8180x", "qcom,scm-sc8280xp", "qcom,scm-sdm670", "qcom,scm-sdm845", "qcom,scm-sdx55", "qcom,scm-sdx65", "qcom,scm-sdx75", "qcom,scm-sm6115", "qcom,scm-sm6125", "qcom,scm-sm6350", "qcom,scm-sm6375", "qcom,scm-sm7150", "qcom,scm-sm8150", "qcom,scm-sm8250", "qcom,scm-sm8350", "qcom,scm-sm8450", "qcom,scm-sm8550", "qcom,scm-sm8650", "qcom,scm-sm8750", "qcom,scm-qcs404", "qcom,scm-x1e80100"

Item 2

Exact value (const): "qcom,scm"

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

interconnects — not listed as required here #

Maximum number of items (maxItems): 1

interconnect-names — not listed as required here #

Maximum number of items (maxItems): 1

#reset-cells — not listed as required here #

Exact value (const): 1

interrupts — not listed as required here #

The wait-queue interrupt that firmware raises as part of handshake protocol to handle sleeping SCM calls.

Maximum number of items (maxItems): 1

memory-region — not listed as required here #

Phandle to the memory region reserved for the shared memory bridge to TZ.

Maximum number of items (maxItems): 1

qcom,sdi-enabled — not listed as required here #

Indicates that the SDI (Secure Debug Image) has been enabled by TZ by default and it needs to be disabled. If not disabled WDT assertion or reboot will cause the board to hang in the debug mode.

Value type (type): "boolean"

qcom,dload-mode — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to TCSR hardware block

Item 2

offset of the download mode control register

TCSR hardware block

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,scm-apq8064", "qcom,scm-apq8084", "qcom,scm-mdm9607", "qcom,scm-msm8226", "qcom,scm-msm8660", "qcom,scm-msm8916", "qcom,scm-msm8937", "qcom,scm-msm8953", "qcom,scm-msm8960", "qcom,scm-msm8974", "qcom,scm-msm8976", "qcom,scm-qcm2290", "qcom,scm-sm6375"

When the condition matches (then) #

Required in this object (required): "clocks", "clock-names"

When the condition does not match (else) #

Properties and child nodes (properties)

clock-names — not listed as required here

false — Not permitted by this property rule.

clocks — not listed as required here

false — Not permitted by this property rule.

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,scm-apq8064", "qcom,scm-msm8660", "qcom,scm-msm8960", "qcom,scm-qcm2290", "qcom,scm-sm6375"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "core"

clocks — not listed as required here

Maximum number of items (maxItems): 1

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,scm-apq8084", "qcom,scm-mdm9607", "qcom,scm-msm8226", "qcom,scm-msm8916", "qcom,scm-msm8937", "qcom,scm-msm8953", "qcom,scm-msm8974", "qcom,scm-msm8976"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "bus"

Item 3

Exact value (const): "iface"

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

Rule 4 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,scm-kaanapali", "qcom,scm-milos", "qcom,scm-sm8450", "qcom,scm-sm8550", "qcom,scm-sm8650", "qcom,scm-sm8750"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

false — Not permitted by this property rule.

Rule 5 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,scm-sa8255p", "qcom,scm-sa8775p"

When the condition matches (then) #

Properties and child nodes (properties)

memory-region — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,gcc-msm8916.h>

firmware {
    scm {
        compatible = "qcom,scm-msm8916", "qcom,scm";
        clocks = <&gcc GCC_CRYPTO_CLK>,
                 <&gcc GCC_CRYPTO_AXI_CLK>,
                 <&gcc GCC_CRYPTO_AHB_CLK>;
        clock-names = "core", "bus", "iface";
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 128: Clocks

Line 200: Interrupts

QEMU Firmware Configuration

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/qemu,fw-cfg-mmio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Rob Herring <robh@kernel.org>"

Various QEMU emulation / virtualization targets provide the following Firmware Configuration interface on the "virt" machine type:

- A write-only, 16-bit wide selector (or control) register, - a read-write, 64-bit wide data register.

QEMU exposes the control and data register to guests as memory mapped registers; their location is communicated to the guest's UEFI firmware in the DTB that QEMU places at the bottom of the guest's DRAM.

The authoritative guest-side hardware interface documentation to the fw_cfg device can be found in "docs/specs/fw_cfg.txt" in the QEMU source tree.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qemu,fw-cfg-mmio"

reg — required here #

Maximum number of items (maxItems): 1

* Bytes 0x0 to 0x7 cover the data register.
* Bytes 0x8 to 0x9 cover the selector register.
* Further registers may be appended to the region in case of future interface
  revisions / feature bits.

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #


fw-cfg@9020000 {
    compatible = "qemu,fw-cfg-mmio";
    reg = <0x9020000 0xa>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

T-HEAD TH1520 AON (Always-On) Firmware

Peios Kernel / Hardware and drivers / Device-tree binding reference / Firmware bindings

Schema identifier ($id): "http://devicetree.org/schemas/firmware/thead,th1520-aon.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Always-On (AON) subsystem in the TH1520 SoC is responsible for managing low-power states, system wakeup events, and power management tasks. It is designed to operate independently in a dedicated power domain, allowing it to remain functional even during the SoC's deep sleep states.

At the heart of the AON subsystem is the E902, a low-power core that executes firmware responsible for coordinating tasks such as power domain control, clock management, and system wakeup signaling. Communication between the main SoC and the AON subsystem is handled through a mailbox interface, which enables message-based interactions with the AON firmware.

Maintainers (maintainers): "Michal Wilczynski <m.wilczynski@samsung.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "thead,th1520-aon"

mboxes — required here #

Maximum number of items (maxItems): 1

mbox-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "aon"

resets — not listed as required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "gpu-clkgen"

#power-domain-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "mboxes", "mbox-names", "#power-domain-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

aon: aon {
    compatible = "thead,th1520-aon";
    mboxes = <&mbox_910t 1>;
    mbox-names = "aon";
    #power-domain-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Peios Learn — documentation for Peios software.

Built with Trail.