From patchwork Fri Jun 19 09:41:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neal Liu X-Patchwork-Id: 1312741 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=mediatek.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=mediatek.com header.i=@mediatek.com header.a=rsa-sha256 header.s=dk header.b=QswppJNE; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49pDNj3L6cz9sRk for ; Fri, 19 Jun 2020 19:42:13 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732172AbgFSJmL (ORCPT ); Fri, 19 Jun 2020 05:42:11 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:2520 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1732134AbgFSJmK (ORCPT ); Fri, 19 Jun 2020 05:42:10 -0400 X-UUID: 0120e8fd4428446bb1d8bf22c0c4fbbe-20200619 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=h/UQEjXf6uvMc+oxKD1tqte0usDqTFwha7l55rvLaKo=; b=QswppJNE8Ds+KTlNb4GTUjbx8Mwd1ZIxbpmoFoyOHYUXyHOIIwYqL8ynRW3GxH8zBjnuM1YgwGjf2KhNut+MBfyImRbeDnJ+Nu4q3pXCydo/Qn8JShmRu1SXVeq8e7lY5vcKREp3tjDwhWm4UpXbkVuHh53LoF+F7EkzZwf1AmA=; X-UUID: 0120e8fd4428446bb1d8bf22c0c4fbbe-20200619 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 372175436; Fri, 19 Jun 2020 17:42:04 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 19 Jun 2020 17:42:01 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 19 Jun 2020 17:42:01 +0800 From: Neal Liu To: Rob Herring , Matthias Brugger CC: Neal Liu , , , , , Subject: [PATCH v2 1/2] dt-bindings: devapc: add bindings for devapc-mt6873 Date: Fri, 19 Jun 2020 17:41:59 +0800 Message-ID: <1592559720-8482-2-git-send-email-neal.liu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1592559720-8482-1-git-send-email-neal.liu@mediatek.com> References: <1592559720-8482-1-git-send-email-neal.liu@mediatek.com> MIME-Version: 1.0 X-MTK: N Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add bindings for MT6873 devapc. Signed-off-by: Neal Liu --- .../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 + +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 + #include + 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 = ; + clocks = <&infracfg CLK_INFRA_DEVICE_APC>; + clock-names = "devapc-infra-clock"; + };