Path: blob/master/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
51689 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/firmware/fsl,scu.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: NXP i.MX System Controller Firmware (SCFW)78maintainers:9- Dong Aisheng <aisheng.dong@nxp.com>1011description:12The System Controller Firmware (SCFW) is a low-level system function13which runs on a dedicated Cortex-M core to provide power, clock, and14resource management. It exists on some i.MX8 processors. e.g. i.MX8QM15(QM, QP), and i.MX8QX (QXP, DX).16The AP communicates with the SC using a multi-ported MU module found17in the LSIO subsystem. The current definition of this MU module provides185 remote AP connections to the SC to support up to 5 execution environments19(TZ, HV, standard Linux, etc.). The SC side of this MU module interfaces20with the LSIO DSC IP bus. The SC firmware will communicate with this MU21using the MSI bus.2223properties:24compatible:25const: fsl,imx-scu2627clock-controller:28description:29Clock controller node that provides the clocks controlled by the SCU30$ref: /schemas/clock/fsl,scu-clk.yaml3132gpio:33description:34Control the GPIO PINs on SCU domain over the firmware APIs35$ref: /schemas/gpio/fsl,imx8qxp-sc-gpio.yaml3637ocotp:38description:39OCOTP controller node provided by the SCU40$ref: /schemas/nvmem/fsl,scu-ocotp.yaml4142keys:43description:44Keys provided by the SCU45$ref: /schemas/input/fsl,scu-key.yaml4647reset-controller:48type: object49properties:50compatible:51const: fsl,imx-scu-reset52'#reset-cells':53const: 154required:55- compatible56- '#reset-cells'57additionalProperties: false5859mboxes:60description:61A list of phandles of TX MU channels followed by a list of phandles of62RX MU channels. The list may include at the end one more optional MU63channel for general interrupt. The number of expected tx and rx64channels is 1 TX and 1 RX channels if MU instance is "fsl,imx8-mu-scu"65compatible, 4 TX and 4 RX channels otherwise. All MU channels must be66within the same MU instance. Cross instances are not allowed. The MU67instance can only be one of LSIO MU0~M4 for imx8qxp and imx8qm. Users68need to ensure that one is used that does not conflict with other69execution environments such as ATF.70oneOf:71- items:72- description: TX0 MU channel73- description: RX0 MU channel74- items:75- description: TX0 MU channel76- description: RX0 MU channel77- description: optional MU channel for general interrupt78- deprecated: true79items:80- description: TX0 MU channel81- description: TX1 MU channel82- description: TX2 MU channel83- description: TX3 MU channel84- description: RX0 MU channel85- description: RX1 MU channel86- description: RX2 MU channel87- description: RX3 MU channel88- deprecated: true89items:90- description: TX0 MU channel91- description: TX1 MU channel92- description: TX2 MU channel93- description: TX3 MU channel94- description: RX0 MU channel95- description: RX1 MU channel96- description: RX2 MU channel97- description: RX3 MU channel98- description: optional MU channel for general interrupt99100mbox-names:101oneOf:102- items:103- const: tx0104- const: rx0105- items:106- const: tx0107- const: rx0108- const: gip3109- deprecated: true110items:111- const: tx0112- const: tx1113- const: tx2114- const: tx3115- const: rx0116- const: rx1117- const: rx2118- const: rx3119- deprecated: true120items:121- const: tx0122- const: tx1123- const: tx2124- const: tx3125- const: rx0126- const: rx1127- const: rx2128- const: rx3129- const: gip3130131pinctrl:132description:133Pin controller provided by the SCU134$ref: /schemas/pinctrl/fsl,scu-pinctrl.yaml135136power-controller:137description:138Power domains controller node that provides the power domains139controlled by the SCU140$ref: /schemas/power/fsl,scu-pd.yaml141142rtc:143description:144RTC controller provided by the SCU145$ref: /schemas/rtc/fsl,scu-rtc.yaml146147thermal-sensor:148description:149Thermal sensor provided by the SCU150$ref: /schemas/thermal/fsl,scu-thermal.yaml151152watchdog:153description:154Watchdog controller provided by the SCU155$ref: /schemas/watchdog/fsl,scu-wdt.yaml156157required:158- compatible159- mbox-names160- mboxes161162additionalProperties: false163164examples:165- |166#include <dt-bindings/firmware/imx/rsrc.h>167#include <dt-bindings/input/input.h>168#include <dt-bindings/pinctrl/pads-imx8qxp.h>169170firmware {171system-controller {172compatible = "fsl,imx-scu";173mbox-names = "tx0", "rx0", "gip3";174mboxes = <&lsio_mu1 0 0175&lsio_mu1 1 0176&lsio_mu1 3 3>;177178clock-controller {179compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";180#clock-cells = <2>;181};182183pinctrl {184compatible = "fsl,imx8qxp-iomuxc";185186pinctrl_lpuart0: lpuart0grp {187fsl,pins = <188IMX8QXP_UART0_RX_ADMA_UART0_RX 0x06000020189IMX8QXP_UART0_TX_ADMA_UART0_TX 0x06000020190>;191};192};193194ocotp {195compatible = "fsl,imx8qxp-scu-ocotp";196#address-cells = <1>;197#size-cells = <1>;198199fec_mac0: mac@2c4 {200reg = <0x2c4 6>;201};202};203204power-controller {205compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";206#power-domain-cells = <1>;207};208209rtc {210compatible = "fsl,imx8qxp-sc-rtc";211};212213keys {214compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";215linux,keycodes = <KEY_POWER>;216};217218watchdog {219compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";220timeout-sec = <60>;221};222223thermal-sensor {224compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal";225#thermal-sensor-cells = <1>;226};227};228};229230231