Commit graph

9931 commits

Author SHA1 Message Date
Linux Build Service Account
c94d1ac518 Merge "ipq: crashdump: Support for prefix while storing crashdump" 2023-01-23 23:01:17 -08:00
Vandhiadevan Karunamoorthy
f3b375939f board: ipq5332: skip cap in & cap out in recovery
Change-Id: I91b7c5520a67ba7f5265d3a600452439682608b8
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-01-20 17:51:26 +05:30
Linux Build Service Account
519a9280be Merge "ipq9574: Drive PCIe GPIOs to Low in deinit" 2023-01-18 05:21:42 -08:00
Saahil Tomar
664fabb120 ipq: crashdump: Support for prefix while storing crashdump
With this change, Add option to support
prefixing crash dump files with timestamp prefix

Change-Id: I30343e6d7dc58376264dd34a4a3cd25bb34e65c6
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-01-18 16:16:49 +05:30
Gurumoorthy Santhakumar
092065500b ipq5332: Added support to apply caldata in u-boot
This change will read calibration data from the 0:ART partition and
apply it to the appropriate registers.

Change-Id: Ic9360c0fce229c1d1867ee897b811abc56d2b1c7
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-01-13 15:42:51 +05:30
Praveenkumar I
de6ff2e382 ipq9574: Drive PCIe GPIOs to Low in deinit
Change-Id: I0a2d02f7cd712d3d52082903fd352708c58c6e88
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2023-01-09 18:56:48 +05:30
Vandhiadevan Karunamoorthy
9f006f0905 board: ipq5332: Enable MI03.1 ethernet
Change-Id: Iaa9320daabfc290b7bf02b8ce303d0ff34a11407
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-01-04 09:30:15 +05:30
Linux Build Service Account
5287b8e49c Merge "board: qca: arm: ipq5332: Enable gcc_blsp1_ahb_clk" 2022-12-27 06:47:57 -08:00
Timple Raj M
a7dcdb2f7c board: qca: arm: ipq5332: Enable gcc_blsp1_ahb_clk
When xbl logs are disabled no logs came in uart console
due to gcc_blsp1_ahb_clk in disabled state.
This patch enables gcc_blsp1_ahb_clk in u-boot to avoid this issue.

Change-Id: I161b003096544e54d3d230027c2665e8fa3d0f5e
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-12-26 16:16:05 +05:30
Vandhiadevan Karunamoorthy
607861584c qca: arm: common: skip ethernet from bootipq
The main loop contains an eth init sequence,
to achieve this, remove the eth init sequence
from bootipq.avoid reinitialization.
Support for the IPQ5332 SoC has been added.

Change-Id: I18406dc90ba6845ce367215a55794ba5e400d5d3
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-12-23 01:08:40 -08:00
Gurumoorthy Santhakumar
1ee172f386 board & drivers: ipq5332: Improved TFTP performance
modified TDM registers and
added reset for following
 NSS_CC_PPE_BCR
 GCC_UNIPHY0_BCR
 GCC_UNIPHY1_BCR

Change-Id: I5fb8c6dfc4f54346f9e12251dfe3028327d43e3b
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-12-20 01:13:22 -08:00
Saahil Tomar
8f84d51777 arm64: dts: ipq9574: Add AL02-C9 dts file
This change creates Al02-c9 dts file to help with pci enumeration

Change-Id: I9a743de8ebbdc3f4ee43c14204ab1244e8945a12
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2022-12-16 11:09:59 +05:30
Linux Build Service Account
3cdd8dd47a Merge "board: qca: arm: ipq5332: remove the flash detection code in fdtfixup" 2022-12-02 10:16:56 -08:00
Linux Build Service Account
751a5ba458 Merge "arm: dts: ipq5332: Enabled i2c usb and pci" 2022-12-01 12:15:14 -08:00
Timple Raj M
91f1de582f board: qca: arm: ipq5332: remove the flash detection code in fdtfixup
This patch removes the flash detection code in fdtfixup as it will be
taken care based on the boot flash type

Reference Commit:
425d52cd85 (avoid multiple machid for nand/mmc boot)

Change-Id: I51739ae539a568a1480a26fb9143be01306ce39a
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-12-01 10:07:06 -08:00
Vandhiadevan Karunamoorthy
7d48be48a1 board: ipq5332: Update AQ ethernet config
This changes include, update reset sequence
increase heap region, add mdio RW version
for 3.15M Clk

Change-Id: I85ec0632ced1543aa1cca880fd00e47800ddecfd
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-30 05:56:10 -08:00
Timple Raj M
a2fbc4b3bc arm: dts: ipq5332: Enabled i2c usb and pci
This patch enables i2c usb and pci in AP-MI01.2 and AP-MI01.4.

