1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/mfd/apple,smc.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Apple Mac System Management Controller 8 9maintainers: 10 - Sven Peter <sven@kernel.org> 11 12description: 13 Apple Mac System Management Controller implements various functions 14 such as GPIO, RTC, power, reboot. 15 16properties: 17 compatible: 18 items: 19 - enum: 20 - apple,t6000-smc 21 - apple,t8103-smc 22 - apple,t8112-smc 23 - const: apple,smc 24 25 reg: 26 items: 27 - description: SMC area 28 - description: SRAM area 29 30 reg-names: 31 items: 32 - const: smc 33 - const: sram 34 35 mboxes: 36 maxItems: 1 37 38 gpio: 39 $ref: /schemas/gpio/apple,smc-gpio.yaml 40 41 reboot: 42 $ref: /schemas/power/reset/apple,smc-reboot.yaml 43 44additionalProperties: false 45 46required: 47 - compatible 48 - reg 49 - reg-names 50 - mboxes 51 52examples: 53 - | 54 soc { 55 #address-cells = <2>; 56 #size-cells = <2>; 57 58 smc@23e400000 { 59 compatible = "apple,t8103-smc", "apple,smc"; 60 reg = <0x2 0x3e400000 0x0 0x4000>, 61 <0x2 0x3fe00000 0x0 0x100000>; 62 reg-names = "smc", "sram"; 63 mboxes = <&smc_mbox>; 64 65 smc_gpio: gpio { 66 compatible = "apple,smc-gpio"; 67 gpio-controller; 68 #gpio-cells = <2>; 69 }; 70 71 reboot { 72 compatible = "apple,smc-reboot"; 73 nvmem-cells = <&shutdown_flag>, <&boot_stage>, 74 <&boot_error_count>, <&panic_count>; 75 nvmem-cell-names = "shutdown_flag", "boot_stage", 76 "boot_error_count", "panic_count"; 77 }; 78 }; 79 }; 80