Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp703221pxm; Fri, 25 Feb 2022 17:44:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPD1zFz2hDP/LLbZW9c8BsPEf1WfFXBXiiRwhB7v+/RneMmdiOH+Mi63gM5qrLgVT+I4C3 X-Received: by 2002:a05:6a00:8ca:b0:4e0:2ed3:5630 with SMTP id s10-20020a056a0008ca00b004e02ed35630mr10671118pfu.3.1645839891227; Fri, 25 Feb 2022 17:44:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645839891; cv=none; d=google.com; s=arc-20160816; b=Cb26Wg8Li2pfjJvnxdYtBSEsrTw51Jbjp/CWG3KOzTicAtf+ACa1niNHMyG1hvdO0S QxsEUNs0q2JWKrKvx2JrWz1ZRgqjzvWQqodp0YRtZP0jEIb4mHMwWmYR3/VuoIniGZPC 18y1HDnkHIQI81KbLnMCsLru24Ne4XVwUb1MyuRzEn9T5ib992lI/+znlusxZosKiHuG oAphmq2PKHWxl0BrBhRZlJBeuL/64f4J53k8+fVWm2oOPyaaxGLtO78cb5nsZ5PS+8rH qsDs4pOi9mds/V9QYFHsziNmnjH7gNxPdWscPQsPkgEDj7Cxy+v6XEVS1GyxaZbEKWXP eXNg== 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 :dkim-signature; bh=TToHHhQ9e3UF7DAGb1X/L762Cx9ZwKjwgUki3iHq62w=; b=ROkwS/0xOJ5XIrZ6a5LDeGKw3J2/3hpzWxlCbS4x+s8cVrOIMd7+wk/2b2SCOH6gmN 2I1+VOtoY+XN4gyImWj/YMTAQ0QqFwDxPdEgCpjxfy1kuBRFjX/jT9j2OLayTnAZu6hI 0AG3JF39gUUjpsI+dD1Q5p+e6bw5KQAlngihxOoZ1KxcsgewSV7B7r7uVMzZHlpZXUec 2F6aTPSyIFi9xrRGu1/ChpxLGnNv63sQfzlLHJlEDJySdFbqKlBDaYUO8TvgI48aK8a6 6ZSw5whsLZTUK8qxAstSFncZIivXl8xeSfCJ2jPNEI0/pm/rZapizlzxDKuk+ulRJ/5N IZFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="b1l/w/YS"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id oa3-20020a17090b1bc300b001b93edd446asi9685916pjb.59.2022.02.25.17.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 17:44:51 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="b1l/w/YS"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C35C6249E86; Fri, 25 Feb 2022 17:33:59 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231403AbiBYR71 (ORCPT + 99 others); Fri, 25 Feb 2022 12:59:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231294AbiBYR7V (ORCPT ); Fri, 25 Feb 2022 12:59:21 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93DA21BF93A for ; Fri, 25 Feb 2022 09:58:48 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id bg16-20020a05600c3c9000b00380f6f473b0so2166268wmb.1 for ; Fri, 25 Feb 2022 09:58:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TToHHhQ9e3UF7DAGb1X/L762Cx9ZwKjwgUki3iHq62w=; b=b1l/w/YSXYX7+AXroPrKESOq2dTiEMdf9vimQ/VnLm62eIy2NGJVm3hk34x+wsIkOb f6+CDfRjN3t53enSilCo6dy/7VqHLKdtw9atzEJPMJ72cXMXR6S4r8DvXFxcnaaog2+z 32+earhfFmLvPwkFwhDS4LLhzuu/me2zdDO8pVkg2+Spmyb1ZVdi5sc2bYqQiZicQswU EnzA3Va4hOiejHsk+lXoW7nS84JFbfks0n25/hbFeWxpHrPEj2iSj2ZVf2lSppGDkx/S L06LSbk4K/TFmKftG7fupA7EutWWsMU3GcHtTV0kJSzDOa+egw1Lh+tf3ytyAscbRqqb zqvA== 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=TToHHhQ9e3UF7DAGb1X/L762Cx9ZwKjwgUki3iHq62w=; b=iVrAgP32sddt/E8eZavmWJPjHY9C3pLvNL3rbrCNpvGBHyxvr3l9+4DLuGh4QeDar3 TwskCJQPr7ZN51LpcTQQgQXFfbPD7v1mZwa3ZnW+f3bTk+CPb7jcJl51Jc3ezV33l2JL /hA/YXW/kyQPo1NJ98N2kgrNWY4QOliew00YrfH7NQCQlEFEwu8Et85fOXDeAMvkTpdD 8gIya1TnINku1fGETw9fSgWBFc2Z4HMcVwI7Yj9tM+eLXKPnu65A5D1J9MAADRxgZS8L sRrooFaTWNb1pHn2JEXZNFm6b7NKSvdM0GZeG6ATUhpV9vP/KvubgG3JPaE1ad+ZggPd vlkw== X-Gm-Message-State: AOAM532A2ED9joeR37kEGfpfgnQHlRGR8aBuzfhahABk9s+xRk4KRzs4 S8Y8PObS1aSgpLM+W69cOCCL2Q== X-Received: by 2002:a7b:c932:0:b0:381:c66:fff2 with SMTP id h18-20020a7bc932000000b003810c66fff2mr3752039wml.42.1645811927147; Fri, 25 Feb 2022 09:58:47 -0800 (PST) Received: from srini-hackbox.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id t8-20020a05600c2f8800b00381428ad88dsm74172wmn.15.2022.02.25.09.58.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 09:58:46 -0800 (PST) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Rob Herring , Srinivas Kandagatla Subject: [PATCH 4/4] dt-bindings: nvmem: brcm,nvram: add basic NVMEM cells Date: Fri, 25 Feb 2022 17:58:22 +0000 Message-Id: <20220225175822.8293-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20220225175822.8293-1-srinivas.kandagatla@linaro.org> References: <20220225175822.8293-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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. Update binding to allow including basic cells as NVMEM device subnodes. Signed-off-by: Rafał Miłecki Reviewed-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/nvmem/brcm,nvram.yaml | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml b/Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml index 8c3f0cd22821..25033de3ef6b 100644 --- a/Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml +++ b/Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml @@ -14,6 +14,8 @@ description: | NVRAM can be accessed on Broadcom BCM47xx MIPS and Northstar ARM Cortex-A9 devices usiong I/O mapped memory. + NVRAM variables can be defined as NVMEM device subnodes. + maintainers: - Rafał Miłecki @@ -27,11 +29,30 @@ properties: reg: maxItems: 1 + board_id: + type: object + description: Board identification name + + et0macaddr: + type: object + description: First Ethernet interface's MAC address + + et1macaddr: + type: object + description: Second Ethernet interface's MAC address + + et2macaddr: + type: object + description: Third Ethernet interface's MAC address + unevaluatedProperties: false examples: - | nvram@1eff0000 { - compatible = "brcm,nvram"; - reg = <0x1eff0000 0x10000>; + compatible = "brcm,nvram"; + reg = <0x1eff0000 0x10000>; + + mac: et0macaddr { + }; }; -- 2.21.0