From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BEB7FC07E94 for ; Fri, 4 Jun 2021 11:38:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8CDDE61423 for ; Fri, 4 Jun 2021 11:38:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8CDDE61423 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=L50Q3astUGpMhA4/nwMiR7Pkjy0nLqwHNvlLG2aJ6YQ=; b=Qlae+6wtoDWOv2 9balGQJ+f7BWBbPYyrSpZg3eWipxxlModvqDH3mD5pVqmGhVnSp92Iy8jEYdBOqkZQmqu9I1ahGdY MozbAzc0lUsAvOa5N8RLAnWJ1kbg64r8KgkycVMDE7MS+tNj4FZz/BBYZligBDXiAnxrhHF2Fq0HR WbgCibP0pJqEemUh5UTGi5J0bqnlX4LO6jBg+lTRnm2dO2M5qY+njwmuWNOGzRc0nP/pSrq0YuQA+ zYcJuLXImtEaZEtrFh5UOcpccPzgiT6Tzo32P6pVc5NKltnjgByvGAo+rN4JtJQUzVPuS38OzZx/A e3V6owOAQB8+X3+kg9uQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lp87C-00DLh4-OJ; Fri, 04 Jun 2021 11:35:51 +0000 Received: from mail-mw2nam12on2061.outbound.protection.outlook.com ([40.107.244.61] helo=NAM12-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lp85k-00DL7a-ET for linux-arm-kernel@lists.infradead.org; Fri, 04 Jun 2021 11:34:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nuSQuOro8hAbnWKbeXCjJMj1HCGdisIqpIVGqMLxoveT2Yuib9mS07YNFkeYXFJckZr6KgwqlVH+CB4XLDEOAHlviHX+IaCnxH8xEse9z3u/Y2RrjO7Zirb23RDZ+QiTnOLZOeD2gaFrpREuw/Ves+8BBWKdD7kJndBLbAdGMQx7liy+lSSzJNa92E0wXZ3ZzQqWzZ2Hg4/uqr8d+bh5Z/yGyiUx3s0+G2Zx7IaYcheCV9BP0Y88kw30xN3skTaEvtgMvREGWeDlP/80zGbhhmuKGpLuxLBILRCxqIFrDCKweVWX2p9FQUgXWKXLQUmEb4ETmWj611GE7FS2LbTzSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GGl4Z16v/obVHp99+OZhrcZPKWGkTqSsIlxvPF5wTQg=; b=LoEsOShxYp5z9XSnQ6svLQUMEs3dzaZq92SVwbu93I73cYKEoRuvizi17LAenWydwiw37Ri802n3l+6by4FSXbCCDyvQ9gcpdmvb0oqUIGCt/c7GyRApx5i9L2TbKF5MpxvYdH1MaW5smOk6dEvDI7xAIi//Lp6ficnHNBfBtVUu7hhOvns2oz5I35sKQwD3MmV4RT1/vyRkY0B6j9gRUx8HvhWyenhm6OLFtNOQTUTOBGUlu5lHABgJkLfyueFwiPyCb3TUxl+CPedi4to6lKNsm7yk3I66Q97Jeks6KCEGJf9ceukxWhvA8NkZiNNo5lQ+n7EQHOflT5ntdvZwmw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GGl4Z16v/obVHp99+OZhrcZPKWGkTqSsIlxvPF5wTQg=; b=Y8z2wwHiZkGOxlnhl5CCpoxj7BteMQgWFPg2HG9uSKXsVAfnGC6MxXQgEKwLxwAQ4rNnHtIcf0C5JW27O8uH+O67SR5X83+M3Spwm8oBPUAjcXvJM16dSe2S1KWRo3LSawE4ctkgUtRzA3Y9fh8u7GET+/yYaDo4kGbvNefWk34= Received: from SA9PR13CA0064.namprd13.prod.outlook.com (2603:10b6:806:23::9) by MWHPR0201MB3577.namprd02.prod.outlook.com (2603:10b6:301:76::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.22; Fri, 4 Jun 2021 11:34:17 +0000 Received: from SN1NAM02FT0017.eop-nam02.prod.protection.outlook.com (2603:10b6:806:23:cafe::14) by SA9PR13CA0064.outlook.office365.com (2603:10b6:806:23::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.10 via Frontend Transport; Fri, 4 Jun 2021 11:34:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0017.mail.protection.outlook.com (10.97.4.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4195.18 via Frontend Transport; Fri, 4 Jun 2021 11:34:17 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 4 Jun 2021 04:34:00 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Fri, 4 Jun 2021 04:34:00 -0700 Received: from [10.140.6.60] (port=49944 helo=xhdnavam40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lp85O-0005PI-Mw; Fri, 04 Jun 2021 04:33:59 -0700 From: Nava kishore Manne To: , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v7 3/4] dt-bindings: firmware: Add bindings for xilinx firmware Date: Fri, 4 Jun 2021 17:03:31 +0530 Message-ID: <20210604113332.1394-4-nava.manne@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210604113332.1394-1-nava.manne@xilinx.com> References: <20210604113332.1394-1-nava.manne@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ff0eeb84-4180-4517-d554-08d9274cb01d X-MS-TrafficTypeDiagnostic: MWHPR0201MB3577: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: quIN6Hsgb8Vq+yO/w+EZerweM/vDw+OhYYy6X5y1TfTKOaTTFQx1A0Nv8O88QcmBh4rdDzQdmutU/GsqrlUXgJHe3qNvXVDnz+uXTEAA9gvvpf8kTeV4zHQTWJrUiP8LcKzUJinzG8Qt1G/ZCNWGG85vdCIDZneFVi5bj3MHoHPaOn3JezvihUg47XcyNaldr01VkRYBwH0Mz6wGXEqpUN/ssbipRDbEd8c98v9iZPg5d8SMzl087ThRICP0G1GYdZbkoyWnH+Y7RDmBQj2NloK22fgXL7MdzDXEcNLDaL/dqkQ6k5vtZds2HZBdvNkbeqniUCcI3zb8+O7F8FdCfifqX2ChJ46bjEzqnaQidWoUfSGhJWGbuUxZI7nJmzkZxOG1Vqitq+YDFjxDv2YMpzt4CerrDc0NTNoPhcLvJ4TCOWFvgzeez8UrJ58PedeaoWzfju3AXgyjWbAfsBckyvIcu5mrYsBIyaBkG2CNyuielkPMASacTZFASYAs4gO+dDH0arIs042Hli0dt/3OiU2NCTOOkMFtTL7TO6ItpkYGkLcBqzvsuMmrKcUhD/KJMQwetLhhA9QyUyHRquWFpLfbB/POAUu/yksUaytefOhG6xB7TaH9SokH5gYSTlzo66ATyoxLawgQevFf7oXv60Dlo6PdgG0VwXFBVfdzv5k/xt8ZSuz/2aNk1jI53WvJrVdb3+Crx3gbQnUqy4UB88bGLncI7OX7FprJ/th/ozbV6U6NMmBaNxN8CTXR4aC1IqEuTRwypY3OC0AoSYU15ZdFdmRLs8Ga+3ElMnnWzQwzh4pCQOguRSl9y9qg4fYQ5TZxPzJwgg8YXEropwv4Gqj4DOUHfO1VW8jlkNN8lya2t4t13BfjUAFp6zJuskI5IkrSAAxOZEYUqOe4W4IT1Q== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(39860400002)(346002)(376002)(136003)(396003)(46966006)(36840700001)(186003)(6666004)(966005)(7416002)(426003)(83380400001)(478600001)(70586007)(8676002)(2906002)(26005)(70206006)(336012)(8936002)(36906005)(9786002)(316002)(110136005)(7696005)(36756003)(921005)(356005)(47076005)(5660300002)(82740400003)(1076003)(2616005)(82310400003)(7636003)(36860700001)(102446001)(83996005)(2101003); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2021 11:34:17.4579 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ff0eeb84-4180-4517-d554-08d9274cb01d X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0017.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR0201MB3577 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210604_043420_555995_F7BA8625 X-CRM114-Status: GOOD ( 16.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add documentation to describe Xilinx firmware driver bindings. Firmware driver provides an interface to firmware APIs. Interface APIs can be used by any driver to communicate to Platform Management Unit. Signed-off-by: Nava kishore Manne --- Changes for v4: -Added new yaml file for xilinx firmware as suggested by Rob. Changes for v5: -Fixed some minor issues and updated the fpga node name to versal_fpga. Changes for v6: -Added AES and Clk nodes as a sub nodes to the firmware node. Changes for v7: -Fixed child nodes format ssues. .../firmware/xilinx/xlnx,zynqmp-firmware.yaml | 94 +++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml diff --git a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml new file mode 100644 index 000000000000..8e0241c4c137 --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml @@ -0,0 +1,94 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/firmware/xilinx/xlnx,zynqmp-firmware.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx firmware driver + +maintainers: + - Nava kishore Manne + +description: + The zynqmp-firmware node describes the interface to platform firmware. + ZynqMP has an interface to communicate with secure firmware. Firmware + driver provides an interface to firmware APIs. Interface APIs can be + used by any driver to communicate to PMUFW(Platform Management Unit). + These requests include clock management, pin control, device control, + power management service, FPGA service and other platform management + services. + +properties: + compatible: + oneOf: + - description: + For implementations complying for Zynq Ultrascale+ MPSoC. + const: xlnx,zynqmp-firmware + + - description: + For implementations complying for Versal. + const: xlnx,versal-firmware + + method: + description: | + The method of calling the PM-API firmware layer. + Permitted values are. + - "smc" : SMC #0, following the SMCCC + - "hvc" : HVC #0, following the SMCCC + + $ref: /schemas/types.yaml#/definitions/string-array + enum: + - smc + - hvc + + "versal_fpga": + $ref: /schemas/fpga/xlnx,versal-fpga.yaml# + description: Compatible of the FPGA device. + type: object + + "zynqmp-aes": + $ref: /schemas/crypto/xlnx,zynqmp-aes.yaml# + description: | + The ZynqMP AES-GCM hardened cryptographic accelerator is + used to encrypt or decrypt the data with provided key and + initialization vector. + type: object + + "clock-controller": + $ref: /schemas/clock/xlnx,versal-clk.yaml# + description: | + The clock controller is a hardware block of Xilinx versal + clock tree. It reads required input clock frequencies from + the devicetree and acts as clock provider for all clock + consumers of PS clocks.list of clock specifiers which are + external input clocks to the given clock controller. + type: object + +required: + - compatible + +additionalProperties: false + +examples: + - | + versal-firmware { + compatible = "xlnx,versal-firmware"; + method = "smc"; + + versal_fpga: versal_fpga { + compatible = "xlnx,versal-fpga"; + }; + + xlnx_aes: zynqmp-aes { + compatible = "xlnx,zynqmp-aes"; + }; + + versal_clk: clock-controller { + #clock-cells = <1>; + compatible = "xlnx,versal-clk"; + clocks = <&ref>, <&alt_ref>, <&pl_alt_ref>; + clock-names = "ref", "alt_ref", "pl_alt_ref"; + }; + }; + +... -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel