From patchwork Thu Jan 18 15:35:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sabiya.d@mistralsolutions.com X-Patchwork-Id: 763729 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 66E8628E3A for ; Thu, 18 Jan 2024 16:28:06 +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=1705595288; cv=none; b=aas+4b7alZKQJ91Nawt/MTr+Br/UkJ2aPCnGIHyau2OXQ6SpAWXrxCuujTd3xKKJRaPum55asPxolCMvVCG/UHpbF8MnPzDDpAsoOGSS66vwFSo309U2bGZCUgMJtc06Fogh2m033sHp+urOEtqpF1qCLyL15G/he56hgPHGdYs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705595288; c=relaxed/simple; bh=NEvsqNcy1kk1E2eUgHvNmgVuqu13eTY8fYpJTsaIAa0=; h=Received:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Received:X-Google-Smtp-Source:X-Received: Received:From:X-Google-Original-From:To:Cc:Subject:Date:Message-Id: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-BESS-ID:X-BESS-VER: X-BESS-Apparent-Source-IP:X-BESS-Parts:X-BESS-Outbound-Spam-Score: X-BESS-Outbound-Spam-Report:X-BESS-Outbound-Spam-Status: X-BESS-BRTS-Status; b=Wr7mMVmYjfLaf/2tFRtEMDWcM0P9Y+Isl1KWBVFii2XiptOdbxb1rbxCLFI5UcqTcVjo5PtV91T8G4/ciiWKHjHf972POAKeR7wAS/z1eVdhwspTQkz4MvdHugrApYLdotRvz5goccO5L1mnKQObPQ0Rof2NmCcJXjW4pMZE8AI= 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=UqKDOwjI; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mistralsolutions.com header.i=@mistralsolutions.com header.b="UqKDOwjI" Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx-outbound14-230.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 18 Jan 2024 16:28:04 +0000 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-78371be5e1aso140478185a.1 for ; Thu, 18 Jan 2024 08:28:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mistralsolutions.com; s=google; t=1705595283; x=1706200083; 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=m1DYWTNQzjv4vI2x8NFQ6Ufsk1e759AfKRqvQ1Oet2c=; b=UqKDOwjIzMjavq6cEAG+LeKHF+x6aCXqPR8e/MbI3yCUiN2nfHovaTs/ZCvLlJruQJ aocSzfD1jagI4ZRvC29VkjMmTBvfzOTjRw9oEfEasprpQ1pgPCoIUiz/TWDm5nO1M6Nv v5xWeQ2SpGghZAUfDOw+jdzcqfRQFLdLqf8Mc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705595283; x=1706200083; 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=m1DYWTNQzjv4vI2x8NFQ6Ufsk1e759AfKRqvQ1Oet2c=; b=WSFBhnyolqPnyv7T4nZ5qmXI5BOns8xSEp90gmpqvRxUhL530CpeAuWkjoh3YKxC7T 5RK4imn3HOdt+PMD1EjGoxuMXyHqLwoyyz0CSUAJXZP8RPXVuIN3vVdHLiqrrNgpYRoT lvkX4pglexNTeXU0lyGSv6FksYedtKJo/iSbGEF1qpvWYQp21XpLXJ+ABOdPcHy4R/sP sj5Usb2h+IClZ0pfTfvo54l8v49/SSacdLKYuqRcaUe53CyGfMk0Prns4gp+Jqf5WOvg Cfhy8FuRR4axZsRbfqLcMWxPM4o5/C1WGr7DVrD6F9j8A3oC8cKIV3ia3wcBTT1zJLaJ fYOw== X-Gm-Message-State: AOJu0Yzp0zH8LFMLTXOWMNf7klU7LbcoLA3q+ftbaF8Z2QUPJoKY/R6h ImzNmJzUa9D/FVIorBImzKMsLtJyGOTu6kdMF5qCY7HfpG6LaZ9ri++DP28tKNWhyB1d9k/W2pD 24mEf/CEZtaVi8UzUkkVbzNFMgwwTINasGt3q2nDYehuEsXeYw9ukjtgrESy5EUK7ReBPI6Ytq1 klaFa1HKzO5/8M0cyO/g== X-Received: by 2002:a17:902:6bca:b0:1d7:193f:3183 with SMTP id m10-20020a1709026bca00b001d7193f3183mr63960plt.49.1705592156867; Thu, 18 Jan 2024 07:35:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/u1sqSi9N169ypk1ps7gSSqx41OCFy/68ybbofAG5znrEfbQLEgOCzJNDfjAkobpgkuJ8/A== X-Received: by 2002:a17:902:6bca:b0:1d7:193f:3183 with SMTP id m10-20020a1709026bca00b001d7193f3183mr63946plt.49.1705592156548; Thu, 18 Jan 2024 07:35:56 -0800 (PST) Received: from LAP559U.mistral.in ([106.51.69.35]) by smtp.gmail.com with ESMTPSA id kf13-20020a17090305cd00b001d0ca40158dsm1535207plb.280.2024.01.18.07.35.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 07:35:56 -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 1/2] arm64: dts: ti: k3-am69-sk: Enable CAN interfaces for AM69 SK board Date: Thu, 18 Jan 2024 21:05:23 +0530 Message-Id: <20240118153524.4135901-2-sabiya.d@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240118153524.4135901-1-sabiya.d@ti.com> References: <20240118153524.4135901-1-sabiya.d@ti.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-BESS-ID: 1705595283-303814-12447-11025-1 X-BESS-VER: 2019.1_20240103.1634 X-BESS-Apparent-Source-IP: 209.85.222.198 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUirNy1bSUcovVrIyNjQ3ALIygIJGKamJliZp5g ZmqUapKQamiUZGJokpxslpBqnJ5iYWKUq1sQCeQUMUQQAAAA== X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.253602 [from cloudscan11-97.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_SC0_MISMATCH_TO META: Envelope rcpt doesn't match header 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.00 NO_REAL_NAME HEADER: From: does not include a real name X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_SC0_MISMATCH_TO, BSF_BESS_OUTBOUND, NO_REAL_NAME 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 | 85 +++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am69-sk.dts b/arch/arm64/boot/dts/ti/k3-am69-sk.dts index 370980eb59b0..feb571a5a0f5 100644 --- a/arch/arm64/boot/dts/ti/k3-am69-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts @@ -29,6 +29,10 @@ aliases { i2c0 = &wkup_i2c0; i2c3 = &main_i2c0; ethernet0 = &mcu_cpsw_port1; + can0 = &mcu_mcan0; + can1 = &mcu_mcan1; + can2 = &main_mcan6; + can3 = &main_mcan7; }; memory@80000000 { @@ -321,6 +325,31 @@ tfp410_out: endpoint { }; }; }; + + 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 { @@ -429,6 +458,20 @@ 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 { @@ -525,6 +568,20 @@ 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 { @@ -988,3 +1045,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>; +};