From patchwork Mon Feb 19 11:14:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dasnavis Sabiya X-Patchwork-Id: 13562532 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 B6E35C48BC3 for ; Mon, 19 Feb 2024 11:15: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=AyWHPX/HWfywvxymw76l7gEWQn55x/ORO/vjrbNPMl0=; b=biIj/RwR1679if 0BIq+0S1DlqioBABg5+G3dNCnuiLy1I+He3E/lzFUA/Tka5EpQ9ZG7mWdi29ubi2JXKZvhxG7OG0W KuK7KFlhvf13bPrBLDD+Q0wkZYBHirWDLs0m2UlUIN0Zp2BpTbLzC7/iVuxF7Ru8wHnvGSa9ZbzNC 0uiGdiRegjfQoECUdqG8ZUwDv4QgiZP5cs8EPnjkEtYmkFEYLhTzLhqGzmglcYHq3o9Wkkg722IOa IJ95NAN+oLuESxwsr4rW3M+MUAHtFpM4s7lv1aDW12DkW9ZgXiYo+D+wQoGNxxeWuLvFRrBv2knbj wyKxVz1eSMAqCfHNfaOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rc1br-0000000A9wc-2wuE; Mon, 19 Feb 2024 11:14:55 +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 1rc1bj-0000000A9uk-1c9M for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2024 11:14:48 +0000 Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx-outbound40-178.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 19 Feb 2024 11:14:44 +0000 Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-29962830e4fso1281714a91.3 for ; Mon, 19 Feb 2024 03:14:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mistralsolutions.com; s=google; t=1708341284; x=1708946084; 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=gsmDyzoAGxpVurHPntS4K3DVa+kJVyBNWB3C2+ThclA=; b=MOysOhDFXBQ95FFkhbg70ykxLKuQV+WdFrKeK+LZeOWbkj8OXImb+BX3ZhfAcnQtvk +kZa4KIafo66SgO44zm8WZgyMezbGOVbme382Zhi6QhAQbEEyXdGESigXOQoM4XLN+Yk n9oMYn+2IaPJdvoObVe13TAqqWMPJkn5EGj/c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708341284; x=1708946084; 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=gsmDyzoAGxpVurHPntS4K3DVa+kJVyBNWB3C2+ThclA=; b=nWrGCNaL38qRd7FnkuoLxXDoJBOwV/zlef9EO1L+ZPR35MADdWBLoBUgiYpn2FV8lX aCTxAbSSCX+QiNQyPe0oNBv+uXvUlpNWEZgfpw1E+oSRJ8zzGuBpGoO5xdMtQk2alW/J awj2fCU5VO3q62dnBCRlErjQ7ai5H6msPSazQrsLEAFKLmpHrB2eq/AK0+W1nqVTFDE5 SfLlUFc+dmEd9BZw0RczWPV6oc5JJRkaaqtA+IBQaei6onNAwpz1+ULsTshYOPA8ruvL FG2vZbbXE/m5+N6HKqQmoGNffJV2IGqYFZsOWzc+TsvEjo4z8NS88hXx2tbjVunTAaY1 w7BQ== X-Forwarded-Encrypted: i=1; AJvYcCUXLGP7EBWEEBlTyXfIoO7yTOxM34qLqHUoX4M82g2QaiCx5SoFNTQOKFWN9CUBZmhQWnNsz48PrqiY+aHOloHNwX1xeZq+6n2TYrvMsxbOgXCxFHg= X-Gm-Message-State: AOJu0YzX/sb3QlJ2wYnHES0iUdisKEH6ao+ya2rCy1QE5gSE4YHR75ts bGqD9QDWTUtmDt/bP+CeY7sxa8vQEra6WMCyTEiJgckyRfZ5hNfFTrBkaFv6J/UU/LMaUAe4I8+ dt1QM1BLIM7qUMCwowanmpjtxj8hmrEBgTfLCnbd9ISxMfsQeLy0NnaY4xHUsLDz4Esen1NFnO7 PeZFxMxhYK21gqWTsYB9Xqz8wpc35H5PE= X-Received: by 2002:a17:90a:bb86:b0:299:3eb3:4d41 with SMTP id v6-20020a17090abb8600b002993eb34d41mr4655020pjr.7.1708341283805; Mon, 19 Feb 2024 03:14:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDqEGQhuxXxFJUHYDwzqihQf+NJLM+lMWx31lGoQ48iy/Y2D4yU+kn0eLMzt3TnyjOOH+DQw== X-Received: by 2002:a17:90a:bb86:b0:299:3eb3:4d41 with SMTP id v6-20020a17090abb8600b002993eb34d41mr4655012pjr.7.1708341283429; Mon, 19 Feb 2024 03:14:43 -0800 (PST) Received: from LAP559U.mistral.in ([106.51.69.35]) by smtp.gmail.com with ESMTPSA id cq15-20020a17090af98f00b00299947ed2efsm2343878pjb.2.2024.02.19.03.14.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 03:14:43 -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: [RESEND PATCH V2 1/2] arm64: dts: ti: k3-am69-sk: Enable CAN interfaces for AM69 SK board Date: Mon, 19 Feb 2024 16:44:21 +0530 Message-Id: <20240219111422.171315-2-sabiya.d@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240219111422.171315-1-sabiya.d@ti.com> References: <20240219111422.171315-1-sabiya.d@ti.com> MIME-Version: 1.0 X-BESS-ID: 1708341284-310418-12714-228-1 X-BESS-VER: 2019.1_20240214.1700 X-BESS-Apparent-Source-IP: 209.85.216.72 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUirNy1bSUcovVrIysjSxALIygILJ5hYWxompqW nmyeaGBsmGBikplhZGpsZGKebmaWYmJkq1sQClL9LgQQAAAA== X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.254323 [from cloudscan13-204.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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240219_031447_598939_240DA387 X-CRM114-Status: GOOD ( 12.16 ) 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 | 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 475bcec99bd6..0ff4d1623cf4 100644 --- a/arch/arm64/boot/dts/ti/k3-am69-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts @@ -322,6 +322,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 { @@ -430,6 +455,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 { @@ -526,6 +565,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 { @@ -989,3 +1042,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 Mon Feb 19 11:14:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dasnavis Sabiya X-Patchwork-Id: 13562533 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 41085C54764 for ; Mon, 19 Feb 2024 11:15:19 +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=ql1t0KguYlvKVHo0ehKp4k2Nb6FAq6lUm2BeZmwIgJM=; b=hJTmuhACNGfcsM /Crsv0x4oUJetFFujuTita2ru8GE+JDbrUY6dVKx8oE/NIqrlkULRnJA7dkkFyKiVA11orloyjFbH 8ciZ3tO9udWpa+W4XNPlzCa2CtokpIL4F85ALue9CdiwtrkSoBSpHuo7tzT6/lmqdTqkbqFoyWALf f910RD6C5Kl3OMO4HavrH6+dWvB+UfzJVcwF8x434XCofbQM4JiHm0qBtST3d+Yeb+PD3S+7x/+8r 9v0x233u+mPRPmlwtIAM2Ka/fa/U1rYTVyQubyCIT9ua6+L1AaC6hzT69stf1IM5CPgN3zhn+ry2u H5bRFujBhT2CRsO5HLuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rc1bz-0000000A9zP-1SYd; Mon, 19 Feb 2024 11:15:03 +0000 Received: from egress-ip43a.ess.de.barracuda.com ([18.185.115.202]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rc1bq-0000000A9vz-3KPB for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2024 11:14:56 +0000 Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx-outbound40-178.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 19 Feb 2024 11:14:49 +0000 Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-2993efc802dso1247797a91.1 for ; Mon, 19 Feb 2024 03:14:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mistralsolutions.com; s=google; t=1708341288; x=1708946088; 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=tpdw0KJiz8mlHnSoHzcj3+lieIii8B37Aca6mVzGbBE=; b=osF1Yek1yNgh/dHq0DW/+5pHi6rzdiuJpfu0RpMvjFBIEbyQ5Akmn55gRnMXHe8unM rqbQU6d9nWIrOVr/P33+EUhhTvDviZAHIXOoGUvIYIFRnTormI5W3VpjwIZ2NLeIFFNp kK2YnaelWe4NOonyCsNSL4HqBFyaOsBUuKPqM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708341288; x=1708946088; 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=tpdw0KJiz8mlHnSoHzcj3+lieIii8B37Aca6mVzGbBE=; b=gUz3zRarUT9gEX/QHhRDNkMzqy1JfcVbA68+mrahmcT/VO+38DGnBl9F5okqUcIhjw s0u9SQJHxLY2/3rdq3g+3i5PI6my0xHOVvBYFWmPlBN+MWuWf56We64x8XsTQRGF1bpY +pPjMm2GQpQbZQHHe9EKVflqNjhZNmU4vqJDSdCiEbDDNHQe1nAi7574vnoM7XhREIRQ kFp+qXin9qPwoa1UU8HLy1vXOvTcvbo/YrIrwTbscvw2QyIGQiIo8GlVb26dr0cVz3RE xUiJ7jpzBMRX/vRTCLqH1qKBvpaLrX1XvYn4N6m4VOiVG++hzIFzWScnZGFITsVYx7bd 5fUg== X-Forwarded-Encrypted: i=1; AJvYcCU/YYZgZUgCggI3MQxB39smK/S0NQsZzxa0jyGce+aW7Kp6hWrnyQjZBH3QLcGVVRTFveRptlHCqg9Tf/Gj0ue4sRl0/wQOvesScxA66KHVLqv/ARg= X-Gm-Message-State: AOJu0Yx/PQMPuSxNNJG43T06hlQ59VkgSLQnsVu9CnR0L1NzTPRqFHie V3Mj/68yICXIM+oehBHRaaMdkW1hYvonVWg0GwhESdY/HFPZLK2XN17bfhd/oUqVxcAAg2ReBPH IcUZJ2dD2N1IWTpzxZ0catcb9Tn/RTEFEAzsqmXT/OhV/gGevzek7bo0dqPOgJUipMt8b2lGIeA ug2eG+JQbWC1AK3PTL7f1tXrWZO8HnrHA= X-Received: by 2002:a17:90a:fb51:b0:299:5ebb:1edb with SMTP id iq17-20020a17090afb5100b002995ebb1edbmr2863972pjb.26.1708341288543; Mon, 19 Feb 2024 03:14:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IF27U5miBr3X9K67xhG+3dINjoOqRZbr2/ahKiFk3Rf4DVRe/+rTBu+GJWrEpCYtJIdo47GCg== X-Received: by 2002:a17:90a:fb51:b0:299:5ebb:1edb with SMTP id iq17-20020a17090afb5100b002995ebb1edbmr2863953pjb.26.1708341288243; Mon, 19 Feb 2024 03:14:48 -0800 (PST) Received: from LAP559U.mistral.in ([106.51.69.35]) by smtp.gmail.com with ESMTPSA id cq15-20020a17090af98f00b00299947ed2efsm2343878pjb.2.2024.02.19.03.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 03:14: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: [RESEND PATCH V2 2/2] arm64: dts: ti: k3-am69-sk: Add support for OSPI flash Date: Mon, 19 Feb 2024 16:44:22 +0530 Message-Id: <20240219111422.171315-3-sabiya.d@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240219111422.171315-1-sabiya.d@ti.com> References: <20240219111422.171315-1-sabiya.d@ti.com> MIME-Version: 1.0 X-BESS-ID: 1708341289-310418-12720-233-1 X-BESS-VER: 2019.1_20240214.1700 X-BESS-Apparent-Source-IP: 209.85.216.71 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUirNy1bSUcovVrIysjQxBLIygIKJKYbGFolmlk apSSkmhqkWFuZJFqbmiaapyZampsmpKUq1sQClBPINQQAAAA== X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.254323 [from cloudscan9-28.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.00 BSF_SC0_MISMATCH_TO META: Envelope rcpt doesn't match header 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_BESS_OUTBOUND, BSF_SC0_MISMATCH_TO, NO_REAL_NAME X-BESS-BRTS-Status: 1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240219_031455_016803_673811C5 X-CRM114-Status: GOOD ( 12.18 ) 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 0ff4d1623cf4..acda25a9e814 100644 --- a/arch/arm64/boot/dts/ti/k3-am69-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts @@ -471,6 +471,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 { @@ -1070,3 +1089,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 0x80000>; + }; + + partition@80000 { + label = "ospi.tispl"; + reg = <0x80000 0x200000>; + }; + + partition@280000 { + label = "ospi.u-boot"; + reg = <0x280000 0x400000>; + }; + + partition@680000 { + label = "ospi.env"; + reg = <0x680000 0x40000>; + }; + + partition@6c0000 { + label = "ospi.env.backup"; + reg = <0x6c0000 0x40000>; + }; + + partition@800000 { + label = "ospi.rootfs"; + reg = <0x800000 0x37c0000>; + }; + + partition@3fc0000 { + bootph-pre-ram; + label = "ospi.phypattern"; + reg = <0x3fc0000 0x40000>; + }; + }; + }; +};