Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3485730pxu; Tue, 15 Dec 2020 08:06:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJznNH7Uc1JIu3i6q2Sp1u/mB4XDJL+Isjomxk5xmrhszYkTxhbjPPrQEjO06CzoUeO1UIp3 X-Received: by 2002:a5d:464b:: with SMTP id j11mr34690347wrs.227.1608048392346; Tue, 15 Dec 2020 08:06:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608048392; cv=none; d=google.com; s=arc-20160816; b=osjPSeVdLYPllvaxUpLMj/2tb74nZoi7GvPEbToyzI7+zMxMXsKMcoVVi+nXTkE0Kw BDJ1ARg+aSy1CeRuBttUODY6FyCqs9Fk82PRPo35VuPbTOHEqvK0bLIeanJeOToSlxTP y9/4+GroX4qYAUSYrZr+Bt7cqlmQHNDMqlFs/W0fjyUEENLT8vzvhAsGB8EsRJLOCCGk hO/eO+OQYsuToIgBg9Tmu8nrdhzjvz8usxNBsFmvDvclvF7A8IrZ2FUvteKTW8LApo+2 1pCbT4Hg5gWH5jze1dKDGeJH71wUwiVHm/tgLOrlvaHHKV6z7qAby1DKVbg5GY5Okcpe lSoA== 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; bh=nafn66/OBXrJsnUyCRp6khyJ4N+hsqJuU3XZN3WTJ20=; b=sQ8cYhjbKWZz+EBCU/9K6CUhCxFcuD8+TbWM+YjXGycwDnAS9gfZbnrcsmEFT8hCtH rhpeEvuedeqG1+THIQjMhwD5CLpjC2fi6aD3QCMOtJY2dGQQldoopYeChNP2l+FH8o3h d3xGlU5JFOwKT1GVSC6ZiIdNDe5xSr4/b7B0S/3P8yyq5LkJWGQZFedX9gIOakrDCbYg 6abC0H+NKGWMkWCGHGGn1rRWcATnyURXAeCbw8IG/gpEO7x8Qf09E21vtYxBuXFF7Iyv +gTf+J8Tv52nR30YX4NIF0vsRs63XQKAiAqzo7suMQik0q1C/SxqhiN0gvjUkpG5YGh3 riQQ== ARC-Authentication-Results: i=1; mx.google.com; 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 w6si1072380edj.604.2020.12.15.08.06.08; Tue, 15 Dec 2020 08:06:32 -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; 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 S1730691AbgLOQCY (ORCPT + 99 others); Tue, 15 Dec 2020 11:02:24 -0500 Received: from mx2.suse.de ([195.135.220.15]:60924 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730664AbgLOP50 (ORCPT ); Tue, 15 Dec 2020 10:57:26 -0500 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 Cc: linux-kernel@vger.kernel.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, tim.gover@raspberrypi.com, phil@raspberrypi.com 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 { -- 2.29.2