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: 69467 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1677965wrd; Tue, 14 Mar 2023 03:37:13 -0700 (PDT) X-Google-Smtp-Source: AK7set+3Ah3AXu1GeD/zAMNIOfDbNbLkaswggtFIziKGYFJdctjbllxL5g87PQqvzIf9gGDLSEDL X-Received: by 2002:a05:6a20:a692:b0:be:22c5:92df with SMTP id ba18-20020a056a20a69200b000be22c592dfmr36387413pzb.16.1678790233340; Tue, 14 Mar 2023 03:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678790233; cv=none; d=google.com; s=arc-20160816; b=0q4yMm4qNuAXjbYUT1PDTO3TTBMeR6R7Ll0PlLaeQ3aiGuIrQ6LGAhXajrW6ijoNMC uWPK4BfUiMOuJCYJrHZUjYOjaIX54Quvr0+ZPdS8kWYPLfIDIpoUJ81pG2sGMPYi0Pal 0dV+3XKLXRgHAIueos4O8z4HPcJdYQUZrTU750NIM3cl+Guc2NEfgjYo5OPmoUF3OWem ohAwbggwuMAjIlnNZ4xbI6hHyUGA8we3yucBS86xebZx+ZBwPhKdLm2y8YMY4dk91WpS gWAdDtZOiu3+0uCKoF7+noJWvYKcyZ4HIN5DFsggXQ68qhozU8APi7DFJWmbuK6bqUQj bcNQ== 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=FTX9b3U7eLqvab28VygC2daLg7pQioWAbX1JgNVvgcc=; b=DVIW4Ei7Kp4BUWG9H3HLO8Y/hiQ1IHE2FXO0Api3afnL3Pi1zG3B0c46fJw7f/5RIl i7/h+YYWCwARzeGMlXOlsXocYWy/hWmU0mcY4cYNzZ+jOaTtywatznSwBaz4g+imXcFl M/1HwjST8BM2xfxsW5IeLPEab3F/YABt0E1op3L2I5DNjyTJFno8lyfQxDyXwrIixmHI awkoaHPwiqNDTLC4ivlAz+IXgYIs0DE9vjBkoI9PWanaksrq4Lc7TmawiYSpVVHbiejl 2H5MgkPulb6DTNiLXV11h62ujhkfNld1lpC3CAZ5uZwnScrglktsPnckPS64bOFAnPVP TJyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=rAqVQT59; 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 w9-20020aa79a09000000b005a9c2c4657fsi1862550pfj.191.2023.03.14.03.37.00; Tue, 14 Mar 2023 03:37:13 -0700 (PDT) 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=rAqVQT59; 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 S231318AbjCNK1E (ORCPT + 99 others); Tue, 14 Mar 2023 06:27:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231214AbjCNKZn (ORCPT ); Tue, 14 Mar 2023 06:25:43 -0400 Received: from smtp-1908.mail.infomaniak.ch (smtp-1908.mail.infomaniak.ch [185.125.25.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72AE5C14A for ; Tue, 14 Mar 2023 03:25:16 -0700 (PDT) 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-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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?1760339147461060769?= X-GMAIL-MSGID: =?utf-8?q?1760339147461060769?= 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 */