From patchwork Tue Mar 14 10:24:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 13174132 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 9DA25C6FD1C for ; Tue, 14 Mar 2023 11:47:36 +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=bU3W+u2RPb/r6H3V/d3rZJ4mWTbO4yzfzcFD5UzKb/g=; b=l/WK/sPsxnu3id uwDeiWwVQ2cjBw8I/+GnbVb2bNJfDVqvEseMBsYe2xypdrq1vNg7pU97t8hIXZfoJ8e/KOaO0PfCe MRxSKj1fTXyXEbK2z3iFeDoV1WdKvKLJuJ3tmmHXlAABWzIWxC6h9I7ZWtjC8J0bPRxAoZBUMMjp3 epLSYDuJjaCvQ/EPTIej003lrSU3Gfg/x/3QU1sU3YoQPep+jbpbbhPgOLD2f8sRaESF9VN2qe7Dk Tq6vfzd6QhqP4CKNdW3/ePNPCk4tkMpCPaVgyiV5hPj7+T3m22LTPljZPTaSZadE61+Y3xhYwu1+U /9yWUGUQ8+MdETgCTtnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pc376-009xrp-1w; Tue, 14 Mar 2023 11:46:44 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pc371-009xoU-11 for linux-arm-kernel@bombadil.infradead.org; Tue, 14 Mar 2023 11:46:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=FTX9b3U7eLqvab28VygC2daLg7pQioWAbX1JgNVvgcc=; b=FOawpXx6/V2L9wer1M+K4/5rqU zdhKyJbOVICHQi5ezRuiKWSnjR9hIrlVFCG0GKQNaJnGhhel8gxQbBKJk+gXxkQ9deV3Ii1ncnSoF RqYxjNuyAAnMRLbaylJLckZCxJBuKxDUl4zC4hFLfvt3DJl3TV1FsnZWsTZcNzEYpAG7MRSJYXPwt MXxSO4gjfpyQyvdJqsWD80fPeCiYhZ6I/DSEJZ9YWuxMbW9RqoWjbWuaAylkD2K8hpz+C0VAEVNpA A7f4L/Lv5CijgTjfvw4aajkHUX9ANsG6xpmPMYXx4BXrBZh5QeimnphxZy5gDGKHzbuypzfgQ9Bmd JeknVAHA==; Received: from smtp-42a8.mail.infomaniak.ch ([84.16.66.168]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pc1pX-001kDP-1s for linux-arm-kernel@lists.infradead.org; Tue, 14 Mar 2023 10:24:35 +0000 Received: from smtp-3-0000.mail.infomaniak.ch (unknown [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4PbV4t0pXgzMqQG6; Tue, 14 Mar 2023 11:24:30 +0100 (CET) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4PbV4s4JQPz2MRm; Tue, 14 Mar 2023 11:24:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1678789470; bh=aeN02gbGVsJ9TQ+Q8lY6g/jfYyUsHYo+ngOj0QJxr6U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rAqVQT59CsBGWcaDzKj+1suRX8CI4GXvVYqjBeCXs/ARGNCZVgG9LvRGOVn/gCuUw vZ2ViIi8mcHPbme7d9pxAGpYjy9MI1NG7QKluPpHXEobN7Akqd0l7nag883MtX3SA9 ++z55K31OwCpGtXoVYwcJHY1J+oITUyW8ateGqDA= From: Philippe Schenker To: devicetree@vger.kernel.org, Shawn Guo , Sascha Hauer Cc: NXP Linux Team , Frank Rowand , Rob Herring , Krzysztof Kozlowski , Fabio Estevam , Pengutronix Kernel Team , linux-arm-kernel@lists.infradead.org, Philippe Schenker , linux-kernel@vger.kernel.org Subject: [PATCH v2 15/23] arm64: dts: colibri-imx8x: eval: Add spi-to-can Date: Tue, 14 Mar 2023 11:24:01 +0100 Message-Id: <20230314102410.424773-16-dev@pschenker.ch> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230314102410.424773-1-dev@pschenker.ch> References: <20230314102410.424773-1-dev@pschenker.ch> MIME-Version: 1.0 X-Infomaniak-Routing: alpha X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230314_102431_771178_7B350199 X-CRM114-Status: UNSURE ( 9.90 ) X-CRM114-Notice: Please train this message. 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: Philippe Schenker Add mcp2515 spi-to-can to &lpspi2. Signed-off-by: Philippe Schenker --- Changes in v2: - Change clock-16mhz-fixed to clock-16mhz - Remove status="okay" .../dts/freescale/imx8x-colibri-eval-v3.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi index 68e34516961a..14d479b50656 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi @@ -11,6 +11,13 @@ aliases { rtc1 = &rtc; }; + /* fixed crystal dedicated to mcp25xx */ + clk16m: clock-16mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <16000000>; + }; + gpio-keys { compatible = "gpio-keys"; pinctrl-names = "default"; @@ -39,6 +46,17 @@ rtc_i2c: rtc@68 { /* Colibri SPI */ &lpspi2 { status = "okay"; + + mcp2515: can@0 { + compatible = "microchip,mcp2515"; + reg = <0>; + interrupt-parent = <&lsio_gpio3>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + pinctrl-0 = <&pinctrl_can_int>; + pinctrl-names = "default"; + clocks = <&clk16m>; + spi-max-frequency = <10000000>; + }; }; /* Colibri UART_B */