mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
After discussion with the devicetree maintainers we agreed to not extend lists with the generic compatible "apple,wdt" anymore [1]. Use "apple,t8103-wdt" as base compatible as it is the SoC the driver and bindings were written for. The block on the Apple M2 Pro/Max/Ultra SoCs is compatible with the existing driver so add its per-SoC compatible. [1]: https://lore.kernel.org/asahi/12ab93b7-1fc2-4ce0-926e-c8141cfe81bf@kernel.org/ Reviewed-by: Neal Gompa <neal@gompa.dev> Acked-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Janne Grunau <j@jannau.net>
64 lines
1.3 KiB
YAML
64 lines
1.3 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/watchdog/apple,wdt.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Apple SoC Watchdog
|
|
|
|
maintainers:
|
|
- Sven Peter <sven@svenpeter.dev>
|
|
|
|
allOf:
|
|
- $ref: watchdog.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- items:
|
|
- const: apple,t6020-wdt
|
|
- const: apple,t8103-wdt
|
|
- items:
|
|
- enum:
|
|
# Do not add additional SoC to this list.
|
|
- apple,s5l8960x-wdt
|
|
- apple,t7000-wdt
|
|
- apple,s8000-wdt
|
|
- apple,t8010-wdt
|
|
- apple,t8015-wdt
|
|
- apple,t8103-wdt
|
|
- apple,t8112-wdt
|
|
- apple,t6000-wdt
|
|
- const: apple,wdt
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- clocks
|
|
- interrupts
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/apple-aic.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
wdt: watchdog@50000000 {
|
|
compatible = "apple,t8103-wdt", "apple,wdt";
|
|
reg = <0x50000000 0x4000>;
|
|
clocks = <&clk>;
|
|
interrupts = <AIC_IRQ 123 IRQ_TYPE_LEVEL_HIGH>;
|
|
};
|
|
|
|
...
|