From patchwork Tue Dec 15 15:56:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Saenz Julienne X-Patchwork-Id: 11975087 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBEA6C4361B for ; Tue, 15 Dec 2020 15:58:26 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A84E5224F4 for ; Tue, 15 Dec 2020 15:58:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A84E5224F4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Z3rb2l8dfWASFxM1iRvQasuFcn9ci0YLOSHzszVpEZ4=; b=bA6zelFJypugHDoiTrmsdeiio OmX3G5BsV/7a16OEqn0xQ4hw0sAw4R7v8x1yTzZnSTe/oq/sMJc/pSH3o26qY+6E44gf/J5jGx0Gv 3K0X+WJUPYBohWxQR06OB86sfb9AHuCB9jDiz0RGdqZBIH2QH7mgZTugZTB6ptPudc/CvUjvRVHOf rAaBCpbmSIboTg//BZoUFPAsBnOKo6k7+N5tg6rYk7r9Oi/eQvevef2od/Usf1+v9FfwGrZi1tgBD zfb+z1gWLf8lKJtF5k3NxJKXKSgAg+vCdZQYPCxTq3ra1gZ+Q7UqqDiVhguddvb1Vnno0CDKG55jC SVD2LxwCQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kpChL-0004fB-Td; Tue, 15 Dec 2020 15:57:11 +0000 Received: from mx2.suse.de ([195.135.220.15]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kpCgv-0004XL-24; Tue, 15 Dec 2020 15:56:46 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 0C1D3AEC4; Tue, 15 Dec 2020 15:56:44 +0000 (UTC) From: Nicolas Saenz Julienne To: srinivas.kandagatla@linaro.org, Saenz Julienne , devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Rob Herring Subject: [PATCH 4/6] ARM: dts: bcm2711: Expose boot-loader configuration Date: Tue, 15 Dec 2020 16:56:24 +0100 Message-Id: <20201215155627.2513-5-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201215155627.2513-1-nsaenzjulienne@suse.de> References: <20201215155627.2513-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201215_105645_268190_FCCE201B X-CRM114-Status: GOOD ( 12.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tim.gover@raspberrypi.com, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, linux@armlinux.org.uk, will@kernel.org, phil@raspberrypi.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org RPi4's co-processor will copy the board's bootloader configuration in memory. Expose it to user-space by using 'nvmem-rmem'. Signed-off-by: Nicolas Saenz Julienne --- arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts index c58e58e8ce39..261169eb5e3b 100644 --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts @@ -26,6 +26,17 @@ aliases { ethernet0 = &genet; pcie0 = &pcie0; eeprom = &eeprom; + fw_config = &fw_config; + }; + + fw_config: fw-config { + compatible = "nvmem-rmem"; + memory-region = <&eeprom>; + /* + * Will be enabled by the bootloader if the reserved memory + * region is valid. + */ + status = "disabled"; }; leds {