# NXP Battery-Backed Non-Secure Module

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Mfd bindings_

> Device-tree binding reference for NXP Battery-Backed Non-Secure Module.

<!-- SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;mfd&#47;nxp&#44;bbnsm&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Jacky Bai &#60;ping&#46;bai&#64;nxp&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">NXP BBNSM serves as non-volatile logic and storage for the system.
it Intergrates RTC &amp; 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.</p>
</div>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

<a id="dt-cc3709943397035582d2"></a>

#### Array item rules (<code>items</code>)

<a id="dt-fec97e71a4359503ae6e"></a>

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;nxp&#44;imx93&#45;bbnsm&#34;</code></span>

<a id="dt-0891c69625632ea817fd"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-f1f862a3cfab3ac620c8"><code>&#34;syscon&#34;</code></span>

<a id="dt-9a5f0b2d9373c09998ec"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-985600cab9ae8398068d"><code>&#34;simple&#45;mfd&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>1</code></span>

<a id="dt-bba81fa3b8ceda656ed2"></a>

### <code>rtc</code> — required here

**Value type (<code>type</code>):** <span id="dt-66a7fdeaf87afcdc9a78"><code>&#34;object&#34;</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-21e85fda10481696d737">[<code>&#47;schemas&#47;rtc&#47;rtc&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-rtc/rtc.md#dt-root>)</span>

<a id="dt-b0a35b5ab238134f7bcc"></a>

#### Properties and child nodes (<code>properties</code>)

<a id="dt-5180671437db2d6a53e4"></a>

**<code>compatible</code> — required here**

**Allowed values (<code>enum</code>):** <a id="dt-72a70c5c8a7d24398d97"></a> <span id="dt-3be5136b156a89939cd7"><code>&#34;nxp&#44;imx93&#45;bbnsm&#45;rtc&#34;</code></span>

<a id="dt-2faa193704709cea3bac"></a>

**<code>interrupts</code> — required here**

**Maximum number of items (<code>maxItems</code>):** <span id="dt-9577396ff06fb42e9c0b"><code>1</code></span>

<a id="dt-51b663e9d26312ab347c"></a>

**<code>start&#45;year</code> — not listed as required here**

<code>true</code> — No constraints added by this property rule.

**Required in this object (<code>required</code>):** <a id="dt-bf4efd93241516227fc2"></a> <span id="dt-81cca930aad3fe911e93"><code>&#34;compatible&#34;</code></span>, <span id="dt-9b6d99fc8fea123fe09b"><code>&#34;interrupts&#34;</code></span>

<a id="dt-843318a74a1c3f9366d9"></a>

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-08aa9a0afe5b9035e887"></a>

### <code>pwrkey</code> — required here

**Value type (<code>type</code>):** <span id="dt-1a2645b9bc0ab7c4b16d"><code>&#34;object&#34;</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-cbab4dcc7f497404f31d">[<code>&#47;schemas&#47;input&#47;input&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-input/input.md#dt-root>)</span>

<a id="dt-c01a3619d21353255dc2"></a>

#### Properties and child nodes (<code>properties</code>)

<a id="dt-56599499136f71359365"></a>

**<code>compatible</code> — required here**

**Allowed values (<code>enum</code>):** <a id="dt-bb7993c8eac6519eccbc"></a> <span id="dt-7332e59318d70cdeaa43"><code>&#34;nxp&#44;imx93&#45;bbnsm&#45;pwrkey&#34;</code></span>

<a id="dt-231adcf62c869147b087"></a>

**<code>interrupts</code> — required here**

**Maximum number of items (<code>maxItems</code>):** <span id="dt-1413f22acf70653186fe"><code>1</code></span>

<a id="dt-84bdf157b00b39a65c61"></a>

**<code>linux&#44;code</code> — not listed as required here**

<code>true</code> — No constraints added by this property rule.

**Required in this object (<code>required</code>):** <a id="dt-f5b9680bb2b2fb9d55c7"></a> <span id="dt-45d0cab5ce779358ad1d"><code>&#34;compatible&#34;</code></span>, <span id="dt-3a4c5dce5dea536442c0"><code>&#34;interrupts&#34;</code></span>

<a id="dt-cefd175623d0a383797e"></a>

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;rtc&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;pwrkey&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/input/linux-event-codes.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;

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

    bbnsm_rtc: rtc {
        compatible = "nxp,imx93-bbnsm-rtc";
        interrupts = &lt;GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH&gt;;
    };

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

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)</span></p>

</details>
