From patchwork Tue Apr 23 10:16:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13639711 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B8FF3C16B13 for ; Tue, 23 Apr 2024 10:17:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pzS2OP71nsIJW3AMQ2Q4RgzyJZwOGmlvfX2pYyuHRU4=; b=a4mIytMfflhVrP d+v0A+oOWBI8/z7R8PUa3CwwjbatVRr8ioCm3Z0Y88CQD+xB/XuLr2EX4RDzcNLT6uy881xVm45NC tBKCh9RoQ5q2Tr2WDOj48veVDQ7hzo7VU8UrjsKxEXOMFm6i2qVXwIh++xiTk1duaYnhIKbNBIbFc jUtPWFwSv7TcOLv68TaFunULfH1wtGoT86jMGN4g20mfl/avGYOkBEH0zKQnjVgo7sec1vzTMFjA5 +/i0L5Eol9oghu7DGAnLLd3Dl1PMxWHpLQJTEkTAe5Vv8yGyPY9E0I6+fyerCVD5M/fwTDfjzSZxr q+kTjA51YaX7snpZTGUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzDCw-0000000Go54-1Y7w; Tue, 23 Apr 2024 10:17:02 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzDCn-0000000Go38-1bWE for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 10:16:54 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D4C6E612DF; Tue, 23 Apr 2024 10:16:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3FDDC116B1; Tue, 23 Apr 2024 10:16:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713867412; bh=+r+6soKFTTPbt/cEXkRsDhPUcjBnbpGC6PLACvxQwGs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kk96B/1QQ1wjbNJorVRsXE0SRUVSR3Ae9wFw0gGEwC+AuWiBk2a5FKPTDe4yEllvx 4pRJlDHaRts4lOQxV7QoqElESSlus+CkyDtSUINfQUz1Stq80CQ4k9QueYWNqIemOo RkyK7x5BMdGP20W4k5wcUTZqf1CFGpc5l3YFO8Igv+R2zsPFG9R62lnFhwQ89Q9urC UbGKkgpdPG5c2mJ+7V3VAlUgEf5IW4m0jhafPA+mis+VB+Ze7G1TM4q9CxmXtLSZ65 tzrJC7QbjjO7jyZ7YmuZcswEc/Wj7sayASwr7EeyfFyMvlkpFhrWiJbdhRKX8VtQJm Q4FQG23Oq1iBw== From: Lorenzo Bianconi To: linux-spi@vger.kernel.org Cc: conor@kernel.org, broonie@kernel.org, lorenzo.bianconi83@gmail.com, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, nbd@nbd.name, john@phrozen.org, dd@embedd.com, catalin.marinas@arm.com, will@kernel.org, upstream@airoha.com, angelogioacchino.delregno@collabora.com Subject: [PATCH v3 1/3] dt-bindings: spi: airoha: Add YAML schema for SNFI controller Date: Tue, 23 Apr 2024 12:16:35 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240423_031653_484502_79E037B5 X-CRM114-Status: GOOD ( 11.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Introduce Airoha EN7581 SPI NAND controller binding Reviewed-by: Conor Dooley Tested-by: Rajeev Kumar Signed-off-by: Lorenzo Bianconi Reviewed-by: AngeloGioacchino Del Regno --- .../bindings/spi/airoha,en7581-snand.yaml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/airoha,en7581-snand.yaml diff --git a/Documentation/devicetree/bindings/spi/airoha,en7581-snand.yaml b/Documentation/devicetree/bindings/spi/airoha,en7581-snand.yaml new file mode 100644 index 000000000000..b820c5613dcc --- /dev/null +++ b/Documentation/devicetree/bindings/spi/airoha,en7581-snand.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/airoha,en7581-snand.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SPI-NAND flash controller for Airoha ARM SoCs + +maintainers: + - Lorenzo Bianconi + +allOf: + - $ref: spi-controller.yaml# + +properties: + compatible: + const: airoha,en7581-snand + + reg: + items: + - description: spi base address + - description: nfi2spi base address + + clocks: + maxItems: 1 + + clock-names: + items: + - const: spi + +required: + - compatible + - reg + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + spi@1fa10000 { + compatible = "airoha,en7581-snand"; + reg = <0x0 0x1fa10000 0x0 0x140>, + <0x0 0x1fa11000 0x0 0x160>; + + clocks = <&scuclk EN7523_CLK_SPI>; + clock-names = "spi"; + + #address-cells = <1>; + #size-cells = <0>; + + flash@0 { + compatible = "spi-nand"; + reg = <0>; + spi-tx-bus-width = <1>; + spi-rx-bus-width = <2>; + }; + }; + };