From patchwork Thu Mar 4 14:41:31 2021 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: 392903 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8F87C433DB for ; Thu, 4 Mar 2021 14:43:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8CD7264F45 for ; Thu, 4 Mar 2021 14:43:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232308AbhCDOnA (ORCPT ); Thu, 4 Mar 2021 09:43:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232278AbhCDOmf (ORCPT ); Thu, 4 Mar 2021 09:42:35 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0628C061756; Thu, 4 Mar 2021 06:41:54 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id m11so32772980lji.10; Thu, 04 Mar 2021 06:41:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FpcwYQmI/lKBKHdSQPNb+1D36/BM9oOnf1w3DpKpMkg=; b=jQ+Ey2tH/MuMgfd8CXvjrXuoo6ALqf9EtobLv4HCxR31631DlYZazL9DW5M13cycz2 Pp38JJMjkkpAN69SZqIRHLpTBV8U8TO+8ZGlio14du8Ofl+w8YPBT9M/R430NgSYmiOA Ne2MUDbzq4NWL/TLYpInEh971tvE6X7Tt36NQtEUxg6mIU45c3d5/nFO8JMt0w5LsZC5 HhjZ0RXSIpiuHE6wxF+ndMkYJYLeiFZuRg2UNeF86v89QKLdscrN7fxb0GzSO6Or49QF 0dues1KkX7xUGs7t9fCxsG8dpOhFvfq5tT289tV47hGfobkydloIbM9Q4NL0WzTZbI8Y ho6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FpcwYQmI/lKBKHdSQPNb+1D36/BM9oOnf1w3DpKpMkg=; b=ucfOPc+jmfb34SSuGu8VrhEBwwx+5l24d9HifFKVGSCmDvQsENVhyqOXvFimdrltLy Cqx/PkzxzfFG6JgE0ehoxkzvU72V44tHsg4C20PKo3iByVhS/6nDeGe0h92Yb1pd1qHi Inp00zbl+wIYiCUYQ9SwmLTodg9EwB5t5ztTz7oqnQuxtkBRx6VV3dlG2a7A+JiIYvZ4 /3GVL1+mBQ4cBO7QcsyNitAZVU5UcvLs1ROOaYquAkMzWiSfsb++rDzcv8hOqrmMH3/x /tz2mbF6KLfPy2vsQlHbBr8pSqAegXmG9f/hkttyEubHmHVNBhGU2NPHTjiTMPcNCUun AITQ== X-Gm-Message-State: AOAM5318gXg8hzL/ZsxBk3Pl8dKUWM7yHQXh5WS/6NuVM2GlsoTmalxh +nOCWGk9rPQJHqaMczfv9yIy1P6NBhA= X-Google-Smtp-Source: ABdhPJya984/mYknU+zboD+nnBmFKvUw2Py1czSP15A8ynWdG0zvYYco3ueeNacxRE6ptzgVxV5Rnw== X-Received: by 2002:a2e:3608:: with SMTP id d8mr2393855lja.21.1614868913549; Thu, 04 Mar 2021 06:41:53 -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 t17sm1396694lft.224.2021.03.04.06.41.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 06:41:52 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Srinivas Kandagatla , Rob Herring Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, Florian Fainelli , Vivek Unune , bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 1/2] dt-bindings: nvmem: add binding for I/O mapped NVMEM Date: Thu, 4 Mar 2021 15:41:31 +0100 Message-Id: <20210304144132.24098-1-zajec5@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Rafał Miłecki NVMEM on some devices can be accessed using I/O mapping. For example on Broadcom MIPS and ARM Northstar platforms NVRAM can be accessed that way. Signed-off-by: Rafał Miłecki --- .../devicetree/bindings/nvmem/iomap.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/iomap.yaml diff --git a/Documentation/devicetree/bindings/nvmem/iomap.yaml b/Documentation/devicetree/bindings/nvmem/iomap.yaml new file mode 100644 index 000000000000..ec8764598061 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/iomap.yaml @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/iomap.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: I/O mapped NVMEM + +maintainers: + - Rafał Miłecki + +allOf: + - $ref: "nvmem.yaml#" + +properties: + compatible: + items: + - enum: + - brcm,nvram + - const: nvmem-iomap + +unevaluatedProperties: false + +examples: + - | + nvram@1eff0000 { + compatible = "brcm,nvram", "nvmem-iomap"; + reg = <0x1eff0000 0x10000>; + };