Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3599600pxb; Mon, 21 Feb 2022 01:27:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyl8F8geIONSGynKaa2DNT5DUMXnV7LtP3Zo2LquLvbUMAfCJEgHzwRPu0lvPCrQNg9Ap9Q X-Received: by 2002:a17:902:e0cd:b0:14f:c388:891a with SMTP id e13-20020a170902e0cd00b0014fc388891amr2698123pla.70.1645435633402; Mon, 21 Feb 2022 01:27:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645435633; cv=none; d=google.com; s=arc-20160816; b=HtpNBVeeGPuwX8YV3skKoxoS8K9RTnR5OmH6BAbc1RrSTlj7YoC7TmVdmDTR2wI0R1 ZQ7nSdp8PqQAWic82vicZ2Ly+dFjDXFw/OJnp98ZqPRX2q9zUiL9+GmDPTdryVkWjcwt bTd3NeW1+a4Uy/EGTZjDCvSOmPUm0bhDOXmDZFbYFIQV2c5lAsSWnRE2NZcq9jeURWxL 9zHJNB9anAijkVN8MqktJvviGzoOB0qzQEDYu61aizRIW2e718I8UBwIsJ6fpN6f6YjN xFJLdPM85mw7Nxv8sad9NXpFUygD+ewquQarh7smxHkB3AMjYPiC+AwgUL85d1S4UeIP sF0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Fe2hsCdbxN1ij2HP4oggs60CZPKRq8in1lb+QkY/nqo=; b=EoHMyqMyML/QuP+iLB4BUxdxB2xhog7V5As5nI5I6aK2Yrnsdb1bPRUalx8t7kffph uQPt1jkFGr+KNfvTwrDRjMFsAW4mEKEh9RMwdqIyj83eCj8OD0l9HTVw386KYRhO/Qh0 ceNv7ehQ00LmvK+ouAPzvHtEeSZjmkhWw5FbL+Nk8YXvf3qn4Q/oyHE0bxxeQGeJTZdm dqxECqfVAJyzFf8+d7KO7ulYjiIK8Uiaq4NSzL1/5vr8GOWART/mvkcKyYWRSLsGYdIQ gDwMwpe9nbkb0bS3sp7JO2eDGlnI+sm/I8jMOmSlRml/2F1SsWo7WnoMESpdHdSH8ojU 0qEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=nikTB4nT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i1-20020a17090ad34100b001b8dc5f3c30si5638961pjx.29.2022.02.21.01.26.59; Mon, 21 Feb 2022 01:27:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=nikTB4nT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343665AbiBUIc1 (ORCPT + 99 others); Mon, 21 Feb 2022 03:32:27 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:47316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343678AbiBUIcZ (ORCPT ); Mon, 21 Feb 2022 03:32:25 -0500 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B24CD26E2; Mon, 21 Feb 2022 00:32:02 -0800 (PST) Received: by mail-qk1-x733.google.com with SMTP id t21so9334723qkg.6; Mon, 21 Feb 2022 00:32:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Fe2hsCdbxN1ij2HP4oggs60CZPKRq8in1lb+QkY/nqo=; b=nikTB4nTPSIHaAbZaqKeqIYB7Ip1n/OvgN5AE9hLz08d3EyLVRH+LyoKfDvR26SUeP Ggwo7azjtYWZPev4HZPO/g0Ui/r1WmrpyJjFJajqDyxGO69+PUxjfPigsPECfz/c/mKU 0hH5vzvYZBaxGDXFAyf2FiKGkvc+g3GP53Bz4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Fe2hsCdbxN1ij2HP4oggs60CZPKRq8in1lb+QkY/nqo=; b=JF3WrqTxH3I5FaV41gaEPOe646Uysg4h+GnXjq4drjwWhm33Y/zP+Gfz7OOKfLlG0D hjN1NNA977ARYOaeb/Wyc0te+elvjw5G7iIo3xX+PaQZfUr7b8qduRDN59QrJU8FGdWu N1BXy/z4lzm49LW5oTDBC1eqjWbtLRC6qgq5YVEXHwJ99MsTckn10j3+nqNv70SWyCJ4 A6Hqlx1GD/+P2E77Xpwv133nzHtKu1lvreyraD4LyDXhiyNqEhmZ8cXvPB9WncP/s56A z3WRXlZUKCQR8buncJSYW7I6iQ464BRwBUsVTzDh1Y41bgk7DEUcaPMSZeH2zvb1mJcQ HoeQ== X-Gm-Message-State: AOAM532Jxfxuk3xaS4bbL1wo26SmDs1UCy7zz+FWlXQ9g1cfhf194r77 ROaGLqmE9nQ7s+1l97MiS1kkIsqKuUrYg2N4ycqIVPr+6eAx4A== X-Received: by 2002:a05:620a:29ce:b0:648:ad12:789 with SMTP id s14-20020a05620a29ce00b00648ad120789mr5644170qkp.347.1645432321827; Mon, 21 Feb 2022 00:32:01 -0800 (PST) MIME-Version: 1.0 References: <20220216153632.40981-1-nick.hawkins@hpe.com> In-Reply-To: From: Joel Stanley Date: Mon, 21 Feb 2022 08:31:49 +0000 Message-ID: Subject: Re: [PATCH] [v3] arch: arm: boot: dts: Create HPE GXP Device Tree To: Arnd Bergmann Cc: "Hawkins, Nick" , "Verdun, Jean-Marie" , Olof Johansson , SoC Team , Rob Herring , Linux Kernel Mailing List , Linux ARM , DTML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Feb 2022 at 16:51, Arnd Bergmann wrote: > > On Wed, Feb 16, 2022 at 5:29 PM Hawkins, Nick wrote: > > > + > > > + vrom@58000000 { > > > + compatible = "mtd-ram"; > > > > Same thing here, "vrom" is clearly not a standard name. > > > > NH: VROM is a Virtual ROM device that we use to create a memory mapping of a SPI flash content copy that is served to a host system. How should I rename it? > > Not sure, I don't remember seeing this case so far. Adding Joel to Cc, > maybe he knows of > another BMC that does the same thing. We have something similar. The aspeed systems map this over LPC, using FW cycles (aka memory accesses) over the LPC bus to read from the BMC's SPI NOR devices, or DRAM. The device tree bindings we have are in the LPC document: Documentation/devicetree/bindings/mfd/aspeed-lpc.yaml It's the aspeed,ast2400-lpc-ctrl specifically. It takes a phandle to a reserved-memory node. The kernel driver is at drivers/soc/aspeed/aspeed-lpc-ctrl.c. It exposes a character device that allows userspace to read and write to the memory window. We have this very aspeed specific design because it was the first implementation in the kernel. Where possible, we should create a new unified API for doing this type of access, where each BMC can implement a backend. Now that we have GXP, Nuvoton and ASPEED it should be easier to pick out common functionality. Cheers, Joel