Add bindings for MT6873 devapc. Signed-off-by: Neal Liu <neal.liu@xxxxxxxxxxxx> --- .../soc/mediatek/devapc/devapc-mt6873.yaml | 61 ++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/mediatek/devapc/devapc-mt6873.yaml diff --git a/Documentation/devicetree/bindings/soc/mediatek/devapc/devapc-mt6873.yaml b/Documentation/devicetree/bindings/soc/mediatek/devapc/devapc-mt6873.yaml new file mode 100644 index 0000000..1deb7f6 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/mediatek/devapc/devapc-mt6873.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# # Copyright 2020 MediaTek Inc. +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/mediatek/devapc/devapc-mt6873.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: MediaTek MT6873 Device Access Permission Control driver + +description: | + MediaTek MT6873 bus frabric provides TrustZone security support and data + protection to prevent slaves from being accessed by unexpected masters. + The security violations are logged and sent to the processor for further + analysis and countermeasures. + +maintainers: + - Neal Liu <neal.liu@xxxxxxxxxxxx> + +properties: + compatible: + enum: + - mediatek,mt6873-devapc + + reg: + description: The base address of devapc register bank + maxItems: 5 + + interrupts: + description: A single interrupt specifier + maxItems: 1 + + clocks: + description: Contains module clock source and clock names + maxItems: 1 + + clock-names: + description: Names of the clocks list in clocks property + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + #include <dt-bindings/clock/mt8183-clk.h> + devapc: devapc@10207000 { + compatible = "mediatek,mt6873-devapc"; + reg = <0 0x10207000 0 0x1000>, + <0 0x10274000 0 0x1000>, + <0 0x10275000 0 0x1000>, + <0 0x11020000 0 0x1000>, + <0 0x1020e000 0 0x1000>; + interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&infracfg CLK_INFRA_DEVICE_APC>; + clock-names = "devapc-infra-clock"; + }; -- 1.7.9.5