From patchwork Sun Jul 3 08:48:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 12904191 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DC455C43334 for ; Sun, 3 Jul 2022 08:51:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=KGaEOrjBITX3tZ6X3jOcZGrxeUOnWOb8jh0h0LuWL1k=; b=STSnLuMppcR2d7 lPEGUfy8Fgyso06U7N1+wUfOh5lN8qpps3mDqXRbIJNDnYrFcproeeWw+nDC4SGsmqfC11RdPw9ax fI5nqZ9m7R6hWiLCV0j8PMp64GnSKkZtQ+p3kW1jWS9AHfW7COiLldY5+TfRVMHvgW24nV12aXDWY sbRDR0EVfPFcMyAvNTUTkE2dd4uaoNGlgB67sIFJDMEmiagiIp4AFzyjnclXxJMCSc3mPK/nDmoQW K9S1e+Z6cn6nrwF2Uohz3+Z+9vbdqC8EAGyPvDAQbxTKpvZp7uFJ/fH7Qyz+vO8T6KJAaj0+P2QtN Wrus+AbtibcBLRCKppEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o7vIh-00Ed6v-Li; Sun, 03 Jul 2022 08:49:55 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o7vIe-00Ed5T-Fj for linux-arm-kernel@lists.infradead.org; Sun, 03 Jul 2022 08:49:53 +0000 Received: by mail-ed1-x530.google.com with SMTP id cf14so8024021edb.8 for ; Sun, 03 Jul 2022 01:49:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9kEykWSiCHta0qNNdWN78VgO+eJrJwNGF5ZUgJ22G7I=; b=IpvdwkvSjPMrsFJztZyTt0MYtqdx4hmOYVJh02aTXuJzV0tESDbcjbmS0qT/zbpI8P wVQ2bZIa7/FnmKLhjbcZV3qu1zFgOPqFBQwhUxggAsOa/wWV59im4yncrzCyxcwMCxL7 7IPrdvgtPEhVZJit+PAyOXRM0NXVvoaFzFi5s/HUybHiS5VeOJAJcZ0fiux2OZfJOkcP ncotds7BzBtxi04t0WNkY3X2NiUhk74WKJuD8adaaqvWPntJwKwlI5NeUAFiFI41/eaA 1U2kZIONyQEoGTzEzd1gSEDeMMmFtC+1avNRwWT/V23Vf9PHlP2av2b6IFvqP27arDBD G4Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9kEykWSiCHta0qNNdWN78VgO+eJrJwNGF5ZUgJ22G7I=; b=fBhXx1HvmWSU9tNTTyw1luh7cxEXcN8GKratrMhXaIrYzql8edkPwcTKI/67REZNA1 BzdYa8vyM75vw7ioFeNYNl32NrpKP8IvEj7h5vGEwml69ge08HgW974eMP5SAzrW/Vsp EXfmsAiWXYg5R/QnMD/V/BhEQ+8ui5koM6VdFkfffdBeETEwudVoFiU5lZneIrJh4AA0 kvSKoxlpk6mffNRI32fxtzhcaZ/ome2ArPPES0Swxt5Za6da0wA9oEszZhUxgCReXDQY JBbL+kCkiTd81YpF5wolDkTtKTcS2th78X3a2QLOu+5vO/D5fkB5KhoaHxBI3PcECd5A sKuA== X-Gm-Message-State: AJIora8BzYpxUVJn3S+F7vKXqLe87crymPsEHcKjD+4VBXKbsLKQXhV8 HfpDaTk18CJaXbqWp2c6EtM= X-Google-Smtp-Source: AGRyM1t144Dv7MFp5yajrHrEBeB+KMtvqrNDra8fyoj4iz51OCTEq/rkb2IrBCCiQhR0EwIeh0gydw== X-Received: by 2002:a05:6402:2682:b0:437:657f:216f with SMTP id w2-20020a056402268200b00437657f216fmr31142154edd.92.1656838189987; Sun, 03 Jul 2022 01:49:49 -0700 (PDT) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id m18-20020a170906235200b006fee16142b9sm12666994eja.110.2022.07.03.01.49.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jul 2022 01:49:49 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski Cc: Tom Rini , Ahmad Fatoum , linux-arm-kernel@lists.infradead.org, u-boot@lists.denx.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?b?UmFm?= =?utf-8?b?YcWCIE1pxYJlY2tp?= Subject: [PATCH] dt-bindings: nvmem: u-boot,env: add basic NVMEM cells Date: Sun, 3 Jul 2022 10:48:43 +0200 Message-Id: <20220703084843.21922-1-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220703_014952_583401_B68BC845 X-CRM114-Status: GOOD ( 12.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki U-Boot doesn't have cells at hardcoded addresses. They are stored in internal format. It's still important to define relevant cells in DT so NVMEM consumers can reference them. Update binding to allow including basic cells as NVMEM device subnodes. Signed-off-by: Rafał Miłecki Reviewed-by: Tom Rini --- .../devicetree/bindings/nvmem/u-boot,env.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml b/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml index e70b2a60cb9a..e96bca99f2d9 100644 --- a/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml +++ b/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml @@ -24,6 +24,8 @@ description: | Right now only flash partition case is covered but it may be extended to e.g. UBI volumes in the future. + Variables can be defined as NVMEM device subnodes. + maintainers: - Rafał Miłecki @@ -40,6 +42,14 @@ properties: reg: maxItems: 1 + bootcmd: + type: object + description: Command to use for automatic booting + + ethaddr: + type: object + description: Ethernet interface's MAC address + additionalProperties: false examples: @@ -58,5 +68,8 @@ examples: env: partition@40000 { compatible = "u-boot,env"; reg = <0x40000 0x10000>; + + mac: ethaddr { + }; }; };