mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 13:05:03 +08:00
7f464532b0
Setting 'additionalProperties: false' is frequently omitted, but is important in order to check that there aren't extra undocumented properties in a binding. Ideally, we'd just add this automatically and make this the default, but there's some cases where it doesn't work. For example, if a common schema is referenced, then properties in the common schema aren't part of what's considered for 'additionalProperties'. Also, sometimes there are bus specific properties such as 'spi-max-frequency' that go into bus child nodes, but aren't defined in the child node's schema. So let's stick with the json-schema defined default and add 'additionalProperties: false' where needed. This will be a continual review comment and game of wack-a-mole. Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Acked-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Reviewed-by: Benjamin Gaignard <benjamin.gaignard@st.com> Acked-by: Stephen Boyd <sboyd@kernel.org> # clock Acked-by: Lee Jones <lee.jones@linaro.org>
73 lines
1.8 KiB
YAML
73 lines
1.8 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/rtc/renesas,sh-rtc.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Real Time Clock for Renesas SH and ARM SoCs
|
|
|
|
maintainers:
|
|
- Chris Brandt <chris.brandt@renesas.com>
|
|
- Geert Uytterhoeven <geert+renesas@glider.be>
|
|
|
|
properties:
|
|
compatible:
|
|
items:
|
|
- const: renesas,r7s72100-rtc # RZ/A1H
|
|
- const: renesas,sh-rtc
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 3
|
|
|
|
interrupt-names:
|
|
items:
|
|
- const: alarm
|
|
- const: period
|
|
- const: carry
|
|
|
|
clocks:
|
|
# The functional clock source for the RTC controller must be listed
|
|
# first (if it exists). Additionally, potential clock counting sources
|
|
# are to be listed.
|
|
minItems: 1
|
|
maxItems: 4
|
|
|
|
clock-names:
|
|
# The functional clock must be labeled as "fck". Other clocks
|
|
# may be named in accordance to the SoC hardware manuals.
|
|
minItems: 1
|
|
maxItems: 4
|
|
items:
|
|
enum: [ fck, rtc_x1, rtc_x3, extal ]
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- interrupt-names
|
|
- clocks
|
|
- clock-names
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/r7s72100-clock.h>
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
rtc: rtc@fcff1000 {
|
|
compatible = "renesas,r7s72100-rtc", "renesas,sh-rtc";
|
|
reg = <0xfcff1000 0x2e>;
|
|
interrupts = <GIC_SPI 276 IRQ_TYPE_EDGE_RISING>,
|
|
<GIC_SPI 277 IRQ_TYPE_EDGE_RISING>,
|
|
<GIC_SPI 278 IRQ_TYPE_EDGE_RISING>;
|
|
interrupt-names = "alarm", "period", "carry";
|
|
clocks = <&mstp6_clks R7S72100_CLK_RTC>, <&rtc_x1_clk>,
|
|
<&rtc_x3_clk>, <&extal_clk>;
|
|
clock-names = "fck", "rtc_x1", "rtc_x3", "extal";
|
|
};
|