From patchwork Mon Jan 24 16:02:59 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: 12722337 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 817B4C433F5 for ; Mon, 24 Jan 2022 16:08: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:References:In-Reply-To: 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: List-Owner; bh=LwXqMLncjJKXE5Xo2Uyedh3rzxyPzX3y4ZVaXx+BAdg=; b=rNdhuUhDeT4Jvd lbh+bYlXBHbWJxEdSY5HyhP3l8dLhRThliZb1arFwUK1uquU9IQSXNb3AnX1DE98K6pG8ZEQKvKr3 9o6sGqR9LI0MOzxOxcj0aMl3l5s/Jw1U77j/DYmk5/m8h1gg09MfgfzJgkWALfPjIfwL0BYPIZo5i wlBqbUnSMe6m6Mww4Lj/X+c8U6/e/7Dtwx5j3U5rS+KFtHQH8mHqM3DeAownSWAllzNg2CcfOifaG jXcbqn4DpkCpixrV8UIj6W6hwWu7RLPkTMmQXXPw3f6nIBxdr7+Rw0tyt54q4oe0EPcVwlbPqZXIR 6Hfrenk11ooY+jiqwMoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nC1rJ-003uuw-9k; Mon, 24 Jan 2022 16:06:22 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nC1oN-003tnS-Cz for linux-arm-kernel@lists.infradead.org; Mon, 24 Jan 2022 16:03:20 +0000 Received: by mail-lf1-x134.google.com with SMTP id b14so50899582lff.3 for ; Mon, 24 Jan 2022 08:03:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Mw/nT0vt0+cT+LkenUQbG2Z7gp/pXoAuAnG9olFE3MA=; b=pWO43tId6KoMhWrCNLMxVIO+NxW8YPGOOilVMNmJdZSwNeTQjtIGPEndNk5tWkxb8p KCQDhY2iq1MOFswrDvPLP09iYj7iWgkK9VRM4SIhF95oNunvro6QK5oxSOiYRI4cccCL JIUyTPVETcO7NftPRRD99KiTlQQqXMgb+WFM27vTpSQ435ZGVZSefRG5V0bURTmYmkUi /x9dk0YnzkLUQI0upBQNcQi1d6EEfVWvRNX36fdYcBM8L3qg8rM5TDodIuJ8iGx8uFM8 4zurLgccK8g1JWSgJI0CA8zJ7JhWO/nltB0Q8SiR/1HOmctQGXDh/NvifAh7CasIyR5Q eI4A== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Mw/nT0vt0+cT+LkenUQbG2Z7gp/pXoAuAnG9olFE3MA=; b=tCdX/DTMPIC5XTFUo78HfKuGEiKkbJCH9JVIBaaS8tAmsgKOshEtcY2dSGOSKEI9VX 1+E+5JpgtF9sNEi2qo6bkw9ZIcBGemkVG9VNQ3Hy+0bjedJHEQQFHYeVG3IISngkRANL PVIiIbVbxzu//+Ay3DpagYLnx9/ezGOCQz8FEgSBtG5PKmJoF+Gkmuc6t0MrDETsrziz oj2MS5SFCyj0yGUc4NVgStwAAqPD/hrXvjnolDvnddObqs+zvu4XtDKJa8xtcbieVQUI pr57jdQ/CjJi1FZajx3gi3PAZtPrlnvgAG+mk8GSMyX+EMjMFILy+4L6env1KT7q41km 5TZg== X-Gm-Message-State: AOAM5323iktXCFmZox2j4R8mlPvkz0+YjRl7ypxILFNaZVIyZR5gf2rf 94Fo528d0YrHV+fCoko4C/0= X-Google-Smtp-Source: ABdhPJyjNJOSI6CBKKV6aC3EliDIlRqDSbiSoeVnzGZNFWML3IWOJXXdbxWG40DUby945j/ZAQ6vrA== X-Received: by 2002:a2e:a171:: with SMTP id u17mr5466485ljl.343.1643040197402; Mon, 24 Jan 2022 08:03:17 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id n21sm674187lji.18.2022.01.24.08.03.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 08:03:17 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Srinivas Kandagatla , Rob Herring Cc: Florian Fainelli , Hauke Mehrtens , bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 2/3] dt-bindings: nvmem: brcm, nvram: add NVMEM cell to example Date: Mon, 24 Jan 2022 17:02:59 +0100 Message-Id: <20220124160300.25131-3-zajec5@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220124160300.25131-1-zajec5@gmail.com> References: <20220124160300.25131-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220124_080319_496885_196BD71C X-CRM114-Status: GOOD ( 13.53 ) 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 NVRAM doesn't have cells at hardcoded addresses. They are stored in internal struct (custom & dynamic format) . It's still important to define relevant cells in DT so NVMEM consumers can reference them. One of cells set in almost every device is "et0macaddr" containing MAC address. Add it to example to show how it can be referenced. Signed-off-by: Rafał Miłecki --- Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml b/Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml index 8c3f0cd22821..ab14e3ae45c8 100644 --- a/Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml +++ b/Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml @@ -32,6 +32,9 @@ unevaluatedProperties: false examples: - | nvram@1eff0000 { - compatible = "brcm,nvram"; - reg = <0x1eff0000 0x10000>; + compatible = "brcm,nvram"; + reg = <0x1eff0000 0x10000>; + + mac: et0macaddr { + }; };