[PATCH 1/3] dt-bindings: mfd: nxp,bbnsm: Add NVMEM for GP registers

Stefan Wahren wahrenst at gmx.net
Fri Nov 6 11:26:58 PST 2026


Am 02.11.26 um 08:28 schrieb Krzysztof Kozlowski:
> On Sun, Nov 01, 2026 at 09:01:38PM +0100, Stefan Wahren wrote:
>> +  nvmem:
>> +    type: object
>> +    $ref: /schemas/nvmem/nvmem.yaml#
>> +
>> +    properties:
>> +      compatible:
>> +        enum:
>> +          - nxp,imx93-bbnsm-nvmem
>> +
>> +    required:
>> +      - compatible
>> +
>> +    additionalProperties: false
>> +
>>     rtc:
>>       type: object
>>       $ref: /schemas/rtc/rtc.yaml#
>> @@ -88,6 +102,12 @@ examples:
>>           compatible = "nxp,imx93-bbnsm", "syscon", "simple-mfd";
>>           reg = <0x44440000 0x10000>;
>>   
>> +        nvmem {
>> +            compatible = "nxp,imx93-bbnsm-nvmem";
>> +            #address-cells = <1>;
>> +            #size-cells = <1>;
> I don't think you tested your changes. address/size cells are not
> allowed - see your binding.
>
> Anyway, empty node makes almost no sense, so fold the node into the
> parent.

Sorry, about that. Is this what you had in mind?

--- a/Documentation/devicetree/bindings/mfd/nxp,bbnsm.yaml
+++ b/Documentation/devicetree/bindings/mfd/nxp,bbnsm.yaml
@@ -20,6 +20,9 @@ description: |
    a PMIC or other voltage regulator device. both smart PMIC mode and
    Dumb PMIC mode supported.

+allOf:
+  - $ref: /schemas/nvmem/nvmem.yaml
+
  properties:
    compatible:
      items:
@@ -31,6 +34,9 @@ properties:
    reg:
      maxItems: 1

+  nvmem-layout:
+    $ref: /schemas/nvmem/layouts/nvmem-layout.yaml#
+
    rtc:
      type: object
      $ref: /schemas/rtc/rtc.yaml#
@@ -69,7 +75,7 @@ properties:
        - compatible
        - interrupts

-    additionalProperties: false
+    unevaluatedProperties: false

  required:
    - compatible
@@ -98,4 +104,14 @@ examples:
              interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
              linux,code = <KEY_POWER>;
          };
+
+        nvmem-layout {
+            compatible = "fixed-layout";
+            #address-cells = <1>;
+            #size-cells = <1>;
+
+            calib at 4 {
+                reg = <0x4 0x04>;
+            };
+        };
      };




More information about the linux-arm-kernel mailing list