Commit graph

36544 commits

Author SHA1 Message Date
Linux Build Service Account
27ebbe15c7 Merge "ipq5018: Add BT beaconing support" 2020-11-25 16:09:26 -08:00
Rajkumar Ayyasamy
2343ff363f ipq5018: Add BT beaconing support
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: Ibe8dc716d0f4bafbbf1ec7f3b776bb4a6f891f45
2020-11-25 12:49:07 +05:30
Rajkumar Ayyasamy
5f474cadf3 ipq5018: add BT IPC over shared memory driver
https://source.codeaurora.org/quic/qsdk/oss/kernel/linux-msm/tree/drivers/soc/qcom/bt?h=win.coretech.1.0

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: If52b52ebe8774063f52f7b597991fbb562526db6
2020-11-24 22:48:24 -08:00
Karthick Shanmugham
35fb2435e2 ipq: Removed usb_init during board recovery flow
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: Ib8dd62084d82477eb9bebcaa33a7b134c41d9afc
2020-11-23 08:12:26 -08:00
Linux Build Service Account
2e249ffd6b Merge "ipq5018: dts: Update TB-MP04 device tree" 2020-11-20 14:08:03 -08:00
Linux Build Service Account
e4d92f922c Merge "ipq5018: dts: Update MP03.4 device tree" 2020-11-20 12:09:50 -08:00
Pavithra Palanisamy
cb7d4f966d ipq5018: dts: Update TB-MP04 device tree
TB-MP04 baord is based on MP03.3 RDP.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I06ee9973bc7db73e49174cc820c5d2385e1ca943
2020-11-19 20:28:51 +05:30
Pavithra Palanisamy
007a5446e8 ipq5018: dts: Update MP03.4 device tree
MP03.4-C1 and MP03.4-C2 RDPs are based on MP03.3 and
MP03.3-C2 respectively.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I016eb422f3628e1a7733d71754613b2fa51245f1
2020-11-19 20:23:21 +05:30
Rajkumar Ayyasamy
940366ed72 tools: pack: make rootfs_data optional
rootfs_data partition is not required with the
latest fs tools OpenWRT package as the logical volume
inside the rootfs partition will be used for overlay
and it is removed from the parttion table. So making it
as optional

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: Ia5489b714833548fd7f1aa4491c61eb70efdfdfa
2020-11-18 23:37:59 -08:00
Pavithra Palanisamy
d6dd5e226b ipq5018: dts: Add support for TB-MP04 RDP
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I8e048ecfea8c1b32db382b663a6ca54198b31607
2020-11-18 00:04:36 -08:00
Pavithra Palanisamy
63891397f5 ipq5018: dts: Add support for MP03.4-C1/C2 RDPs
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Iee9d3663a0232a40e6791dc925a5d0a4805155c5
2020-11-18 00:03:30 -08:00
Md Sadre Alam
3cf90dc5c7 driver: nand: qpic: Fix memory leak problem in serial training.
This change will fix memory leak problem in serial training.

For serial tarining we are allocating memory to hold the training
pattern buf. For any failure we are freeing the buffer but due to
wrong lavel used memory was not getting freed due to this memory leak
problem is happening.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I35ffd27df9b24ea53aed9e9f0623d8890ba66f06
2020-11-16 04:50:33 -08:00
Vandhiadevan Karunamoorthy
9f5a786d58 dts: ipq50xx: Add MP03.1-C3 RDP
This RDP is the combination of MP03.1 + NAPA.
This RDP support Nor & nand flash.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia39cdf8ae21ad9800ee1c00c7af44c9bc1af03dc
2020-11-05 22:19:27 -08:00
Vandhiadevan Karunamoorthy
c33fb86ed0 dts: ipq50xx: Enable MP03.5 RDP build
This changes add Machid , USB Power gpio and enable build support.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I99e2da23f54da4d5e4edc9312f08340b88f7c59a
2020-11-04 11:53:11 +05:30
Vandhiadevan Karunamoorthy
e3ccad69cf dts: ipq5018: Add MP03.5 RDP
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ica56c52ee16051b0b9d13bbb68c5cd90e27e7cb3
2020-11-04 11:48:25 +05:30
Pavithra Palanisamy
f59f46b51d ipq5018: Flash wififw image specific to the RDP
This change adds support to pack different wifi firmware
images as listed in XML into single-images and flash wififw
image based on machid mapped with 'wififw_type' attribute
in config XML.

The partition XML files are generic flash layouts to be used
for any SP, so it contains wififw names for default(internal),
QCN9000 and QCN9100 supported SPs.

- For QCN9100 support, specify "--qcn9100" argument for
  LM256/LM512 profile builds.

- For 16M builds, the argument is not required as packing and
  flashing is based on image availability in ipq/ directory.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I3e8dac6c0f916eeb0b4c7b5ffa04afcdab8821b9
