From patchwork Tue Jan 24 08:33:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13113650 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12071C54EAA for ; Tue, 24 Jan 2023 08:34:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233119AbjAXIeE (ORCPT ); Tue, 24 Jan 2023 03:34:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233058AbjAXId7 (ORCPT ); Tue, 24 Jan 2023 03:33:59 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3B986589 for ; Tue, 24 Jan 2023 00:33:56 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id d4-20020a05600c3ac400b003db1de2aef0so10325199wms.2 for ; Tue, 24 Jan 2023 00:33:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=b+nxm6AUQrdND9hhv0fMGvZp0eeAkpWlOdH7gphjJuI=; b=F5EtfmWAs7GPnYDrFQA3qmog15Uouc0N5eHuu9MQT8H2T6aDjEdcdx6q4XF1aYYbaJ rbwCf0tZscxlRycuE90c1IDIIYSkTVn6+h5a7tyAiGlxsWcdO0soiLhxFb8WtixiaCy2 WhJ7z1uWeJG3cB8kdbcxsXHLILrdicAwZQwK3ABCRS3cgWDvH+Noz8yeqWEdjLT3Adfl xIoYzEWZLOmTO25Qa6Z52Pr2d0ZuTw6ENohjnwx1ee9VkWdrhhCjjUzkjdm+I3XLz0h2 1aVovCbXImM9IRjLIsfp/mQTfRMevBV5hGf/qmeILQbAth9fbOj/6XP0FHJANAst6ttN Kmlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b+nxm6AUQrdND9hhv0fMGvZp0eeAkpWlOdH7gphjJuI=; b=eVzwz9gM1dBVB2XVLkea8cYTsbj8WnZ2k6EXhW0cMx/xGstpucMEdRP8TzknxxOT1s DwFTW4ANPGex5F4eF5SuU6V1/mziiq7lb1Jzn68FQsa2TZ+IhkFBbQoxXt4jKyIvgJ8O RLuX1W6VF4XhT2kPmVQv89ICtB3zk//11eAJFr++R+inNJ4hAJ/tx7Y4cuJYA3B4nEQ1 7dgvBc6DWAk5dL13E7CrpXZEuqS0Y2J1M6eQr9xecdAW54PSgNlpdksOlrAQ/lkxYZD2 uv5xM7jMtqN3p2rSgdwj3ANVG+nBFAAf0qgObOGZ6MiOnG4BVMP8SOVQv0KhjuwGUyCq lj9g== X-Gm-Message-State: AFqh2krzWpYLxgGYqrEoqpo8EF2CPyeV9f9ayqzrUN1DAQZgPxoZxrtM 5sKB+Bir/xoo4VYJH9bUfk754A== X-Google-Smtp-Source: AMrXdXva1GteWUvLjwso/FKOzr72v0f91fSczdeUW3DCTAHFGCcG58kJzxHtnlRqyRT3RNGgPZZBjg== X-Received: by 2002:a1c:ed0a:0:b0:3d3:4a47:52e9 with SMTP id l10-20020a1ced0a000000b003d34a4752e9mr26816656wmh.15.1674549235084; Tue, 24 Jan 2023 00:33:55 -0800 (PST) Received: from krzk-bin.. ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id n34-20020a05600c182200b003da286f8332sm1319075wmp.18.2023.01.24.00.33.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 00:33:54 -0800 (PST) From: Krzysztof Kozlowski To: =?unknown-8bit?q?Mark_Brown_=3Cbroonie=40kernel=2Eorg=3E=2C_Rob_Herring_?= =?unknown-8bit?q?=3Crobh+dt=40kernel=2Eorg=3E=2C_Krzysztof_Kozlowski_=3Ckrz?= =?unknown-8bit?q?ysztof=2Ekozlowski+dt=40linaro=2Eorg=3E=2C_Chen-Yu_Tsai_?= =?unknown-8bit?q?=3Cwens=40csie=2Eorg=3E=2C_Jernej_Skrabec_=3Cjernej=2Eskra?= =?unknown-8bit?q?bec=40gmail=2Ecom=3E=2C_Samuel_Holland_=3Csamuel=40shollan?= =?unknown-8bit?q?d=2Eorg=3E=2C_Neil_Armstrong_=3Cneil=2Earmstrong=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Kevin_Hilman_=3Ckhilman=40baylibre=2Ecom=3E?= =?unknown-8bit?q?=2C_Jerome_Brunet_=3Cjbrunet=40baylibre=2Ecom=3E=2C_Martin?= =?unknown-8bit?q?_Blumenstingl_=3Cmartin=2Eblumenstingl=40googlemail=2Ecom?= =?unknown-8bit?q?=3E=2C_Chin-Ting_Kuo_=3Cchin-ting=5Fkuo=40aspeedtech=2Ecom?= =?unknown-8bit?q?=3E=2C_C=C3=A9dric_Le_Goater__=3Cclg=40kaod=2Eorg=3E=2C_Jo?= =?unknown-8bit?q?el_Stanley_=3Cjoel=40jms=2Eid=2Eau=3E=2C_Andrew_Jeffery_?= =?unknown-8bit?q?=3Candrew=40aj=2Eid=2Eau=3E=2C_Kamal_Dasu_=3Ckdasu=2Ekdev?= =?unknown-8bit?q?=40gmail=2Ecom=3E=2C_Broadcom_internal_kernel_review_list_?= =?unknown-8bit?q?_=3Cbcm-kernel-feedback-list=40broadcom=2Ecom=3E=2C_Han_Xu?= =?unknown-8bit?q?_=3Chan=2Exu=40nxp=2Ecom=3E=2C_Shawn_Guo_=3Cshawnguo=40ker?= =?unknown-8bit?q?nel=2Eorg=3E=2C_Sascha_Hauer_=3Cs=2Ehauer=40pengutronix=2E?= =?unknown-8bit?q?de=3E=2C_Pengutronix_Kernel_Team_=3Ckernel=40pengutronix?= =?unknown-8bit?q?=2Ede=3E=2C_Fabio_Estevam_=3Cfestevam=40gmail=2Ecom=3E=2C_?= =?unknown-8bit?q?NXP_Linux_Team_=3Clinux-imx=40nxp=2Ecom=3E=2C_Matthias_Bru?= =?unknown-8bit?q?gger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_Thierry_Reding_?= =?unknown-8bit?q?=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Jonathan_Hunter_?= =?unknown-8bit?q?=3Cjonathanh=40nvidia=2Ecom=3E=2C_Andy_Gross_=3Cagross=40k?= =?unknown-8bit?q?ernel=2Eorg=3E=2C_Bjorn_Andersson_=3Candersson=40kernel=2E?= =?unknown-8bit?q?org=3E=2C_Konrad_Dybcio_=3Ckonrad=2Edybcio=40linaro=2Eorg?= =?unknown-8bit?q?=3E=2C_Serge_Semin_=3Cfancer=2Elancer=40gmail=2Ecom=3E=2C_?= =?unknown-8bit?q?Haibo_Chen_=3Chaibo=2Echen=40nxp=2Ecom=3E=2C_Yogesh_Gaur_?= =?unknown-8bit?q?=3Cyogeshgaur=2E83=40gmail=2Ecom=3E=2C_Linus_Walleij_=3Cli?= =?unknown-8bit?q?nus=2Ewalleij=40linaro=2Eorg=3E=2C_Heiko_Stuebner_=3Cheiko?= =?unknown-8bit?q?=40sntech=2Ede=3E=2C_Palmer_Dabbelt_=3Cpalmer=40dabbelt=2E?= =?unknown-8bit?q?com=3E=2C_Paul_Walmsley_=3Cpaul=2Ewalmsley=40sifive=2Ecom?= =?unknown-8bit?q?=3E=2C_Li-hao_Kuo_=3Clhjeff911=40gmail=2Ecom=3E=2C_Michal_?= =?unknown-8bit?q?Simek_=3Cmichal=2Esimek=40xilinx=2Ecom=3E=2C_Orson_Zhai_?= =?unknown-8bit?q?=3Corsonzhai=40gmail=2Ecom=3E=2C_Baolin_Wang_=3Cbaolin=2Ew?= =?unknown-8bit?q?ang=40linux=2Ealibaba=2Ecom=3E=2C_Chunyan_Zhang_=3Czhang?= =?unknown-8bit?q?=2Elyra=40gmail=2Ecom=3E=2C_Maxime_Coquelin_=3Cmcoquelin?= =?unknown-8bit?q?=2Estm32=40gmail=2Ecom=3E=2C_Alexandre_Torgue_=3Calexandre?= =?unknown-8bit?q?=2Etorgue=40foss=2Est=2Ecom=3E=2C_Maxime_Ripard_=3Cmripard?= =?unknown-8bit?q?=40kernel=2Eorg=3E=2C_=82ecki__=3Crafal=40milecki=2Epl=3E?= =?unknown-8bit?q?=2C_Vaishnav_Achath_=3Cvaishnav=2Ea=40ti=2Ecom=3E=2C_Parsh?= =?unknown-8bit?q?uram_Thombare_=3Cpthombar=40cadence=2Ecom=3E=2C_Leilk_Liu_?= =?unknown-8bit?q?=3Cleilk=2Eliu=40mediatek=2Ecom=3E=2C_Gabor_Juhos_=3Cjuhos?= =?unknown-8bit?q?g=40openwrt=2Eorg=3E=2C_Bert_Vermeulen_=3Cbert=40biot=2Eco?= =?unknown-8bit?q?m=3E=2C_Miquel_Raynal_=3Cmiquel=2Eraynal=40bootlin=2Ecom?= =?unknown-8bit?q?=3E=2C_Marek_Vasut_=3Cmarex=40denx=2Ede=3E=2C_Birger_Kobli?= =?unknown-8bit?q?tz_=3Cmail=40birger-koblitz=2Ede=3E=2C_Geert_Uytterhoeven_?= =?unknown-8bit?q?=3Cgeert+renesas=40glider=2Ebe=3E=2C_Anson_Huang_=3CAnson?= =?unknown-8bit?q?=2EHuang=40nxp=2Ecom=3E=2C_Chris_Packham_=3Cchris=2Epackha?= =?unknown-8bit?q?m=40alliedtelesis=2Eco=2Enz=3E=2C_Kuldeep_Singh_=3Csingh?= =?unknown-8bit?q?=2Ekuldeep87k=40gmail=2Ecom=3E=2C_Pragnesh_Patel_=3Cpragne?= =?unknown-8bit?q?sh=2Epatel=40sifive=2Ecom=3E=2C_Christophe_Kerello_=3Cchri?= =?unknown-8bit?q?stophe=2Ekerello=40foss=2Est=2Ecom=3E=2C_Patrice_Chotard_?= =?unknown-8bit?q?=3Cpatrice=2Echotard=40foss=2Est=2Ecom=3E=2C_Erwan_Leray_?= =?unknown-8bit?q?=3Cerwan=2Eleray=40foss=2Est=2Ecom=3E=2C_Fabrice_Gasnier_?= =?unknown-8bit?q?=3Cfabrice=2Egasnier=40foss=2Est=2Ecom=3E=2C_linux-spi=40v?= =?unknown-8bit?q?ger=2Ekernel=2Eorg=2C_devicetree=40vger=2Ekernel=2Eorg=2C_?= =?unknown-8bit?q?linux-arm-kernel=40lists=2Einfradead=2Eorg=2C_linux-sunxi?= =?unknown-8bit?q?=40lists=2Elinux=2Edev=2C_linux-kernel=40vger=2Ekernel=2Eo?= =?unknown-8bit?q?rg=2C_linux-amlogic=40lists=2Einfradead=2Eorg=2C_linux-asp?= =?unknown-8bit?q?eed=40lists=2Eozlabs=2Eorg=2C_openbmc=40lists=2Eozlabs=2Eo?= =?unknown-8bit?q?rg=2C_linux-mediatek=40lists=2Einfradead=2Eorg=2C_linux-te?= =?unknown-8bit?q?gra=40vger=2Ekernel=2Eorg=2C_linux-arm-msm=40vger=2Ekernel?= =?unknown-8bit?q?=2Eorg=2C_linux-rockchip=40lists=2Einfradead=2Eorg=2C_linu?= =?unknown-8bit?q?x-riscv=40lists=2Einfradead=2Eorg=2C_linux-stm32=40st-md-m?= =?unknown-8bit?q?ailman=2Estormreply=2Ecom?= Cc: Krzysztof Kozlowski Subject: [PATCH v2 2/2] spi: dt-bindings: cleanup examples - indentation, lowercase hex Date: Tue, 24 Jan 2023 09:33:42 +0100 Message-Id: <20230124083342.34869-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230124083342.34869-1-krzysztof.kozlowski@linaro.org> References: <20230124083342.34869-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org Cleanup examples: - use 4-space indentation (for cases when it is neither 4 not 2 space), - drop redundant blank lines, - use lowercase hex. No functional impact except adjusting to preferred coding style. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Geert Uytterhoeven # renesas Reviewed-by: Andrew Jeffery # aspeed Reviewed-by: Neil Armstrong # meson Reviewed-by: Rob Herring --- Changes since v1: 1. Adjust indentation in two more examples (cdns,qspi-nor, st,stm32-spi) 2. Add tags --- .../bindings/spi/amlogic,meson-gx-spicc.yaml | 26 +-- .../bindings/spi/amlogic,meson6-spifc.yaml | 22 +-- .../bindings/spi/aspeed,ast2600-fmc.yaml | 24 +-- .../bindings/spi/brcm,spi-bcm-qspi.yaml | 156 +++++++++--------- .../bindings/spi/cdns,qspi-nor.yaml | 34 ++-- .../bindings/spi/nvidia,tegra210-quad.yaml | 42 ++--- .../bindings/spi/qcom,spi-qcom-qspi.yaml | 1 - .../devicetree/bindings/spi/renesas,rspi.yaml | 22 +-- .../bindings/spi/spi-sunplus-sp7021.yaml | 4 +- .../devicetree/bindings/spi/st,stm32-spi.yaml | 23 ++- 10 files changed, 176 insertions(+), 178 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/amlogic,meson-gx-spicc.yaml b/Documentation/devicetree/bindings/spi/amlogic,meson-gx-spicc.yaml index e5eca3a6f132..4e28e6e9d8e0 100644 --- a/Documentation/devicetree/bindings/spi/amlogic,meson-gx-spicc.yaml +++ b/Documentation/devicetree/bindings/spi/amlogic,meson-gx-spicc.yaml @@ -100,17 +100,17 @@ unevaluatedProperties: false examples: - | spi@c1108d80 { - compatible = "amlogic,meson-gx-spicc"; - reg = <0xc1108d80 0x80>; - interrupts = <112>; - clocks = <&clk81>; - clock-names = "core"; - #address-cells = <1>; - #size-cells = <0>; - - display@0 { - compatible = "lg,lg4573"; - spi-max-frequency = <1000000>; - reg = <0>; - }; + compatible = "amlogic,meson-gx-spicc"; + reg = <0xc1108d80 0x80>; + interrupts = <112>; + clocks = <&clk81>; + clock-names = "core"; + #address-cells = <1>; + #size-cells = <0>; + + display@0 { + compatible = "lg,lg4573"; + spi-max-frequency = <1000000>; + reg = <0>; + }; }; diff --git a/Documentation/devicetree/bindings/spi/amlogic,meson6-spifc.yaml b/Documentation/devicetree/bindings/spi/amlogic,meson6-spifc.yaml index 806043fed4d1..8e769ccda97f 100644 --- a/Documentation/devicetree/bindings/spi/amlogic,meson6-spifc.yaml +++ b/Documentation/devicetree/bindings/spi/amlogic,meson6-spifc.yaml @@ -40,15 +40,15 @@ unevaluatedProperties: false examples: - | spi@c1108c80 { - compatible = "amlogic,meson6-spifc"; - reg = <0xc1108c80 0x80>; - clocks = <&clk81>; - #address-cells = <1>; - #size-cells = <0>; - - flash: flash@0 { - compatible = "spansion,m25p80", "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <40000000>; - }; + compatible = "amlogic,meson6-spifc"; + reg = <0xc1108c80 0x80>; + clocks = <&clk81>; + #address-cells = <1>; + #size-cells = <0>; + + flash: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + }; }; diff --git a/Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml b/Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml index aae6fb139b5b..57d932af4506 100644 --- a/Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml +++ b/Documentation/devicetree/bindings/spi/aspeed,ast2600-fmc.yaml @@ -60,23 +60,23 @@ examples: interrupts = ; flash@0 { - reg = < 0 >; - compatible = "jedec,spi-nor"; - spi-max-frequency = <50000000>; - spi-rx-bus-width = <2>; + reg = < 0 >; + compatible = "jedec,spi-nor"; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; flash@1 { - reg = < 1 >; - compatible = "jedec,spi-nor"; - spi-max-frequency = <50000000>; - spi-rx-bus-width = <2>; + reg = < 1 >; + compatible = "jedec,spi-nor"; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; flash@2 { - reg = < 2 >; - compatible = "jedec,spi-nor"; - spi-max-frequency = <50000000>; - spi-rx-bus-width = <2>; + reg = < 2 >; + compatible = "jedec,spi-nor"; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; }; diff --git a/Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml b/Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml index ec5873919170..28222aae3077 100644 --- a/Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml +++ b/Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml @@ -99,98 +99,98 @@ required: examples: - | # BRCMSTB SoC: SPI Master (MSPI+BSPI) for SPI-NOR access spi@f03e3400 { - compatible = "brcm,spi-brcmstb-qspi", "brcm,spi-bcm-qspi"; - reg = <0xf03e3400 0x188>, <0xf03e3200 0x50>, <0xf03e0920 0x4>; - reg-names = "mspi", "bspi", "cs_reg"; - interrupts = <0x5>, <0x6>, <0x1>, <0x2>, <0x3>, <0x4>, <0x0>; - interrupt-parent = <&gic>; - interrupt-names = "mspi_done", - "mspi_halted", - "spi_lr_fullness_reached", - "spi_lr_session_aborted", - "spi_lr_impatient", - "spi_lr_session_done", - "spi_lr_overread"; - clocks = <&hif_spi>; - #address-cells = <0x1>; - #size-cells = <0x0>; - - flash@0 { - #size-cells = <0x2>; - #address-cells = <0x2>; - compatible = "m25p80"; - reg = <0x0>; - spi-max-frequency = <0x2625a00>; - spi-cpol; - spi-cpha; - }; + compatible = "brcm,spi-brcmstb-qspi", "brcm,spi-bcm-qspi"; + reg = <0xf03e3400 0x188>, <0xf03e3200 0x50>, <0xf03e0920 0x4>; + reg-names = "mspi", "bspi", "cs_reg"; + interrupts = <0x5>, <0x6>, <0x1>, <0x2>, <0x3>, <0x4>, <0x0>; + interrupt-parent = <&gic>; + interrupt-names = "mspi_done", + "mspi_halted", + "spi_lr_fullness_reached", + "spi_lr_session_aborted", + "spi_lr_impatient", + "spi_lr_session_done", + "spi_lr_overread"; + clocks = <&hif_spi>; + #address-cells = <0x1>; + #size-cells = <0x0>; + + flash@0 { + #size-cells = <0x2>; + #address-cells = <0x2>; + compatible = "m25p80"; + reg = <0x0>; + spi-max-frequency = <0x2625a00>; + spi-cpol; + spi-cpha; + }; }; - | # BRCMSTB SoC: MSPI master for any SPI device spi@f0416000 { - clocks = <&upg_fixed>; - compatible = "brcm,spi-brcmstb-mspi", "brcm,spi-bcm-qspi"; - reg = <0xf0416000 0x180>; - reg-names = "mspi"; - interrupts = <0x14>; - interrupt-parent = <&irq0_aon_intc>; - interrupt-names = "mspi_done"; - #address-cells = <1>; - #size-cells = <0>; + clocks = <&upg_fixed>; + compatible = "brcm,spi-brcmstb-mspi", "brcm,spi-bcm-qspi"; + reg = <0xf0416000 0x180>; + reg-names = "mspi"; + interrupts = <0x14>; + interrupt-parent = <&irq0_aon_intc>; + interrupt-names = "mspi_done"; + #address-cells = <1>; + #size-cells = <0>; }; - | # iProc SoC #include #include spi@18027200 { - compatible = "brcm,spi-nsp-qspi", "brcm,spi-bcm-qspi"; - reg = <0x18027200 0x184>, - <0x18027000 0x124>, - <0x1811c408 0x004>, - <0x180273a0 0x01c>; - reg-names = "mspi", "bspi", "intr_regs", "intr_status_reg"; - interrupts = , - , - , - , - , - , - ; - interrupt-names = "mspi_done", - "mspi_halted", - "spi_lr_fullness_reached", - "spi_lr_session_aborted", - "spi_lr_impatient", - "spi_lr_session_done"; - clocks = <&iprocmed>; - num-cs = <2>; - #address-cells = <1>; - #size-cells = <0>; + compatible = "brcm,spi-nsp-qspi", "brcm,spi-bcm-qspi"; + reg = <0x18027200 0x184>, + <0x18027000 0x124>, + <0x1811c408 0x004>, + <0x180273a0 0x01c>; + reg-names = "mspi", "bspi", "intr_regs", "intr_status_reg"; + interrupts = , + , + , + , + , + , + ; + interrupt-names = "mspi_done", + "mspi_halted", + "spi_lr_fullness_reached", + "spi_lr_session_aborted", + "spi_lr_impatient", + "spi_lr_session_done"; + clocks = <&iprocmed>; + num-cs = <2>; + #address-cells = <1>; + #size-cells = <0>; }; - | # NS2 SoC #include #include spi@66470200 { - compatible = "brcm,spi-ns2-qspi", "brcm,spi-bcm-qspi"; - reg = <0x66470200 0x184>, - <0x66470000 0x124>, - <0x67017408 0x004>, - <0x664703a0 0x01c>; - reg-names = "mspi", "bspi", "intr_regs", "intr_status_reg"; - interrupts = ; - interrupt-names = "spi_l1_intr"; - clocks = <&iprocmed>; - num-cs = <2>; + compatible = "brcm,spi-ns2-qspi", "brcm,spi-bcm-qspi"; + reg = <0x66470200 0x184>, + <0x66470000 0x124>, + <0x67017408 0x004>, + <0x664703a0 0x01c>; + reg-names = "mspi", "bspi", "intr_regs", "intr_status_reg"; + interrupts = ; + interrupt-names = "spi_l1_intr"; + clocks = <&iprocmed>; + num-cs = <2>; + #address-cells = <1>; + #size-cells = <0>; + + flash@0 { #address-cells = <1>; - #size-cells = <0>; - - flash@0 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "m25p80"; - reg = <0x0>; - spi-max-frequency = <12500000>; - spi-cpol; - spi-cpha; - }; + #size-cells = <1>; + compatible = "m25p80"; + reg = <0x0>; + spi-max-frequency = <12500000>; + spi-cpol; + spi-cpha; + }; }; diff --git a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml index 9be4e2c5d1ee..5c01db128be0 100644 --- a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml +++ b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml @@ -103,21 +103,21 @@ unevaluatedProperties: false examples: - | qspi: spi@ff705000 { - compatible = "cdns,qspi-nor"; - #address-cells = <1>; - #size-cells = <0>; - reg = <0xff705000 0x1000>, - <0xffa00000 0x1000>; - interrupts = <0 151 4>; - clocks = <&qspi_clk>; - cdns,fifo-depth = <128>; - cdns,fifo-width = <4>; - cdns,trigger-address = <0x00000000>; - resets = <&rst 0x1>, <&rst 0x2>; - reset-names = "qspi", "qspi-ocp"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0x0>; - }; + compatible = "cdns,qspi-nor"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xff705000 0x1000>, + <0xffa00000 0x1000>; + interrupts = <0 151 4>; + clocks = <&qspi_clk>; + cdns,fifo-depth = <128>; + cdns,fifo-width = <4>; + cdns,trigger-address = <0x00000000>; + resets = <&rst 0x1>, <&rst 0x2>; + reset-names = "qspi", "qspi-ocp"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0x0>; + }; }; diff --git a/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml b/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml index 9f78b2c06494..9ae1611175f2 100644 --- a/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml +++ b/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml @@ -74,25 +74,25 @@ examples: #include #include spi@70410000 { - compatible = "nvidia,tegra210-qspi"; - reg = <0x70410000 0x1000>; - interrupts = ; - #address-cells = <1>; - #size-cells = <0>; - clocks = <&tegra_car TEGRA210_CLK_QSPI>, - <&tegra_car TEGRA210_CLK_QSPI_PM>; - clock-names = "qspi", "qspi_out"; - resets = <&tegra_car 211>; - dmas = <&apbdma 5>, <&apbdma 5>; - dma-names = "rx", "tx"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <104000000>; - spi-tx-bus-width = <2>; - spi-rx-bus-width = <2>; - nvidia,tx-clk-tap-delay = <0>; - nvidia,rx-clk-tap-delay = <0>; - }; + compatible = "nvidia,tegra210-qspi"; + reg = <0x70410000 0x1000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&tegra_car TEGRA210_CLK_QSPI>, + <&tegra_car TEGRA210_CLK_QSPI_PM>; + clock-names = "qspi", "qspi_out"; + resets = <&tegra_car 211>; + dmas = <&apbdma 5>, <&apbdma 5>; + dma-names = "rx", "tx"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <104000000>; + spi-tx-bus-width = <2>; + spi-rx-bus-width = <2>; + nvidia,tx-clk-tap-delay = <0>; + nvidia,rx-clk-tap-delay = <0>; + }; }; diff --git a/Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.yaml b/Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.yaml index 85e7770703bd..e94d915e28c8 100644 --- a/Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.yaml +++ b/Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.yaml @@ -87,7 +87,6 @@ examples: spi-tx-bus-width = <2>; spi-rx-bus-width = <2>; }; - }; }; ... diff --git a/Documentation/devicetree/bindings/spi/renesas,rspi.yaml b/Documentation/devicetree/bindings/spi/renesas,rspi.yaml index f45d3b75d6de..4d8ec69214c9 100644 --- a/Documentation/devicetree/bindings/spi/renesas,rspi.yaml +++ b/Documentation/devicetree/bindings/spi/renesas,rspi.yaml @@ -141,15 +141,15 @@ examples: #include qspi: spi@e6b10000 { - compatible = "renesas,qspi-r8a7791", "renesas,qspi"; - reg = <0xe6b10000 0x2c>; - interrupts = ; - clocks = <&cpg CPG_MOD 917>; - dmas = <&dmac0 0x17>, <&dmac0 0x18>, <&dmac1 0x17>, <&dmac1 0x18>; - dma-names = "tx", "rx", "tx", "rx"; - power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; - resets = <&cpg 917>; - num-cs = <1>; - #address-cells = <1>; - #size-cells = <0>; + compatible = "renesas,qspi-r8a7791", "renesas,qspi"; + reg = <0xe6b10000 0x2c>; + interrupts = ; + clocks = <&cpg CPG_MOD 917>; + dmas = <&dmac0 0x17>, <&dmac0 0x18>, <&dmac1 0x17>, <&dmac1 0x18>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; + resets = <&cpg 917>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; }; diff --git a/Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml b/Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml index 69a463305274..edb5ba71af3a 100644 --- a/Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml +++ b/Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml @@ -59,9 +59,9 @@ unevaluatedProperties: false examples: - | #include - spi@9C002D80 { + spi@9c002d80 { compatible = "sunplus,sp7021-spi"; - reg = <0x9C002D80 0x80>, <0x9C002E00 0x80>; + reg = <0x9c002d80 0x80>, <0x9c002e00 0x80>; reg-names = "master", "slave"; interrupt-parent = <&intc>; interrupt-names = "dma_w", diff --git a/Documentation/devicetree/bindings/spi/st,stm32-spi.yaml b/Documentation/devicetree/bindings/spi/st,stm32-spi.yaml index d35c6f7e2dd5..9ca1a843c820 100644 --- a/Documentation/devicetree/bindings/spi/st,stm32-spi.yaml +++ b/Documentation/devicetree/bindings/spi/st,stm32-spi.yaml @@ -84,18 +84,17 @@ examples: #include #include spi@4000b000 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "st,stm32h7-spi"; - reg = <0x4000b000 0x400>; - interrupts = ; - clocks = <&rcc SPI2_K>; - resets = <&rcc SPI2_R>; - dmas = <&dmamux1 0 39 0x400 0x05>, - <&dmamux1 1 40 0x400 0x05>; - dma-names = "rx", "tx"; - cs-gpios = <&gpioa 11 0>; - + #address-cells = <1>; + #size-cells = <0>; + compatible = "st,stm32h7-spi"; + reg = <0x4000b000 0x400>; + interrupts = ; + clocks = <&rcc SPI2_K>; + resets = <&rcc SPI2_R>; + dmas = <&dmamux1 0 39 0x400 0x05>, + <&dmamux1 1 40 0x400 0x05>; + dma-names = "rx", "tx"; + cs-gpios = <&gpioa 11 0>; }; ...