From patchwork Wed Mar 8 12:52:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 66218 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp324031wrd; Wed, 8 Mar 2023 05:16:04 -0800 (PST) X-Google-Smtp-Source: AK7set+TScuoucOIRLm9DfsXdL4P6axoA25nEwCLsTx80+UfQhszgourS7UO4HqSILgmZTYyjTM1 X-Received: by 2002:a05:6a20:6a1c:b0:bf:58d1:cea0 with SMTP id p28-20020a056a206a1c00b000bf58d1cea0mr21462070pzk.31.1678281364315; Wed, 08 Mar 2023 05:16:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678281364; cv=none; d=google.com; s=arc-20160816; b=hOM468FNF66qmJSXGrwpq4wrdVZQ/sAGLoK264YtsCpD0i556kVL5Yfq1tK8/HG8ch kZzsGZZCMoK3cCVfAvCVWCYflq1ZgPFO/HJZi0lbADJtzIyI9ka4bcG9evKhfhpBOrdI FkOTYB3N9qMqYL8mjduQSb8Ubx2XRHx1Bt8Ec5k+ethITG5zQvWvlwIIL/yNutQ9TBDg Pzp7Q4py+eycJHIuGg13m9a34Z474115AoOr2x9pkYh+9HYwU7aW1E7xlB5cTKeYBZ69 G3eAbwd8DfvLl+tO0lxM7Lp1yHxVHiy7USZ24kW8kklyxf/HIFlBQcAcmoccR7UKYgPV 3Y/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LxZeuqipQtfI7uyBOhGtHnn1VKCdiY3cm9Fwe/isF34=; b=Kw/ikU4NJDI5Hu/mCDBwmbApymDPEHeaktdxjZ+7IIi2gC8r9DToojF6+jttTaZMO3 a0bdMlH/tWxcqN/ayYtZBf/zd/jUKeo4hYvjIvAS4VmkWrhrA782rMzLuJpgjsz6lb+h kJtALXeYj0xb2R1/SUqz4BphPLJNDVnycQ2URdpgHoQiEsFWTHAHUSDp8/HF2RlOWw6B jFJvkGjSby7ZKlaaQURRHClop2FFVPRBOEWSYMmpBwBFIibJaMvtQFFJibFiBggTndsF rR25r82ME5Z2VWBWOSb77h7hLOPwD4bl4wC6xygBsTfxQ/Zzm7emCKZWTYppLhbZxMhL NMYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=Z17z0InB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=pschenker.ch Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q17-20020a656851000000b004fd10490f3dsi6580054pgt.251.2023.03.08.05.15.48; Wed, 08 Mar 2023 05:16:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=Z17z0InB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=pschenker.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231575AbjCHNBc (ORCPT + 99 others); Wed, 8 Mar 2023 08:01:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231451AbjCHNAg (ORCPT ); Wed, 8 Mar 2023 08:00:36 -0500 Received: from smtp-bc08.mail.infomaniak.ch (smtp-bc08.mail.infomaniak.ch [IPv6:2001:1600:4:17::bc08]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 903EEC2219 for ; Wed, 8 Mar 2023 04:59:57 -0800 (PST) Received: from smtp-2-0000.mail.infomaniak.ch (unknown [10.5.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4PWsgJ5zVGzMrS9Q; Wed, 8 Mar 2023 13:53:16 +0100 (CET) Received: from unknown by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4PWsgJ2T5czMslrx; Wed, 8 Mar 2023 13:53:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1678279996; bh=aExLQ6B+SPPPLHo1PHQOw+NlQL8dDHzonnhZWoJIBHs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z17z0InBhcSGaQbYoUypBNPqiYFRUVpPf9Y5drop92G3smRvLIIFMRdYVJjeNac/Y LepbB9iAMpwZxWSBnSWhMA264fsWIlI62jo/zgdxVxDEQJWprDtz6t2LO1nVT7j5+h wKwEdJp40xhv7p0hr2GXEksQRq4H4EuufwqrL9Aw= From: Philippe Schenker To: devicetree@vger.kernel.org, Shawn Guo , Sascha Hauer Cc: NXP Linux Team , Krzysztof Kozlowski , Rob Herring , Pengutronix Kernel Team , Frank Rowand , linux-arm-kernel@lists.infradead.org, Fabio Estevam , Philippe Schenker , linux-kernel@vger.kernel.org Subject: [PATCH v1 17/25] arm64: dts: colibri-imx8x: eval: Add spi-to-can Date: Wed, 8 Mar 2023 13:52:51 +0100 Message-Id: <20230308125300.58244-18-dev@pschenker.ch> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230308125300.58244-1-dev@pschenker.ch> References: <20230308125300.58244-1-dev@pschenker.ch> MIME-Version: 1.0 X-Infomaniak-Routing: alpha X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759805441491759290?= X-GMAIL-MSGID: =?utf-8?q?1759805559953446463?= From: Philippe Schenker Add mcp2515 spi-to-can to &lpspi2. Signed-off-by: Philippe Schenker --- .../dts/freescale/imx8x-colibri-eval-v3.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 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 625d2caaf5d1..e7e3cf462408 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-fixed { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <16000000>; + }; + gpio-keys { compatible = "gpio-keys"; pinctrl-names = "default"; @@ -44,6 +51,18 @@ 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>; + status = "okay"; + }; }; /* Colibri UART_B */