Commit graph

13854 commits

Author SHA1 Message Date
Linux Build Service Account
fe643c818e Merge "config: ipq53xx: Tiny-nor support" 2022-07-01 20:18:45 -07:00
Timple Raj M
42da641fc8 config: ipq53xx: Tiny-nor support
Added tiny-nor support for ipq53xx

Change-Id: I1e86031343a165923982a150405c3c416e635ed6
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-07-01 12:43:15 +05:30
Vandhiadevan Karunamoorthy
b8a0869172 board: devsoc: enable i2c support
Change-Id: I78125db95b433857f3c68bdfc9f3d85e2dc91ed0
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-06-30 23:11:41 -07:00
Linux Build Service Account
d3a69cb4c8 Merge "configs: ipq: Update runtime failsafe bits" 2022-06-28 09:42:03 -07:00
Vandhiadevan Karunamoorthy
0b11d84fed board: arm: devsoc: update TZ end address
Change-Id: Ie5560a498db86079d688005ac171602694941d00
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-06-21 05:14:33 -07:00
Ram Kumar D
a95cba141c drivers: net: devsoc: added eth support for devsoc
Change-Id: I4d646c1a89d90febd573ae92980e0c665b1dc060
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-05-31 23:52:34 +05:30
Vandhiadevan Karunamoorthy
6761f6cf0d board: devsoc: Enable reset support
Change-Id: I989316b3f6f663f6b446208cf4054a1757c2161a
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-30 23:03:03 -07:00
Vandhiadevan Karunamoorthy
9f914ab484 board: devsoc: Enable crashdump support
These changes add crashdump support in devsoc platform.

Change-Id: Ifdb9e1e65a4e93407506e987201b4ddeac753927
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-30 23:02:44 -07:00
Anusha Rao
2249c9dcbc configs: ipq: Update runtime failsafe bits
Update the feature to use BIT10 and BIT11 for NONHLOS
and HLOS failure detection instead of BIT9 & BIT10.

Change-Id: Idb649770da0cba63554adce861e901f582637c86
Signed-off-by: Anusha Rao <quic_anusha@quicinc.com>
2022-05-25 21:13:43 +05:30
Selvam Sathappan Periakaruppan
7eaa8ee017 configs: ipq9574: Disable unused configs
This patch disables unused configs to reduce
U-Boot image size. This is required since
the image size was very close to the partition
size.

Change-Id: Ibd3131cb0f579deb3d34aff6857c97ca7338af19
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-05-25 04:08:48 -07:00
Selvam Sathappan Periakaruppan
18d2b93ab3 drivers: net: Add support for QCA8084 PHY
This patch adds initial support for qca8084 PHY
which is based on qca8081 PHY.

qca8084 PHY has support for 4x2.5G.

Change-Id: Ic767c19fad050e5ee9a97ad7fa50c1b6b27893dd
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-05-25 04:08:31 -07:00
Vandhiadevan Karunamoorthy
5837a5e6c6 board: arm: devsoc: Add USB support
This changes enable usb support.

Change-Id: Id75f3dbbe538a99bd4290463ed468b5575491edd
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-22 23:18:23 -07:00
Vandhiadevan Karunamoorthy
e2d76a1c7a board: arm: devsoc: Enable PCIE support
The PCIE node is disabled by default in
the emulation platform

Change-Id: I51041186a57d08b58c1f7c85dd1a90fbeb24aac9
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-19 12:32:40 +05:30
Linux Build Service Account
6ac309e7bd Merge "devsoc: Add dummy handler to fixup the USB device mode" 2022-05-17 12:20:07 -07:00
Ram Kumar D
9b49d9c097 fdt_fixup: Add devsoc nand compatible to fdt fixup
Change-Id: I2d3f0ad48528554ed93c5aa89c25dd8e69a073a3
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-05-17 13:18:41 +05:30
Ram Kumar D
88f81ffced drivers: i2c: qup: add multi I2C support for all IPQ chipsets
This change adds support to enable multiple I2C bus on all IPQ
platforms. Removed the device specific changes and updated in
a generic way to support multiple I2C on all the IPQ platforms.

Change-Id: Ie13dd744c6317fc9245bc88781e79a9fb3621a62
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-05-16 07:46:51 -07:00
Vandhiadevan Karunamoorthy
270d1e7245 board: arm: devsoc: Add eMMC support
This changes add 4-Bit eMMC flash support

