Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3190267rwo; Mon, 24 Jul 2023 07:32:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlGK9pqup8fBDZ4SEn/Prl6thH4pvNTw+JcjAkkg/We+KP4jk6mGURqEuYSH5J/Dw2T0uzYL X-Received: by 2002:a17:907:78c6:b0:992:764b:90d3 with SMTP id kv6-20020a17090778c600b00992764b90d3mr9427156ejc.70.1690209177114; Mon, 24 Jul 2023 07:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690209177; cv=none; d=google.com; s=arc-20160816; b=hJPO9nl6n84WisFHzM+nuo88wuOuel0+Eolh107R1QTIhIQHjo7iKIk3fBN5dzRS/Q qdeOc12J2Ynp7KnTd3mXC0UehtJzYQBcGIOnW7mFuBSnK6y4Lufk17xuHrGvtmhc0a2t WstmH5N5LLDoBM3fO89nsojEJVzWMxom+v9VDggL7OGQDSExFugtEry2X4KCZJ84/0t7 7uXTGSYNS1LZmdO/wy1r/ipebvSxIZvPR7ZSs+mAMWF9wBGr1CYJKcO20p/u2wxCn2Ci JAfOkoZyGbLRvRPyD42Pm1CrrUOvVLIgBUs1n7MY9aCecvQMHSZhSyVUe3FBSAuzWX1y nUfA== 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; bh=ALabCqA8rYbJhAvZg3DY9spMU0eMhAnJZHLwaZfImyY=; fh=mNDyHcmt6B2zdcXY3iZQDxH1RgFajj6hKGnGFKaGxas=; b=ZnjsrU4xznfkkWQ2dDS2G3D/zSvHGy3qpdMzzEohWIykY1gZmcm5Gl4lmQeamDHuj6 K4gw9EU/Wjh11Blu1Qt7zUrpdw2x7ZS6oMSj0W91JdeLrTVFMk9dCg9nU7B5aP6P/wth pT32sCfnby84u+ghr1C9GF0yJVGJLIV0mREFZLQ0yew/oeynAsjpCZgGxpCWxu7ZVDKo Q7lOKEKWtN/LYvyzNt1OyXFs4nfqJFPImYakhwH+HlKhocVKMEMWHe/XyEprgNqfN2A7 23fTzBWlTqNeo1DvEW574Jmy1sYrLuvMbx/S/iaVV3XFSooDadM/iJkF4WB2y5h45/Zn clvg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p19-20020a17090628d300b00988919c8a70si6612523ejd.59.2023.07.24.07.32.32; Mon, 24 Jul 2023 07:32:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231359AbjGXNkS (ORCPT + 99 others); Mon, 24 Jul 2023 09:40:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231720AbjGXNkC (ORCPT ); Mon, 24 Jul 2023 09:40:02 -0400 Received: from mail11.truemail.it (mail11.truemail.it [IPv6:2001:4b7e:0:8::81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F5E730DD; Mon, 24 Jul 2023 06:37:59 -0700 (PDT) Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 9A82D209B4; Mon, 24 Jul 2023 15:36:36 +0200 (CEST) From: Francesco Dolcini To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Hiago De Franco , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Francesco Dolcini Subject: [PATCH v1 2/2] arm64: dts: ti: k3-am625-verdin: enable CAN_2 Date: Mon, 24 Jul 2023 15:36:12 +0200 Message-Id: <20230724133612.37366-3-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230724133612.37366-1-francesco@dolcini.it> References: <20230724133612.37366-1-francesco@dolcini.it> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Hiago De Franco Add Verdin CAN_2 (TI AM62 MCU_MCAN0) and enable it on the Yavia, Dahlia and Verdin Development board. Signed-off-by: Hiago De Franco Signed-off-by: Francesco Dolcini --- .../boot/dts/ti/k3-am62-verdin-dahlia.dtsi | 5 +++++ .../arm64/boot/dts/ti/k3-am62-verdin-dev.dtsi | 5 +++++ .../boot/dts/ti/k3-am62-verdin-yavia.dtsi | 5 +++++ arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi | 19 +++++++++++++++++-- 4 files changed, 32 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-am62-verdin-dahlia.dtsi b/arch/arm64/boot/dts/ti/k3-am62-verdin-dahlia.dtsi index 3abd8d1d6761..33c8f6ffaa30 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-verdin-dahlia.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-verdin-dahlia.dtsi @@ -115,6 +115,11 @@ &mcu_i2c0 { status = "okay"; }; +/* Verdin CAN_2 */ +&mcu_mcan0 { + status = "okay"; +}; + /* Verdin UART_4 */ &mcu_uart0 { status = "okay"; diff --git a/arch/arm64/boot/dts/ti/k3-am62-verdin-dev.dtsi b/arch/arm64/boot/dts/ti/k3-am62-verdin-dev.dtsi index 846caee7dfa4..8205081fda33 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-verdin-dev.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-verdin-dev.dtsi @@ -144,6 +144,11 @@ &mcu_i2c0 { status = "okay"; }; +/* Verdin CAN_2 */ +&mcu_mcan0 { + status = "okay"; +}; + /* Verdin UART_4 */ &mcu_uart0 { status = "okay"; diff --git a/arch/arm64/boot/dts/ti/k3-am62-verdin-yavia.dtsi b/arch/arm64/boot/dts/ti/k3-am62-verdin-yavia.dtsi index cb11d6e7f525..c685df7deaee 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-verdin-yavia.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-verdin-yavia.dtsi @@ -167,6 +167,11 @@ &mcu_i2c0 { status = "okay"; }; +/* Verdin CAN_2 */ +&mcu_mcan0 { + status = "okay"; +}; + /* Verdin UART_4 */ &mcu_uart0 { status = "okay"; diff --git a/arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi b/arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi index 57dd061911ab..12dd1d64eac9 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi @@ -19,6 +19,8 @@ chosen { }; aliases { + can0 = &main_mcan0; + can1 = &mcu_mcan0; ethernet0 = &cpsw_port1; ethernet1 = &cpsw_port2; i2c0 = &main_i2c0; @@ -732,6 +734,14 @@ AM62X_MCU_IOPAD(0x0048, PIN_INPUT, 0) /* (D10) MCU_I2C0_SDA */ /* SODIMM 57 */ >; }; + /* Verdin CAN_2 */ + pinctrl_mcu_mcan0: mcu-mcan0-default-pins { + pinctrl-single,pins = < + AM62X_MCU_IOPAD(0x0038, PIN_INPUT, 0) /* (B3) MCU_MCAN0_RX */ /* SODIMM 26 */ + AM62X_MCU_IOPAD(0x0034, PIN_OUTPUT, 0) /* (D6) MCU_MCAN0_TX */ /* SODIMM 24 */ + >; + }; + /* Verdin UART_4 - Reserved to Cortex-M4 */ pinctrl_mcu_uart0: mcu-uart0-default-pins { pinctrl-single,pins = < @@ -1238,8 +1248,6 @@ &main_mcan0 { status = "disabled"; }; -/* Verdin CAN_2 - Reserved to Cortex-M4 */ - /* Verdin SPI_1 */ &main_spi1 { pinctrl-names = "default"; @@ -1333,6 +1341,13 @@ &mcu_gpio0 { ""; }; +/* Verdin CAN_2 */ +&mcu_mcan0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_mcu_mcan0>; + status = "disabled"; +}; + /* Verdin UART_4 - Cortex-M4 UART */ &mcu_uart0 { pinctrl-names = "default"; -- 2.25.1