From patchwork Tue Apr 4 08:24:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13199289 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 9E844C6FD1D for ; Tue, 4 Apr 2023 08:28:20 +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=8ZoiJbORdCMWKdhY5cSWC8A9pjcWlZgChjBpwNRSSVg=; b=fh3Z8/F4Lgb0yU iH5D62BIAIMX85PpX/oK6HvsU2j0Y3wT3I1pa3cJCn+DA2b1LmxWH350EsbuIk2meAdvVXc5OnxKi +oQ9jQUBTgIHAWQoUyNsfPCbqvLygQDHJwHiIXapktmJLjz9we5M6DAD+bY0UJ246gJUGSTP5SSRx 0ZHc3KInkV3NZZFfDfzIgj700dk6bbazfGxLTv7hw3w9/2OUv6GyWcNpf265E4XvT1CoyNptQLK2V x3AQ2jGbK78YueSobCvXQGwEMpo8Kvtw/LSHsoOVZ1Xe1RNmcO9l/FaA/zWSJTHP5lbmtnmMJezWY 2xN5AkB1+VometfLQbBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjbyK-000SxP-31; Tue, 04 Apr 2023 08:24:56 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjbxq-000Spz-11 for linux-arm-kernel@lists.infradead.org; Tue, 04 Apr 2023 08:24:53 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D36A863009; Tue, 4 Apr 2023 08:24:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5276FC433D2; Tue, 4 Apr 2023 08:24:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680596663; bh=Jx5bvjrSNpzL7FAJ0vFM7n8T6kg58By1narMR8bQMcI=; h=From:To:List-Id:Cc:Subject:Date:In-Reply-To:References:From; b=Vlpp8/o5jbSpwOhzro/2OUcugQ6BJ3HLIkiEzefoeA+6yrtMBNJXqubbdSKt0yyCh IF37wNje1EPIR8zA0WzZ24p35vIhIWJ1wbo7V3fl9spRq7SZw6pdpaoHcz25b/MAYd 8BziiO4iVla68ernU21LsVc0Oy2rGV1ZUPHfqHyzOu6jA7lCiP1aRxEKP30IccQNMs 6+TF6rmamywTb77+/rE6x/wtR+KOaX0nRBbpE5zf+l32wHeM1myjWxl78HG113gVBd wLBuTXKE34mtjFdOfKqCbJIoJCOCUvuziKKdcfk2QYOepdd9Kb4RDPZ/GH8l5SbsLE nl+jKQTYn4bCg== From: Arnd Bergmann To: Tony Lindgren Cc: soc@kernel.org, Arnd Bergmann , "Aaro Koskinen" , "Bartosz Golaszewski" , =?utf-8?q?Beno=C3=AEt_Cousson?= , Christian Lamparter , "David S. Miller" , "Dmitry Torokhov" , "Eric Dumazet" , "Felipe Balbi" , "Jakub Kicinski" , "Johannes Berg" , "Krzysztof Kozlowski" , "Linus Walleij" , "Paolo Abeni" , "Rob Herring" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH v2 2/3] ARM: dts: omap2: add stlc4560 spi-wireless node Date: Tue, 4 Apr 2023 10:24:00 +0200 Message-Id: <20230404082401.1087835-3-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230404082401.1087835-1-arnd@kernel.org> References: <20230404082401.1087835-1-arnd@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230404_012431_071945_5519D2E3 X-CRM114-Status: GOOD ( 12.46 ) 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 From: Arnd Bergmann Converted from the platform_device creation in board-n8x0.c. Link: https://lore.kernel.org/all/20230314163201.955689-1-arnd@kernel.org/ Signed-off-by: Arnd Bergmann Reviewed-by: Krzysztof Kozlowski --- arch/arm/boot/dts/omap2.dtsi | 4 ++++ arch/arm/boot/dts/omap2420-n8x0-common.dtsi | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/omap2.dtsi b/arch/arm/boot/dts/omap2.dtsi index afabb36a8ac1..fdc1790adf43 100644 --- a/arch/arm/boot/dts/omap2.dtsi +++ b/arch/arm/boot/dts/omap2.dtsi @@ -129,6 +129,8 @@ i2c2: i2c@48072000 { }; mcspi1: spi@48098000 { + #address-cells = <1>; + #size-cells = <0>; compatible = "ti,omap2-mcspi"; ti,hwmods = "mcspi1"; reg = <0x48098000 0x100>; @@ -140,6 +142,8 @@ mcspi1: spi@48098000 { }; mcspi2: spi@4809a000 { + #address-cells = <1>; + #size-cells = <0>; compatible = "ti,omap2-mcspi"; ti,hwmods = "mcspi2"; reg = <0x4809a000 0x100>; diff --git a/arch/arm/boot/dts/omap2420-n8x0-common.dtsi b/arch/arm/boot/dts/omap2420-n8x0-common.dtsi index 63b0b4921e4e..fe9dd8bbfc85 100644 --- a/arch/arm/boot/dts/omap2420-n8x0-common.dtsi +++ b/arch/arm/boot/dts/omap2420-n8x0-common.dtsi @@ -109,3 +109,15 @@ partition@5 { }; }; }; + +&mcspi2 { + status = "okay"; + + wifi@0 { + reg = <0>; + compatible = "st,stlc4560"; + spi-max-frequency = <48000000>; + interrupts-extended = <&gpio3 23 IRQ_TYPE_EDGE_RISING>; + powerdown-gpios = <&gpio4 1 GPIO_ACTIVE_LOW>; /* gpio 97 */ + }; +};