From patchwork Thu Apr 11 11:08:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13625745 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 9B4FECD128A for ; Thu, 11 Apr 2024 11:09:32 +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=LkHeyG8B2Zqg8f9IBke3KCgb2NAtq65pyrqpIjoM6XY=; b=avO2OBYMDmrRbq GpOPSXp+gIvRtSUSn/VLKF988avEc1HQtj2OCnn6rEHyxTmJUcqN1KfeAzrkmenamO1Rr2SPVk/N5 K22f+VEH6J+C91XDlogRpn7uwQp2AVlUvzteBLYGolXrRB2fbp9roHBSESL5tjwC9/y2i8Lh5aZPE xP8TRwoIwwrq2nY3nnV9HJt91F/7i2NlnLXnsHvMvaqrbzt8X2YApy9M499wU0GUFs3SmmE0YwlTE 24l3qBGurIOezKvaOY3/xeWq/IklvnISaJIAv4C7lRqc5ddPathvWsbFw13oTTPQoZ4L+04U7MDQA iQNKirx/3hVaonHcRZdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rusIz-0000000BeU8-0AaA; Thu, 11 Apr 2024 11:09:21 +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 1rusIv-0000000BeSN-0wM5 for linux-arm-kernel@lists.infradead.org; Thu, 11 Apr 2024 11:09:18 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 91F3D61D0C; Thu, 11 Apr 2024 11:09:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2438C433C7; Thu, 11 Apr 2024 11:09:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712833756; bh=I2H9HefQdlD1cK86w3idrnAOipOEtxFPpl1w1TdFY9A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eOPfx/UeyljpwVVK5B01toydAySfy9sgmQIjx6LvwA0ehvat6LabXYDCHQAKUSHr4 dsFuJFp3kwzr/UpIkwqUzG4wA9RTVPprwUFqwP68fFGybftxoM2FvOOuvAUjVZ6L5r cJiKCvR85FRy3G3gE2JFUqvIiZgyebMbCMg4Sl+9fLmwhHxGOcAfg+XWuL4Bxc1tCZ 2tAZ3HtGwCG8OHqZLb7Qp1xlBmB+tAV6Oc84yBmD+/mdO/mPwtGsLI16+DFab2DwAs 29ex2u7xtGJW1LmjZJ+4I80eK6ld0JJHJfBABFBFSbYpmgYRh/+PM6CaDJB0IybfWR feQ8OXKVGVG9w== From: Lorenzo Bianconi To: linux-spi@vger.kernel.org Cc: 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 1/3] dt-bindings: spi: airoha: Add YAML schema for SNFI controller Date: Thu, 11 Apr 2024 13:08:36 +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-20240411_040917_332848_FB5C8741 X-CRM114-Status: GOOD ( 10.94 ) 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 Tested-by: Rajeev Kumar Signed-off-by: Lorenzo Bianconi --- .../bindings/spi/airoha,spi-airoha-snfi.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/airoha,spi-airoha-snfi.yaml diff --git a/Documentation/devicetree/bindings/spi/airoha,spi-airoha-snfi.yaml b/Documentation/devicetree/bindings/spi/airoha,spi-airoha-snfi.yaml new file mode 100644 index 000000000000..0244f242eff1 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/airoha,spi-airoha-snfi.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/airoha,spi-airoha-snfi.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: + maxItems: 2 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + spi@1fa10000 { + compatible = "airoha,en7581-snand"; + reg = <0x0 0x1fa10000 0x0 0x140>, + <0x0 0x1fa11000 0x0 0x160>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + + flash@0 { + compatible = "spi-nand"; + reg = <0>; + spi-tx-bus-width = <1>; + spi-rx-bus-width = <2>; + }; + }; + };