NXP Battery-Backed Non-Secure Module

Schema identifier ($id): "http://devicetree.org/schemas/mfd/nxp,bbnsm.yaml#"

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

Maintainers (maintainers): "Jacky Bai <ping.bai@nxp.com>"

NXP BBNSM serves as non-volatile logic and storage for the system. it Intergrates RTC & ON/OFF control. The RTC can retain its state and continues counting even when the main chip is power down. A time alarm is generated once the most significant 32 bits of the real-time counter match the value in the Time Alarm register. The ON/OFF logic inside the BBNSM allows for connecting directly to a PMIC or other voltage regulator device. both smart PMIC mode and Dumb PMIC mode supported.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "nxp,imx93-bbnsm"

Item 2

Exact value (const): "syscon"

Item 3

Exact value (const): "simple-mfd"

reg — required here #

Maximum number of items (maxItems): 1

rtc — required here #

Value type (type): "object"

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

Properties and child nodes (properties) #

compatible — required here

Allowed values (enum): "nxp,imx93-bbnsm-rtc"

interrupts — required here

Maximum number of items (maxItems): 1

start-year — not listed as required here

true — No constraints added by this property rule.

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

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

false

Not allowed by this rule.

pwrkey — required here #

Value type (type): "object"

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

Properties and child nodes (properties) #

compatible — required here

Allowed values (enum): "nxp,imx93-bbnsm-pwrkey"

interrupts — required here

Maximum number of items (maxItems): 1

linux,code — not listed as required here

true — No constraints added by this property rule.

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

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

false

Not allowed by this rule.

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

bbnsm: bbnsm@44440000 {
    compatible = "nxp,imx93-bbnsm", "syscon", "simple-mfd";
    reg = <0x44440000 0x10000>;

    bbnsm_rtc: rtc {
        compatible = "nxp,imx93-bbnsm-rtc";
        interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
    };

    bbnsm_pwrkey: pwrkey {
        compatible = "nxp,imx93-bbnsm-pwrkey";
        interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
        linux,code = <KEY_POWER>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page