Apple Mac System Management Controller

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

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

Maintainers (maintainers): "Sven Peter <sven@kernel.org>"

Apple Mac System Management Controller implements various functions such as GPIO, RTC, power, reboot.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "apple,t6020-smc"

Item 2

Exact value (const): "apple,t8103-smc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "apple,t6000-smc", "apple,t8103-smc", "apple,t8112-smc"

Item 2

Exact value (const): "apple,smc"

reg — required here #

Array item rules (items) #

Item 1

SMC area

Item 2

SRAM area

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "smc"

Item 2

Exact value (const): "sram"

mboxes — required here #

Maximum number of items (maxItems): 1

gpio — not listed as required here #

Shared schema rule ($ref): /schemas/gpio/apple,smc-gpio.yaml

reboot — not listed as required here #

Shared schema rule ($ref): /schemas/power/reset/apple,smc-reboot.yaml

rtc — not listed as required here #

Shared schema rule ($ref): /schemas/rtc/apple,smc-rtc.yaml

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "reg-names", "mboxes"

Examples (examples) #

soc {
  #address-cells = <2>;
  #size-cells = <2>;

  smc@23e400000 {
    compatible = "apple,t8103-smc", "apple,smc";
    reg = <0x2 0x3e400000 0x0 0x4000>,
           <0x2 0x3fe00000 0x0 0x100000>;
    reg-names = "smc", "sram";
    mboxes = <&smc_mbox>;

    smc_gpio: gpio {
      compatible = "apple,smc-gpio";
      gpio-controller;
      #gpio-cells = <2>;
    };

    reboot {
      compatible = "apple,smc-reboot";
      nvmem-cells = <&shutdown_flag>, <&boot_stage>,
                    <&boot_error_count>, <&panic_count>;
      nvmem-cell-names = "shutdown_flag", "boot_stage",
                         "boot_error_count", "panic_count";
    };

    rtc {
      compatible = "apple,smc-rtc";
      nvmem-cells = <&rtc_offset>;
      nvmem-cell-names = "rtc_offset";
   };
  };
};

Source notes #

Annotations retained from the schema source

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

Line 24: Do not add additional SoC to this list.

Edit this page