Path: blob/master/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
26308 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- items:79- description: TX0 MU channel80- description: TX1 MU channel81- description: TX2 MU channel82- description: TX3 MU channel83- description: RX0 MU channel84- description: RX1 MU channel85- description: RX2 MU channel86- description: RX3 MU channel87- items:88- description: TX0 MU channel89- description: TX1 MU channel90- description: TX2 MU channel91- description: TX3 MU channel92- description: RX0 MU channel93- description: RX1 MU channel94- description: RX2 MU channel95- description: RX3 MU channel96- description: optional MU channel for general interrupt9798mbox-names:99oneOf:100- items:101- const: tx0102- const: rx0103- items:104- const: tx0105- const: rx0106- const: gip3107- items:108- const: tx0109- const: tx1110- const: tx2111- const: tx3112- const: rx0113- const: rx1114- const: rx2115- const: rx3116- items:117- const: tx0118- const: tx1119- const: tx2120- const: tx3121- const: rx0122- const: rx1123- const: rx2124- const: rx3125- const: gip3126127pinctrl:128description:129Pin controller provided by the SCU130$ref: /schemas/pinctrl/fsl,scu-pinctrl.yaml131132power-controller:133description:134Power domains controller node that provides the power domains135controlled by the SCU136$ref: /schemas/power/fsl,scu-pd.yaml137138rtc:139description:140RTC controller provided by the SCU141$ref: /schemas/rtc/fsl,scu-rtc.yaml142143thermal-sensor:144description:145Thermal sensor provided by the SCU146$ref: /schemas/thermal/fsl,scu-thermal.yaml147148watchdog:149description:150Watchdog controller provided by the SCU151$ref: /schemas/watchdog/fsl,scu-wdt.yaml152153required:154- compatible155- mbox-names156- mboxes157158additionalProperties: false159160examples:161- |162#include <dt-bindings/firmware/imx/rsrc.h>163#include <dt-bindings/input/input.h>164#include <dt-bindings/pinctrl/pads-imx8qxp.h>165166firmware {167system-controller {168compatible = "fsl,imx-scu";169mbox-names = "tx0", "tx1", "tx2", "tx3",170"rx0", "rx1", "rx2", "rx3",171"gip3";172mboxes = <&lsio_mu1 0 0 &lsio_mu1 0 1 &lsio_mu1 0 2 &lsio_mu1 0 3173&lsio_mu1 1 0 &lsio_mu1 1 1 &lsio_mu1 1 2 &lsio_mu1 1 3174&lsio_mu1 3 3>;175176clock-controller {177compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";178#clock-cells = <2>;179};180181pinctrl {182compatible = "fsl,imx8qxp-iomuxc";183184pinctrl_lpuart0: lpuart0grp {185fsl,pins = <186IMX8QXP_UART0_RX_ADMA_UART0_RX 0x06000020187IMX8QXP_UART0_TX_ADMA_UART0_TX 0x06000020188>;189};190};191192ocotp {193compatible = "fsl,imx8qxp-scu-ocotp";194#address-cells = <1>;195#size-cells = <1>;196197fec_mac0: mac@2c4 {198reg = <0x2c4 6>;199};200};201202power-controller {203compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";204#power-domain-cells = <1>;205};206207rtc {208compatible = "fsl,imx8qxp-sc-rtc";209};210211keys {212compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";213linux,keycodes = <KEY_POWER>;214};215216watchdog {217compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";218timeout-sec = <60>;219};220221thermal-sensor {222compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal";223#thermal-sensor-cells = <1>;224};225};226};227228229