From patchwork Tue Feb 20 16:25:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dasnavis Sabiya X-Patchwork-Id: 13564258 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B1D74C5475B for ; Tue, 20 Feb 2024 16:26:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=I2y0WPyQRkaI3ItLNwI3d+qy0kcI+kqbu7oxlzn046Y=; b=IKOIr9+CcJVmbk XMV2p0FHbiEbwBffbiAOSmAMaV3Kcx7uUfWbTlqqmmwpmcMbTOCf09wHIkTtH+WfceTrVrMFjU4iG sifN/EKoGWQp1vDZ1xEeGsOQUZS3iuXKyGg3A5CnubAL293OiXnxUpQdH8UUZzbSBY1Qx8DuwVWys nUquZy2C48yKvO9wYd10YdG9uMz+qUeBCfA0xPilhmZy+SN3grRBbaW1kHYRi96pEBoW1RaD9zVr/ x4HJYnuRUTFVdMcxDC++r9BA0ZGr3AZrQNnSS7zNiqANQZk+ZdonxI3iz/HFHmhdBCKfJ0EpxGvQE EegVBwTIptBO1nzVut0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcSwU-0000000FSBL-1drZ; Tue, 20 Feb 2024 16:26:02 +0000 Received: from egress-ip12a.ess.de.barracuda.com ([18.184.203.235]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcSwJ-0000000FS3E-0mnZ for linux-arm-kernel@lists.infradead.org; Tue, 20 Feb 2024 16:25:52 +0000 Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx-outbound46-244.eu-central-1c.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-f197.google.com with SMTP id d9443c01a7336-1d746417ea3so54647875ad.0 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=lists.infradead.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=MbjxGZTxAsh+OjoB2WdS6tnKtVqHwvrifmFSvEK1ckaCtXZmoC11oji0sHR7vC8kus xQ4kZn+DAF5soin36CiqeEptsfssjgwQjEVA52/A0SV9yC2yzL/uUlmYrFz2Pcf75MN2 Rs9ZNy6vOXNCq1EHQHAobDUWNEgO+KMLdoyKk= 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=FCmk1Nj+o9V4SqqZ57qGN+5VUk763CAFTFKUTk+VsbzUgTL9V1BiADsrDmUA2cDRJi dw+3YLNgQQlPeRxVDmw4kbeTTxatc3TrsKYGKvrCxIUZkbzgw3X32mweHXslxkd+QpUC q8gwvDT4/DFd2AAMX6hL+moN/7713dFSZU3xO6rpuEAvA2aqxpqdf9UjXWW2D7RGyuzj pc9bn5bJaKEk7A8n5NtV4OncZGvSEnNxLR883qXAebzNdgSuTScqBBMsz+S7vh6rB5r+ mE9xZI13DPUeIFwP1PcUEKHehDp4nQSQs5CQIPTqZfAMpGcvo1oZ9aZT09EbOhQQLiAf 1SXA== X-Forwarded-Encrypted: i=1; AJvYcCXRRjeY9BxrnBwkS8FahnHI6x8DZMSmurhCaInjIEH5MiPTJd/PeihrsDYLzCdwInQoVqhSMy5t5yILgnmcZ6k30jg6vErDtZ3l21MYjIc0sAfH7Rg= X-Gm-Message-State: AOJu0YyZL67iJAKdmuyxqURFbmaKCH5JhgAWG22QTj07CgLZd4GHuUWl uXNAXuTkkPyXHGV1IXC7wOMJtK210q7gvBKNb7Lvvrf1+b+wqzuWnySAd0PyVjRKTF4EImEqUun uKeSEQ/fiOshq/HNLyC3+wwEXLW9tFSo4bVahJBuslFaC2S4yd8ZxC52UESl2xPissrNwtV/Pc1 P+HOf+fWRJsHmoVSlIb6UP4kTq7r5Bpl0= X-Received: by 2002:a17:902:dacd:b0:1db:e792:bb25 with SMTP id q13-20020a170902dacd00b001dbe792bb25mr8912375plx.25.1708446342835; Tue, 20 Feb 2024 08:25:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHp9mjJ4cdHVe7owBcKek9cw68MqPunrfr16Pxr0DUBxva5cEALlQZh2c10slphAbBxs2n8Sw== 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> MIME-Version: 1.0 X-BESS-ID: 1708446343-312020-12418-12920-1 X-BESS-VER: 2019.1_20240214.1700 X-BESS-Apparent-Source-IP: 209.85.214.197 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-94.eu-central-1b.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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240220_082551_395172_B502C45E X-CRM114-Status: GOOD ( 12.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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>; +}; From patchwork Tue Feb 20 16:25:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dasnavis Sabiya X-Patchwork-Id: 13564259 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C15C5C48BC3 for ; Tue, 20 Feb 2024 16:26:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7fVG2y4YGmeu97t8BqoWou9xdeIP5EpXkZVkGHIyOYs=; b=b5jwz0ns8redPu 0Hc+K+EGzSprEqhwvl6xA0TefnYk9gPZ+R3WlFOCGsBugka74uEySG/vYdY1YXna09HNT+aNlZsTU N+x0+fdJSy1HN2q5SO/c97xeZXY058yty9BpTPFHevCj7LrNh7roAwlUDJLdEeuU2SEnP+7GERs51 3UZ8QikZDQEa0RsSEm+vOlWyRiP/QN4qIAfKtLXKnBggHj/Fqg7DsRd6CJBTXr9qQQh6fpynTngz8 Fr6KV8BzJuaBW3NJdpN8hiY7Nq/kj1i7NMOR4rOZ6CirqiiA92dtu+G1G/afGj780SWCuHw71EP5z JzfI6tcfudAqMjCZgFbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcSwV-0000000FSC8-2XCW; Tue, 20 Feb 2024 16:26:03 +0000 Received: from egress-ip43b.ess.de.barracuda.com ([18.185.115.247]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcSwN-0000000FS5d-1dTu for linux-arm-kernel@lists.infradead.org; Tue, 20 Feb 2024 16:25:56 +0000 Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx-outbound18-77.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 20 Feb 2024 16:25:49 +0000 Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-5c17cff57f9so4157209a12.0 for ; Tue, 20 Feb 2024 08:25:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mistralsolutions.com; s=google; t=1708446348; x=1709051148; darn=lists.infradead.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=5lydSy43uLmozY4hIVyEJMwJBX5JTBJFRts8o/U2LL0=; b=a/ZzJ6jM17wNxnxVANlX4JaT0RwBgypsPsJoK1UCdt5Xsvodsjr6309Pg1WCk0/Ujw zEagP5TM6v6YW1sIHU4hmzgA5pPKXeczzycACDTlF//pIx8M6SqN8EDlpPTxoe06+xKr lF9QnHFZNbqyw6pWnQeQMSeMqjyV7yNjugowI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708446348; x=1709051148; 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=5lydSy43uLmozY4hIVyEJMwJBX5JTBJFRts8o/U2LL0=; b=qF7Oi+/xEwB933RuwQfx7KamJKmRH15bU0SEn7Yfiag/PfMoBCkB7FMtBPbKXp57B9 nW5oeiy1JCjjXnOHCA5dN1LoE2uLWYKAbjwsh8RHDMBkyCWKR15/AynH96PM6ij5RrIB orMlL4m6L9dFzEfCukIRKsxfCXoqhKGaQLZFzYsdvsgjxebStF5zpl2Jz/ncEjxDkyyA QbT/KAUhp1pJm4HD22QUQNakginoepjsdgPNVsLg/UqIdtJzfKK+NJkd+XwouiTrUlxP iOPUgNsd6dLnc/jkQ0EWqcQ456nxl8TdmUYzodqwhVT2JKGJ8r3uz9klAt8dfFO//JYF +7hg== X-Forwarded-Encrypted: i=1; AJvYcCV0LDrD9uIn3XZVS9Bd52U0dMlIoYx1bzXFIrgdsOLq8Uk9lXDjVpakcw5MEVqSeILDq4CYXA2LVif5dbb8mQJoFJBJjG4QhHXyncqM/j5ptlUs5dw= X-Gm-Message-State: AOJu0YwO63SQQMuaQz+oH3qcUqCw/iUm2tKhmAR6Sut9o/rc0rcgH4Gx XPG2q9yEBOBxVUKGU/P9cX9P9aoXXxMxopuOdF6Pa9w/Khv9bRfpBndAF5Yj7QAnu3aXkWmAlf1 MU8WIr0xC6n2mUgep8lkiJHKrSnjHoTHCypBo3pO8V5sgO/VQ+gff6j13ylhPi/os5I1M3OxkEY WjVzP9xtvfXho1ivpaG8iNAiuGY5hmssU= X-Received: by 2002:a17:902:ecc1:b0:1dc:43d:964 with SMTP id a1-20020a170902ecc100b001dc043d0964mr4513649plh.48.1708446347957; Tue, 20 Feb 2024 08:25:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRJtYdih0iYRQFiQdssaBAekuGqg3UlycLLTqQ+o4seqcWmE9e090Z6UwjkYYq2UcPzHOLRg== X-Received: by 2002:a17:902:ecc1:b0:1dc:43d:964 with SMTP id a1-20020a170902ecc100b001dc043d0964mr4513626plh.48.1708446347648; Tue, 20 Feb 2024 08:25:47 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 08:25:47 -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 2/2] arm64: dts: ti: k3-am69-sk: Add support for OSPI flash Date: Tue, 20 Feb 2024 21:55:27 +0530 Message-Id: <20240220162527.663394-3-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> MIME-Version: 1.0 X-BESS-ID: 1708446348-304685-12428-15812-1 X-BESS-VER: 2019.1_20240214.1700 X-BESS-Apparent-Source-IP: 209.85.215.197 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUirNy1bSUcovVrIysjQxBLIygIKWaeaJ5inGFq apRibJRmmpBikWqYYWaYYGySkGJkbGhkq1sQBvJG3bQQAAAA== X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.254352 [from cloudscan19-78.eu-central-1b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 NO_REAL_NAME HEADER: From: does not include a real name 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 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=NO_REAL_NAME, BSF_BESS_OUTBOUND, BSF_SC0_MISMATCH_TO X-BESS-BRTS-Status: 1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240220_082555_611861_074DB416 X-CRM114-Status: GOOD ( 12.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Dasnavis Sabiya AM69 SK has S28HS512T OSPI flash connected to MCU OSPI0. Enable support for the same. Also describe the partition information according to the offsets in the bootloader. Signed-off-by: Dasnavis Sabiya --- arch/arm64/boot/dts/ti/k3-am69-sk.dts | 81 +++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am69-sk.dts b/arch/arm64/boot/dts/ti/k3-am69-sk.dts index 7afdfbbe956d..50de2a448a3a 100644 --- a/arch/arm64/boot/dts/ti/k3-am69-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts @@ -486,6 +486,25 @@ J784S4_IOPAD(0x09C, PIN_OUTPUT, 0) /* (AF35) MCAN7_TX */ }; +&wkup_pmx0 { + bootph-all; + mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-default-pins { + pinctrl-single,pins = < + J784S4_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (E32) MCU_OSPI0_CLK */ + J784S4_WKUP_IOPAD(0x02c, PIN_OUTPUT, 0) /* (A32) MCU_OSPI0_CSn0 */ + J784S4_WKUP_IOPAD(0x00c, PIN_INPUT, 0) /* (B33) MCU_OSPI0_D0 */ + J784S4_WKUP_IOPAD(0x010, PIN_INPUT, 0) /* (B32) MCU_OSPI0_D1 */ + J784S4_WKUP_IOPAD(0x014, PIN_INPUT, 0) /* (C33) MCU_OSPI0_D2 */ + J784S4_WKUP_IOPAD(0x018, PIN_INPUT, 0) /* (C35) MCU_OSPI0_D3 */ + J784S4_WKUP_IOPAD(0x01c, PIN_INPUT, 0) /* (D33) MCU_OSPI0_D4 */ + J784S4_WKUP_IOPAD(0x020, PIN_INPUT, 0) /* (D34) MCU_OSPI0_D5 */ + J784S4_WKUP_IOPAD(0x024, PIN_INPUT, 0) /* (E34) MCU_OSPI0_D6 */ + J784S4_WKUP_IOPAD(0x028, PIN_INPUT, 0) /* (E33) MCU_OSPI0_D7 */ + J784S4_WKUP_IOPAD(0x008, PIN_INPUT, 0) /* (C34) MCU_OSPI0_DQS */ + >; + }; +}; + &wkup_pmx2 { bootph-all; pmic_irq_pins_default: pmic-irq-default-pins { @@ -1122,3 +1141,65 @@ &main_mcan7 { pinctrl-0 = <&main_mcan7_pins_default>; phys = <&transceiver4>; }; + +&ospi0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mcu_fss0_ospi0_pins_default>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0x0>; + spi-tx-bus-width = <8>; + spi-rx-bus-width = <8>; + spi-max-frequency = <25000000>; + cdns,tshsl-ns = <60>; + cdns,tsd2d-ns = <60>; + cdns,tchsh-ns = <60>; + cdns,tslch-ns = <60>; + cdns,read-delay = <4>; + + partitions { + bootph-all; + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "ospi.tiboot3"; + reg = <0x0 0x100000>; + }; + + partition@100000 { + label = "ospi.tispl"; + reg = <0x100000 0x200000>; + }; + + partition@300000 { + label = "ospi.u-boot"; + reg = <0x300000 0x400000>; + }; + + partition@700000 { + label = "ospi.env"; + reg = <0x700000 0x40000>; + }; + + partition@740000 { + label = "ospi.env.backup"; + reg = <0x740000 0x40000>; + }; + + partition@800000 { + label = "ospi.rootfs"; + reg = <0x800000 0x37c0000>; + }; + + partition@3fc0000 { + bootph-pre-ram; + label = "ospi.phypattern"; + reg = <0x3fc0000 0x40000>; + }; + }; + }; +};