Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2280718rwe; Sun, 28 Aug 2022 07:41:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR6d0i4cEAru/Pa+64tsVAXyp95G95hPTrXNKHRln3vdk+rRRf7CpFxOmvvWZuBTutlKb3Y2 X-Received: by 2002:a65:6b89:0:b0:41a:69b1:8674 with SMTP id d9-20020a656b89000000b0041a69b18674mr10449232pgw.417.1661697707910; Sun, 28 Aug 2022 07:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661697707; cv=none; d=google.com; s=arc-20160816; b=nAtQq9vf2QRM1LdbaLDDtj0R48Qb2k9YyCXtu2VxZdAFc8Rir9POO7ugd8l2KDBmXq j4colaT2WVVb/KanQ8QY+rTdBZv8JWS0FTukuPF4okOxfD0AX+rGYUvfTMVUWUW9qQ4z Ifj5inFQyOUNxaIAezN5kU239JMD2JBtoJAeKWHij7JxZKL5CZy5FEoAa42TunjH/KK5 4b8JWiizIEbXiysZ0rsBuVCUxT1/pkDaCbuSDSsoqficW9DoBl2oRn2mb2TsXWxdybm0 gC6lWlCBs0kROaGUZ9C+DhNCqa+OEEOleaX4kLJqvmWU/wXwR4d3inswZN67+PeYbeUh kA/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=PX7FBllk+cj5XDth3fcwSHpmqNhOA0Ff5hNRkbJfwhM=; b=0lNZn9/824ARdX/lFDVoP0FMdgP5ezQxGFB21maPNcpePTNRfbmksiKLdVvu88Im/L RnLE77eSoHJf5CSsvILCgzlDN8sAuN3uWCSAQG1mLVfEvx4GsS1YDagDRSRbQ2Hz6ZgN Z+jurHcq+H3UXy3ro6IVnRLdbMe1wtcy+762gLXOCKqV3/cN9UUah07wlv7gb684fZzv US7ZlBI45kx/KES993TKkbyFG4rW+E1vF674VgixWDa+KaGcjlsdG9JETffRyHcuoJCg manxGC+1in42qk5Th5xC/VgdUGDuL8ILLYa7i0hw1GI78CHImBpIfpNqcwwMbxIr2kiG QK6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=HRM3E+Ka; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb4-20020a17090b280400b001f545bd9696si7149454pjb.106.2022.08.28.07.41.36; Sun, 28 Aug 2022 07:41:47 -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=@walle.cc header.s=mail2022082101 header.b=HRM3E+Ka; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229697AbiH1OhE (ORCPT + 99 others); Sun, 28 Aug 2022 10:37:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbiH1OhC (ORCPT ); Sun, 28 Aug 2022 10:37:02 -0400 Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E7C72314B; Sun, 28 Aug 2022 07:36:59 -0700 (PDT) Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 0E1D59B1; Sun, 28 Aug 2022 16:36:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1661697418; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PX7FBllk+cj5XDth3fcwSHpmqNhOA0Ff5hNRkbJfwhM=; b=HRM3E+Ka7cQ3cBsabC1jV/2VqjHV5p2dTJcBx80ZUckS1bEWgbWlS3eTCgcGp5O3M/t/3v vi9oOY77RFWMaP5LQ2SeQKvdOTpkumQZzJd6rQ5UgOoQ4vjA5OT+JHnSPzgGynHkoazdkP lmwpVmIrUUdq7Qr4x9nGygY92tr9eFGeWRkFrPNHEFFTQDd/sorFow7Dc0DRofYQQ0fvTB nTGqCDTNNp/NWRvuyCBRVWEFVxeUfyCnE/q8yiZ2UFdBDT6U8N9atMXyh4GfNn1NGKnG2i yN9UD19aB5Zuqhh9OSvUqlzuEqdhDaGyOnPQngvUrFLTY+kfxm5QETSDIEtG/w== MIME-Version: 1.0 Date: Sun, 28 Aug 2022 16:36:57 +0200 From: Michael Walle To: =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Srinivas Kandagatla , Shawn Guo , Li Yang , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Frank Rowand , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, Ahmad Fatoum Subject: Re: [RFC PATCH v1 13/14] nvmem: layouts: u-boot-env: add device node In-Reply-To: References: <20220825214423.903672-1-michael@walle.cc> <20220825214423.903672-14-michael@walle.cc> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: michael@walle.cc Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Am 2022-08-28 15:55, schrieb Rafał Miłecki: > On 25.08.2022 23:44, Michael Walle wrote: >> Register the device node so we can actually make use of the cells from >> within the device tree. >> >> This obviously only works if the environment variable name can be >> mapped >> to the device node, which isn't always the case. Think of "_" vs "-". >> But for simple things like ethaddr, this will work. > > We probably shouldn't support undocumented syntax (bindings). If we only support a predefined list of variables, we can make them device tree compatible anyway. E.g. we could have a mapping "serial-number" <-> "serial#" -michael > I've identical local patch that waits for > [PATCH] dt-bindings: nvmem: u-boot,env: add basic NVMEM cells > https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20220703084843.21922-1-zajec5@gmail.com/ > to be accepted.