Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1840867rdb; Tue, 20 Feb 2024 08:28:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWxxaNekBEf0ZAmfFN0eWtlmRjic+9jz+8W6z17DSqkPqmVUWWtLB2j97fDwQhecj2J2xXHCrnqTv2gjdUGs7obbIQJ0jCRNGfSh+jEZw== X-Google-Smtp-Source: AGHT+IHioknQPTy6Kpz0vGEAb7rah7h0Gbh/jpXbCw1vgHppXMNmyyd5FPgDcuuqgx8fIoY9v9m4 X-Received: by 2002:a1f:dd01:0:b0:4cd:5091:f151 with SMTP id u1-20020a1fdd01000000b004cd5091f151mr5454152vkg.13.1708446486298; Tue, 20 Feb 2024 08:28:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708446486; cv=pass; d=google.com; s=arc-20160816; b=So+cjGIsPoAIL5DrYqAtFm535sSKUNQEUZOfZ/QwyQoACLoy51wbkgoKT5fHLvfMOe Tv2vkdaU+QeG0SNcnH3sE0Z1fO1uVZJ4qF3oJqtMdtcmtBsIvALp1LA3iwGp0Cv0aLMP hfkU+XmdoZFHpcbyCYij1Lmt3Cyef1o1xn/sIQLl4p3oQvKjdvUpDK/Z4k7OO9CUUaga AWXxslLvg33DmUCB7/89wPbGvasShzQWvfsqbrw6Ly+sdiMMjjz8dw+t0QrwwgH5YiBL IF9YKOjslaB4MIzKE/woYemv/2Fntk3Z75mQZhTjoswGZ8vFQ0AUpuiPfdoEaFrEmcUB E/uw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=S5lc99WJ3VLUsFZViNGzqECAwK+dXJp73I4lyc5jvLI=; fh=tWNS7UCrAO6opAJWjJjNPLJpXqr6uQcl1xDhi9X9wJA=; b=c24H1hssBNptRpgNQ5fjLVTURL3QebDLf5gPKeBiop1M0VqFos7QJzLPe9D+qHNsUX h5citYGoTFEYka0wn9Q+9NkyISmNlo3Fklvr9kMmhAZc2RW8j7H7SfqfQlDCcQd6TZrk QZgfs+SsQjzuVeVDXmouN778FIbsvhcrjS21ljJA8usqxiQsa5a1IlcpplbQQQXfOk4M Xq9LGvA+gK0ZWaIWC7c8Y0i5QNYlp1Wy/CuTfFPaM3wzEZHfqXBG0Z6/dE76so8fuwvv 8hU08x91KwJSZYj1KSgt6rtM1v4Fb6CrhlCySb0tJJV53t9FutVNekPTZdQMQBvcNALk IBmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mistralsolutions.com header.s=google header.b=VQt61X3C; arc=pass (i=1 spf=pass spfdomain=mistralsolutions.com dkim=pass dkdomain=mistralsolutions.com dmarc=pass fromdomain=mistralsolutions.com); spf=pass (google.com: domain of linux-kernel+bounces-73351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mistralsolutions.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q13-20020a056122004d00b004c03c6bfce6si953322vkn.18.2024.02.20.08.28.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 08:28:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mistralsolutions.com header.s=google header.b=VQt61X3C; arc=pass (i=1 spf=pass spfdomain=mistralsolutions.com dkim=pass dkdomain=mistralsolutions.com dmarc=pass fromdomain=mistralsolutions.com); spf=pass (google.com: domain of linux-kernel+bounces-73351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mistralsolutions.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 01A451C23766 for ; Tue, 20 Feb 2024 16:28:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F14076C8E; Tue, 20 Feb 2024 16:25:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mistralsolutions.com header.i=@mistralsolutions.com header.b="VQt61X3C" Received: from egress-ip43a.ess.de.barracuda.com (egress-ip43a.ess.de.barracuda.com [18.185.115.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4ADA876059 for ; Tue, 20 Feb 2024 16:25:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=18.185.115.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708446355; cv=none; b=J1o3iZ7L+L8ZIukyd/De/HkmsPDi8L6AKSh942utacmZoyAgP7hBgIubiWwnvvcI8CzJW/+oH/zSA2Bs83dWLGFT0ffkKczX5/ORNuVp0HAsXwc02S2twuFam0z3m90nCw4x4eUHkhkF9Ogr52kaQhZIIVvBSC/V934K6REIEdw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708446355; c=relaxed/simple; bh=27Az4tGJk56OrsQyEEhIjQaGIm2ZMFAEqf7QHdWIvRs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mrs/iRznV6SX3V0uNEX8PE53wD4WGtwGYraNim9GA6msv34+UEwPoX61qoNdpfwFW58qjEgQy15vDmyNWthsvALU/HtyNF7bpzLyCCHDcx/6B1SbpKw4RrscXauxSizUyBdkuJBUf2HWdtwN5tMhrDXsi0jsnu74N4hdIJ2Fckw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mistralsolutions.com; spf=pass smtp.mailfrom=mistralsolutions.com; dkim=pass (1024-bit key) header.d=mistralsolutions.com header.i=@mistralsolutions.com header.b=VQt61X3C; arc=none smtp.client-ip=18.185.115.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mistralsolutions.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mistralsolutions.com Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx-outbound9-168.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 20 Feb 2024 16:25:44 +0000 Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-1dbb69acd6aso39032125ad.2 for ; Tue, 20 Feb 2024 08:25:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mistralsolutions.com; s=google; t=1708446343; x=1709051143; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=S5lc99WJ3VLUsFZViNGzqECAwK+dXJp73I4lyc5jvLI=; b=VQt61X3CY/m0lQxAsW+8Y1tQksi/gAhzXQE/o6omFUMWN507+YJ8QsDzUZMy3rsSQu oomraXAS++vCfXv0KfXd84jWr/5yknJKkYTbpZ4InfcHqLl2kgkJbf6RDvQwKYqWco2W I8w7k12QNwXv04SGSnelvcBY6Et2gUzxGzBJ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708446343; x=1709051143; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=S5lc99WJ3VLUsFZViNGzqECAwK+dXJp73I4lyc5jvLI=; b=r+9rHRBfX7s8RgHxYxhguqqY7lmW2JQ7JDqczVHaLEJszqpg6W/2zWoIlFdmr2goO9 NGGgVF+ndX3ZPAPie76NLJ+Lf+q0C4ejGadHHeuT54WEukdXryweXZtsOerr6DXlCDTA IYl5361a3RA9TaOPyDXNttG3ur4htb9FMrVN8SdOqlsW0x8MfdmsoYUdwqlvRfMgsPFR PYxFVd63vMgN5w2qy92no1F0kZdhNAcEqAfDorebWLQfspvJKj9xO3LUF9JRSuM/Jw0P GwXHD43Dm/MpMqLjkoygoRXxYS03CifBE1dyAtDvCnnUN7Q1X3sbjauMonnp/tQ8nTSv lvLg== X-Forwarded-Encrypted: i=1; AJvYcCX3WfX6GELgJ05CZ/RMXqq7QJAkcbPvEbqTLUPB8KGm8L6GYwwHBWk23I5lkItv6EeV7AIbffnKB0DXAoX30atSE1XsT4+6SEPbCHFf X-Gm-Message-State: AOJu0YzsxcNWRY1g1K2gZpSYOtOBmZyONUjEkgXcqbB4ukEdaHgj6wMH 4w//E+eOR+dcAS/buuzZIu+GneZByPuTsXF6YSeiMSTs3GaeHM0Px/u886B5KYtF02+u5mQeW2y ELkuiI9qEsQNKMnhNmygFUZ7uzZZ1C7XJKYBNiDjyt55U/E1Ee73YV+Wtf0/oMXLEBzQchP+UUV NztVIzJntKz0WSFwRD2IcW X-Received: by 2002:a17:902:dacd:b0:1db:e792:bb25 with SMTP id q13-20020a170902dacd00b001dbe792bb25mr8912367plx.25.1708446342826; Tue, 20 Feb 2024 08:25:42 -0800 (PST) X-Received: by 2002:a17:902:dacd:b0:1db:e792:bb25 with SMTP id q13-20020a170902dacd00b001dbe792bb25mr8912341plx.25.1708446342534; Tue, 20 Feb 2024 08:25:42 -0800 (PST) Received: from LAP559U.mistral.in ([106.51.69.35]) by smtp.gmail.com with ESMTPSA id d17-20020a170903209100b001d9ef7f4bfdsm6447398plc.164.2024.02.20.08.25.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 08:25:42 -0800 (PST) From: sabiya.d@mistralsolutions.com X-Google-Original-From: sabiya.d@ti.com To: nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, u-kumar1@ti.com, sabiya.d@mistralsolutions.com, Dasnavis Sabiya Subject: [PATCH V3 1/2] arm64: dts: ti: k3-am69-sk: Enable CAN interfaces for AM69 SK board Date: Tue, 20 Feb 2024 21:55:26 +0530 Message-Id: <20240220162527.663394-2-sabiya.d@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240220162527.663394-1-sabiya.d@ti.com> References: <20240220162527.663394-1-sabiya.d@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BESS-ID: 1708446343-302472-12795-15696-1 X-BESS-VER: 2019.1_20240214.1700 X-BESS-Apparent-Source-IP: 209.85.214.198 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUirNy1bSUcovVrIysjQzAbIygILGFoaGZoYmyY bJqcZGZhYmZuaJZmmpBqbGZskW5mZJyUq1sQDmdhAMQQAAAA== X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.254352 [from cloudscan20-171.eu-central-1b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.00 NO_REAL_NAME HEADER: From: does not include a real name 0.00 BSF_SC0_MISMATCH_TO META: Envelope rcpt doesn't match header X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND, NO_REAL_NAME, BSF_SC0_MISMATCH_TO X-BESS-BRTS-Status:1 From: Dasnavis Sabiya AM69 SK board has several CAN bus interfaces on both MCU and MAIN domains. This enables the CAN interfaces on MCU and MAIN domain. Signed-off-by: Dasnavis Sabiya --- arch/arm64/boot/dts/ti/k3-am69-sk.dts | 82 +++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am69-sk.dts b/arch/arm64/boot/dts/ti/k3-am69-sk.dts index aa770e82de27..7afdfbbe956d 100644 --- a/arch/arm64/boot/dts/ti/k3-am69-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts @@ -330,6 +330,30 @@ csi_mux: mux-controller { idle-state = <0>; }; + transceiver1: can-phy0 { + compatible = "ti,tcan1042"; + #phy-cells = <0>; + max-bitrate = <5000000>; + }; + + transceiver2: can-phy1 { + compatible = "ti,tcan1042"; + #phy-cells = <0>; + max-bitrate = <5000000>; + }; + + transceiver3: can-phy2 { + compatible = "ti,tcan1042"; + #phy-cells = <0>; + max-bitrate = <5000000>; + }; + + transceiver4: can-phy3 { + compatible = "ti,tcan1042"; + #phy-cells = <0>; + max-bitrate = <5000000>; + }; + }; &main_pmx0 { @@ -445,6 +469,21 @@ hdmi_hpd_pins_default: hdmi-hpd-default-pins { J784S4_IOPAD(0x000, PIN_INPUT, 7) /* (AN35) EXTINTN.GPIO0_0 */ >; }; + + main_mcan6_pins_default: main-mcan6-default-pins { + pinctrl-single,pins = < + J784S4_IOPAD(0x098, PIN_INPUT, 0) /* (AH36) MCAN6_RX */ + J784S4_IOPAD(0x094, PIN_OUTPUT, 0) /* (AG35) MCAN6_TX */ + >; + }; + + main_mcan7_pins_default: main-mcan7-default-pins { + pinctrl-single,pins = < + J784S4_IOPAD(0x0A0, PIN_INPUT, 0) /* (AD34) MCAN7_RX */ + J784S4_IOPAD(0x09C, PIN_OUTPUT, 0) /* (AF35) MCAN7_TX */ + >; + }; + }; &wkup_pmx2 { @@ -541,6 +580,21 @@ hdmi_pdn_pins_default: hdmi-pdn-default-pins { J784S4_WKUP_IOPAD(0x090, PIN_INPUT, 7) /* (H37) WKUP_GPIO0_14 */ >; }; + + mcu_mcan0_pins_default: mcu-mcan0-default-pins { + pinctrl-single,pins = < + J784S4_WKUP_IOPAD(0x054, PIN_INPUT, 0) /* (F38) MCU_MCAN0_RX */ + J784S4_WKUP_IOPAD(0x050, PIN_OUTPUT, 0) /* (K33) MCU_MCAN0_TX */ + >; + }; + + mcu_mcan1_pins_default: mcu-mcan1-default-pins { + pinctrl-single,pins = < + J784S4_WKUP_IOPAD(0x06c, PIN_INPUT, 0) /* (K36) WKUP_GPIO0_5.MCU_MCAN1_RX */ + J784S4_WKUP_IOPAD(0x068, PIN_OUTPUT, 0)/* (H35) WKUP_GPIO0_4.MCU_MCAN1_TX */ + >; + }; + }; &wkup_pmx3 { @@ -1040,3 +1094,31 @@ dp0_out: endpoint { }; }; }; + +&mcu_mcan0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mcu_mcan0_pins_default>; + phys = <&transceiver1>; +}; + +&mcu_mcan1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mcu_mcan1_pins_default>; + phys = <&transceiver2>; +}; + +&main_mcan6 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_mcan6_pins_default>; + phys = <&transceiver3>; +}; + +&main_mcan7 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_mcan7_pins_default>; + phys = <&transceiver4>; +}; -- 2.34.1