Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4049202ybl; Tue, 20 Aug 2019 06:19:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFZqfOCuvswUP1dfSR+qQGTyVoKl00/5QyD5T3pytXBoAvyVYgmXNi0Wp4mPvP54ivk9yD X-Received: by 2002:a17:90a:8a8a:: with SMTP id x10mr8512482pjn.83.1566307162428; Tue, 20 Aug 2019 06:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566307162; cv=none; d=google.com; s=arc-20160816; b=UfDMWN8Z1rowN74ET0+Du3ti0XbHNM7xCfbZeS5JnHbdkB8zKt7HeYagSIZ/S1p3L8 eqD3YBXNvXEY3pwUzBFxEUQfJOMgmaJdpqzgFIhOiWyUmRckegb27YjFfLtNauSvML+U u8QWqXM0J9fixuSV8cl8BOP7MHbUcpBJrL0+mAkfto7rI2G35oGXi2pMWLn4WMpdX3GR dwQJYY5YWy9Iaqqn0vu5qfqGbO7wyzfP/HzslA73uurVleMy0P+SzTnkavjlc//I4vcW 6w/y8cL7gR14+PV5FQVGEhFuvZMwWKH1qk5GvVBIhdwPCLqF1T+EOdL34e1oimFdcwz1 vY9w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :dkim-signature; bh=q1zMCHP9N5dVVFnUfRVs/+hK9HwHAxsq2830Gk8Otsg=; b=ApO9xvdYoIJzgHBlvk3mnzcnSX4rUDVDGAchH9MLkU6KZeS+Hhflwk0FH4XhrLWOyX Nvsp+mMs9kIvLtIzTdijSl9JFmdK5rVL2R8aWScgVnmWGksnrYumY3Y+TrOx3BkW+MpB DlGK+CUDzI8y+Fp8qEKpmWLpCahLgGFPGvIfTmtzR09gJITt7oRsX8rZ0ayNujU4REzd VVMAiBTaiKdjpVpH8zyHaMrX1OPnV+SCxY7lr7EZXamRX09ZvaomxuHBOc39ScFgyZ12 FBumlvEqpcodo5zFIGn7TtU28g5ePANT9Jh56BX0DfFEJNqFN5jSEYvnMWZ+6Lo/HkfQ kVGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=TKnHxb30; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=P566rOuk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2si12985702pff.221.2019.08.20.06.19.07; Tue, 20 Aug 2019 06:19:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=TKnHxb30; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=P566rOuk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729972AbfHTNRx (ORCPT + 99 others); Tue, 20 Aug 2019 09:17:53 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:35975 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727006AbfHTNRx (ORCPT ); Tue, 20 Aug 2019 09:17:53 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id E18FC19FC; Tue, 20 Aug 2019 09:17:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 20 Aug 2019 09:17:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=q 1zMCHP9N5dVVFnUfRVs/+hK9HwHAxsq2830Gk8Otsg=; b=TKnHxb30U2xLo5RnR KlEyBBAb+ChXyncMtNVmDnLF3EhbIBW6zwW4BUbMpJA8iBZ5R1EfCY5gtOhqtvbN 7cnfPLR/vxNLffoxJrjRxpkon7yCCkCPK1pyhjplXtX4I8Jq9HA/+rIQid+SIh7i A2/n3pj7quWpytyiSvRWasKIAPB7/7sKnGG203xhTbkOOJX1TpVTkt+ZujqmlSTl nBi7/kKyP/ed8hP6NA8Fq9NDTD9LNEKmMtyO1TYWA3HAyvoJrISpLW+qEAnF8K7T Lcf8nAneMs1AF5g4iPiM1R7CnwgYbAJI3F4Dg/nhGenlRm1Y9bROVXSxH7pYqxyD 3F0rg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=q1zMCHP9N5dVVFnUfRVs/+hK9HwHAxsq2830Gk8Ot sg=; b=P566rOuk25uZ8kvW2Qcy7xPqQAvYpqGna+vaACB0COl254I6sG+rJM8tV og8Fq/f/OM9udD0D3TzgO1xxeOc+GBLa8IUnAYiezLITXVA+SNtOZdbZqX6qYxlp TMLh9jNmz9Mam7DExzTC6n5C4l6ZSOQelzMDaKVrhPu2F4VwIoG5yXX1c5w1u7Pt nX/UC/VAeN3bT0vm31KpIlpZw/o7H/EJ+EcJ+nvNiMKQyBx1SoplMIWhKq+m7rw6 gr3qOWX7lGJQXGRyA7AudPZcBGSWp0IfNAuSd8CcUf9nPJ24P9hQqER06VOWXLu0 sBNel/sEsBdSWzh3uZrhNZM+IMagg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudeguddgieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne goufhprghmkfhpqdhouhhtucdlhedttddmnecujfgurhepuffvfhfhkffffgggjggtgfes thejredttdefjeenucfhrhhomhepufgrmhhuvghlucfjohhllhgrnhguuceoshgrmhhuvg hlsehshhholhhlrghnugdrohhrgheqnecukfhppeejtddrudefhedrudegkedrudehuden ucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh enucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.50.162] (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id C09B1380075; Tue, 20 Aug 2019 09:17:49 -0400 (EDT) Subject: Re: [PATCH v4 05/10] ARM: dts: sunxi: a80: Add msgbox node To: Maxime Ripard Cc: Chen-Yu Tsai , Jassi Brar , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Corentin Labbe , Vasily Khoruzhick , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com References: <20190820032311.6506-1-samuel@sholland.org> <20190820032311.6506-6-samuel@sholland.org> <20190820081528.7g2lo4njkut5lanu@flea> From: Samuel Holland Message-ID: Date: Tue, 20 Aug 2019 08:17:49 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190820081528.7g2lo4njkut5lanu@flea> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 8/20/19 3:15 AM, Maxime Ripard wrote: > On Mon, Aug 19, 2019 at 10:23:06PM -0500, Samuel Holland wrote: >> The A80 SoC contains a message box that can be used to send messages and >> interrupts back and forth between the ARM application CPUs and the ARISC >> coprocessor. Add a device tree node for it. >> >> Signed-off-by: Samuel Holland > > I think you mentionned that crust has been tested only on the A64 and > the H3/H5, did you test the mailbox on those other SoCs as well? No, I only have A64/H3/H5, and recently H6, hardware to test. I've looked through the manuals to verify that the registers are all the same, but I haven't run the driver on earlier SoCs. On 32-bit SoCs, where there's no other user of SRAM A2, it should be easy to get the toy firmware running. All you should need to do is: 1) Update the MMIO base/clock addresses in drivers/msgbox/sunxi-msgbox.c 2) Update the load address in platform/sun50i/include/platform/memory.h 3) Load the firmware to SRAM A2 (can be done from a U-Boot shell) 4) Initialize the reset vector (algorithm is in tools/test.c:109) 5) Deassert AR100 reset (again, these last two steps can be done from U-Boot) Thanks, Samuel