Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2421239pxb; Sat, 30 Jan 2021 02:01:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiY763i8TBRrMPQtgUh5n0YOYzVoGTWDNbNStQio1mj+CR2Ab921RTjGHRGnCcuPiqV7Zz X-Received: by 2002:a17:906:8609:: with SMTP id o9mr8388883ejx.241.1612000875332; Sat, 30 Jan 2021 02:01:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612000875; cv=none; d=google.com; s=arc-20160816; b=dYyFZ6nOrmbxJdQ/w6QReQRxqDpFDsxriUeDpf57r6LkBidhhRl8PU0145vynZL4yT lhfWvbC+InmSwpz1bILjT+fvmQFuy/Rtzf+8FTqfzsTEYNjSQTRo8omgWx6K3WeoHuDJ hsJQhlrwX21bJUFaV5TOI7BvW5wYtIi7JGFTe97X516E1DjWQUTEd8K3e5mydqg83/y7 lh8zTrA+1qvQwrrAWtRogGydkEh8aNMrSDbJvOVeCKdK3Tq3adPnowZ6AFFsogSJAd7T U8/M2fXGjVUxIl49uuzFSOA4zhVwLCBCiE3Z11omYfRi6rnEc4ojdXnea4oWxQVh+6qx a16g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:ironport-sdr:ironport-sdr; bh=7n+HfevgBsKinc+6Zjzt5aA57pl11X2nuOp/IZ4HBo4=; b=tUWhfcjXyQqeVltYoyziqZhEmBjVbZfdJrHDyBHf63zVBZrBrqpnt/Y7A3JGtfiysG 3oLbs0m09yByi1U9JypQzNGp4/BHLSgvXo4KMRkJ+7fKX4SheEiaEOb7f4rij4fj8wN3 faf96V2TXOeljvJir81WUJfU1Tu8eoViIlNx5fhqBfne1JnU+jNP+QHlYtf+VMe62WCv WmH/LT59Y2WOG/aWXHOhL7KF+vyeDkaqQ2DG2m2Uojyo8zb0gGi1yqLV2x7bzhg/S1Il m2jShHqW7dbh+uZ+8bflp3OygM5IvfrljJWnqtVal/0ppA8roILcAkwsDbAGQlBSFEcl NoYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh24si6211624ejb.282.2021.01.30.02.00.50; Sat, 30 Jan 2021 02:01:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232072AbhA3J5g (ORCPT + 99 others); Sat, 30 Jan 2021 04:57:36 -0500 Received: from mga02.intel.com ([134.134.136.20]:10159 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232821AbhA3DAc (ORCPT ); Fri, 29 Jan 2021 22:00:32 -0500 IronPort-SDR: x5HiimzjVaAkSR2TZkPdKrIVR9c3BKES0ZhWPTLDD0Eq9zXIh0Z71EmVfNkfOA22lGK8TENaR8 wMXFA4JtWGcw== X-IronPort-AV: E=McAfee;i="6000,8403,9879"; a="167606740" X-IronPort-AV: E=Sophos;i="5.79,387,1602572400"; d="scan'208";a="167606740" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2021 18:21:29 -0800 IronPort-SDR: 43bHuH5UXskUjL2Xh5Q84a1+DcVgjqvG9cf4HDfsvLXwK+suTnWCbIDNMMalh8PtNisy4JUW1E 2kqqN6xivq0Q== X-IronPort-AV: E=Sophos;i="5.79,387,1602572400"; d="scan'208";a="352488065" Received: from smtp.ostc.intel.com ([10.54.29.231]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2021 18:21:28 -0800 Received: from mtg-dev.jf.intel.com (mtg-dev.jf.intel.com [10.54.74.10]) by smtp.ostc.intel.com (Postfix) with ESMTP id DE68B636D; Fri, 29 Jan 2021 18:21:27 -0800 (PST) Received: by mtg-dev.jf.intel.com (Postfix, from userid 1000) id D2E19362E90; Fri, 29 Jan 2021 18:21:27 -0800 (PST) From: mgross@linux.intel.com To: markgross@kernel.org, mgross@linux.intel.com, arnd@arndb.de, bp@suse.de, damien.lemoal@wdc.com, dragan.cvetic@xilinx.com, gregkh@linuxfoundation.org, corbet@lwn.net, palmerdabbelt@google.com, paul.walmsley@sifive.com, peng.fan@nxp.com, robh+dt@kernel.org, shawnguo@kernel.org, jassisinghbrar@gmail.com Cc: linux-kernel@vger.kernel.org, Paul Murphy , devicetree@vger.kernel.org, Daniele Alessandrelli Subject: [PATCH v3 06/34] dt-bindings: Add bindings for Keem Bay VPU IPC driver Date: Fri, 29 Jan 2021 18:20:21 -0800 Message-Id: <20210130022124.65083-7-mgross@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210130022124.65083-1-mgross@linux.intel.com> References: <20210130022124.65083-1-mgross@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paul Murphy Add DT bindings documentation for the Keem Bay VPU IPC driver. Cc: Rob Herring Cc: devicetree@vger.kernel.org Reviewed-by: Mark Gross Signed-off-by: Paul Murphy Co-developed-by: Daniele Alessandrelli Signed-off-by: Daniele Alessandrelli --- .../soc/intel/intel,keembay-vpu-ipc.yaml | 153 ++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/intel/intel,keembay-vpu-ipc.yaml diff --git a/Documentation/devicetree/bindings/soc/intel/intel,keembay-vpu-ipc.yaml b/Documentation/devicetree/bindings/soc/intel/intel,keembay-vpu-ipc.yaml new file mode 100644 index 000000000000..cd1c4abe8bc9 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/intel/intel,keembay-vpu-ipc.yaml @@ -0,0 +1,153 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (c) Intel Corporation. All rights reserved. +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/intel/intel,keembay-vpu-ipc.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Intel Keem Bay VPU IPC + +maintainers: + - Paul Murphy + +description: + The VPU IPC driver facilitates loading of firmware, control, and communication + with the VPU over the IPC FIFO in the Intel Keem Bay SoC. + +properties: + compatible: + oneOf: + - items: + - const: intel,keembay-vpu-ipc + + reg: + items: + - description: NCE WDT registers + - description: NCE TIM_GEN_CONFIG registers + - description: MSS WDT registers + - description: MSS TIM_GEN_CONFIG registers + + reg-names: + items: + - const: nce_wdt + - const: nce_tim_cfg + - const: mss_wdt + - const: mss_tim_cfg + + memory-region: + items: + - description: reference to the VPU reserved memory region + - description: reference to the X509 reserved memory region + - description: reference to the MSS IPC area + + clocks: + items: + - description: cpu clock + - description: pll 0 out 0 rate + - description: pll 0 out 1 rate + - description: pll 0 out 2 rate + - description: pll 0 out 3 rate + - description: pll 1 out 0 rate + - description: pll 1 out 1 rate + - description: pll 1 out 2 rate + - description: pll 1 out 3 rate + - description: pll 2 out 0 rate + - description: pll 2 out 1 rate + - description: pll 2 out 2 rate + - description: pll 2 out 3 rate + + clock-names: + items: + - const: cpu_clock + - const: pll_0_out_0 + - const: pll_0_out_1 + - const: pll_0_out_2 + - const: pll_0_out_3 + - const: pll_1_out_0 + - const: pll_1_out_1 + - const: pll_1_out_2 + - const: pll_1_out_3 + - const: pll_2_out_0 + - const: pll_2_out_1 + - const: pll_2_out_2 + - const: pll_2_out_3 + + interrupts: + items: + - description: number of NCE sub-system WDT timeout IRQ + - description: number of MSS sub-system WDT timeout IRQ + + interrupt-names: + items: + - const: nce_wdt + - const: mss_wdt + + intel,keembay-vpu-ipc-nce-wdt-redirect: + $ref: "/schemas/types.yaml#/definitions/uint32" + description: + Number to which we will request that the NCE sub-system + re-directs it's WDT timeout IRQ + + intel,keembay-vpu-ipc-mss-wdt-redirect: + $ref: "/schemas/types.yaml#/definitions/uint32" + description: + Number to which we will request that the MSS sub-system + re-directs it's WDT timeout IRQ + + intel,keembay-vpu-ipc-imr: + $ref: "/schemas/types.yaml#/definitions/uint32" + description: + IMR (isolated memory region) number which we will request + the runtime service uses to protect the VPU memory region + before authentication + + intel,keembay-vpu-ipc-id: + $ref: "/schemas/types.yaml#/definitions/uint32" + description: The VPU ID to be passed to the VPU firmware. + +additionalProperties: False + +examples: + - | + #include + vpu-ipc@3f00209c { + compatible = "intel,keembay-vpu-ipc"; + reg = <0x3f00209c 0x10>, + <0x3f003008 0x4>, + <0x2082009c 0x10>, + <0x20821008 0x4>; + reg-names = "nce_wdt", + "nce_tim_cfg", + "mss_wdt", + "mss_tim_cfg"; + memory-region = <&vpu_reserved>, + <&vpu_x509_reserved>, + <&mss_ipc_reserved>; + clocks = <&scmi_clk 0>, + <&scmi_clk 0>, + <&scmi_clk 1>, + <&scmi_clk 2>, + <&scmi_clk 3>, + <&scmi_clk 4>, + <&scmi_clk 5>, + <&scmi_clk 6>, + <&scmi_clk 7>, + <&scmi_clk 8>, + <&scmi_clk 9>, + <&scmi_clk 10>, + <&scmi_clk 11>; + clock-names = "cpu_clock", + "pll_0_out_0", "pll_0_out_1", + "pll_0_out_2", "pll_0_out_3", + "pll_1_out_0", "pll_1_out_1", + "pll_1_out_2", "pll_1_out_3", + "pll_2_out_0", "pll_2_out_1", + "pll_2_out_2", "pll_2_out_3"; + interrupts = , + ; + interrupt-names = "nce_wdt", "mss_wdt"; + intel,keembay-vpu-ipc-nce-wdt-redirect = <63>; + intel,keembay-vpu-ipc-mss-wdt-redirect = <47>; + intel,keembay-vpu-ipc-imr = <9>; + intel,keembay-vpu-ipc-id = <0>; + }; -- 2.17.1