Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1411720pxk; Thu, 10 Sep 2020 14:52:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUn5625CfLRyOTcS5qhnInuFfvkudtIipJlNqz7jSltde0to9+b4l4nAZD/MZTmU77mwPu X-Received: by 2002:a17:906:6884:: with SMTP id n4mr11483865ejr.50.1599774723524; Thu, 10 Sep 2020 14:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599774723; cv=none; d=google.com; s=arc-20160816; b=vU2yUue2i5/rLt3/WaNdNZ+Cqp0ecq7ROEae9xP1CNnE9BsOCLdxY4JKX2R3BVmcl3 KYQKfHiMKvWov2f+fEMYztF3JjZDUwspZBPgipMdyFXEWigXsdXmwZKk1mw8iFBCsJ91 IOD8MKsulbufsYzp7dVydsJRziXJk5oHRx73eLfRcj6g4cKA/OIUSl8any4gAZJZZ9m7 EpMYxIdv7FQIeGuXWAuelLokgEmi9DtRCvrSliCaLov8ZbUJrfmMTuwUUPZZ53y485Sd H1CkS3F+DTa8E1IIo24cVWTMUMHgA2TsnbRu0fghioJ1USkxrdfZ9o+lrFQQWmlNuqnz A7vA== 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=pRs7Uzub0zJIby8weUidtFyGgxBuDRRReFxv1hE4uO8=; b=oeN0evjlOViYL8B5urr5wK1Ygg2rRcUf7t9kWkbfOr5ZpRq0JSUb9P97+aY64Uw2Ju 5M+Ic360ZbfrMDsVM/B0vQNLHCDCRh2Jhbj9SGS2cykMeoXtW6nZG0Iw8+l7IKlvuzqM etaV9LgVPaCr3FKmo0v3/Z1ZR+VhkllfzXzBc9UwufmKkB7RyssLKUkc5AlvYOqBnydj PGUkPudd1HjC8Z6UEObF3EWDtOG5I50m7YUEXD++oycrtU4L3NeTbM8UElOF9ytgiwTW b9U8Lk3n1bBYRY+nXwD+TEccrIXxvo1xDZVja6NotyGGWhrIQLcKVnRmDCbhfIniLDfT x9iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=e1BCbpsX; 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 mb24si4418578ejb.583.2020.09.10.14.51.40; Thu, 10 Sep 2020 14:52:03 -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=e1BCbpsX; 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 S1728219AbgIJVnY (ORCPT + 99 others); Thu, 10 Sep 2020 17:43:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730380AbgIJNBo (ORCPT ); Thu, 10 Sep 2020 09:01:44 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A274C061795 for ; Thu, 10 Sep 2020 06:01:40 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id m6so6646776wrn.0 for ; Thu, 10 Sep 2020 06:01:39 -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=pRs7Uzub0zJIby8weUidtFyGgxBuDRRReFxv1hE4uO8=; b=e1BCbpsXv9QwCCYq522KpmcV/gk6T8ibKbGXusxUOfAfP2F3CYIxea926Q3rOONKiI Rzl8B7GGIANojnTkvRGBr2uu72MpTHHDCNtHhD4yyD+b7SSDXbAYdCN+ImfUBrfmPAWg EnOxs50Im1TZFZVUxvBrJYQTIGujYBUAw6TypR8XcDTWN8Gvaq503Urh22FAiPblCx1k PS3Zc0optxM7KKJMz86JCliv8SH1QyDsfCON0rUiTTChG5yW+3AomEktH6Lxa7h1xT+3 sbl6e6D5fbYtDpWmLKX7lyqsY2U970qtVw/X5OfLyjWjVVyvSgRQj0O1XdCwuFCNVIhb RWDw== 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=pRs7Uzub0zJIby8weUidtFyGgxBuDRRReFxv1hE4uO8=; b=n7+tF7gzWkZnbdR2zriMe6GaJKz+HsoV3WA1dA7qj2YV94zhMaMS3Ur1C0SV8qv+oW 15DR6/1l9uf7Rsrhp1feReyPPaplXgkIswAL4WbU8tIr4tK+rUjaG+A2T60NgEOysJlL UdHBbfeTwSH70hA+Zb6dBLIKIDtaLC3GkhNbkbrEnIx3afk+DJWnk/mHSLFLYVTZATM3 aCEZvZx9tP+uXny4Dm+LrOqaTr6CHY6oEKTTBzrXbcvQjbHPMgieWCEi7j59BEDfD8vw UvdkrtS/W3UK5Ys8l3T8l1RiezVGDNj2nEVig8kPfL1LkKBN8f54vQR1bHCmFliRPbVw CGaw== X-Gm-Message-State: AOAM530jr54w1oxh0QC9P4JW2ZLmzFXaitXpWhjwUa+ktUB1UAE9IMx3 CO2Axk/y6EhOKQdUXt9VYq8xKw== X-Received: by 2002:adf:e6cf:: with SMTP id y15mr8886654wrm.346.1599742898647; Thu, 10 Sep 2020 06:01:38 -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 y1sm9488269wru.87.2020.09.10.06.01.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 06:01:37 -0700 (PDT) From: Alexandre Bailon To: ohad@wizery.com, bjorn.andersson@linaro.org, robh+dt@kernel.org, matthias.bgg@gmail.com, mathieu.poirier@linaro.org 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, stephane.leprovost@mediatek.com, gpain@baylibre.com, Alexandre Bailon Subject: [PATCH v2 1/4] dt bindings: remoteproc: Add bindings for MT8183 APU Date: Thu, 10 Sep 2020 15:01:45 +0200 Message-Id: <20200910130148.8734-2-abailon@baylibre.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200910130148.8734-1-abailon@baylibre.com> References: <20200910130148.8734-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 | 107 ++++++++++++++++++ 1 file changed, 107 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..7a71d2f5c4e6 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/mtk,apu.yaml @@ -0,0 +1,107 @@ +# 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 + maxItems: 1 + +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; + + apu_ram: apu_ram@0x60000000 { + compatible = "shared-dma-pool"; + reg = <0x60000000 0x040000000>; + no-map; + linux,cma-default; + }; + }; + + 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 = <&apu_ram>; + }; +... -- 2.26.2