Change-Id: I4f09485fcbad4247aa75676cb72dc4345405fdfc
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-11-30 11:40:35 +05:30
Linux Build Service Account
24f263d138 Merge "board: ipq5332: remove rumi flags." 2022-11-29 04:49:54 -08:00
Linux Build Service Account
89dac730c3 Merge "ipq5332: update clock for ethernet" 2022-11-28 14:00:15 -08:00
Vandhiadevan Karunamoorthy
c77f44b731 board: ipq5332: remove rumi flags.
Change-Id: I84ae7f2c6e8852c879aebc3538a8782c5b335d28
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-28 14:46:13 +05:30
Vandhiadevan Karunamoorthy
06b6fcd3e9 dts: ipq5332: update MDIO gpio configuration
Change-Id: I96c431876fe66e3e08fcb52a9ed210cbe2d585af
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-28 11:51:47 +05:30
Linux Build Service Account
6c139c94d7 Merge "ipq5332: Update reset seq & MDIO clk for MHT" 2022-11-26 07:01:38 -08:00
Timple Raj M
5b941d0f31 arm: dts: ipq5332: Enable support for USB
This patch enables support for USB 2.0 in AP-MI01.2

Change-Id: I4f848a403f3aae45a9f1cfa136781fbc7a37c35a
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-11-25 20:36:47 +05:30
Timple Raj M
a148c9c8e4 arm: dts: ipq5332: update pcie aux clock source as xo
The pcie AUX clock source changed to XO as per
GCC frequency plan

Change-Id: If032831d3a9523ec214a62cbed2950ee5839920e
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-11-25 04:21:07 -08:00
Linux Build Service Account
225da6a4d8 Merge "ipq5332: eth: add uniphy clock init" 2022-11-24 16:14:38 -08:00
Linux Build Service Account
0b52771099 Merge "ipq5332: clock: fix mmc clock" 2022-11-24 06:27:42 -08:00
Rajkumar Ayyasamy
9e5d35536e ipq5332: eth: add uniphy clock init
Change-Id: I7c74995086a102bda09494b2f12dcd111a8113fa
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-11-24 02:38:46 -08:00
Rajkumar Ayyasamy
425d52cd85 ipq5332: avoid multiple machid for nand/mmc boot
added boot type based nand or emmc flash selection.
So machid based flash selection becomes obsolete.

Change-Id: I96fa43d31d23397fa249e02f62b905d6e4e67770
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-11-22 22:01:56 -08:00
Rajkumar Ayyasamy
685719ec0f ipq5332: clock: fix mmc clock
For 192MHz:
       GCC_SDCC1_APPS_CFG_RCGR(0x1833008)  set to 0x220b
       GCC_SDCC1_APPS_M(0x183300c) set to 0x0
       GCC_SDCC1_APPS_N(0X1833010) set to 0x0
       GCC_SDCC1_APPS_D(0x1833014) set to 0x0

Change-Id: I2715b4428e4390f0b9b0b159e984a718d6c791a3
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-11-22 00:23:06 -08:00
Vandhiadevan Karunamoorthy
564c1b6cba ipq5332: update clock for ethernet
Change-Id: Id95f46bcf1d67180fb02587ff008be873dc90eea
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-19 20:51:19 -08:00
Vandhiadevan Karunamoorthy
a2076a35ce ipq5332: Update reset seq & MDIO clk for MHT
Change-Id: I4ef6b84348289caf26768286b57252de88f8b3cc
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-19 20:51:00 -08:00
Timple Raj M
4ef07f6b1a board: qca: arm: ipq5332: fdt fixup for flash
This patch adds support to enable flash using machid

Change-Id: I745a941d4219dc4cd29be96876710e15185ecb8f
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-11-19 23:15:19 +05:30
Gokul Sriram Palanisamy
60b84b15e8 ipq: Remove runtime failsafe feature
Runtime failsafe feature is obsolete.
So reverting the same.

Change-Id: I2d3585bf756e3c717461ea5411b4d3fbb8659916
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2022-11-15 22:20:47 -08:00
Vandhiadevan Karunamoorthy
8fe934032c board: ipq5332: update ethernet configuration
This changes includes update the Speed clock,
common clock update and dts nodes.

Change-Id: I673e8ccf191048fef966a8f6cd84858e1a3b824f
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-12 07:14:17 -08:00
Vandhiadevan Karunamoorthy
659e333c11 board: ipq5332: update usb clock configuration
Change-Id: Ic8a1f017f5198c1136281be4eb5f7191627ff55f
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-12 07:13:19 -08:00
Linux Build Service Account
298a2f5e2e Merge "drivers: net: ipq5018: Add SFP 1G and 2.5G Support" 2022-11-08 04:39:37 -08:00
Linux Build Service Account
023055e1bc Merge "board: arm: ipq5332: Modified ethernet clock" 2022-11-08 04:39:36 -08:00
Linux Build Service Account
cbf958337d Merge "board: arm: ipq5332: Modified PCIE and USB0 clock" 2022-11-08 04:39:35 -08:00
Gokul Sriram Palanisamy
d820c5abbc drivers: net: ipq5018: Add SFP 1G and 2.5G Support
Only one SFP port can be enabled at time with
either SGMII or SGMII PLUS mode.