Change-Id: Iad789ba44aaa0e11da5f8c16dd0a07d2e80de682
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-10 17:18:31 +05:30
Vandhiadevan Karunamoorthy
6a97589d96 board: arm: devsoc: Add ubi command support
This changes enable UBI command support in
devsoc platform.

Change-Id: I2dade2f7ab232f6ae3f2a800437e1543e6a85909
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-05 23:30:10 -07:00
Vandhiadevan Karunamoorthy
018618939e board: devsoc: enable dcache
This changes enable dcache enable and disable support
and also enable dcache command.

Change-Id: I7a11a923c1f87168e9cb519c5dedfcfac2dbc610
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-04-26 05:03:41 -07:00
Vandhiadevan Karunamoorthy
9f81944daa board: devsoc: enable QSPI NAND
Change-Id: Ibfaea936f2e611b31f3fa0946b8fc0fac08cb1be
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-04-24 22:10:48 -07:00
Linux Build Service Account
02e2a47f7a Merge "usb: Change power-on / scanning timeout handling" 2022-04-12 08:37:47 -07:00
Stefan Roese
83713024eb usb: Change power-on / scanning timeout handling
This patch changes the USB port scanning procedure and timeout
handling in the following ways:

a)
The power-on delay in usb_hub_power_on() is now reduced to a value of
max(100ms, "hub->desc.bPwrOn2PwrGood * 2"). The code does not wait
using mdelay, instead usb_hub_power_on() will wait before querying
the device in the scanning loop later. The total timeout for this
hub, which is 1 second + "hub->desc.bPwrOn2PwrGood * 2" is calculated
and will be used in the following per-port scanning loop as the timeout
to detect active USB devices on this hub.

b)
Don't delay the minimum delay (for power to stabilize) in
usb_hub_power_on(). Instead skip querying these devices in the scannig
loop until the delay time is reached.

c)
The ports are now scanned in a quasi parallel way. The current code did
wait for each (unconnected) port to reach its timeout and only then
continue with the next port. This patch now changes this to scan all
ports of all USB hubs quasi simultaneously. For this, all ports are added
to a scanning list. This list is scanned until all ports are ready
by either a) reaching the connection timeout (calculated earlier), or
by b) detecting a USB device. This results in a faster USB scan time as
the recursive scanning of USB hubs connected to the hub that's currently
being scanned will start earlier.

One small functional change to the original code is, that ports with
overcurrent detection will now get rescanned multiple times
(PORT_OVERCURRENT_MAX_SCAN_COUNT).

Without this patch:
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 9 USB Device(s) found

time: 20.163 seconds

With this patch:
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 9 USB Device(s) found

time: 1.822 seconds

So ~18.3 seconds of USB scanning time reduction.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
(cherry picked from commit c998da0d67)
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>

Change-Id: I520082122370dda5b1de63c2ebee0f9a63fdef92
2022-04-08 16:46:26 +05:30
Selvam Sathappan Periakaruppan
e33184de89 aes: Add aes 256 support for ipq9574 platform
ipq9574 is a TME-L based platform in which before
encrypt/decrypt, we are required to derive a key
handle.

This patch adds support for the same.

Change-Id: I583cee87607af2ab6461b429830cb8ff43cc44d4
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-04-06 07:55:50 -07:00
Linux Build Service Account
618a4ff035 Merge "configs: ipq9574: Enable CONFIG_FLASH_PROTECT" 2022-03-31 05:11:01 -07:00
Anusha Rao
9c14def3e8 configs: ipq9574: Enable CONFIG_FLASH_PROTECT
This config is needed to enable mmc protection
based on gpt readonly attribute.

Usecase:
1. In emmc partition xml, set readonly attribute
   of a partition to true.
2. Generate partition bin, flash and reboot.
3. From uboot, read & write the partition.
4. Write should not go through. Crc32 checksum of
   the content before & after write should match.

Change-Id: I1b5b4593d99d0ddab4d37b29c3669a4c805e80ea
Signed-off-by: Anusha Rao <quic_anusha@quicinc.com>
2022-03-30 22:36:58 -07:00
Selvam Sathappan Periakaruppan
258a568873 Revert "configs: ipq9574: Remove CONFIG_TFTP_BLOCKSIZE config"
This reverts commit 2b85a9c89a.

Change-Id: I138b7a0a11528503f4c88a8364a4670b27a1afdb
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-29 19:19:31 +05:30
Ram Kumar D
90bab1a3a9 qca: arm: devsoc: add SPI support on devsoc
Change-Id: Ic71e46d9ee95ddfda1831a9b0a0a54316fbb9d9e
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-03-25 16:24:15 +05:30
Vandhiadevan Karunamoorthy
2e8afabbcb qca: arm: devsoc: add support for devsoc
This changes add support for uboot base files.