2020-10-30 06:37:53 -07:00
Linux Build Service Account
ea3e33a8e2 Merge "ipq5018: Add pull up gpio for usb pwr in MP03 RDP" 2020-10-29 08:06:42 -07:00
Pavithra Palanisamy
b4d08cf1e8 pack: ipq5018: Add SOC HW version ID of 1.1 chip
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I44cc627fb5b6869a01d5ac369dd98b13f78090ca
2020-10-26 14:14:58 +05:30
Vandhiadevan Karunamoorthy
0ee364d5ed ipq5018: Add pull up gpio for usb pwr in MP03 RDP
This changes enable pull up to drive 5V to usb
in MP03 RDP

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I43c2098c75f23a38bab221773c1dcce7c754cf39
2020-10-24 20:49:06 +05:30
Linux Build Service Account
b7e5f67e98 Merge "dts: ipq50xx: Update spi-nor gpio DRV_STRENGTH." 2020-10-24 01:06:06 -07:00
Vandhiadevan Karunamoorthy
3fc5e5d54d dts: ipq50xx: Update spi-nor gpio DRV_STRENGTH.
This changes reduce spi-nor drv_strength from 8mA to 2mA.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ib21e8229fff3ce81f5da29edfb978cbe1fdc833b
2020-10-23 13:56:09 +05:30
Vandhiadevan Karunamoorthy
7fff6b863d ipq5018: update ethernet initialization sequence
This change make the qca_8337 switch initialization generic based on
dts irrespective of gmac controller.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I292992307ead2cd7bbb0763ff483dc16c266d417
2020-10-22 12:13:32 +05:30
Linux Build Service Account
e83a9121f5 Merge "qpic-nand: Serial training: Fix for Access violation" 2020-10-16 04:07:12 -07:00
Vandhiadevan Karunamoorthy
413d029cab qpic-nand: Serial training: Fix for Access violation
This change fix Access violation created by APPS
master by accessing QPIC_XPU issue due to accessing
QPIC_QSPI_MSTR_CONFIG & QPIC_NAND_FLASH_SPI_CFG registers

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ibb840db12359eea01823dd7732fcb1ac1e7b8967
2020-10-14 18:19:07 +05:30
Vandhiadevan Karunamoorthy
7cc905582f ipq5018: Add compressed crash dump support
This features not support in tiny nor profile,
since no CONFIG_GZIP lib support

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia6321e60f5451e60193804ef2dba22ea493b435c
2020-10-09 14:35:21 +05:30
Linux Build Service Account
aa06238303 Merge "dts: ipq5018: modify MP03.6 to MP03.6-C1" 2020-10-06 10:06:49 -07:00
Linux Build Service Account
61db3ec2dd Merge "boot: skip secure boot if atf is present." 2020-10-06 04:30:33 -07:00
Vandhiadevan Karunamoorthy
1affd87bb6 dts: ipq5018: modify MP03.6 to MP03.6-C1
This changes update mp03.6 config name.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I16b68bae3939848102c52152604e2a25807683cf
2020-10-06 15:40:24 +05:30
Vandhiadevan Karunamoorthy
2f134cac29 dts: ipq5018: Add MP03.6 RDP
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Id0e7cffd0d996cf9629f2aa3e10ec7ed579cb62e
2020-10-01 13:45:54 +05:30
Linux Build Service Account
a916a1687a Merge "driver: nand: qpic_nand: Fix Erase address configuration." 2020-09-30 13:37:23 -07:00
Kathiravan T
a02eee0405 configs: ipq807x: enable the LZMA decompressor
Linux-5.4 images are compressed with LZMA. So enable the decompressor
support for the same.

Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
Change-Id: I537c238fbab182e78e307ecb95bd47c0c9f9e8f5
2020-09-30 15:33:36 +05:30
Md Sadre Alam
43b1d16567 driver: nand: qpic_nand: Fix Erase address configuration.
This change will fix erase address configuration for QSPI
nand devices whose density is beyond 128MiB.

To erase a block as per datasheet of serial nand device
page row address <5:0> and the Block row address <16:6>.

In code we are forming directly pages address starting
from <16:0> i.e 17-bit address. Currently we are configuring
address_0 and address_1 register as follws.

addr0 = (page << 16) and addr1 = 0x0;

This logic will work if device size upto 128MiB, but if device
size beyond 128MiB then this logic will fail becasue upper most bit
will go out of add0 register.

Fixing this by changing address configuration logic for erase block.

