Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2829909rwl; Thu, 13 Apr 2023 11:24:20 -0700 (PDT) X-Google-Smtp-Source: AKy350ZwflSqmuTti5fX2LtYrBUen9ocHe9tx2uUItWTEMgIYHprYbqQXrLvaFS1g4Rpp0vWv9q4 X-Received: by 2002:a05:6a00:2d15:b0:63b:1e80:3850 with SMTP id fa21-20020a056a002d1500b0063b1e803850mr5366103pfb.19.1681410260264; Thu, 13 Apr 2023 11:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681410260; cv=none; d=google.com; s=arc-20160816; b=GbgEj5WNOzwXtSdLJqHgOFrsBImRgxC8b4kUTYji+hu0Tf4JXCfDmM2ds7yEI/jB+y nLfJsyZBrvIpqmEqhnCXYFum2nxWjzgBxLMLilBxqI8In2q/XZv3eFDIvhRdqgrsp9zv Ies0c+u8poU11B+GRSVSjbM3vsYjY2vvJqmNx2JwS2Xiq6Blg8BddM36Ij6ikZD1kZOC C3N2qerirqxvaC4CetmAmvwFeo1KkMIP3bfjAvnwnKK8tbcce75nRj2XU13AG6kUn7N+ UHBptyU+pAu3HcRS3ykuQTgyASe6fMF0k2UrIIZcODmKWfNO6fvWdNyrCicNDegIJWMO JJ/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=YtbF+8VJeSvVndtxt+HzkIc3ESADEiMg6feU5WEP9tk=; b=WCQy0Bx/Upfl38wIjBo3wZFVVgFvU743puHKq+l7Up9kA/O7lflmNnH6fhxAwIH3yp 1Q60R+aPytjPn5fb2GN0cfk2Mk1k2NBblCvvmR11/pjqQkvkV2uLs5TtuMLjqBCCPwlJ ShQxW/5c48/133NKdVn9LLZwYQqebxd6ar8QALnRKAAi45n4N7PMx9zUZ9hjCaZiUxuk PLmHhecrl37+w3WENvqYMNUBrDdtNpNx5Lip8J6GqEaVBmLYf38+97z0RTr7eK+3UXnm LiHSQf9el8x/kHbtkduVRG1RHuzHjGhuCJ11qmYTSrMDYOz3Nm9RggJ9aw5vZ/2MB7dq r94Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=PN4p5RFj; dkim=neutral (no key) header.i=@suse.de header.b=EeFgwJIb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n16-20020aa79850000000b006396e2eb0d5si2209554pfq.244.2023.04.13.11.24.06; Thu, 13 Apr 2023 11:24:20 -0700 (PDT) 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=@suse.de header.s=susede2_rsa header.b=PN4p5RFj; dkim=neutral (no key) header.i=@suse.de header.b=EeFgwJIb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbjDMSSe (ORCPT + 99 others); Thu, 13 Apr 2023 14:18:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjDMSSd (ORCPT ); Thu, 13 Apr 2023 14:18:33 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 836BD4680 for ; Thu, 13 Apr 2023 11:18:32 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 39CBA21902; Thu, 13 Apr 2023 18:18:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1681409911; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YtbF+8VJeSvVndtxt+HzkIc3ESADEiMg6feU5WEP9tk=; b=PN4p5RFj/TKrXXWp0c+7fLGwkjwiEPnWdM1g+6jW816rmMzyn1edswqyCREIpbC7hG4RIS QycCBfm/CjUXFS21UAOcnt0haN40UWvfcgJPSotQWHT4VJaDXS5Tv++oD4aGK0zZWCxLhO NCiZd3NkMDhShZTXXcV7eiQ2ZoAEmhA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1681409911; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YtbF+8VJeSvVndtxt+HzkIc3ESADEiMg6feU5WEP9tk=; b=EeFgwJIb74gGpnn5iImYfg3c4pxxXhgjgnt8mWEfjLx66mouuRCJ3USbI+4Lha97eJQzqJ aPiEUvvQW3vRiSDw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 21C1413421; Thu, 13 Apr 2023 18:18:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id B8+GBndHOGQQLAAAMHmgww (envelope-from ); Thu, 13 Apr 2023 18:18:31 +0000 Date: Thu, 13 Apr 2023 21:18:30 +0300 From: "Ivan T. Ivanov" To: Stefan Wahren Cc: Nicolas Saenz Julienne , Srinivas Kandagatla , Florian Fainelli , Tim Gover , Phil Elwell , linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] ARM: dts: Add nvmem node for BCM2711 bootloader public key Message-ID: References: <20230413085206.149730-1-iivanov@suse.de> <20230413085206.149730-3-iivanov@suse.de> <9b03551a-278d-16dc-08ed-1ef0f89dc79c@i2se.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9b03551a-278d-16dc-08ed-1ef0f89dc79c@i2se.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham 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 04-13 18:15, Stefan Wahren wrote: > > Hi Ivan, > > Am 13.04.23 um 10:52 schrieb Ivan T. Ivanov: > > From: Tim Gover > > > > Make a copy of the bootloader secure-boot public key available to the OS > > via an nvmem node. The placement information is populated by the > > Raspberry Pi firmware if a public key is present in the BCM2711 > > bootloader EEPROM. > > It would be nice to have a helpful link like: > https://www.raspberrypi.com/documentation/computers/configuration.html#nvmem-nodes Yep, make sense. > > + > > + /* > > + * RPi4 will copy the binary public key blob (if present) from the bootloader > > + * into memory for use by the OS. > > + */ > > + blpubkey: nvram@1 { > > + compatible = "raspberrypi,bootloader-public-key", "nvmem-rmem"; > > Yes this looks better, but this introduce a new dtbs_check issue. The new Oops, yes, I forgot to make this check. > compatible must be documented in > Documentation/devicetree/bindings/nvmem/rmem.yaml in a separate patch and > reviewed by the DT guys. Or I can drop the new compatible string altogether? It looks like only alias is strictly required?! Tim Gover is this correct? Regards, Ivan