Received: by 2002:ab2:23c8:0:b0:1f2:fdbc:cb93 with SMTP id a8csp214001lqe; Wed, 27 Mar 2024 03:47:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhmrlSvSQTTwkfgKb+WjkWVeB9zdeSAN+csoHAnMoRtXm5iW1w56mWHJh+RV5xL/V9d1CasnCp8wSCtixmCbs+3Ep+qX7kzlxXBQe6Mg== X-Google-Smtp-Source: AGHT+IGdJf+J6A8EuagBP7M/kiL9vb1aW65OwsT2zVuIcJO/Lj00k58EYEo5nQqThgvav3caRpLH X-Received: by 2002:a05:6a00:1896:b0:6e6:9f03:6a6d with SMTP id x22-20020a056a00189600b006e69f036a6dmr2738495pfh.3.1711536427027; Wed, 27 Mar 2024 03:47:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711536427; cv=pass; d=google.com; s=arc-20160816; b=GwXIwQ0AgZAIv73GTvhX9G8uvlULM1IF7BnKCACPK+zN64+VVel/QA805X9kITnfht 7InXjP4tcjW2sUltSbD3ayQtaN27Pz0tiafg9zLcZ1rQvcI+OgQmQ7/w9iFz45Na5OXn 1f7TUg6W4bkKDwMAlyS71bU2Eiqtj1OABC5jODtWWJD53pVwwZF5Si7vpHAbPC3mTS4+ uUX1UQpj7IbFL+wcyXVvgynwjhYgXthKpRTFs2NCZO8SqylbuvjOk0gcEdZAfCN88YVN +iqBlzJHDfCgDvnW6AHx87ddCHb8H/YmFSLxz4QyKcCqwyNykPPYANR+0Jfbjx+SxenC aOzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=yi633Od9UOjLPTsCwTQa2KfA8CIp5/8QEJud2Mt7VHA=; fh=MAc09QjDjSik4AuDyYjfNYzf5L/MMPnuXYvjGiHigzc=; b=GIo3EojQ4++EwJItrJH6dKfH1s/quI4zY1pg8r7WrT+SqYriF+AjKVxHrxooGYVB6v pE4jYuTAHyQ+wqVMcqOeUeSSl5a5l2Km2u9pxcv/EFRcsE6mdh4tPFfvL7S/XkehX07+ S0b68ima2vklMuu61nK2NUaT8c6OcoAUPT48yVw7x8orDMs9QexhZJWsoh6ZQnKmDWKB aFTuqR0FlrauPB4qg2kflRS+OCtEi5H3ALY+AIoXzJw3DEVALE7llmCi/JmJTq1mLu73 tXSWYJkbLAiXQ7SCFv2hhJ5/qB8PyNRDerzAhcD3RtWgah3va285aCqD5aXMMdS4SS3f 5jVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=imzIbDF4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-120688-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120688-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f24-20020aa782d8000000b006e697c4a9b1si8813058pfn.154.2024.03.27.03.47.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 03:47:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120688-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=imzIbDF4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-120688-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120688-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2FCF729C9C1 for ; Wed, 27 Mar 2024 10:45:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 062315024E; Wed, 27 Mar 2024 10:44:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="imzIbDF4" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C8494F61D; Wed, 27 Mar 2024 10:44:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711536292; cv=none; b=KtwJZpP+x6Q22bWaffOrPsmLO1M+CEvoPkPnW8ck7vtI7UFfkVNTGrZp9Yn9OimdjOi91sONiQKijp+hPW8CWYxciFfyDrgk4EGvEauMMGvoR4nj0u139e1FhDfC3WNmrteRKKZ5UYiZlbZdsYee7M3EQAduhdaYjyaAZ+pR6cc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711536292; c=relaxed/simple; bh=SOFXEAyxqf7gCj/PKs4OxopkGggYXvVGBYupyrDF7MQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rVm7/uSFXgN9iqqOEaBgisIU6lTG0loV+H3/mQJ1kzeNeQ7Ipy5g7Pcsu3aIJWXZ2B8E/j4+cJVv9vvJKSdlIteamUE+h9WE6m+GFvFXlrpPeHCoPdVsBcpqwFnb6l8Jj1+GKvVhT56sos6YnQNHNn9txkWzTzqMQhxhPBH5MjM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=imzIbDF4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id AE830C433F1; Wed, 27 Mar 2024 10:44:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711536291; bh=SOFXEAyxqf7gCj/PKs4OxopkGggYXvVGBYupyrDF7MQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=imzIbDF4cBc002W+hFN9aAH7GeCSjth9qKsiEuK5Dqag4nAYohKJIiGJ7rblNnpFe V3YKMqPw6LVobmuzLD/Ac9etyrRl/xE9RsU/RL4DyLA3uVmkGbwK7RPL4PGQHkLGDq YYDDrVlmibNp45zKxeAEUnTGsLce5EBfl9G/TYVjAVBSUh2AqOuElOCJuxaP4f+weU CP7EI0IBgE1vmDZq+j5kk/uuy0/VIwdi2xqgfqHIzrsHl+ul5PhbxejRWFMvF9EKT2 i4B2LoR1nemzqlTRup48aqzPabdNTY1piBpNhafYUe5YT7LNtnJrVhB7PpINLRWsnp YCCug7gpdofqA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B9CBC54E67; Wed, 27 Mar 2024 10:44:51 +0000 (UTC) From: Keguang Zhang via B4 Relay Date: Wed, 27 Mar 2024 18:43:59 +0800 Subject: [PATCH v6 1/3] dt-bindings: mtd: Add Loongson-1 NAND Controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240327-loongson1-nand-v6-1-7f9311cef020@gmail.com> References: <20240327-loongson1-nand-v6-0-7f9311cef020@gmail.com> In-Reply-To: <20240327-loongson1-nand-v6-0-7f9311cef020@gmail.com> To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, devicetree@vger.kernel.org, Keguang Zhang X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711536289; l=1918; i=keguang.zhang@gmail.com; s=20231129; h=from:subject:message-id; bh=/c2JzCGiocJH2FRjGpQj1Q5eYCDgSYWhUtAJhnm0nNk=; b=eaerRshqwfTKjm0fCEbsHmg1vT1vqL96vqKGFwahc8rg9aGw2YxI9AeHm3KR85x7LcCIlYf+Z ZsmgEurqShEBYEkbliGi10MUSklMLGGV/zF/PLi8k/BFjxQ/XpEy4XV X-Developer-Key: i=keguang.zhang@gmail.com; a=ed25519; pk=FMKGj/JgKll/MgClpNZ3frIIogsh5e5r8CeW2mr+WLs= X-Endpoint-Received: by B4 Relay for keguang.zhang@gmail.com/20231129 with auth_id=102 X-Original-From: Keguang Zhang Reply-To: keguang.zhang@gmail.com From: Keguang Zhang Add devicetree binding document for Loongson-1 NAND Controller. Signed-off-by: Keguang Zhang --- Changes in v6: - A newly added patch --- .../devicetree/bindings/mtd/loongson,ls1x-nfc.yaml | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/loongson,ls1x-nfc.yaml b/Documentation/devicetree/bindings/mtd/loongson,ls1x-nfc.yaml new file mode 100644 index 000000000000..2494c7b3b506 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/loongson,ls1x-nfc.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/loongson,ls1x-nfc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Loongson-1 NAND Controller + +maintainers: + - Keguang Zhang + +allOf: + - $ref: nand-controller.yaml + +properties: + compatible: + oneOf: + - const: loongson,ls1b-nfc + - items: + - enum: + - loongson,ls1a-nfc + - loongson,ls1c-nfc + - const: loongson,ls1b-nfc + + reg: + maxItems: 1 + + dmas: + maxItems: 1 + + dma-names: + const: rxtx + +patternProperties: + "^nand@[0-3]$": + type: object + $ref: raw-nand-chip.yaml + + unevaluatedProperties: false + +required: + - compatible + - reg + - dmas + - dma-names + +unevaluatedProperties: false + +examples: + - | + nand-controller@1fe78000 { + compatible = "loongson,ls1b-nfc"; + reg = <0x1fe78000 0x40>; + + #address-cells = <1>; + #size-cells = <0>; + + dmas = <&dma 0>; + dma-names = "rxtx"; + + nand@0 { + reg = <0>; + nand-use-soft-ecc-engine; + nand-ecc-algo = "hamming"; + }; + }; -- 2.40.1