Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1414017pxk; Thu, 10 Sep 2020 14:57:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhrQnQq8JP4bdzgidUqYjyIiBRE95dH4ZErmVtP5cIDXZbeXOZS3iB5hF8YegkNYwqiF6p X-Received: by 2002:a17:906:2c14:: with SMTP id e20mr11616855ejh.205.1599775031544; Thu, 10 Sep 2020 14:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599775031; cv=none; d=google.com; s=arc-20160816; b=ZNPo2izD/NGTA3J/nSS137ECByjv77vN3TBC/+j9MwFnRas4WhW2OdP1IHDyRnAUC3 +T7L6Pv+Gprxs4KYEnaVAnYC+4myYiii/z9jXvHMliYxTPHWeqdnhF5FHAVwyX5hg436 wvOjur9KUmnQF25VX0qXqH79QUoWU+QJ3G9t2ts+l+OQR+AvnDHwUUJ8xyIJIKPqfaLo YtjaA0hG2mWjoZ7KtWfOvKyz6CTZaodi7kKJOhnkYKdBxmIFJrZoQslKXEJfl6LlYZvV 5QcCmpMTxEg0dqk4NsqJKR0oA8cGugV6ECE1u1gMAkFG92DsyJ9qByoYvc95NG9UVZ4O e1mQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ZJ2vHaYqoVGimQqIW+dGq81Ddb4etTQVEuSJ6N8/hV4=; b=VHgI+831mCUS+Qhn5s9iLH+tto69mj8lIV9MugO115qSp8ddRoKVDMf8m27izPVBZk Feh8SuOJHA1y+msWJbHmOy/ApQvRfWNwObreEOp9MgZBWIipFzAVXxpRwhOCZh8FRdqQ OjUfivgoNq6FT9nsAmoaL4teI/K5b7xbHtaZarJNN9OGO2gS+aGbmF7JNoV8PyMwm4aQ eUgq1Q8XrxkFcJHUjVwOnyEqnFzzIMVyfkWodxp0/K+mkId/T7OUsdyihF/H9dv7cyf8 PJ3l9UXBZvI3n3jum9EkSDhQLHZgZG+FUpUW2ApncZQ86XJ8LbCCJCRBs//yFxIkS5Bl bQgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Xes36BsZ; 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 p1si4437590ejd.570.2020.09.10.14.56.48; Thu, 10 Sep 2020 14:57:11 -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=Xes36BsZ; 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 S1728401AbgIJVnC (ORCPT + 99 others); Thu, 10 Sep 2020 17:43:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730560AbgIJNBo (ORCPT ); Thu, 10 Sep 2020 09:01:44 -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 D2CC2C061757 for ; Thu, 10 Sep 2020 06:01:38 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id a17so6609218wrn.6 for ; Thu, 10 Sep 2020 06:01:38 -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:mime-version :content-transfer-encoding; bh=ZJ2vHaYqoVGimQqIW+dGq81Ddb4etTQVEuSJ6N8/hV4=; b=Xes36BsZfAJFtqugTewRnG8S2F4SvtKI3ao41dtEndBZ6+tMSuxg2QYTyWuc2rLsv2 dOk8MBtBz6erlo84rPylqikZUL3dr7mKIs4oRostt0NTudrbX3JzMzoH5PWdpmAIgOOL P9svCMAyrJaFMjzvfAtZ/O1Ob2HskNoICrLWNoSR3QDsHWfC80vnXy+F9RD11BpTEZJH J0SyhjkPnjODgRtc7CLZqHm8fG6KIcdOX1nJ7uV2CuKxEpunYhM+OsitUxa3e2UJnWs6 lL6jtrqQAa477lPUpx+VmiChJcvPAh80Jnxc5+IibbSGDYBFtm2NxdOsd6oEqlDfAGaI fJCA== 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:mime-version :content-transfer-encoding; bh=ZJ2vHaYqoVGimQqIW+dGq81Ddb4etTQVEuSJ6N8/hV4=; b=WcNOCbOiv5p85LYd3GBJtG5UCB1o66bRvKbFJjfRsfHndF+xeEYc1pnGr6Qrm2mbF1 CFjBkf7RmWBkKCYMivkvqsQ/3XmWyhqGbBGwrS+V4haNRtViHFaFkPDHpp03FxhyQNkP Dbu557wl2WBCndzUo1eCyHdIoQ1MGSw7TpXwTwbsV2UP0JKx72RtnXtt7k5bLFMdabfz A+PbFidCFxkM3j2dalgo754BDqnro99e+31GgVBpkBDQO3vJT6+4HhYUetMe4RefYqEr 33BpXUrzdaSdefBeXVH6+s7dgBys7sKdg5hsfgLsICExWRxeozhaSjHxZul8ysJjJmu8 zbnA== X-Gm-Message-State: AOAM531r41XJuUDWoBTklH97/FnhBBoAMXmiZjxNc6RJwgyNKwAx8NyN dVviaxsMzESLAnUFOX+9qljDbw== X-Received: by 2002:a5d:444e:: with SMTP id x14mr8524324wrr.235.1599742897157; Thu, 10 Sep 2020 06:01:37 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 06:01:36 -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 0/4] Add support of mt8183 APU Date: Thu, 10 Sep 2020 15:01:44 +0200 Message-Id: <20200910130148.8734-1-abailon@baylibre.com> X-Mailer: git-send-email 2.26.2 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 Some Mediatek's SoC have an Accelerated Processing Unit. This adds support of the one available in the mt8183 (aswell some derivative SoC). This series depends on two other series: - Mediatek MT8183 scpsys support - arm64: dts: Add m4u and smi-larbs nodes for mt8183 Changes in v2: - Drop the workarounds needed to load bad firmwares - There are many name for the APU (most common one is VPU). Rename many functions and dts nodes to be more consistent. - Use the bulk clock API, and enable / disable clock at a better place - add few comments explaining how to start the APU - update the way to use pinctl for JTAG - fix some minors issues - fix device tree bindings Alexandre Bailon (4): dt bindings: remoteproc: Add bindings for MT8183 APU remoteproc: Add a remoteproc driver for the MT8183's APU remoteproc: mtk_vpu_rproc: Add support of JTAG ARM64: mt8183: Add support of APU to mt8183 .../bindings/remoteproc/mtk,apu.yaml | 107 +++++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 39 ++ drivers/remoteproc/Kconfig | 19 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/mtk_apu.c | 437 ++++++++++++++++++ 5 files changed, 603 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/mtk,apu.yaml create mode 100644 drivers/remoteproc/mtk_apu.c -- 2.26.2