Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp474825pxb; Thu, 19 Nov 2020 06:12:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVkbJgKfCF1ycxmo/4dMOCrX5swGD4m+aaOIC89WMqgdXuyOaaPwpQDQw2ZfYdM375F4Dj X-Received: by 2002:a05:6402:c83:: with SMTP id cm3mr30655706edb.189.1605795126624; Thu, 19 Nov 2020 06:12:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605795126; cv=none; d=google.com; s=arc-20160816; b=R6zZIXL7c50h2HUfqub3jg/Q2dxN6MfKV+N3QVPYJHVp3wunPddVYCEfyKy+eJG4YC OoMjimUxlL1OepycaoWIeNK70uwJTMTu6jRlJoVjdfpJ6KDgykMzuCMUzOW1khuKTZ7o NUxzInXdHl7Noo+JVnEyALVJhjS1Cyl2sJuDI0SimQZgCAFddJ0qOUNM6qJ290a4V6r0 0rwrrjNCYb0FdMh4FUhXaTCfh2cmULwF2QWm30e+lrWZUGvc+3HaNyt4Sp/SEq5eBGA9 wqVR3ehUpB6btZDbuAZeqghkZ3boI91OIjpXDd1p3aCltfKRAhbcOUy5mfplMdLEpvgq sLXg== 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=l9kv5ypktfFS76EMW63e64X/f0uR7ySsDU39jrAiFDI=; b=1Hd9LHVr5oCXF58f4vC+aKCbrfIz+xjv4Rn4lxqx1FPzFlMsavPtR8Z93iUzWRACL2 U4ePddLO5Ovs3V3qnRkUMX3uqMPggok3POVIzQTKbe798yDJvWV9m7GI/TeUKi2FphSH c1nFKCfEwmpoo/jXOUUF6BDyG54sBeKvPxni0J1G8usXy1Lz3H1b925KYmUy9ap5jdeM TnKmWcX6mR4jAkWsElVyuS28zLI51/eFJTYhHAkXrm5mNKn6v5gK1fuGd4az2gLFJuUJ WeUDAhsKLtVmJtwmzPEgQef0eUjR5BFM0ExffEDBIqy/hJq9Ed7CepDVAO8+DZz3RqzS eJ8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Sa/D7qQ8"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t8si18059721edj.6.2020.11.19.06.11.42; Thu, 19 Nov 2020 06:12:06 -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; dkim=pass header.i=@linaro.org header.s=google header.b="Sa/D7qQ8"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727556AbgKSOJI (ORCPT + 99 others); Thu, 19 Nov 2020 09:09:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727518AbgKSOJH (ORCPT ); Thu, 19 Nov 2020 09:09:07 -0500 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF28AC061A49 for ; Thu, 19 Nov 2020 06:09:06 -0800 (PST) Received: by mail-lj1-x244.google.com with SMTP id v20so6353406ljk.8 for ; Thu, 19 Nov 2020 06:09:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=l9kv5ypktfFS76EMW63e64X/f0uR7ySsDU39jrAiFDI=; b=Sa/D7qQ86p451smntmbeF/O/U1vvSz67zs6dJpuflYXT87tA+EWJ7DRu+8R+fAl9ss ewikoM1Tl2B3hTjNEIEqSFcccnQylCQ7A6YcjX66LOPWnddixrGEDup/IloxkAnIPuPC IALd8M8rmSx37qjG0lgxeTUGn0Y5z4OWTasKrA7kaNsh611ooX182poRQBRtc3Q6Zr9X M4+jejvwVNO/Xzd9/uPBxOSM4VrBDvuO8B8L3+McoggEaINxRD25UE3sTJCQ6YGjyayA CexueqEyubduZyWRB93DEW/MStD6UseQXIILA2jnjHSHgmO29rGz2OeJpdNkXUup3l0k Uvlw== 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=l9kv5ypktfFS76EMW63e64X/f0uR7ySsDU39jrAiFDI=; b=A9ZFKLwiPS5AGaod+CqwXzFvJjPruQWontmg2wUJ+TPRTJl7Yjq8nJPwVr4H/O2osF wVbK7l/POLrvUPUEKeZEGYk/Cs6ibFh7Ilh2FJmi0po5tU8Jd/neu5cCR7l5zaJOwcby G5ICmoGNzebyfkNgPZVFmrrOtwsmwqmDPD898wPvK0FIS4kinJ2XMQmJCb+cuYzGj9fE pFlUDn1v4YDN8A3lJp3mZYTO8obJI9U5IfMwZcJnmO8aeGpjZeEo0ssBTN3kXBKteyaB uIr1aaYUrQkzwKtM5QKjvlCzD02bXxMGLnG4caFcYHsO85V2N/MOqIHDnIiK++9rrqMl eaAg== X-Gm-Message-State: AOAM530OOz+M0xzfl0Izin5dVF0qrLnxeaNP0SxzdYV1lB2DmfEDOFFI 2VrmJH/FE5VPNjSK25KGkzE8eg== X-Received: by 2002:a2e:98da:: with SMTP id s26mr6324722ljj.182.1605794945193; Thu, 19 Nov 2020 06:09:05 -0800 (PST) Received: from gilgamesh.semihalf.com (193-106-246-138.noc.fibertech.net.pl. [193.106.246.138]) by smtp.gmail.com with ESMTPSA id h12sm4024706lfl.74.2020.11.19.06.09.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Nov 2020 06:09:04 -0800 (PST) From: Grzegorz Jaszczyk To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, s-anna@ti.com Cc: grzegorz.jaszczyk@linaro.org, linux-remoteproc@vger.kernel.org, robh+dt@kernel.org, lee.jones@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, praneeth@ti.com, rogerq@ti.com Subject: [PATCH v2 6/6] remoteproc/pru: Add support for various PRU cores on K3 J721E SoCs Date: Thu, 19 Nov 2020 15:08:50 +0100 Message-Id: <20201119140850.12268-7-grzegorz.jaszczyk@linaro.org> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20201119140850.12268-1-grzegorz.jaszczyk@linaro.org> References: <20201119140850.12268-1-grzegorz.jaszczyk@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Suman Anna The K3 J721E family of SoCs have a revised version of the AM65x ICSSG IP and contains two instances of this newer ICSSG IP. Each ICSSG processor subsystem contains 2 primary PRU cores, 2 auxiliary PRU cores called RTUs, and 2 new auxiliary cores called Transmit PRUs (Tx_PRUs). Enhance the existing PRU remoteproc driver to support these new PRU and RTU cores by using specific compatibles. The cores have the same memory copying limitations as on AM65x, so reuses the custom memcpy function within the driver's ELF loader implementation. The initial names for the firmware images for each PRU core are retrieved from DT nodes, and can be adjusted through sysfs if required. Signed-off-by: Suman Anna Co-developed-by: Grzegorz Jaszczyk Signed-off-by: Grzegorz Jaszczyk --- drivers/remoteproc/pru_rproc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c index 48c1c51e0d42..96f689283a8b 100644 --- a/drivers/remoteproc/pru_rproc.c +++ b/drivers/remoteproc/pru_rproc.c @@ -852,6 +852,9 @@ static const struct of_device_id pru_rproc_match[] = { { .compatible = "ti,am654-pru", .data = &k3_pru_data }, { .compatible = "ti,am654-rtu", .data = &k3_rtu_data }, { .compatible = "ti,am654-tx-pru", .data = &k3_tx_pru_data }, + { .compatible = "ti,j721e-pru", .data = &k3_pru_data }, + { .compatible = "ti,j721e-rtu", .data = &k3_rtu_data }, + { .compatible = "ti,j721e-tx-pru", .data = &k3_tx_pru_data }, {}, }; MODULE_DEVICE_TABLE(of, pru_rproc_match); -- 2.29.0