From: Matthias Brugger <matthias.bgg@gmail.com>
To: Neal Liu <neal.liu@mediatek.com>, Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org,
lkml <linux-kernel@vger.kernel.org>,
linux-arm-kernel@lists.infradead.org, wsd_upstream@mediatek.com
Subject: Re: [PATCH v2 1/2] dt-bindings: devapc: add bindings for mtk-devapc
Date: Fri, 10 Jul 2020 12:41:56 +0200 [thread overview]
Message-ID: <a0a58181-525c-f7a3-4385-d778a113d60c@gmail.com> (raw)
In-Reply-To: <1594285927-1840-2-git-send-email-neal.liu@mediatek.com>
On 09/07/2020 11:12, Neal Liu wrote:
> Add bindings for mtk-devapc.
>
> Signed-off-by: Neal Liu <neal.liu@mediatek.com>
> ---
> .../devicetree/bindings/soc/mediatek/devapc.yaml | 82 ++++++++++++++++++++
> 1 file changed, 82 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/soc/mediatek/devapc.yaml
>
> diff --git a/Documentation/devicetree/bindings/soc/mediatek/devapc.yaml b/Documentation/devicetree/bindings/soc/mediatek/devapc.yaml
> new file mode 100644
> index 0000000..f08243e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/mediatek/devapc.yaml
> @@ -0,0 +1,82 @@
> +# 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.yaml#"
> +$schema: "http://devicetree.org/meta-schemas/core.yaml#"
> +
> +title: MediaTek Device Access Permission Control driver
> +
> +description: |
> + MediaTek bus fabric provides TrustZone security support and data
> + protection to prevent slaves from being accessed by unexpected masters.
> + The security violation is logged and sent to the processor for further
> + analysis and countermeasures.
> +
> +maintainers:
> + - Neal Liu <neal.liu@mediatek.com>
> +
> +properties:
> + compatible:
> + enum:
> + - mediatek,mt6779-devapc
> +
> + reg:
> + description: The base address of devapc register bank
> + maxItems: 1
> +
> + 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
> +
> + mediatek-slv_type_num:
> + description: Numbers of slave type in mediatek platform
> + maxItems: 1
This should go in the DT data, have a look for example at:
https://elixir.bootlin.com/linux/latest/source/drivers/soc/mediatek/mtk-pmic-wrap.c#L1842
and
https://elixir.bootlin.com/linux/latest/source/drivers/soc/mediatek/mtk-pmic-wrap.c#L1777
> +
> + mediatek-vio_dbgs:
> + description: The mask bit and start bit of devapc violation debug registers
> + maxItems: 5
> +
same here
> + mediatek-pds_offset:
> + description: The offset of devapc pds registers
> + maxItems: 1
same here
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clocks
> + - clock-names
> + - mediatek-slv_type_num
> + - mediatek-vio_dbgs
> + - mediatek-pds_offset
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> + #include <dt-bindings/clock/mt6779-clk.h>
> +
> + devapc: devapc@10207000 {
> + compatible = "mediatek,mt6779-devapc";
> + reg = <0x10207000 0x1000>;
> + interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_LOW>;
> + clocks = <&infracfg_ao CLK_INFRA_DEVICE_APC>;
> + clock-names = "devapc-infra-clock";
> +
> + mediatek-slv_type_num = /bits/ 8 <1>;
> + mediatek-vio_dbgs = <0x0000FFFF 0x0>,
> + <0x003F0000 0x10>,
> + <0x00400000 0x16>,
> + <0x00800000 0x17>,
> + <0x0F000000 0x18>;
> + mediatek-pds_offset = <0x0 0x400 0x900 0x904
> + 0xF00 0xF10 0xF14 0xF20>;
> + };
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-07-10 10:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-09 9:12 [PATCH v2] Add MediaTek MT6779 devapc driver Neal Liu
2020-07-09 9:12 ` [PATCH v2 1/2] dt-bindings: devapc: add bindings for mtk-devapc Neal Liu
2020-07-10 10:41 ` Matthias Brugger [this message]
2020-07-14 3:17 ` Neal Liu
2020-07-09 9:12 ` [PATCH v2 2/2] soc: mediatek: add mtk-devapc driver Neal Liu
2020-07-09 13:01 ` Chun-Kuang Hu
2020-07-10 3:23 ` Neal Liu
2020-07-10 14:21 ` Chun-Kuang Hu
2020-07-13 8:27 ` Neal Liu
2020-07-13 14:20 ` Chun-Kuang Hu
2020-07-14 3:06 ` Neal Liu
2020-07-10 12:14 ` Matthias Brugger
2020-07-13 7:45 ` Neal Liu
2020-07-13 11:16 ` Matthias Brugger
2020-07-14 2:45 ` Neal Liu
2020-07-15 23:46 ` Chun-Kuang Hu
2020-07-16 3:42 ` Neal Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a0a58181-525c-f7a3-4385-d778a113d60c@gmail.com \
--to=matthias.bgg@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=neal.liu@mediatek.com \
--cc=robh+dt@kernel.org \
--cc=wsd_upstream@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).