Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2440769pxp; Mon, 21 Mar 2022 20:33:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJwJH3ivQ6cKR+L1WM4UhGbOdupT9gi6Imel1Oht+QxNHzSwezYlwFyrl3XoxZwDK5hThb X-Received: by 2002:a65:4347:0:b0:382:cc3:aa1c with SMTP id k7-20020a654347000000b003820cc3aa1cmr17636215pgq.223.1647920000925; Mon, 21 Mar 2022 20:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647920000; cv=none; d=google.com; s=arc-20160816; b=BJzt9XPQKzjPm7v2DL/USWFVLk+YVPldX022D/T3fhT/LHLk5ZncIJUpB+QNiWInfT UMO08eX5NuDy0YOS73GSp/vCrCFctBg3kzPgcVsi5mAYQPQSWAR+RNM/bHiRMRSGPN4F +XKWj2UpQTqC6vss8mWVpY6KqGOgRGzlorxXmh1o0m97w4sqc4w6mCAFLA02k8t9CX2r llgAkKKtCtZentFGSZtipglHkqAQY0pHaFbFvGhh5y5QR7rKUNizMbvv4lgQGz6JIdvU 0S2YkVrTXADDXnV3c6mWz6/R4re2PWGIT3ek3lMc73vKJBYiWHQ1EkS2l6FZisZgGAoy Op7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=xJ9GfFhZddrKv5u5rmWflw0LJ2oRtvcB/gDMBiL/rp4=; b=pj8giElbDhoBo8nvT5jdRm/7JhJPK+J82STjVKJpTPXEpaaI3vunBpE6AvQX3lT0/P KvJzmZ8LWf47e6YGLexReIX4ZpMiK44ogqtaD9eQm+/eFRAbvkj3FVjS944KF8lDbQs5 +eMw4wl6CPEW9sDxxELFaEjLx/jjijG1CWgVko0F6ZSK97vm+QD9mS+hwZMOKg8pxgLW 0ks4uwJg+qH//KlmAlLwotBmZ7C0OAgQKfpUwS9B2PM332bo7cbm4BurMSB+O6z6qydv FB209Czy/Cx4KRfcmTKN4KwjZsJHO5Y4izUKm4w+P/Qe8Z1cfeO7QeXvUzgl12pjdFJV 6IFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=M8P1oLah; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n18-20020a170902969200b00153b2d165a1si11479833plp.425.2022.03.21.20.33.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 20:33:20 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=M8P1oLah; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 330E425586; Mon, 21 Mar 2022 20:02:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235912AbiCVDDt (ORCPT + 99 others); Mon, 21 Mar 2022 23:03:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235902AbiCVDDs (ORCPT ); Mon, 21 Mar 2022 23:03:48 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 086503153C; Mon, 21 Mar 2022 20:02:16 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id v4so14583039pjh.2; Mon, 21 Mar 2022 20:02:16 -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:in-reply-to:references; bh=xJ9GfFhZddrKv5u5rmWflw0LJ2oRtvcB/gDMBiL/rp4=; b=M8P1oLahsOLmJTBWPq6/rIKRcHQ7HtBE1Imq6Cr/Wbqea6x0iHQIheO0+NBo6TX8ds lEPh6RUteANxutB9Kg+HGuMLHmq74rVfWmzWh3qoAYEP/5BzUuWd1s4T+GN1msD9AXEl N0/L+JchOwoAL9CKwtuFMyBy8oWR4+jcBE350hgylL0HRRcEZN2mikFiLnt2ItJRxDwJ E33bTj+I74uYJyAb1fPVJiXDmInACOsu/xuIKITq4GbUu6UF7JNmRekYkVSl8HREDeZi ueHQ7kFOwcK3eHzjpPI3HSQbJNmbnRw4nF6QDYBfwRJ3fbKqxQrAG0S1CQ+QRPJTTSTu CQBg== 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; bh=xJ9GfFhZddrKv5u5rmWflw0LJ2oRtvcB/gDMBiL/rp4=; b=FnW3/t8buGYrQz48ynNPUi1xDsTkD9g4Az+hwfdLrCIf8YbUO3wsgEev0bnNGisDRv FsnjSNZuFKH+K1fHeLniJv6l9mG+22y78Eq9Ei3VZ1VebTyJ2E1DvsAc9lXLa1HoFKca JvvNKdU4gPwEU/nolkOiaFubKt7fem+MRvTq2oKMk3w+2DzRQet8jw6giCo1uY1cI/x+ B1/GF2WQI/dxloBw6VcRm+ZznKFVyAH/71qsSnm257f1Gq5+xRRt0z/vywhbHcTVvcJ2 zrvSDLgo0a5VvPJtOOcDzeVa5WVoEtbD0PmrnT6Av3dG8tgQPHU9vTY37gtSm2Mqo25N 4htA== X-Gm-Message-State: AOAM533d5FFiZp3Xw4ilhSICXNJzuzDzu7hXngvrGSSWcsd1juA4yj6a CI3G7UFFxPtPXJ1cAxQHBJQ= X-Received: by 2002:a17:902:d4cc:b0:154:3174:e4ff with SMTP id o12-20020a170902d4cc00b001543174e4ffmr13652769plg.134.1647918135489; Mon, 21 Mar 2022 20:02:15 -0700 (PDT) Received: from localhost.localdomain ([180.217.158.152]) by smtp.gmail.com with ESMTPSA id f14-20020a056a0022ce00b004fabe9fac23sm16660pfj.151.2022.03.21.20.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 20:02:14 -0700 (PDT) From: Medad CChien X-Google-Original-From: Medad CChien To: rric@kernel.org, james.morse@arm.com, tony.luck@intel.com, mchehab@kernel.org, bp@alien8.de, robh+dt@kernel.org, benjaminfair@google.com, yuenn@google.com, venture@google.com, KWLIU@nuvoton.com, YSCHU@nuvoton.com, JJLIU0@nuvoton.com, KFTING@nuvoton.com, avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, ctcchien@nuvoton.com Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, openbmc@lists.ozlabs.org Subject: [PATCH v6 2/3] dt-bindings: edac: nuvoton: add NPCM memory controller Date: Tue, 22 Mar 2022 11:01:51 +0800 Message-Id: <20220322030152.19018-3-ctcchien@nuvoton.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220322030152.19018-1-ctcchien@nuvoton.com> References: <20220322030152.19018-1-ctcchien@nuvoton.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 Added device tree binding documentation for Nuvoton BMC NPCM memory controller. Signed-off-by: Medad CChien Reviewed-by: Krzysztof Kozlowski --- .../edac/nuvoton,npcm-memory-controller.yaml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/nuvoton,npcm-memory-controller.yaml diff --git a/Documentation/devicetree/bindings/edac/nuvoton,npcm-memory-controller.yaml b/Documentation/devicetree/bindings/edac/nuvoton,npcm-memory-controller.yaml new file mode 100644 index 000000000000..97469294f4ba --- /dev/null +++ b/Documentation/devicetree/bindings/edac/nuvoton,npcm-memory-controller.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/edac/nuvoton,npcm-memory-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton NPCM Memory Controller + +maintainers: + - Medad CChien + +description: | + The Nuvoton BMC SoC supports DDR4 memory with and without ECC (error + correction check). + + The memory controller supports single bit error correction, double bit + error detection (in-line ECC in which a section (1/8th) of the + memory device used to store data is used for ECC storage). + + Note, the bootloader must configure ECC mode for the memory controller. + +properties: + compatible: + enum: + - nuvoton,npcm845-memory-controller + - nuvoton,npcm750-memory-controller + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + items: + - description: uncorrectable error interrupt + - description: correctable error interrupt + + interrupt-names: + minItems: 1 + items: + - const: ue + - const: ce + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + ahb { + #address-cells = <2>; + #size-cells = <2>; + mc: memory-controller@f0824000 { + compatible = "nuvoton,npcm750-memory-controller"; + reg = <0x0 0xf0824000 0x0 0x1000>; + interrupts = ; + }; + }; + -- 2.17.1