Change-Id: I5f4b937dec30a27ec6acce6ceada7fbed5d5a41d
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-03-20 23:02:17 -07:00
Selvam Sathappan Periakaruppan
2b85a9c89a configs: ipq9574: Remove CONFIG_TFTP_BLOCKSIZE config
Removing this config will configure the tftp block
size to default value of 1468 + headers which is the
same as in other platforms.

Change-Id: If0b49217e5d2548be203a1a7da4000cd5f2e5dcb
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-17 20:41:55 -07:00
Vandhiadevan Karunamoorthy
0d2d8dc299 ipq5018: add CONFIG_QSPI_LAYOUT_SWITCH support
This changes enables the QSPI_LAYOUT_SWITCH config
which is required for QSPI nand 4k support.
Since SBL must be flashed in 2K layout to support
QSPI Nand-4K, this dynamic switch is required.

Change-Id: I95a68ec9238dd83306322bc57cf93b162e3179f5
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-02-15 05:35:19 -08:00
mario.six@gdsys.cc
301ea68621 dm: Add callback to modify the device tree
Certain boards come in different variations by way of utilizing daughter
boards, for example. These boards might contain additional chips, which
are added to the main board's busses, e.g. I2C.

The device tree support for such boards would either, quite naturally,
employ the overlay mechanism to add such chips to the tree, or would use
one large default device tree, and delete the devices that are actually
not present.

Regardless of approach, even on the U-Boot level, a modification of the
device tree is a prerequisite to have such modular families of boards
supported properly.

Therefore, we add an option to make the U-Boot device tree (the actual
copy later used by the driver model) writeable, and add a callback
method that allows boards to modify the device tree at an early stage,
at which, hopefully, also the application of device tree overlays will
be possible.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Stefan Roese <sr@denx.de>
(cherry picked from commit 2a792753d6)
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>

Change-Id: I9a5fe4c6d681aaa5c68edd8a2a39d36bf2340fdf
2022-01-10 17:48:07 -08:00
anusha
369ce9f09b ipq: Add support for failsafe boot
Add failsafe boot support to recover from system hang.

Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: I49e28a4e88aa16e564065d06f8701dc4f6cb3555
2022-01-03 21:05:45 -08:00
Selvam Sathappan Periakaruppan
8bf3539016 Revert "drivers: net: ipq9574: Update network config"
This reverts commit ac52f93c49.

Change-Id: I4177af51cf3a38204181069ff027225f4fdc78bc
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-15 01:10:01 +05:30
Selvam Sathappan Periakaruppan
ac52f93c49 drivers: net: ipq9574: Update network config
This patch updates the following:

1) Remove ACL configurations
2) Reduce packet size to 1024 bytes

Change-Id: I94c0024fc8efeea12fc2742bbf9b4c3d0907d0ed
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-08 01:03:01 -08:00
Linux Build Service Account
bcf5b57166 Merge "ipq: spi: add multiple spi support" 2021-11-22 01:26:28 -08:00
Rajkumar Ayyasamy
cb1e4ebe62 ipq: spi: add multiple spi support
Added read & write bam pipe entires in all the ipq specific dtsi.
Also, updated the spi bam code with generic code changes to enable
the multiple spi support on all ipq chipsets.

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Signed-off-by: Ram Kumar D <ramd@codeaurora.org>
Change-Id: Ibcdb9d2a9ff7a25f3d296ecdb1aca403511e07d7
2021-11-19 12:26:31 +05:30
Linux Build Service Account
2fb57de7a2 Merge "mtd: qpic_nand: add support to switch between 2K & 4K layout" 2021-11-15 21:38:18 -08:00
Kavin A
869166da30 configs: ipq9574: Update TLV buffer offset
In IPQ9574, TZ adds base addr + 300K(TMEL ctxt size) and stores this addr in imem.
Updated TLV_BUF_OFFSET to subtract TMEL offset from base addr.

Change-Id: I54ea5be4133f2c0435ecaabff392b20c67ec5d48
Signed-off-by: Kavin A <kavia@codeaurora.org>
2021-10-28 18:10:22 +05:30
Rajkumar Ayyasamy
0dc8c1c7a6 mtd: qpic_nand: add support to switch between 2K & 4K layout
qpic_nand sbl -> to switch to 2K layout
qpic_nand linux -> to switch back to 4K layout

