Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp658116pxb; Thu, 19 Aug 2021 08:14:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+6roBlYnuiPyh95Rh8RI+zS0/IGvTpzJFPQ2uYLn1FeF2iL64mQfacK5UnEU/dUbnMQWy X-Received: by 2002:aa7:d896:: with SMTP id u22mr16774545edq.290.1629386077253; Thu, 19 Aug 2021 08:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629386077; cv=none; d=google.com; s=arc-20160816; b=araFCgYUYJHLBQWBUaoCtgunSVbToqKHrsTOY75wwPxNfGP/MoT/14w4h56W6uXY42 LLlxMmbeAdXtKI0KqG1x+TT9Mf3cY2Cz3rz3jukqiwKAMDDvkUT4TVWcNXmLl89X2tG9 a2qb2loiI2P2oGNgbqJ+DeSWTgXm1w710KZW2JODl5SkOKLlKhxBCYJoPqy6VBrIpfkT 4xRw9rk/hLk3U7CVhWjYlHBjtkKnWuJixdWY3VJfjtZSAeDHdI9jBwXoGKw+kp0yf63O Kv8kae9ZjWQlxqK8p2bvkyZfCRDjic97Y0IkPdEqHYgINzAwtBvXVkmjCeD9F2rCqMyN Werg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nfmux6GbWpn+VVXwtphpKIQmrZ/1kSy6Z3ImiMnN0Vs=; b=GGORf8St4CV6zwKvgr2MIf3CDc/QhID4qXaizXaTslb1Tx4jEZc6bME976e9aIPOOs FFZkE0dCL5DyJPnYtA0A1/oh+7QZnKfP9I9tKy733XCIr5WxSp6pSFSCl2f3x3aShhEH MrVyxi3lydRun4gHkg/Inmn0na/0+1NtFMBrxGHM/Xr2iNsclaRWzhBVYdCWI+Oq9Ecj xHonJL6qHg+U/DbhPQAw/F4Tew/+g5QhWmVGIvKBYGaM67ihVMaCvv49q1NQo+hoc+n/ VlZEuUTyIix4njZgldA5WvGw7c1or18QqGqrG396xuqrvzQnWjE/uL6VbDWZ7p3aaks6 6f3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=lcrAdC4O; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si3293867edv.347.2021.08.19.08.14.09; Thu, 19 Aug 2021 08:14:37 -0700 (PDT) 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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=lcrAdC4O; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238634AbhHSPMm (ORCPT + 99 others); Thu, 19 Aug 2021 11:12:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239629AbhHSPMl (ORCPT ); Thu, 19 Aug 2021 11:12:41 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EC9BC061575 for ; Thu, 19 Aug 2021 08:12:05 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id q11so9633282wrr.9 for ; Thu, 19 Aug 2021 08:12:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nfmux6GbWpn+VVXwtphpKIQmrZ/1kSy6Z3ImiMnN0Vs=; b=lcrAdC4OCKjmyR31VaQQFRKzwChBAkCfFWMkE0MAk2DfBx/PEY4yq6AguEujOhfmGB GgJLswHgOOdbTwe4nKJLbK+BW26/cqHhkn515aEdgjvXwKYvQauIl4Y+U/N2qwGFxjWQ VHFWanf1ruuGk/6cWgJvpvBSsZ0DZ9cuv13JJdFTh0CA7Iv2UzjZWKvVjB+AJDWzkWGh cqayulxEPXRE7KKDFR6+GAr/i7KMotMmTVTGEVWk1tRuQkYvkpwDgu3zIa0TAhT+ucXp Gygyz3zYsq5iylKXQCz14eLv84ASVt41wthP3N99qON3iczcDBqVNUospE/wv3my8gV/ 0rjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nfmux6GbWpn+VVXwtphpKIQmrZ/1kSy6Z3ImiMnN0Vs=; b=qxsJXtMpoLHAkGRy4IKgX+9BOWe75H+JViG3Xc33i8HeCiJJ8EVwc+gj+/YuQQzP/g +P8lvzlvrl/mxWxVy/vRZDTEU3UiQWYdEpXzIjuJQ2XxFM6iNhsIOcxaF6wM5FeLqNw4 Ns+TsEaEtQM6zdw0f0bNaBewwFBOjKZnhImlJTftK11XPhjThY58a/AwdZnP6fIe9RCb 8p29E0W2UbZwHOwv567Uh2j6NRGHedPZS0lbc7tL7tBz0tZwsYU60/TzJly/FoZdOMnf 2nZy8icyM+hHqvMmUNh1tTw5aoSAFqHF5BeQ9IbtofY9i8Px03YW/MzLLKsVE8wifTWy 6NzA== X-Gm-Message-State: AOAM533HyV4B0Q/OG3qXvjPWpZWegcp+CW/FeS3WKHq1OqZm8MsqwkL0 MwH/2p3+xxYA0sAzGRlrl4bzxQ== X-Received: by 2002:adf:d227:: with SMTP id k7mr4458318wrh.285.1629385923673; Thu, 19 Aug 2021 08:12:03 -0700 (PDT) Received: from alex-xps13.baylibre.local (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id j37sm1556962wms.39.2021.08.19.08.12.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 08:12:03 -0700 (PDT) From: Alexandre Bailon To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, robh+dt@kernel.org Cc: matthias.bgg@gmail.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, stephane.leprovost@mediatek.com, gpain@baylibre.com, khilman@baylibre.com, Alexandre Bailon Subject: [PATCH v3 1/4] dt bindings: remoteproc: Add bindings for MT8183 APU Date: Thu, 19 Aug 2021 17:13:37 +0200 Message-Id: <20210819151340.741565-2-abailon@baylibre.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210819151340.741565-1-abailon@baylibre.com> References: <20210819151340.741565-1-abailon@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds dt bindings for the APU present in the MT8183. Signed-off-by: Alexandre Bailon --- .../bindings/remoteproc/mtk,apu.yaml | 118 ++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/mtk,apu.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,apu.yaml b/Documentation/devicetree/bindings/remoteproc/mtk,apu.yaml new file mode 100644 index 0000000000000..d5da6be66610c --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/mtk,apu.yaml @@ -0,0 +1,118 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 + +--- +$id: "http://devicetree.org/schemas/remoteproc/mtk,apu.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: MT8183 AI Processor Unit (APU) a.k.a. Vision Processor Unit (VPU) + +description: + This document defines the binding for the APU, a co-processor that could + offload the CPU for machine learning and neural network. + +maintainers: + - Alexandre Bailon + +properties: + compatible: + const: mediatek,mt8183-apu + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + description: + Three clocks are expected for AXI, IPU and JTAG. + The JTAG clock seems to be required to run the DSP, + even when JTAG is not in use." + maxItems: 3 + + clock-names: + items: + - const: axi + - const: ipu + - const: jtag + + iommus: + maxItems: 3 + + memory-region: + maxItems: 1 + + power-domains: + maxItems: 1 + + pinctrl: + description: pinctrl handles, required to configure pins for JTAG. + + pinctrl-names: + items: + - const: jtag + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - iommus + - memory-region + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + vdev0vring0: vdev0vring0 { + compatible = "shared-dma-pool"; + size = <0 0x00008000>; + no-map; + }; + + vdev0vring1: vdev0vring1 { + compatible = "shared-dma-pool"; + size = <0 0x00008000>; + no-map; + }; + + vdev0buffer: vdev0buffer { + compatible = "shared-dma-pool"; + size = <0 0x00100000>; + no-map; + }; + }; + + apu0: apu@19100000 { + compatible = "mediatek,mt8183-apu"; + reg = <0x19180000 0x14000>; + interrupts = ; + + iommus = <&iommu M4U_PORT_IMG_IPUO>, + <&iommu M4U_PORT_IMG_IPU3O>, + <&iommu M4U_PORT_IMG_IPUI>; + + clocks = <&ipu_core0 CLK_IPU_CORE0_AXI>, + <&ipu_core0 CLK_IPU_CORE0_IPU>, + <&ipu_core0 CLK_IPU_CORE0_JTAG>; + + clock-names = "axi", "ipu", "jtag"; + + power-domains = <&scpsys MT8183_POWER_DOMAIN_VPU_CORE0>; + memory-region = <&vdev0buffer>, <&vdev0vring0>, <&vdev0vring1>; + memory-region-names = "vdev0buffer", "vdev0vring0", "vdev0vring1"; + }; +... -- 2.31.1