Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp941451rwr; Wed, 19 Apr 2023 15:54:45 -0700 (PDT) X-Google-Smtp-Source: AKy350Y09CKwoOdEjP/tbldpmaWYVJSq7wTY3zMGULnFhGTob/UGyPWsOhddSCaYWkhRG42/XILh X-Received: by 2002:a05:6a20:8f07:b0:d9:2d4e:c08c with SMTP id b7-20020a056a208f0700b000d92d4ec08cmr53749pzk.61.1681944884987; Wed, 19 Apr 2023 15:54:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681944884; cv=none; d=google.com; s=arc-20160816; b=apMb2cqcas0dZ2IMxRIQ7qZOXiXDlHxnwRUvVIXI7I8DDX0a5/mPvzQA4aTqIwfQ4h pe22SWuay+P5TEMIAQ64Hm289ajU0+ubT/tvR7hYXq82Me6dPeONSdvdT9n+IBQfsh7u uwREapn8kGaE7wOzBIwc0wsQlJ1C4/Y4yukLl592EdjKS5g2FvE5BHurELww4tj0bCrH I8hj0K3plixFobEb+Yw9o11v+6RLPx5uJyiP9fT/dDIaRhLnGmh5DxRwN1aYmtv8dBDU ersZ/i1YbaAo1gIPwyqjXvmEDj+37rGi5HAMS5ZwLtR8xkcdCp5COwK+CyAyvyToGU8b BBRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=OrWMLGnqJwjHMR2zESshsELG2IHJFL0T+AwlGIO3pco=; b=t6zXcMSiXqnCL9p4WSTxNl8MgKcQYRhmTOwoVjPMmmg9MOuuDrM06zeHIQY06iNJc1 1c/J8PpTcuoP4LZFwgC/e8xaAOam1dbT7Gq7QnTMByzs0Mwi/xXqkwOZbk7mUzDEv2sS ql2HSLvFg5aZjfLv5jQ7Yl8NnvIhdBZFld2jLcHrFHKyNkcIjtj3Fm/paA0qeiJjj+x5 8G+RoA6YmdRYe3B6CZ6zVnUfoOVd1lu4ak9jUeoQ79M29bRrUw6p7Zii0a/ja3tpjZm1 3xRDZyeNs1mS3PbXtoIbpQItGLSJ5RQPw0Hx8cYv5S/gvu+Adh/leS78D5v8DyeOxuA7 tTUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FQbPTeoy; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a63d809000000b0050f66d53c3fsi16829361pgh.299.2023.04.19.15.54.31; Wed, 19 Apr 2023 15:54:44 -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=@ti.com header.s=ti-com-17Q1 header.b=FQbPTeoy; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232791AbjDSWwJ (ORCPT + 99 others); Wed, 19 Apr 2023 18:52:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232308AbjDSWwG (ORCPT ); Wed, 19 Apr 2023 18:52:06 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39B8C1701; Wed, 19 Apr 2023 15:52:05 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33JMXO6e078079; Wed, 19 Apr 2023 17:33:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1681943604; bh=OrWMLGnqJwjHMR2zESshsELG2IHJFL0T+AwlGIO3pco=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=FQbPTeoyNkBPYpWOYcbN9XBT9hTBpXTj/II18vwjA7MVdmFljCrDMGYsR8Xj5oTOb Ebkmb+D7pylbJPEslARZxtZXq6nOKKG1mMukZke5GWdUKIsVyMfZX15/h0xcinBk8o 10DjKnxjfqUFVyElXJIaFfn0kiphe5gyEeZ5oNnY= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33JMXOk7027126 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 19 Apr 2023 17:33:24 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Wed, 19 Apr 2023 17:33:24 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Wed, 19 Apr 2023 17:33:24 -0500 Received: from a0498204.dal.design.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33JMXNLY015736; Wed, 19 Apr 2023 17:33:23 -0500 From: Judith Mendez To: Chandrasekar Ramakrishnan , Wolfgang Grandegger , Marc Kleine-Budde CC: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Schuyler Patton , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Oliver Hartkopp , Judith Mendez , , , , , Subject: [PATCH 3/4] DO_NOT_MERGE arm64: dts: ti: Add AM62x MCAN MAIN domain transceiver overlay Date: Wed, 19 Apr 2023 17:33:22 -0500 Message-ID: <20230419223323.20384-4-jm@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230419223323.20384-1-jm@ti.com> References: <20230419223323.20384-1-jm@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,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 Add an overlay for main domain MCAN on AM62x SK. The AM62x SK board does not have on-board CAN transceiver so instead of changing the DTB permanently, add an overlay to enable MAIN domain MCAN and support for 1 CAN transceiver. Signed-off-by: Judith Mendez --- arch/arm64/boot/dts/ti/Makefile | 2 ++ .../boot/dts/ti/k3-am625-sk-mcan-main.dtso | 35 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am625-sk-mcan-main.dtso diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index c83c9d772b81..abe15e76b614 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -9,8 +9,10 @@ # alphabetically. # Boards with AM62x SoC +k3-am625-sk-mcan-dtbs := k3-am625-sk.dtb k3-am625-sk-mcan-main.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-sk.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am625-sk-mcan.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk.dtb # Boards with AM62Ax SoC diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk-mcan-main.dtso b/arch/arm64/boot/dts/ti/k3-am625-sk-mcan-main.dtso new file mode 100644 index 000000000000..72b68fd51121 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am625-sk-mcan-main.dtso @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: GPL-2.0 +/** + * DT overlay for MCAN transceiver in main domain on AM625 SK + * + * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +#include + +&{/} { + transceiver1: can-phy0 { + compatible = "ti,tcan1042"; + #phy-cells = <0>; + max-bitrate = <5000000>; + }; +}; + +&main_pmx0 { + main_mcan0_pins_default: main-mcan0-pins-default { + pinctrl-single,pins = < + AM62X_IOPAD(0x1dc, PIN_INPUT, 0) /* (E15) MCAN0_RX */ + AM62X_IOPAD(0x1d8, PIN_OUTPUT, 0) /* (C15) MCAN0_TX */ + >; + }; +}; + +&main_mcan0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_mcan0_pins_default>; + phys = <&transceiver1>; +}; -- 2.17.1