Currently this switch is enabled for IPQ9574

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
(cherry picked from commit c9a1c10b2e35ba8f14dafc1f4c07aa5a07a01541)
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>

Change-Id: I3e429b8cd5e600b4214c01d7949c01536f988e47
2021-10-22 19:23:10 +05:30
Kavin A
6f06467cda configs: ipq9574: Update TLV buffer offset
The crashdump memory allocation in kernel context save driver is
updated for ipq9574 as below. Due to this, TLV offset is changed to 500K.
1. TMEL ctxt - 300K
2. regsave    - 80K
3. DCC - 3K
4. Unused - 117K
5. TLV Buffer - 12K

Change-Id: I25cdce6be90ce2d2b7ab6b6c01976d5a061074e9
Signed-off-by: Kavin A <kavia@codeaurora.org>
2021-10-04 23:27:02 -07:00
Vandhiadevan Karunamoorthy
f1fc6e4c71 ipq9574: Pass HLOS partition info to TZ
Include SCM call to inform TZ whether HLOS boots from
primary or secondary partition

Change-Id: Ib1fa2b3c12762d1deed5b99f025c83870c142fa6
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-09-20 18:14:23 +05:30
Linux Build Service Account
a6c288098a Merge remote-tracking branch origin/win.coretech.1.0 into HEAD
Change-Id: I20c0dcf584bce3ac488c28fd3dc107c7f5766867
2021-09-06 10:44:52 +05:30
Prasanna Kumar Thoorvas Samyrao Muralidharan
a4d1532bfb ipq807x: Patch x65 GPIO details based on env
Change-Id: I15464aea8696880086b1cb2bfa52e65964ecd297
Signed-off-by: Prasanna Kumar Thoorvas Samyrao Muralidharan <ptsm@codeaurora.org>
2021-08-31 20:29:48 +05:30
Vandhiadevan Karunamoorthy
24a501d710 ipq9574: Add compressed dtb support
This change enable compressed dtb support for memory
optimization.

Change-Id: I692b4cbfe339910c9bb67da6bb442ba01b3a177e
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-19 09:38:22 -07:00
Selvam Sathappan Periakaruppan
4f92f7e93e drivers: net: ipq9574: Update Eth configurations
This patch updates the following:

1) Removes unnecessary TIMER and THRESHOLD configurations in EDMA
2) Adds Uniphy Clock deinit and init in eth_init (during each ping
& speed change)
3) Removes preheader configurations and calculations from EDMA
as there are no preheaders in ipq9574 platform (Instead there is
a secondary descriptor)
4) Add sufficient delay after uniphy reset
5) Remove CONFIG_IPQ9574_RUMI macro from network drivers
6) Change default mac_speed to 0
7) Fix the ppe sched. and tdm configuration
8) Reduce the block size to 1280 + headers for tftp (around 1326)
for timebeing without which timeouts were observed randomly during
TFTP (Note that the MTU is 1514 bytes)

Change-Id: I4004adfb2ae0dc98d65e458c15dafcff6523744b
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-11 10:28:21 -07:00
Selvam Sathappan Periakaruppan
2f9a2d758d configs: ipq9574: Move net driver macros inside config
Change-Id: I2e25110e2bdcd31e0b60a228766a82f1433709dd
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-01 04:13:26 -07:00
Selvam Sathappan Periakaruppan
a9cb2ebd77 configs: ipq9574: Disable CONFIG_IPQ9574_RUMI
This patch removes RUMI flag which will enable the
PHY, clock, reset, etc. needed for RDPs.

Change-Id: I5459281967cacb6362c5be846ccc377b7ce5ef3d
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-26 09:21:11 -07:00
Selvam Sathappan Periakaruppan
a4265a9649 Revert "ipq9574: Disable ethernet support"
This reverts commit 43dae58f78.

Change-Id: I171e84ebb0ec1d89248fc9b12f281d282f354627
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-26 09:20:50 -07:00
Selvam Sathappan Periakaruppan
43dae58f78 ipq9574: Disable ethernet support
This patch will be reverted post SoD.

Change-Id: I71251b61a13b18db63793cad7802b9a509bdae3f
Signed-off-by: Selvam Sathappan Periakaruppan
2021-07-20 09:11:12 -07:00
Selvam Sathappan Periakaruppan
5fa59be07c ipq9574: Update QCA PHY name
This patch updates the QCA PHY names and its references
accordingly.

Change-Id: I5d301fcecc49793387a50487bf2e713a5a9288e8
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-19 15:46:15 +05:30