Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1942388lqa; Tue, 30 Apr 2024 04:11:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhg7b4qr0QpYbs5OjUzpigWNVTLD0i+QBfbvQ116SENj1lGh4nk7/OdR7OB8ut/R+CLlbFIzOyR1R+UejS200ZSlgulCADQwHsZj5l7g== X-Google-Smtp-Source: AGHT+IGnS4VuOWJelgz050AYO0U+2c7SGahAKYoTrOQGfbV1pySO7ZC02IsY7GpBv9FDVTbcvkx+ X-Received: by 2002:a17:90a:6983:b0:2a4:833f:2c1b with SMTP id s3-20020a17090a698300b002a4833f2c1bmr12799618pjj.9.1714475514159; Tue, 30 Apr 2024 04:11:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714475514; cv=pass; d=google.com; s=arc-20160816; b=RUzjNjhhSchOUge9yasWALRpsgBqDaKj9ZBOILOyTk7o3BNDx6CXgclGclQ2gHl6XQ 2RqRWRFh4cWu1VS44pgG+1np+0Ub2LoKF5WN+wLCK0FFBMYcuR8oV/X9DRmbw9iTAJqx vdV3BkDY5osl1Weg9LzGpHE/VSKSdwZS5wz7c1d8vCYI0KNU3KMJLbqiClou6RHulIg1 kLdqMp9ZYruWUNjs9WLwMvdQ/KgzoXCDboBD3L7ZfeLZVRsjbn5xAEnJ8b3xLidZPkQW TAgaU1+cQ9InF64te1P32tMqvF45hFdsPSbbySt+UqZm8LlHtifnfiTgWE68F2egYiKg Skjw== 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=cnOo+rbtkvjsospul0DKXxzyzi6EQRc4k28DLx8pBco=; fh=MAc09QjDjSik4AuDyYjfNYzf5L/MMPnuXYvjGiHigzc=; b=T8QEvUSTziDRUsMzKpZ5Ci5vV9CVWmPw5INVf7pzBCa1ssWIwEcA3WOFzXl7oCTpz4 8X3STTB758IZ/fEp0hbd9WtbM+3L5+ORFQIZI8E8Tjg8HPydA1iljwoNhB0tKN5v7YuG UOQwWyBzo5NOCc0UZuOWQcFNt+9uRWvCuCWy9pmRpEzJpWqoSjQTAo0m/wHgK83uyUcj pp36EGNVLD63W8G39bRCocnRfS6j6aaypxaC4gEk79OIuJicNw3k3rVV/2YeDVgwCBWm 1SGngxzX55Z8+nxwoNmExwZ9YuYQkwP5KaGB2re54tci/yBLx2IaK26n27wP+SuspBTG iuiw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DxCGMtml; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-163827-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163827-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m17-20020a656a11000000b005f7e375fb5dsi21722191pgu.308.2024.04.30.04.11.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 04:11:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163827-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DxCGMtml; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-163827-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163827-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 BFAAF2826C0 for ; Tue, 30 Apr 2024 11:11:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD7B5211C; Tue, 30 Apr 2024 11:11:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DxCGMtml" 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 CE50D12D209; Tue, 30 Apr 2024 11:11:33 +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=1714475493; cv=none; b=GEhB37V/ar3BtqCpTypsu2nkMvon3a+HloxWrTOUw2g3nwoPQfhUQtoYFHRz+9l4vzbMh+KXUnbrYn2NsYUDwK/vM4v+PPJDNAtfygx19vlWh0GND7bDVEXWU5kfegVvQwd8UQPHmdUSomoj81VggX+ZL4fHtqhJnD9VB94DBio= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714475493; c=relaxed/simple; bh=2v7bw47Y8yac0BNl8kfbTVNGSFn6BD1G1x5HiyR04yk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qMeNNrC3vI3FRtUzXDFn69eRynpHpSUyBiVgfUDGnEZsPZEI+weRC9bQs86XL6Ej9PRL79LX7wSiBeQEuGE6ZoE6mOdha5FTzbHf0SE5EAJfPrdFw9fHf2s2qB5ltyuVD3d/7VpWpB+tNNVEAwu8nr7oGYUIDIvv+AlCS1fDtso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DxCGMtml; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 9FF69C4AF18; Tue, 30 Apr 2024 11:11:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714475493; bh=2v7bw47Y8yac0BNl8kfbTVNGSFn6BD1G1x5HiyR04yk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=DxCGMtmliiMPZwmnrapARnExGI0flvG1XUX7bZf5eucZyez/5PfJd06nSDkxd7BKF z2GN+1anL6VUi0y2Sn0EO3lx1fKyLvLUXViar6a8rAHj/cI2ypIGjdUsRN9/08LOID dwvaK0x7yQpd5yS5OrJ1NCqssT4k7VJbA2mkC+XEHAPyY8TOnWf2aGG+RmDSj+E7eM YGSqUumO+lbjxJBnwAw0n7OHaOEeAtCe9EG6kLqipR5xZnrU63uFDXbC0LqQjCia/V 5KWHAACsDZj0jqrAkd+p9mIG+l5RDlLnuq/86jm+T1jiyOnVaFpPD/0GL1b1mVaIgu u6C3MwZalUzAw== 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 8EBC7C19F53; Tue, 30 Apr 2024 11:11:33 +0000 (UTC) From: Keguang Zhang via B4 Relay Date: Tue, 30 Apr 2024 19:11:10 +0800 Subject: [PATCH v7 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: <20240430-loongson1-nand-v7-1-60787c314fa4@gmail.com> References: <20240430-loongson1-nand-v7-0-60787c314fa4@gmail.com> In-Reply-To: <20240430-loongson1-nand-v7-0-60787c314fa4@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=1714475491; l=1981; i=keguang.zhang@gmail.com; s=20231129; h=from:subject:message-id; bh=051ksmvBr0UxivFTnhR9mHkGLTvP/HWsibHv4Ii5zR4=; b=NWQWxMYBcUQhSr4sUNOhXWIGbWl7BRPCIJSTrLjZgsIWxIHm3C9M+lhuZdk/KQNJpnjN3ND9V SRKmhBxJgE8ATTyAVc/nwE9e/VrZByAA7jsUZAdTZ+9zynIXp2rjo5v 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 v7: - rename the file to loongson,ls1b-nfc.yaml Changes in v6: - A newly added patch --- .../devicetree/bindings/mtd/loongson,ls1b-nfc.yaml | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/loongson,ls1b-nfc.yaml b/Documentation/devicetree/bindings/mtd/loongson,ls1b-nfc.yaml new file mode 100644 index 000000000000..a69f22b9fd9e --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/loongson,ls1b-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,ls1b-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