Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp983868ybh; Mon, 13 Jul 2020 06:31:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwombTJMFwAWZrjLpXp5O4MvMSzGvf4ewbRL78sWSYM+K4BWyETMXmWbSbEYEo5dBdhPx8Y X-Received: by 2002:a17:906:a058:: with SMTP id bg24mr76291342ejb.370.1594647080175; Mon, 13 Jul 2020 06:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594647080; cv=none; d=google.com; s=arc-20160816; b=ww4CA8825pP4VfKbmzoQ/caVZzPmOIVrhWtdUYMw8zm3r5clsNIs2LEQtlZirE6Gwu rX+mbEHlrWF6a/jo6WjGQgpUQ9ld9usd+4KdYYjERB4eoayHf3hC0beNciA6Xe2BRse1 Zmc3li+zYZqn81yPs3yarVe7NFLrBrPHv7e0s9Kq1EBwHsXSmtmMtbl0nt0vg3ZKCSZS LOu2iP3iZh8lcmvEqlBIwUmkGtzgWq4OUcg4PQ5VKVj7bmP+WuyxOzCfvZk7bKr2BWeF nQ+QJAH6Bk1gISxw9Omqi5nYR/P5MUa5aCnW7xwAigEohmQHtXQ8VV1P21naESji3Blw i9Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ku9aM1vtf8T+FGw4lj5ZIPzjxBiChVO0/pPdJg2fBGw=; b=ry90kNoVahw+fmD91Hie2FvfPTz18BMA2j7wYCdjpUkSQHADmmN3BDyWC1rlaGwwjh iWkKUNKmqBG2qZxA1dU4N5USCj1bqIXACottiZ/xp2nZa4oxlyncQVEA0I49z9ZNfTMM uHu6kWkZPfKZmM7rLtO6nUIaCQGJvSit/1OXiJix6croWLmNlhqf0zpoCbyYk+03qknd LfPNnGdCjPIE6RRKs98HInBLhBGjc+W+N/Df/XsWXH+mhbzYQae2PcHEQ3hls5eTN+tQ ZjsY17+7NNKzT2sgHzPpsuAlfJChGy1X3N4jqdFUt7pjox+IQpFD54qRbLw2qSN3rZNP EbaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=PrmHEa5F; 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 u17si9992635edd.139.2020.07.13.06.30.57; Mon, 13 Jul 2020 06:31:20 -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=PrmHEa5F; 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 S1729873AbgGMN3o (ORCPT + 99 others); Mon, 13 Jul 2020 09:29:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729857AbgGMN3m (ORCPT ); Mon, 13 Jul 2020 09:29:42 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D3E2C08C5DB for ; Mon, 13 Jul 2020 06:29:42 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id k6so16550617wrn.3 for ; Mon, 13 Jul 2020 06:29:42 -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=ku9aM1vtf8T+FGw4lj5ZIPzjxBiChVO0/pPdJg2fBGw=; b=PrmHEa5FPW0LpbYElEyKRcYnhJi5XmlC36lx5TSUk0I4eKD5oBsz61WrgLwaHWBGIX Ut63kpeIUoPgm/Iugy6CdW2TIR25zGavB/guDK5USe1uzqHhQIzZmP4SybSuqPzcYscF EpwVxFYP4NgYDzzlW7/wtUOdb6KvFamYq/rsjAhy7Pv/QfGSzORPzVUZLWXXKh3oBHXM kmLBRJzeMfEs2EaHJlYuyMfD0K6LX8k2KCDF1nSPRFMgYE8kZN4eCxgtwF15LSmpbSGc lpjY8R1Mjpf7JpeZjWoq/AMQ4feht55IcICbLW8Zw9qNxbusSYWa6dd9BuiEWOSp9Q0t n3hA== 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=ku9aM1vtf8T+FGw4lj5ZIPzjxBiChVO0/pPdJg2fBGw=; b=rPB5wmFDrdSpaU+mGcw6SxpXOg/ZRbBXxg3KhUOzJGyeUN5bf8kTT6VECAEXCXjqPl SGyVpAitPMUBncPtmOxWf4QgUhxtF3zDbKEZj+JbI5nnpmB6jlzltVgdCD1G6+ZKm5Nj nbufdDeHvljSXjv6gKTp9qNH9QAaqMUNsX+QFsuMPmJ6QHogrLND+7J9odXZ9QNsl7mD goJWYEqNgHFoN7AaGyG/oRe7slChz4AOOAV4NVjKpjeFdoF9eXtVEoJYBmLAl/2XQV/S LHvCF8VwYIIBUOzP0/Pt4B7UblggVvvudziikgEb1oR+UXL2AAPi/h9b2xY8E0nJlH9m SdJg== X-Gm-Message-State: AOAM532CsLEav3ytyPmSRAhyH8HKmXd2N3eoWLfTaMR4w9HQ07CpGvRq ERafmG+3OSXtJsGzMEmFWLvppg== X-Received: by 2002:adf:de12:: with SMTP id b18mr85726204wrm.390.1594646980907; Mon, 13 Jul 2020 06:29:40 -0700 (PDT) Received: from linux.local (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id j14sm23896642wrs.75.2020.07.13.06.29.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 06:29:40 -0700 (PDT) From: Alexandre Bailon To: ohad@wizery.com, bjorn.andersson@linaro.org, robh+dt@kernel.org, matthias.bgg@gmail.com Cc: 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, Alexandre Bailon Subject: [PATCH 1/6] dt bindings: remoteproc: Add bindings for MT8183 APU Date: Mon, 13 Jul 2020 15:29:22 +0200 Message-Id: <20200713132927.24925-2-abailon@baylibre.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200713132927.24925-1-abailon@baylibre.com> References: <20200713132927.24925-1-abailon@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org 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 | 121 ++++++++++++++++++ 1 file changed, 121 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 000000000000..1d5fcc135617 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/mtk,apu.yaml @@ -0,0 +1,121 @@ +# 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 Vision Processor Unit (VPU) devices + +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: + description: + Address ranges of the APU MMIO. + maxItems: 1 + + interrupts: + description: + The interrupt number used to receive the interrupts from the DSP. + maxItems: 1 + + clocks: + description: + "Clocks for co-processor (See: ../clock/clock-bindings.txt) + 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: + description: + The name of clocks, must be ipu, axi and jtag + items: + - const: ipu + - const: axi + - const: jtag + + iommu: + description: "IOMMU (See: ../iommu/iommu.txt)" + maxItems: 3 + + memory-region: + description: "Reserved memory (See: ../reserved-memory/reserved-memory.txt)" + maxItems: 1 + + power-domains: + description: "Power domain (see: ../power/power_domain.txt)" + maxItems: 1 + + pinctrl: + description: pinctrl handles, required to configure pins for JTAG. + maxItems: 2 + + pinctrl-names: + description: + pinctrl name, must be "default", "jtag". + "default" must configure the pins when JTAG is disabled. + "jtag" must configure the pins for JTAG operations. + items: + - const: default + - const: jtag + maxItems: 2 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - iommu + - memory-region + - power-domains + +examples: + - | + #include + #include + #include + #include + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + vpu_ram: vpu_ram@0x60000000 { + compatible = "shared-dma-pool"; + reg = <0 0x60000000 0 0x040000000>; + no-map; + linux,cma-default; + }; + }; + + vpu0: vpu@0x19100000 { + compatible = "mediatek,mt8183-apu"; + reg = <0 0x19180000 0 0x14000>; + reg-names = "mmio"; + 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 = <&vpu_ram>; + }; +... -- 2.26.2