addr0 = (page << 16) addr1 = (page >> 16) & 0xffff;

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I4950bb611780257629491ffbb42c91fcfedebc58
2020-09-30 14:17:08 +05:30
Linux Build Service Account
d0a7c9bed8 Merge "ipq: Handled unaligned data written in nand flash while dump collection" 2020-09-24 06:36:59 -07:00
Karthick Shanmugham
59d79e1661 ipq: Handled unaligned data written in nand flash while dump collection
During dump collection, when dump_to_flash enabled, nand erases are skipped
due to unaligned written. This changes handles that and write after erasing

Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: Idfc6b3a0596a5ddb5c7e0b0da5c7bcb2751769b8
2020-09-24 13:10:23 +05:30
Vandhiadevan Karunamoorthy
43d228de80 Revert "ipq5018: Add memory size fixup"
This reverts commit ef050e1c51.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I0e3b25a34799e59ad899e77c7dbeea52940273d5
2020-09-23 12:51:21 +05:30
Karthick Shanmugham
7635ecacd3 ipq50xx: Added support for compressed dtb in u-boot
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: If56b282b02cf621fa220d7f8cc6f2ddfe85bb212
2020-09-16 00:01:29 -07:00
Linux Build Service Account
9648ab1374 Merge "ipq: fdt_fixup: add support to add / edit array of values" 2020-09-15 10:36:28 -07:00
Vandhiadevan Karunamoorthy
c143b7e576 boot: skip secure boot if atf is present.
This change skip kernel signing validation and proceed with
unsigned boot path only if atf set in env.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I01728c754eb1a7514e7206056385a55e0ba192c7
2020-09-15 13:38:29 +05:30
Linux Build Service Account
6a5a7b2811 Merge "ipq5018: Fix uncompressed maxsize issue." 2020-09-14 11:38:01 -07:00
Linux Build Service Account
397b6fab69 Merge "config: ipq5018: Add tiny_debug config" 2020-09-14 09:06:03 -07:00
Linux Build Service Account
1ca5e2577d Merge "ipq: Added nand bad block skipping to dump_to_flash feature" 2020-09-14 06:37:37 -07:00
Vandhiadevan Karunamoorthy
7495413684 ipq5018: Fix uncompressed maxsize issue.
This change update uncompressed destination size to 1MB Max.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I987560981490a05020d7cede76b481b03f71f7d6
2020-09-14 06:02:09 -07:00
Balaji Prakash J
803a517c47 ipq: fdt_fixup: add support to add / edit array of values
This patch adds support to add / edit array of 32bit or 64bit
values. Also, detailed documentation is updated.

To add 32bit or 64bit array values:
  setenv fdtedit0 <node_path>%<bit_value>?<num_values>?<property_name>%<value1>?<value2>?..
  here, <bit_value> can be 32 / 64;  <num_values> is number of array elements
  to be patched; <property_name> is the actual name of the property to
  be patched; each array value has to be separated by '?'
  for reg = <addr> <size>; <num_values> is 2 in this case
example:
 setenv fdtedit0 /soc/dbm@0x8AF8000/%32?2?reg%0x8AF8000?0x500
 setenv fdtedit1 /soc/pci@20000000/%32?2?bus-range%0xee?0xee
 setenv fdtedit2 /soc/usb3@8A00000/%32?4?reg%0x8AF8600?0x200?0x8A00000?0xcb00
 setenv fdtedit3 /reserved-memory/tzapp@49B00000/%64?2?reg%0x49A00000?0x500000

Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
Change-Id: Ia68464c8d7288a09a6b1004b8e7364a248e10522
2020-09-13 21:18:39 +05:30
Vandhiadevan Karunamoorthy
74c48099b3 config: ipq5018: Add tiny_debug config
This change add tiny_debug config for ipq5018, this config
duplicates the tiny config with additional nand support.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I1acaa0159563144e6410f3ed6f0fc2a490b4e26c
2020-09-13 20:00:31 +05:30
Linux Build Service Account
26f0f2b652 Merge "ipq5018: update bt_debug fixup" 2020-09-11 12:36:13 -07:00
Linux Build Service Account
6d7cb14af5 Merge "ipq5018: remove apps_iscrashed_crashdump_disabled" 2020-09-11 10:36:04 -07:00
Vandhiadevan Karunamoorthy
1189dd5c9d ipq5018: Add argument for size in fuseipq
This changes add additional argument for binary size
information in fuseipq.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I9ea5e3104a750377b7999a5e0475739b107b0204
2020-09-11 16:42:52 +05:30
Karthick Shanmugham
434cc613fc ipq: Added nand bad block skipping to dump_to_flash feature
This change will skip the bad blocks offsets, if any while writing
into the nand flash duirng crash when dump_to_flash enabled. This
change also verifies whether the dump data is not overwritten into
the next partition.

Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: I0eec4c772a5f5efb3c17bfd1fd3d3d9a5ff85d1d
2020-09-11 12:49:29 +05:30
Vandhiadevan Karunamoorthy
53ea88f717 ipq5018: update bt_debug fixup
This changes disable mdio 1 if bt_debug set.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ic960edb10ce52a7db0133406de36d502ebc1017f
2020-09-11 11:25:29 +05:30
Vandhiadevan Karunamoorthy
a35a62b823 ipq5018: remove apps_iscrashed_crashdump_disabled
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I7d9a47c1a31fb2b836e4e9d845be5adf232f1560
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-09-10 14:27:56 +05:30