Mode shall be specified from dts for 1G or 2.5G
support respectively. Add below change to enable
SFP as this change is not mainlined.

gmac_cfg {
	gmac2_cfg {
		unit = <1>;
		base = <0x39D00000>;

-		phy_address = <0x1c>;
-		napa_gpio = <39>;
		/*
		 * 6 - SGMII_PLUS (2.5G),
		 * 8 - SGMII_FIBER (1G)
		 */
+               switch_mac_mode = <8>;
+               sfp_tx_gpio = <27>;
+               sfp_rx_gpio = <29>;
	};
};

Change-Id: I507be2b84b1f932802659abffa3288e304e0d411
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2022-11-07 18:26:58 -08:00
Linux Build Service Account
d4fab50cef Merge "arm: qca: Add support to set CRASHDUMP RESET bit" 2022-11-06 21:17:01 -08:00
Gurumoorthy Santhakumar
ba25e2c425 board: arm: ipq5332: Modified ethernet clock
removed GCC_PCNOC_BFDCD_CFG_RCGR register config

Change-Id: I76cd0e9cb96215e4ee432fff7ccb58dd9f290c8f
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-11-07 10:14:29 +05:30
Gurumoorthy Santhakumar
b19f9122b6 board: arm: ipq5332: Modified PCIE and USB0 clock
updated following registers
GCC_PCIE_AUX_CFG_RCGR
GCC_PCIE3X2_AXI_M_CFG_RCGR
GCC_USB0_AUX_CFG_RCGR

Change-Id: Iddff13b1d4be8494142667ba758fda15d9ba9858
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-11-07 10:08:07 +05:30
devi priya
9184c7a019 board: qca: arm: Removal of the dumpinfo_s structure
This patch removes the support for dumpinfo_s structure to have
uniform EBICS0 bin for both sec and non-sec boots as the Read As Zero
(RAZ) flag has been enabled to protect code and data regions of TZ

The patchset applies to all the targets except IPQ5018 as the RAZ
flag enablement was not supported in IPQ5018

Change-Id: I63514284448de08926cd2c9b741f02859067044d
Signed-off-by: devi priya <quic_devipriy@quicinc.com>
2022-11-03 23:17:17 -07:00
Gurumoorthy Santhakumar
0d9961e519 arm: qca: Add support to set CRASHDUMP RESET bit
The CRASHDUMP RESET bit of TCSR_BOOT_MISC_DETECT Register
has to be set before reset from u-boot in the
crashdump collection path for TZ to differentiate between the
normal reset and crashdump reset from u-boot and
to retain the crash reason.

Change-Id: Ib623bfeab15d1bc230f4a8824218f1a3c4368fbb
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-11-04 10:38:00 +05:30
Rajkumar Ayyasamy
11a742f785 ipq5018: bt: Toggle ECO bit in start/stop sequence
Add support for ECO bit toggle during IPC start/stop
messages to allow BT subsystem to do self reset

Change-Id: I4d1d31a43ea8a002eb91cc42300677339c117d71
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-10-30 22:52:19 -07:00
Vandhiadevan Karunamoorthy
bc5f3cca5a board: arm: ipq5332: update ethernet configuration
Change-Id: If66707a68ddf5681016acd95332d4056b31fb3fc
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-10-25 23:38:48 -07:00
Vandhiadevan Karunamoorthy
e3b2150af9 board: arm: ipq5332: update ethernet clock config
Change-Id: I3354354c7cffcb3107293efc54834c5d87556518
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-10-25 23:38:31 -07:00
Linux Build Service Account
942cca269f Merge "board: arm: ipq5332: update eMMC clock sequence" 2022-10-21 00:31:50 -07:00
Gokul Sriram Palanisamy
32248d4fab arm: qca: scm: Cleanup TCSR_BOOT_MISC_REG usage
TCSR_BOOT_MISC_REG bits are not properly managed
for DLOAD implementation. Modify only necessary
bits to enable availability for new feature
implementations using TCSR_BOOT_MISC_REG.

Change-Id: I888a1bf6ce3654b0453c9ec2f87b4d5ff2a20de0
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2022-10-20 11:03:39 +05:30
Vandhiadevan Karunamoorthy
c0acbfa54a board: arm: ipq5332: update eMMC clock sequence
Change-Id: Icadbf580d71cf672ff78961ed12a53c9e0bccf4f
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-10-19 05:10:42 -07:00