Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3480499pxb; Mon, 25 Jan 2021 18:14:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7e21h9cQIliWUbD6nyc60do0HYgmrWNqqqS3sjKFkg9XdZ8+CYYEpqjz65W26qGn4FmoQ X-Received: by 2002:a17:906:2e04:: with SMTP id n4mr2064742eji.289.1611627281271; Mon, 25 Jan 2021 18:14:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611627281; cv=none; d=google.com; s=arc-20160816; b=vI0Nc6+QUj9O4FVhTdiVb8lMe7Ll3ve8NQU2/L11BchfM6xrf1ld9FCgr4kzYKzjsN WaPzbZXqLCnSweD1wLQ7mzrXOdOgoXnRXHLK1kwoVWj454aU5t0DOIaEscx6vH17IG9R xZrwVY6YiLIlHkG+98NDgdXMCU5RWcGVxMRXctIIsr1JAdoSavnrOv8NMMqft2oiwp+i 86K+erie2iyzR+i0nqHYhIO9wj74QhA2NKaKdzdsyQSqlfoAZvLM8+uHmQQDdA2lCVpe FTRpQsrJ74x4k+AOMPdu6JqrNEPCcjQCDYZwCdkUNiRWW4pg2jSulBrWfEBhJlD0pEHR Q7ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=0snvcNaYNGpV/k+7WdqZD7n4s15hYF8lRKnrHcT9zcs=; b=gQh0eLqui/CGRyQgDokRjDNDH0iaTBoNkrCFOHITmh0P9tyRu8qLh/srgClNq/lT3I 9Oob4sduT7iLRtp/aMenjH2H9jcNuU/+3o2Kzmu863ePkHEhQUYIlFnVshnVWYGusczJ 4Sx5HxhW6oZtdgerwwSgjG4+2j7QDXOJzOlZzZKuWKcG/CwcMFepUmefNF3thTfDjySt DZKI8jWIy1jD61EpbVo9R8ffZ3Jkw+1658H9A8B6GfJew8ytQEur+H+386EboBlKukOs G6WQMX4bIHYMakhxUgJYv4Nhu1Jmf3CJCboA5yHptr611HIlQGu6n8xniCNiVOoFT+Dc PuqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=BtcA8Bf0; 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 gf11si6555609ejb.179.2021.01.25.18.14.17; Mon, 25 Jan 2021 18:14:41 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=BtcA8Bf0; 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 S1731000AbhAYRwl (ORCPT + 99 others); Mon, 25 Jan 2021 12:52:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731080AbhAYRwT (ORCPT ); Mon, 25 Jan 2021 12:52:19 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC540C061786 for ; Mon, 25 Jan 2021 09:51:37 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id m1so13163378wrq.12 for ; Mon, 25 Jan 2021 09:51:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=0snvcNaYNGpV/k+7WdqZD7n4s15hYF8lRKnrHcT9zcs=; b=BtcA8Bf0tWpg53PhU7aSoui0E3BpWfWCGjqofDJ+lP3yBnl5dwdung0WUSxXzvTvA6 WTu0tUvkwAXT3Cq0iMGsPbfl59hMfy9/EW2erNyZaTvlylVVwGwXwBqddWaBT3BIrZSZ szt2OKUvwyMX7g2nAaDniEzmcScpvK2uXK2FUX/B8kO35o/a5Bx7cLy+XFV68farduPZ RXmB0aaZMFxEo1a+abC3GeeawXzwnaq7G2FLyEvxRjdRPrR8idbR1k+RyOJQe84ZOVJH Eu6mnLruo8fA0Wi+cgYcDCt2WXKASkVR4Nkm0uuXK0BOtazXaqSUOfOkCWKMVpzE2dNl +dLg== 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:in-reply-to:references:date :message-id:mime-version; bh=0snvcNaYNGpV/k+7WdqZD7n4s15hYF8lRKnrHcT9zcs=; b=VQ9gGJOGR3IfQ0wZW6bV1g2BxYwm+QGwuqnh9HsXSnnttnm4G3/2/MQrH2yURaAuQR QMrq3ODUm9/X+q0mCc85etR4ZKvOWUPLdwtMLT6pz7TeqFgLJo9KztxLbvj0ayVg1HrU RgBH8zoxo27St1IP9pMtAxSlOtpjiqZsxhLC5VhECUUZ1x3i6NXM7x/zGNyuW9+68QOR QqTKVcOW7bdcKKaT15QCd6t1btstGl6dtqQc+z7yYrB8ABZuCTEY9B4G5tiScin8IasW 752vFXN87u3tKtHiFif/E7j9xyf6iTVQVMbpWyxVL0Aogjno1mbzre9FZTVHG6tf9uTb idUQ== X-Gm-Message-State: AOAM532iFbXTCT0NLHZN0oDEKfr+zsw5B76prCFKM9HukgI0Bk68k9j1 EBWdUcIT5w/6MOBNyGF0vr6mGA== X-Received: by 2002:a5d:6a01:: with SMTP id m1mr2243274wru.318.1611597096632; Mon, 25 Jan 2021 09:51:36 -0800 (PST) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id r124sm62707wmr.16.2021.01.25.09.51.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 09:51:35 -0800 (PST) From: Kevin Hilman To: Martin Blumenstingl , linux-remoteproc@vger.kernel.org, linux-amlogic@lists.infradead.org Cc: ohad@wizery.com, devicetree@vger.kernel.org, Martin Blumenstingl , linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 0/5] Amlogic Meson Always-On ARC remote-processor support In-Reply-To: <20210102205904.2691120-1-martin.blumenstingl@googlemail.com> References: <20210102205904.2691120-1-martin.blumenstingl@googlemail.com> Date: Mon, 25 Jan 2021 09:51:33 -0800 Message-ID: <7hmtwwx5ui.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Martin Blumenstingl writes: > Amlogic Meson6/8/8b/8m2 come with an ARC core in the Always-On (AO) > power-domain. This is typically used for waking up the ARM CPU after > powering it down for system suspend. > > The exact ARC core used on Meson6 and earlier is not known. I believe > it is an ARC625, but I am not sure about this. Meson8/8b/8m2 uses an > ARC EM4 core. > They all have in common that they use a section of the SoCs SRAM for > running code on the ARC core. > > Unfortunately there's no information about the remote-processor control > registers in the public Meson8b (S805) datasheet. All information is > either taken from Amlogic's 3.10 kernel and 2011-03 u-boot or found by > testing (for example the clock input is not mentioned anywhere in the > reference code, but disabling it stops the AO ARC core from working). > > This series consists of five patches: > 1: dt-bindings for the SRAM section > 2: dt-bindings for the SECBUS2 syscon region which contains a few > bits for controlling this remote processor > 3: dt-bindings for the AO ARC remote processor > 4: the driver for booting code on the AO ARC remote processor > 5: (only included for documentation purposes) dts changes (these will > be re-sent separately) > > Patches #3 and #4 should go through the remoteproc tree. Patches #1 > and #2 may go through Rob's (devicetree) tree, Kevin's linux-amlogic > tree or through the remoteproc tree. Personally I have no preference > here. > > To test this series I ported the Amlogic serial driver and added the > board files for the Amlogic AO ARC EM4 to the Zephyr RTOS. The code can > be found here: [0] (the resulting zephyr.elf can then be loaded as > remote-processor firmware from Linux). > > > Changes since v1 at [1]: > - fixed yamllint warnings (after installing the package these now also > show up on my build machine) in patches #2 and #3. Thanks for the > hint Rob > - dropped the explicit "select" statement from the dt-bindings in patch > #2 as suggested by Rob (thanks) > > > [0] https://github.com/xdarklight/zephyr-rtos/commits/amlogic_ao_em4-20201229 > [1] https://patchwork.kernel.org/project/linux-amlogic/list/?series=407349 > > > Martin Blumenstingl (5): > dt-bindings: sram: Add compatible strings for the Meson AO ARC SRAM > dt-bindings: Amlogic: add the documentation for the SECBUS2 registers > dt-bindings: remoteproc: Add the documentation for Meson AO ARC rproc > remoteproc: meson-mx-ao-arc: Add a driver for the AO ARC remote > procesor > ARM: dts: meson: add the AO ARC remote processor Patches 1-2, 5 queued for v5.12 via the amlogic tree. Kevin