Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aspeed master v5.15 #883

Draft
wants to merge 10,000 commits into
base: master
Choose a base branch
from
Draft

Aspeed master v5.15 #883

wants to merge 10,000 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Dec 12, 2022

  1. RVAS driver update

    Enable vclk after video engine initialization
    to fix memory corruption issue after cold boot
    
    Change-Id: I4f972b0f2601958ea4d5557b8569f76452eed2ef
    yvettewu1 committed Dec 12, 2022
    Configuration menu
    Copy the full SHA
    b3fa0ba View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2022

  1. dts: aspeed: dc-scm: add i2c multi-master support

    add to support multi-master mode for i2c bus 4 and 13
    for MCTP over smbus data transmission.
    
    Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
    Change-Id: If68eb5f18dd4f4c2a37d8d58b77f3f55141419c8
    jamin-aspeed committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    d684ddb View commit details
    Browse the repository at this point in the history
  2. Revert "RVAS driver update"

    This reverts commit b3fa0ba.
    
    Change-Id: I30408b743cc2388e4252f7a660c2dfcaa5a42c1c
    yvettewu1 committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    f394f08 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2022

  1. soc: aspeed: video: Removed

    Use the driver, drivers/media/platform/aspeed-video.c, instead.
    
    Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
    Change-Id: Ie12daf99c4ebda186cdb52694c202584230c3d8d
    jammyaspeed committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    9a96e35 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2022

  1. configs: aspeed: Add TPM support on AST2600 platform

    Add TPM related configurations on AST2600 platform.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: Ia681683aa1327f9b75b408933c896562369ca2b6
    chintingkuo committed Dec 15, 2022
    Configuration menu
    Copy the full SHA
    726ff8c View commit details
    Browse the repository at this point in the history
  2. RVAS driver vclk update

    enable vclk after eclk for Video Engine
    
    Change-Id: I4c0eb677dd32908527b2a657d1bf52eb05263c5f
    yvettewu1 committed Dec 15, 2022
    Configuration menu
    Copy the full SHA
    8f57e74 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2022

  1. i3c: Add support for HDR transmission

    This patch add the HDR function for master to send the ccc or data with
    HDR mode to the device.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I98b5b4088d663b4f846e5079cee90eabe25e3afe
    billy-tsai committed Dec 19, 2022
    Configuration menu
    Copy the full SHA
    0b5d5cc View commit details
    Browse the repository at this point in the history
  2. i3c: ast2600: Support HDR-DDR transfer.

    This patch implements the HDR transfer function for aspeed i3c master.
    Currently, the master only support the HDR-DDR mode.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I8edd56a4b35c24e2e0fe182516f5c211d4f445de
    billy-tsai committed Dec 19, 2022
    Configuration menu
    Copy the full SHA
    972c0f6 View commit details
    Browse the repository at this point in the history
  3. i3c: i3cdev: Xfer the data with HDR-DDR mode.

    This patch will use HDR-DDR mode to send the i3c data if the device
    support it and the CONFIG_I3CDEV_XFER_HDR_DDR say 'y'.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I682405cb460c33fdbcc81962af4076beceebe29c
    billy-tsai committed Dec 19, 2022
    Configuration menu
    Copy the full SHA
    d1e8806 View commit details
    Browse the repository at this point in the history
  4. i3c: ast2600: Wake up the process with the proper interrupt.

    Add the condition to separate the ibi and response ready interrupt.
    Before this patch the master will signal the completion of the thread,
    either ibi or response ready interrupt. However, the completion should
    only wait for response ready interrupts instead of the ibi. The
    unexpected wake-up by ibi will result in the process stuck or kernel panic
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I8c27f83dee1779394e131577b2920ea6a508a79a
    billy-tsai committed Dec 19, 2022
    Configuration menu
    Copy the full SHA
    a35ac82 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2022

  1. jtag: aspeed: Avoid using illegal value for endstate.

    The user may send the endstate with JTAG_STATE_CURRENT, the driver
    should replace it with the state store in the drvier.
    
    Reported-by: Jim Heck <jim.heck@oracle.com>
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I1afa4cdccd98ecd2e9a8be45f85657247c3cb4de
    billy-tsai committed Dec 21, 2022
    Configuration menu
    Copy the full SHA
    c6eb9ff View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2022

  1. spi: aspeed: Add dev_dbg() to dump the spi-mem direct mapping descriptor

    The default value of the control register is set using the direct
    mapping information passed to the ->dirmap_create() handler. Dump the
    mapping range and the SPI memory operation characteristics to analyze
    how the register value has been computed.
    
    spi-aspeed-smc 1e630000.spi: CE0 read dirmap [0x00000000 - 0x04000000]
    OP 0x6c mode:1.1.1.4 naddr:0x4 ndummies:0x1
    ...
    spi-aspeed-smc 1e630000.spi: CE0 write dirmap [0x00000000 - 0x04000000]
    OP 0x12 mode:1.1.0.1 naddr:0x4 ndummies:0x0
    
    Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
    Signed-off-by: Cédric Le Goater <clg@kaod.org>
    Reviewed-by: Joel Stanley <joel@jms.id.au>
    Link: https://lore.kernel.org/r/20220622161617.3719096-2-clg@kaod.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: Ia62588a21fa4933b9a17a8740cd85b845ded018e
    chintingkuo committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    a9cef7a View commit details
    Browse the repository at this point in the history
  2. spi: aspeed: Fix division by zero

    When using the normal read operation for data transfers, the dummy bus
    width is zero. In that case, they are no dummy bytes to transfer and
    setting the dummy field in the controller register becomes useless.
    
    Issue was found on a custom "Bifrost" board based on the AST2500 SoC
    and using a MX25L51245GMI-08G SPI Flash.
    
    Reported-by: Ian Woloschin <ian.woloschin@akamai.com>
    Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
    Tested-by: Ian Woloschin <iwolosch@akamai.com>
    Fixes: 9da06d7 ("spi: aspeed: Add support for direct mapping")
    Signed-off-by: Cédric Le Goater <clg@kaod.org>
    Link: https://lore.kernel.org/r/20220622161617.3719096-3-clg@kaod.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Change-Id: I63c492693e76facad7ef31995587a3606382d1f7
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    chintingkuo committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    4b792ce View commit details
    Browse the repository at this point in the history
  3. spi: aspeed: Fix typo in mode_bits field for AST2600 platform

    Both quad SPI TX and RX modes can be supported on AST2600.
    Correct typo in mode_bits field in both ast2600_fmc_data
    and ast2600_spi_data structs.
    
    OpenBMC-Staging-Count: 1
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Reviewed-by: Cédric Le Goater <clg@kaod.org>
    Link: https://lore.kernel.org/r/20221005083209.222272-1-chin-ting_kuo@aspeedtech.com
    Signed-off-by: Joel Stanley <joel@jms.id.au>
    Change-Id: I0c13cc518e71c86a2f1fbab114cf6ab869714234
    chintingkuo committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    a812128 View commit details
    Browse the repository at this point in the history
  4. spi: aspeed: Fix window offset of CE1

    The offset value of the mapping window in the kernel structure is
    calculated using the value of the previous window offset. This doesn't
    reflect how the HW is configured and can lead to erroneous setting of
    the second flash device (CE1).
    
    OpenBMC-Staging-Count: 1
    Fixes: e3228ed ("spi: spi-mem: Convert Aspeed SMC driver to spi-mem")
    Signed-off-by: Cédric Le Goater <clg@kaod.org>
    Reviewed-by: Joel Stanley <joel@jms.id.au>
    Link: https://lore.kernel.org/r/20221016155722.3520802-1-clg@kaod.org
    Signed-off-by: Joel Stanley <joel@jms.id.au>
    Change-Id: I44bc77de5cfdcb036372bcdda6c9467fea76cee9
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    chintingkuo committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    25c9ba7 View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2022

  1. spi-nore: Modify delay configuration for soft reset

    For some flash parts, the original delay timing may
    be in the margin point. Thus, we extend the delay timing
    in order to satisfy the reset sequence for the most
    flash parts.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: I7cf2175a604a1aa5bb4071fb0c9a4f4c0ed4ca0a
    chintingkuo committed Dec 25, 2022
    Configuration menu
    Copy the full SHA
    1aa8b3d View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2022

  1. usb: gadget: aspeed_udc: cleanup loop in ast_dma_descriptor_setup()

    The "chunk >= 0" condition does not work because count is a u32.
    Also, really we shouldn't enter the loop when "chunk" is zero.
    
    Once that condition is fixed then there is no need for the "last"
    variable.  I reversed the "if (chunk <= ep->chunk_max)" as well.
    The new loop is much simpler.
    
    Fixes: 055276c ("usb: gadget: add Aspeed ast2600 udc driver")
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
    Change-Id: Ia074b01d1fde7ae3936ef8030bcb521ac432ce7d
    Dan Carpenter authored and Neal-liu committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    690a8f0 View commit details
    Browse the repository at this point in the history
  2. usb: gadget: aspeed_udc: fix handling of tx_len == 0

    The bug is that we should still enter this loop if "tx_len" is zero.
    
    After adding the "last" variable, then the "chunk >= 0" condition is no
    longer required but I left it for readability.
    
    Reported-by: Neal Liu <neal_liu@aspeedtech.com>
    Fixes: c09b1f3 ("usb: gadget: aspeed_udc: cleanup loop in ast_dma_descriptor_setup()")
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Reviewed-by: Neal Liu <neal_liu@aspeedtech.com>
    Change-Id: I7d169525424de001c6337ac77a16e51d03fbb7ad
    Dan Carpenter authored and Neal-liu committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    56e2005 View commit details
    Browse the repository at this point in the history
  3. spi: aspeed: Add comment for CRTM enabled scenario

    Add operation configuration for CRTM enabled scenario.
    - Use command mode to access flash.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: I1ce8db4224d047f4e1f7e3a6fa5855916a743698
    chintingkuo committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    89ff504 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2022

  1. usb: gadget: aspeed_udc: fix DMA allowable transfer length

    Problem:
        CDC NCM low performance issue. BULK IN transfer error - illegal
    NDP (NCM Datagram Pointers) Signature.
    
    Solution:
        The udc descriptor(DMA) mode allowable transfer length is 4096 bytes.
    Wrong tx_len will result in decoding NDP16 field error, the iperf testing
    results would be abnormal. Correct it to fix CDC NCM performance drop
    issue.
    
    Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
    Change-Id: Iae60890cd96ec1e338c2e23ae5a228e42ec278cd
    Neal-liu committed Dec 27, 2022
    Configuration menu
    Copy the full SHA
    8ad9f2e View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2022

  1. dts: aspeed: dcscm: Fix the spd node names.

    The node names of spd has changed by the patch:
    commit ee4117e ("ARM: dts: ast2600-evb: use macro to creat I3C SPD
    child node")
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I97d66570aea3b4ec5e48c63d83e05e650dfb40fa
    billy-tsai committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    57f4400 View commit details
    Browse the repository at this point in the history
  2. dts: rename partition afm-act to afm-stg

    afm-act will be inside ast1060, and the afm-stg will be used as staging
    area for image update.
    
    afm-rcv is the recovery area for recovering.
    
    Signed-off-by: Troy Lee <troy_lee@aspeedtech.com>
    Change-Id: I4cd52ebdd69dd4fef51a66ec0dde6e8b9694fdf3
    LeeTroy committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    aecfb12 View commit details
    Browse the repository at this point in the history
  3. mtd: aspeed: Update SPI clock frequency configuration

    - Using the expected SPI clock frequency when user mode is used.
    - Using the SPI clock frequency in device tree if the better
      clock frequency is not found.
    
    Change-Id: I72490a825d6ec7353565e32571ba8cd939092503
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    chintingkuo committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    4876e07 View commit details
    Browse the repository at this point in the history
  4. soc: aspeed: mctp: Clear the rx_warmup when find first valid packet.

    Clear the rx_warmup flag when any valid packet is found to avoid
    unexpected runaway rx packet modifying the MCTP's boundary of rx buffer.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I69dd1e55ff39548f816024e1926a519c980bde4e
    billy-tsai committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    3fab91e View commit details
    Browse the repository at this point in the history
  5. soc: aspeed: mctp: Add the warning when rx length > MTU

    The rx length shouldn't bigger than the MTU size. This patch add the
    warning log to alarm this problem for debugging.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I687df11ecd0e2025c0f9caa69c0375fe4257c715
    billy-tsai committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    196c423 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2023

  1. i3c: ast2600: Transfer error interrupt has the response data.

    Transfer error interrupt will generate one response data, so append this
    condition to handle the response data for the xfer error.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I234c846f462e0f4d3c31c4308e8090c674bfe679
    billy-tsai committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    1f02593 View commit details
    Browse the repository at this point in the history
  2. dts: aspeed: dcscm-amd: align with aspeed-ast2600-dcscm.dts

    Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
    Change-Id: I9c55844d9b2fbf1cad07c2a8f1a514ca6e4f561d
    stevenlee7189 committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    46ab556 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2023

  1. soc: aspeed: mctp: Only check RX runaway when rx warmup

    Rx runaway will only occur when rx warmup and packets may not have been
    written to the dram when the driver enter the rx tasklet by the interrupt.
    If the packet write to the dram after check the packet in sw_ptr, the rx
    runaway will be detected by mistake and cause the packet sequence to go
    wrong. So this patch add the condition to avoid the driver to check the
    runaway packet after getting first valid packet.
    
    Failed log:
    [  512.642350] aspeed-mctp 1e6e8000.mctp: Runaway RX packet found 79 -> 80 (b204f900)
    [  512.650895] aspeed-mctp 1e6e8000.mctp: Hw read ptr = 004f004f
    [  512.657339] aspeed-mctp 1e6e8000.mctp: Hw read ptr = 00510051
    [  512.663851] aspeed-mctp 1e6e8000.mctp: Address 84953160
    [  512.669706] aspeed-mctp 1e6e8000.mctp: VDM header:
    [  512.675135] aspeed-mctp 1e6e8000.mctp: 72 00 00 10
    [  512.680549] aspeed-mctp 1e6e8000.mctp: 40 00 30 7f
    [  512.685918] aspeed-mctp 1e6e8000.mctp: 01 00 1a b4
    [  512.691315] aspeed-mctp 1e6e8000.mctp: 01 0b 09 70 ==> SOM = 0, EOM = 1, seq = 3
    ...
    [  512.788905] aspeed-mctp 1e6e8000.mctp: Runaway RX packet found 82 -> 79 (b204f8b0)
    [  512.797518] aspeed-mctp 1e6e8000.mctp: Hw read ptr = 00520052
    [  512.804060] aspeed-mctp 1e6e8000.mctp: Hw read ptr = 00520052
    [  512.810548] aspeed-mctp 1e6e8000.mctp: Address 84953c60
    [  512.816418] aspeed-mctp 1e6e8000.mctp: VDM header:
    [  512.821838] aspeed-mctp 1e6e8000.mctp: 72 00 00 10
    [  512.827252] aspeed-mctp 1e6e8000.mctp: 40 00 00 7f
    [  512.832688] aspeed-mctp 1e6e8000.mctp: 01 00 1a b4
    [  512.838075] aspeed-mctp 1e6e8000.mctp: 01 0b 09 20 ==> SOM = 0, EOM = 0, seq = 2
    ...
    [  513.291771] aspeed-mctp 1e6e8000.mctp: Runaway RX packet found 80 -> 82 (b204f9a0)
    [  513.300358] aspeed-mctp 1e6e8000.mctp: Hw read ptr = 00530053
    [  513.306819] aspeed-mctp 1e6e8000.mctp: Hw read ptr = 00530053
    [  513.313341] aspeed-mctp 1e6e8000.mctp: Address 84953420
    [  513.319221] aspeed-mctp 1e6e8000.mctp: VDM header:
    [  513.324654] aspeed-mctp 1e6e8000.mctp: 72 00 00 03
    [  513.330066] aspeed-mctp 1e6e8000.mctp: 16 00 20 7f
    [  513.335458] aspeed-mctp 1e6e8000.mctp: 01 00 1a b4
    [  513.340883] aspeed-mctp 1e6e8000.mctp: 01 0b 0a c0
    ...
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ie1efad49b2847e172794e0194c8319c1448c728c
    billy-tsai committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    84430a2 View commit details
    Browse the repository at this point in the history
  2. soc: aspeed: mctp: schedule the rx tacklet more frequently.

    Schedule the rx tacklet when user try to poll/read the packets to avoid
    the rx tasklet triggered by interrupt not finding a valid packet to
    improve the performance.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ie2fa4938bf716b5dfd9c60e770d9f3ae590b226e
    billy-tsai committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    209a312 View commit details
    Browse the repository at this point in the history
  3. i3c: mctp: Add the ast10x0 a2 to the device id.

    Add the support for the ast10x0 a2 device.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I58718b135e69d89fedc8c099e73873bc641cac7f
    billy-tsai committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    d3aa1ad View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2023

  1. drivers: i2c: Force i2c irq status into handle

    Force i2c irq status into i2c irq handle if the i2c error is occurred.
    
    Signed-off-by: Tommy Huang <tommy_huang@aspeedtech.com>
    Change-Id: I9ae427b8c53519147a02ca920254fff27de65929
    TommyHuang0527 committed Jan 11, 2023
    Configuration menu
    Copy the full SHA
    56789c6 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2023

  1. [ast2600] i2c: fix for check master trigger status.

    Signed-off-by: ryan_chen <ryan_chen@aspeedtech.com>
    Change-Id: I5e75ebac1cc68ce18debb1fed7d1c3c168f8bb72
    aspeedtech committed Jan 12, 2023
    Configuration menu
    Copy the full SHA
    e908bf6 View commit details
    Browse the repository at this point in the history
  2. jtag: aspeed: Add the dummy read to ensure the write complete.

    The dummy read can ensure the register write has been completed to avoid
    bus delays affecting the real TCK frequecy.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ibc1f12b624b450052c91ce6151ebaa6b60a46ef5
    billy-tsai committed Jan 12, 2023
    Configuration menu
    Copy the full SHA
    af8e8c1 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2023

  1. jtag: aspeed: Halves the sw_delay for toggle TCK.

    To meet the frequency setting in user space, the ndely during TCK
    transition should be the half of sw_delay.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I4f2e7ea868e4873468eef4e1203a1b9240a29d0d
    billy-tsai committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    e827f5d View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2023

  1. [ast2600] i2c update for potential memory leaks

    Signed-off-by: ryan_chen <ryan_chen@aspeedtech.com>
    Change-Id: I62f6b6a00a27ae4d25e59e00dfe092a38b6d5841
    aspeedtech committed Jan 21, 2023
    Configuration menu
    Copy the full SHA
    e6afd26 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2023

  1. i3c: ast2600: check return of aspeed_i3c_master_get_free_pos()

    do the same check as commit 8654464 ("i3c: master: dw: check return
    of dw_i3c_master_get_free_pos()")
    
    "pos can be negative because dw_i3c_master_get_free_pos() can return an
    error.  So check for an error."
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I396c326781404b6285b29200d2373ed156bb92ae
    aspeeddylan committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    0040c2e View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2023

  1. i3c: ast2600: disable hot-join when bus context is JESD403

    JESD403 specifies it doesn't support hot-join so just don't enable it in
    the driver probe.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I6762d1ebc4e56ee17c2f6692994de43681d850f8
    aspeeddylan committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    d3ef1e7 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2023

  1. soc: aspeed: otp: fix secure boot key number mask

    There are 3 bits to represent key numbers, change mask
    from 0x3 to 0x7.
    
    Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
    Change-Id: If33ad0fd1ae4bbd56357b12c97bce6b9f602a584
    Neal-liu committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    e2616bb View commit details
    Browse the repository at this point in the history
  2. drm/aspeed: Update the pcie regmap name

    Update the PCIE regmap name from ast2600-pcie-ep into ast2600-pcie-phy
    
    Signed-off-by: Tommy Huang <tommy_huang@aspeedtech.com>
    Change-Id: I94fbc4d7dc41d4cfb91d4d3ee5e1b50ddd06782a
    TommyHuang0527 committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    2ce987f View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2023

  1. fix:rmmod/insmod driver issue

    Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
    Change-Id: Ia9fa7bc6782a14ecf149962e9bb989590e4b2fb0
    aspeedtech committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    e734449 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2023

  1. media: aspeed: use DEFINE_SHOW_ATTRIBUTE to simplify code

    Use DEFINE_SHOW_ATTRIBUTE helper macro to simplify the code.
    No functional change.
    
    Signed-off-by: Liu Shixin <liushixin2@huawei.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
    Change-Id: I3a1c86c93caafe0af8408b308f5ca6ea736870ac
    Liu Shixin authored and jammyaspeed committed Feb 13, 2023
    Configuration menu
    Copy the full SHA
    1a88c62 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2023

  1. dts: pfr: Add cpld staging region

    Add cpld staging region for PFR 4.0 CPLD Update feature.
    
    Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
    Change-Id: Ieff35086990fbbe2d37076162270b42c5864f317
    stevenlee7189 committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    2d8e649 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2023

  1. spi-nor: Disable hold/reset pin on MT25QL02G

    Disable hold/reset pin function on MT25QL02G flash part.
    If QSPI mode is used and the IO rising time is not good,
    the flash will be in hold/reset status when the next QSPI
    command is sent.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: Idfbb25f39e4d99205c981b7fd8ba749fb2c3ea7a
    chintingkuo committed Feb 18, 2023
    Configuration menu
    Copy the full SHA
    86924bd View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2023

  1. pcie: Fix the typo of gpio property.

    pcei -> pcie.
    The usage of the property should be:
    &pciecfg {
            pcie1-perst-gpios = <&gpio0 ASPEED_GPIO(B, 1) GPIO_ACTIVE_HIGH>;
            ...
    };
    
    Fixes: 99a05d6 ("pcie: Handle PERST signal from the gpio.")
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: If064c272ad834e8b68187d8cacdad4d74a1973d6
    billy-tsai committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    bed2b9c View commit details
    Browse the repository at this point in the history
  2. i2c: aspeed: fix timeout need clear isr.

    Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
    Change-Id: I921182a5044cb4c75d564d9f18572b8cbbb7237f
    aspeedtech committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    0cc98fa View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2023

  1. pinctrl: i3c: Add dependency for register setting to avoid abnormal b…

    …ehavior
    
    The I3C3/4 controllers have the capability to configure the function to
    operate at either high or low voltage pins depending on specific
    scenarios. However, simultaneous activation of both voltage pins should
    be avoided to prevent undesired behaviors in the I3C.
    This patch introduces a dependency for the register setting to ensure that
    such a situation is avoided.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I509f2b6ea1b966ad696134cd68a937d39e49fd37
    billy-tsai committed Feb 21, 2023
    Configuration menu
    Copy the full SHA
    0bab696 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2023

  1. pinctrl: aspeed-g6: Remove the accesses to SCU474

    SCU474 is a non-existent register, so remove the code that accesses it.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I9abd3b5724f821e513c06fec9b5437c3e94d5b75
    aspeeddylan committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    e67ecdf View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2023

  1. i3c: ast2600: add error handling for master mode

    reset the queues and resume the controller if it goes into the halt state.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I6af6ea66013baf17fcb711a238f5acfb448d8baa
    aspeeddylan committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    5e0e4e3 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2023

  1. i3c master: send SETMRL's 3rd byte according to BCR[2]

    MIPI I3C v1.1 indicates "for devices with BCR bit 2 set to 1'b1, the Max
    IBI payload size value is added as a third byte". So the payload length
    of the SETMRL CCC is
    2, if BCR[2] is 1b0
    3, if BCR[2] is 1b1
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I6f964f8a6dcdeb1c9819c51bd0baf11c13374992
    aspeeddylan committed Mar 1, 2023
    Configuration menu
    Copy the full SHA
    0c7a549 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2023

  1. i3c: ast2600: refactor the bit field access of the DAT

    Use FIELD_PREP/FIELD_GET to set/get the bit fields of the device address
    table (DAT).
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I290e9209808c62fa5e0f5bedd3fff7a16543243a
    aspeeddylan committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    d69c12b View commit details
    Browse the repository at this point in the history
  2. i3c: ast2600: revise software DAT access

    1. save parity bit value in the software DAT
    2. do not enable IBI address mask by default
    3. keep SIR_REJECT and MR_REJECT be 1 even if the DAT is not used
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I1b68077f0894d0139adb733e1af5bcdd18079827
    aspeeddylan committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    6979bec View commit details
    Browse the repository at this point in the history
  3. i3c: ast2600: Separates the event of ibi and master read.

    The interrupt resp_q_ready indicate the event of ibi transfer done, data
    read by master and master write data. The differnet of these events list
    below:
    1. if it include the signal ibi_update: ibi transfer done
    2. if the response data contain the data length > 0: master write data.
    3. others: data read by master.
    This patch separates the wait event of the ibi and data consume by TID
    and interrupt status, making ISR can signal the appropriate event.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I90e4663b4aa2e6db0400f06829bedc670c26c331
    billy-tsai committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    79279e3 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2023

  1. spi-nor: winbond: Add support for w25q512nw

    Add 1.8V w25q512nw flash part in the flash ID list.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: If41c68333d4e73e3b61c002a79ad64d0f8d78786
    chintingkuo committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    e53a9b8 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. usb: aspeed_vhub: fix typo

    Fix typo.
    
    Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
    Change-Id: I3de6edfec0b234ddbafa91c419b5184e2b3daa37
    Neal-liu committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    87c39ee View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2023

  1. i3c: i3cdev: Fix potential out of bounds access in i3cdev_send_hdr_xfer

    The function i3cdev_send_hdr_xfer() can allocate data_ptrs[i] with
    length xfers[i].len, however the allocation size must be rounded up to
    the nearest 2-byte boundary, as the hdr transfer are 16-bit aligned.
    This patch fixes this issue by allocating the data_ptrs[i] with the
    roundup size to avoid the extra byte sent isn't initialized.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ib099caf80ed6b2b0939187e73f7b16647d94cabe
    billy-tsai committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    34a53c3 View commit details
    Browse the repository at this point in the history
  2. i3c: ast2600: Add API to toggle the scl in by software mode

    Before the reset FIFO,the i3c controller should be disabled to avoid the
    incomplete resetting. After that the i3c controller should be enabled to
    avoid the next transfer to fail.
    The enable bit of the i3c slave mode require the scl to active, but we
    can't control the scl in slave mode. So, this patch add the api to use
    the software force mode to generate the dummy scl_in signal which won't
    affect external signal to active the bit.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Idebd9ae2745927ab2db294a5ff7554685857a8a2
    billy-tsai committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    c1a835c View commit details
    Browse the repository at this point in the history
  3. i3c: ast2600: Use sw mode to generate target reset pattern.

    Our i3c controller is based on the MIPI i3c v1.0, but the target reset
    pattern was introduced in MIPI i3c v1.1.1. So, we need to use the software
    mode to generate the pattern to be compatiable with the future's i3c
    devices.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I611c74e1b1a8901439a0ecb741ceec96b24c39ec
    billy-tsai committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    8b85191 View commit details
    Browse the repository at this point in the history
  4. i3c: ast2600: Generate the t-bits low to stop the ibi storm.

    Under certain conditions, such as when an IBI interrupt is received and
    SDA remains high after the address phase, the i3c master may enter an
    infinite loop while trying to read data until the t-bit low appears.
    This commit addresses the issue by gerenating the fake t-bit low to stop
    the IBI storm when receiving an IBI with an unrecognized address or when
    the received data length of IBI is larger than the maximum IBI payload.
    This issue can't be solved by abort function, because it doesn't work when
    i3c fsm at Servicing IBI Transfer (0xe) and Clock extension state (0x12).
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I987c917330d0f9650fe00b24fede3d2670cfc1ea
    billy-tsai committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    a607336 View commit details
    Browse the repository at this point in the history
  5. i3c: aspeed: Match the mdb table to ensure that the PEC error actuall…

    …y occurred.
    
    When an IBI is received with the PEC error flag set, the patch checks if
    the received message matches one of the entries in a pre-defined MDB
    table. This is because when an IBI with a repeat start and get CCC is
    received, the PEC error flag will also be set.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I93693ef92cf133b00a6def1a2d39307521b36f0b
    billy-tsai committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    fb15196 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2023

  1. i3c: aspeed: Postpone the pec check to ibi callback.

    To handle the PEC issue in a flexible manner, the procedure should be
    postponed to the device driver instead of creating predefined mdb table
    within the i3c driver.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I6f9fcb612726c90ce353e0fa96040547c60065c1
    billy-tsai committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    477f05c View commit details
    Browse the repository at this point in the history
  2. i3c: ibi-mqueue: Create predefined mdb table to check the pec.

    When an IBI status is received with the PEC error flag set, further
    matching with the mdb table to ensure the pec error actually occurred.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I1052fe864480e1f58389015c4b414a773f56f82a
    billy-tsai committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    dabe5e1 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2023

  1. i3c: ast2600: prevent sharing hardware DAT in do_daa

    The software DAT (group DAT) is designed for JESD403. In general MIPI
    context, use different DAT for different dynamic address as possible.
    This can prevent the swapping of the HW DAT setting during operation
    time.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I9883db5223b5994392ce48f6a36fe85d9bc0a50f
    aspeeddylan committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    3dfae96 View commit details
    Browse the repository at this point in the history
  2. net: ftgmac100: Add spin-lock to protect TX pointers

    Cisco reported a TX queue timeout issue which can only be reproduced on
    their platform. They have created this patch for it and verified its
    effectiveness on their platform. Aspeed also confirmed that there are no
    adverse effects from the patch.
    
    The log is as below:
    
    ```
    [ 1649.992710] ------------[ cut here ]------------
    [ 1649.992740] WARNING: CPU: 1 PID: 3982 at net/sched/sch_generic.c:478 dev_watchdog+0x2e4/0x2e8
    [ 1649.992777] NETDEV WATCHDOG: eth0 (ftgmac100): transmit queue 0 timed out
    [ 1649.992786] Modules linked in: ast2600_i3c_master rvas_video g_mass_storage usb_f_mass_storage g_ether usb_f_ecm usb_f_rndis u_ether usb_f_hid g_hid tpm_tis_spi tpm_tis_core ast2600_i3c_global peci_driver block_transfer_driver aspeed_mctp pmbus_driver watchdog_driver [last unloaded: ast2600_i3c_master]
    [ 1649.992884] CPU: 1 PID: 3982 Comm: rfc_main_daemon Not tainted 5.15.48.3 #2
    [ 1649.992897] Hardware name: Generic DT based system
    [ 1649.992905] Backtrace:
    [ 1649.992914] [<80b33d08>] (dump_backtrace) from [<80b33f4c>] (show_stack+0x20/0x24)
    [ 1649.992938]  r7:000001de r6:00000009 r5:80d68218 r4:60070113
    [ 1649.992944] [<80b33f2c>] (show_stack) from [<80b393d4>] (dump_stack_lvl+0x48/0x54)
    [ 1649.992962] [<80b3938c>] (dump_stack_lvl) from [<80b393f8>] (dump_stack+0x18/0x1c)
    [ 1649.992981]  r5:80980b94 r4:80e11488
    [ 1649.992986] [<80b393e0>] (dump_stack) from [<80121d04>] (__warn+0xfc/0x114)
    [ 1649.993005] [<80121c08>] (__warn) from [<80b345cc>] (warn_slowpath_fmt+0xa8/0xdc)
    [ 1649.993024]  r7:000001de r6:80e11488 r5:80e1144c r4:891e8000
    [ 1649.993030] [<80b34528>] (warn_slowpath_fmt) from [<80980b94>] (dev_watchdog+0x2e4/0x2e8)
    [ 1649.993052]  r9:00000001 r8:81d03d00 r7:843a5000 r6:823d5600 r5:843a5264 r4:00000000
    [ 1649.993058] [<809808b0>] (dev_watchdog) from [<801a34b0>] (call_timer_fn+0x40/0x198)
    [ 1649.993083]  r9:b3e9a5c0 r8:00020f58 r7:809808b0 r6:00000100 r5:843a5264 r4:843a5264
    [ 1649.993089] [<801a3470>] (call_timer_fn) from [<801a4850>] (run_timer_softirq+0x588/0x640)
    [ 1649.993109]  r8:00000000 r7:891e9e94 r6:00020f58 r5:00000000 r4:843a5264
    [ 1649.993114] [<801a42c8>] (run_timer_softirq) from [<8010146c>] (__do_softirq+0x154/0x3bc)
    [ 1649.993137]  r10:ffffe000 r9:7e9889e0 r8:00000202 r7:00000100 r6:00000001 r5:00000002
    [ 1649.993144]  r4:81d03084
    [ 1649.993149] [<80101318>] (__do_softirq) from [<801298e4>] (irq_exit+0xc4/0x108)
    [ 1649.993171]  r10:ffffffec r9:7e9889e0 r8:81cd2fdc r7:0000001d r6:00000000 r5:00000000
    [ 1649.993177]  r4:ffffe000
    [ 1649.993182] [<80129820>] (irq_exit) from [<8017ec78>] (handle_domain_irq+0x70/0x88)
    [ 1649.993200]  r5:00000000 r4:81cd2fd0
    [ 1649.993206] [<8017ec08>] (handle_domain_irq) from [<80101294>] (gic_handle_irq+0x7c/0x90)
    [ 1649.993226]  r7:891e9fb0 r6:b780200c r5:b7802000 r4:81d06a64
    [ 1649.993231] [<80101218>] (gic_handle_irq) from [<80100eb4>] (__irq_usr+0x54/0x80)
    [ 1649.993247] Exception stack(0x891e9fb0 to 0x891e9ff8)
    [ 1649.993259] 9fa0:                                     7480f938 7480f93c 7480f938 00000004
    [ 1649.993270] 9fc0: fefefeff 7480f938 76c8ca8c 00000152 7e9889de 7e9889e0 ffffffec 769e5964
    [ 1649.993280] 9fe0: 76c8cb60 769e57d0 80808080 76adaa80 20070010 ffffffff
    [ 1649.993292]  r9:7e9889e0 r8:10c5387d r7:10c5387d r6:ffffffff r5:20070010 r4:76adaa80
    [ 1649.993313] ---[ end trace 10866acd29252664 ]---
    ```
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: If1a78b3389b35a0a2b9ae111f6c3d5b3631446a2
    aspeeddylan committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    32ba316 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2023

  1. dts: ast2600: Update I3C target devices

    To provide more demonstrations of I3C usage, revise the I3C target
    devices in the device tree. I3C0 to I3C3 connect to the Aspeed I3C
    daughter board, where I3C0 and I3C1 operate in I3C mode, while I3C2 and
    I3C3 operate in I2C mode. I3C4 and I3C5 are tied together to provide a
    loopback demonstration.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I9bdc6358f90dd4121f4e33a60a7873b1e01b10c5
    aspeeddylan committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    08800f9 View commit details
    Browse the repository at this point in the history
  2. dts: ast2600: Correct the typo of the comments

    No code and dts modification.  Just fix the typo in comments.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I70ed20f25244b871a6aa8cd46b27c99838d5fbb6
    aspeeddylan committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    7098c9e View commit details
    Browse the repository at this point in the history
  3. i3c: Add Aspeed BIC driver for BIC write/read function

    Pick from facebook/openbmc-linux@720c68c4154b. Only BIC driver related
    code is merged in this patch. Use i3c-ast-bridge-ic.c for Aspeed
    AST2600/1030/1060 target mode device driver. The legacy driver
    i3c-ibi-mqueue.c is removed and no longer used.
    
    Original commit message is as follows
    ```
    kernel-5.15: Support i3c driver (#2446)
    
    Summary:
    - Synchronize i3c driver to Aspeed SDK v08.03, linux version v00.05.03.
    - Add hot join broadcast attribute to activate BIC I3C controller.
    - Add Aspeed BIC driver for BIC write/read function.
    
    X-link: https://github.com/facebookexternal/openbmc.wiwynn/pull/2446
    
    Reviewed By: williamspatrick
    
    Differential Revision: D42433852
    
    Pulled By: garnermic
    
    ```
    
    Change-Id: I5d696bbfdcb38c1c7daaa58345dee998cc344fa2
    EliHuang-wiwynn authored and aspeeddylan committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    0e9fede View commit details
    Browse the repository at this point in the history
  4. i3c: ast-bic: Rename bin.attr.name

    Replace "ibi-mqueue" by "mqueue" to avoid confusion. The mqueue stands
    for message queue, for either read (ibi) or write (private write)
    accesses.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I5952c9c33cf62949a53f9f8a60a5a5c553883176
    aspeeddylan committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    1267523 View commit details
    Browse the repository at this point in the history
  5. i3c: bic: i3c: Inform device the queue size by SETMRL.

    Use the SETMRL ccc to inform the device that the packet length of the
    driver can afford. The packet length contains the IBI payload and the IBI
    pending read.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I27d4312d1ad873fa4f28fccff3a51f52827431f8
    billy-tsai committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    c7ec842 View commit details
    Browse the repository at this point in the history
  6. i3c: bic: Create predefined mdb table to check the pec.

    When an IBI status is received with the PEC error flag set, further
    matching with the mdb table to ensure the pec error actually occurred.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I77373dbc33b26f3556a5b7498cbb9adf3fb4d2a5
    billy-tsai committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    6a12de8 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2023

  1. dts: ast2600: Add SPD5118 devices to I3C bus 2&3

    Add JESD300 SPD5118 devices (in I2C mode) to I3C bus 2&3, which are
    operated in I2C mode
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I143c92f2f39397e0feea822138be43e2a3275dd1
    aspeeddylan committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    1ec95bd View commit details
    Browse the repository at this point in the history
  2. dts: ast2600: Correct imx3102 properties in i3c bus

    1. Bind eeprom driver for imx3102 i2c mode
    2. Correct the address width. It uses 8-bit address for i2c accesses and
    16-bit address for i3c accesses.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I9492a84164a196d246737f72674ac7cf47c1b580
    aspeeddylan committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    2bd0fee View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2023

  1. i3c: ast-bridge-ic: Remove unused regmap

    Remove regmap related code since they had never been used.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: Idf5477e065ead9d4485d8f2cf07a4f6eea0ef64b
    aspeeddylan committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    7eeefd0 View commit details
    Browse the repository at this point in the history
  2. i3c: ast2600: use FM speed on SETHID and DEVCTRL CCCs

    1. Correct the speed enum to match the hardware design. Noted that it
    doesn't match the latest HCI definition.
    
    2. Correct the speed of the CCCs. Only SETHID and DEVCTRL CCCs should
    use I2C FM speed. SETAASA uses I3C SDR speed.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I1815d77a7faf3b1a6c7c57182056b592de1f7b3e
    aspeeddylan committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    0a8766d View commit details
    Browse the repository at this point in the history
  3. spi-nor: Support daul/quad SPI mode for w25q64jvm

    Add dual/quad SPI mode for w25q64jvm.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: I5d68cd0fca525625d655f8c8b4c2a0ebcc5b282c
    chintingkuo committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    fe036dd View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2023

  1. i3c: aspeed: Isolate the SCL/SDA to aviod i3c slave hang.

    The "enable bit" of the I3C slave mode needs to wait for the IBI free time
    before it can be activated by the SCL signal. So, this patch add the API
    to isolate the SCL/SDA to achieve it.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I52cf2eec4e4f4fd3f3589f362be0a55769872989
    billy-tsai committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    eba70ea View commit details
    Browse the repository at this point in the history
  2. i3c: aspeed: Uniformly use api to enable software forced mode.

    Use aspeed_i3c_isolate_scl_sda(...) to enable/disable the software force
    mode.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Iff375a016c2116482deb93a5bb715cdaca991589
    billy-tsai committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    84178e0 View commit details
    Browse the repository at this point in the history
  3. i3c: aspeed: Active the enable bit by internal operations

    The enable bit of the i3c slave mode require the scl and stop sequences
    to active, but we can't control the scl in slave mode. So, this patch add
    support for toggling SCL and generating stop sequences for internal bus
    operations which won't affect external signal to active the bit.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ia6c00c7445be3e0708f00c1093ac4710dff6857f
    billy-tsai committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    e1d1e29 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2023

  1. spi: spi-gpio: Implement spidelay by ndelay

    Implement spidelay by ndelay in order to generate
    stable SPI clock waveform sequence. Certainly, it
    can be replaced by other more precise delay.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: I42133afdd3c7a18a9455e42fad6fca6da1366bcd
    chintingkuo committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    d1238fd View commit details
    Browse the repository at this point in the history
  2. configs: aspeed-g6: Enable OP-TEE support

    Enable OP-TEE driver support.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I2712807564b183e8f5934f7dbd5102001239d65c
    ChiaweiW committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    436b210 View commit details
    Browse the repository at this point in the history
  3. soc/aspeed: pcc: Remove redundant data check

    The tasklet is scheduled always with RX data interrupt.
    The RX data availability check within is redundance and thus removed.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I4b295ac0ddcd696937626be5f09d8404d3ecab0f
    ChiaweiW committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    47b09e4 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2023

  1. i3c: aspeed: Include I3C Broadcast Address for priv_xfer.

    Avoid priv_xfer occupying the bus and causing the slave ibi transfer to
    get stuck.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I6cc927dfbb9cebf34fb0720372c885f5663b8c9c
    billy-tsai committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    f90ccbb View commit details
    Browse the repository at this point in the history
  2. i3c: aspeed: Organize the flow of disable/enable i3c slave.

    To minimize code duplication and improve the maintainability of the
    driver, this patch consolidate the common flow for enabling/disabling the
    i3c slave controller into the 'aspeed_i3c_master_enable' and
    'aspeed_i3c_master_disable' APIs.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I05e63e6ddf7740a25b8afaee6cd45a493d929223
    billy-tsai committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    7e78fc3 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2023

  1. configs: aspeed-g6: Change the PCI bus optimization strategy.

    Change the MPS and MRRS optimization strategy to SAFE mode which will use
    largest MPS that boot-time devices support.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ibb7dd8081f5194ebc3953994ebecfa4a08e39885
    billy-tsai committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    fcd7d1b View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2023

  1. drm/ast: code sync

    Change-Id: Ie3f7966ce15ebafad6c36e93e7897503085dfeed
    Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
    jammyaspeed committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    8524db3 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2023

  1. soc/aspeed: pcc: Revise driver interface

    1. remove static memory
    2. remove pattern search
    3. remove tasklet
    4. enlarge DMA buffer size to 256KB
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: Iadde135e55202b233e7bbd5d19124c0c0cad1cca
    ChiaweiW committed May 4, 2023
    Configuration menu
    Copy the full SHA
    a31afd3 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2023

  1. ARM: dts: aspeed: Add ast2600-dcscm-amd device tree

    Missing ast2600-dcscm-amd in Makefile
    
    Signed-off-by: Troy Lee <troy_lee@aspeedtech.com>
    Change-Id: Ibd33418446830c5ef39c58fdff31b1faf79ce440
    LeeTroy committed May 11, 2023
    Configuration menu
    Copy the full SHA
    77bda59 View commit details
    Browse the repository at this point in the history
  2. ARM: dts: Add ast2600-dcscm dts for Avenue City

    Porting ast2600-dcscm a2 demo board for Intel Avenue City platform.
    
    Signed-off-by: Troy Lee <troy_lee@aspeedtech.com>
    Change-Id: I359c439ae17c2d1deb5fa1b355061d1d1aa1906b
    LeeTroy committed May 11, 2023
    Configuration menu
    Copy the full SHA
    c4e5f0c View commit details
    Browse the repository at this point in the history
  3. soc: aspeed: mctp: Ensure the Rx can only be enabled when PCIe get BDF.

    According to the specification DSP0238 Chapter 6.7: From the assertion
    “Fundamental Reset” until the PCIe fabric has been configured and
    enumerated, no “MCTP over PCI Express” messages can be sent.
    For error prevention this patch remove the aspeed_mctp_rx_trigger when
    MCTP driver probe, ensuring that it can only be called when PCIe obtains
    the BDF
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ia1afdc360b152ddca17098afc38bcc74db0e2f53
    billy-tsai committed May 11, 2023
    Configuration menu
    Copy the full SHA
    5da58b4 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2023

  1. soc/aspeed: pcc: Ensure FIFO allocation

    Revise driver probe to make sure FIFO is allocated
    before interrupt enabling.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I0a22d529c260b7990dcdc386ba0bee69435a24b3
    ChiaweiW committed May 18, 2023
    Configuration menu
    Copy the full SHA
    86812fd View commit details
    Browse the repository at this point in the history

Commits on May 23, 2023

  1. ipmi-kcs: aspeed: Extend support to 16 channels

    The current implementation limits to maximum 4 KCS channels support.
    However, AST2600 has 8 KCS channels and AST2700 has 16. This patch
    revise the driver to support more KCS channels.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: Ia73dafc1b51803f346117ab9d93e6b0d1eedf43e
    ChiaweiW committed May 23, 2023
    Configuration menu
    Copy the full SHA
    44d14b8 View commit details
    Browse the repository at this point in the history
  2. arm: dts: ast2600-evb: Add KCS channel number

    Add channel number for KCS nodes.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I64f09d0eab3c7a335ba33f49d6c005c4a3ee87ff
    ChiaweiW committed May 23, 2023
    Configuration menu
    Copy the full SHA
    b04e48a View commit details
    Browse the repository at this point in the history

Commits on May 25, 2023

  1. arm: dts: ast2600-dcscm: configure i3c1 as slave

    i3c1 is connected to AST1060 i3c2 on dcscm board, and it is
    used for testing MCTP over i3c(PFR 4.0 feature).
    
    Per Intel PFR specification, PFR is the i3c master and BMC is
    i3c slave.
    
    Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
    Change-Id: I1f483af3c38af65d3f95d63c7925e11712602c2c
    stevenlee7189 committed May 25, 2023
    Configuration menu
    Copy the full SHA
    6475b41 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2023

  1. ARM: dts: enable sol and kvm

    Signed-off-by: Troy Lee <troy_lee@aspeedtech.com>
    Change-Id: Ie12f7659ba735094976f8bca5d9dfc37ed86e2dd
    LeeTroy committed May 26, 2023
    Configuration menu
    Copy the full SHA
    9601ca9 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2023

  1. arm: dts: ast2600-dcscm: set bus width 1 for spi1

    set bus width 1 for spi1 and adds partition for testing
    configure i3c1 as slave for ast2600-dcscm-amd
    
    Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
    Change-Id: Iaabcf969d1c643e6e570710f560d241eea85b605
    jamin-aspeed committed May 29, 2023
    Configuration menu
    Copy the full SHA
    f531dbd View commit details
    Browse the repository at this point in the history

Commits on May 30, 2023

  1. drivers:i2c:add smbus block length check

    1.Check the smbus block length with I2C_SMBUS_BLOCK_MAX.
    If the length is larger than I2C_SMBUS_BLOCK_MAX, then return
    -EPROTO.
    
    Signed-off-by: Tommy Huang <tommy_huang@aspeedtech.com>
    Change-Id: Iea09059c1ccca8f3aa635aed08a8ddef0ebf1a5d
    TommyHuang0527 committed May 30, 2023
    Configuration menu
    Copy the full SHA
    5a6b2d6 View commit details
    Browse the repository at this point in the history
  2. drivers:i2c:update i2c report functionality

    1. Update the report functionality with I2C_FUNC_SMBUS_BLOCK_PROC_CALL.
    
    Signed-off-by: Tommy Huang <tommy_huang@aspeedtech.com>
    Change-Id: I1294ed0b9c889bccb1960982dfdad0af94996c1b
    TommyHuang0527 committed May 30, 2023
    Configuration menu
    Copy the full SHA
    dde4fcb View commit details
    Browse the repository at this point in the history
  3. soc: aspeed: mctp: Fix the packet size macro for ast2500.

    The TX_PACKET_SIZE_2500 macro in aspeed-mctp.c was incorrectly using
    DATA_ADDR_2500(x) instead of the parameter 'x'.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I884b30d68ce898ab23b79a3cbf14ed896e694e0b
    billy-tsai committed May 30, 2023
    Configuration menu
    Copy the full SHA
    5576e8f View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. soc: aspeed: mctp: Trigger the Rx when obtaining the BDF before drive…

    …r probe
    
    If the BDF has been previously assigned, invoke the aspeed_mctp_rx_trigger
    function during the MCTP driver's probe.
    
    Fixes: 5da58b4 ("soc: aspeed: mctp: Ensure the Rx can only be enabled when PCIe get BDF.")
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Idde407578efdfcb4cb1a60c2a84e2e070e9e9388
    billy-tsai committed May 31, 2023
    Configuration menu
    Copy the full SHA
    2e7ef04 View commit details
    Browse the repository at this point in the history
  2. soc: aspeed: mctp: Handle the rx issue when MCTP doesn't assert reset.

    In cases where the MCTP controller does not initiate a reset during BMC
    reboot, the controller will retain two Rx descriptors and utilize them for
    packet reception. However, updating the Rx DMA register in this scenario
    would result in resetting the Rx pointer to 0, leading to a misalignment
    between the descriptor locations and the received data. To address this
    concern, the current patch ensures that the Rx DMA register remains
    unchanged to ensure alignment between descriptor and rx data. Instead, it
    implements a mechanism to scan all Rx descriptors when the driver fails to
    locate the packet at the expected location after BMC reboot.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I27c7fdf0795f4e711a711f72e0103e573421c1f4
    billy-tsai committed May 31, 2023
    Configuration menu
    Copy the full SHA
    df8a671 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2023

  1. net: ftgmac100: Add reset toggling for Aspeed SOCs

    Toggle the SCU reset before hardware initialization.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I44e78a67a7f2edf822482117d35f279c01aa6489
    aspeeddylan committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    802ae28 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2023

  1. ipmi-kcs: aspeed: Remove address number check for KCS3

    Remove check on the number of addresses given.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I4038d7f54762127287334a9d60b6fa81dcb1defa
    ChiaweiW committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    09f6cc9 View commit details
    Browse the repository at this point in the history
  2. Revert "jtag: Remove unused jtag driver"

    This reverts commit 05993ee.
    
    Change-Id: If3aea8a31553dcdd498719970b9eeda1b8112aa4
    billy-tsai committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    beba3e3 View commit details
    Browse the repository at this point in the history
  3. Revert "drivers: jtag: Remove the CONFIG of intel jtag driver"

    This reverts commit 5392c6d.
    
    Change-Id: I1bf9489902e6da1eee06d3cd34d82a4278022ac3
    billy-tsai committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    2bec918 View commit details
    Browse the repository at this point in the history
  4. jtag: aspeed: Remove the constraints of shift status.

    The JTAG HW2 mode does not have any constraints on the current tap status.
    The only constraint imposed by the hardware is the number of steps
    required for TMS to reach the target tap status, which is 7.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I5e4550e96e143e2f90cc6d4a7d7dd1584e10de25
    billy-tsai committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    d1a4c70 View commit details
    Browse the repository at this point in the history
  5. jtag: aspeed: Support run tck for status_set function.

    This patch implements the "run tck" functionality in the status_set
    function. It ensures that the exact number of TCK toggles occurs after the
    tap status reaches the designated status, as assigned by the user space.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I4e125d13aa1e5a0ebabfa757dbec31262b0687dd
    billy-tsai committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    9c90d60 View commit details
    Browse the repository at this point in the history
  6. jtag: aspeed: Add "current" string.

    Add the "current" string to avoid the kernel panic when enable the jtag
    debug.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I826d45cc8d9b1e04034ab181c453520e0a39ba9e
    billy-tsai committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    479b980 View commit details
    Browse the repository at this point in the history
  7. configs: aspeed-g6: Use jtag-aspeed.c as default jtag driver.

    Use jtag-aspeed.c as default jtag driver. The legency jtag driver can't
    support HW mode2 which can't meet the requirement of AMD YAAP.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Id3ae2463f6f615d133a7cf72889164ea2b89c6f3
    billy-tsai committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    6d50e34 View commit details
    Browse the repository at this point in the history
  8. drivers: jtag: Add debug message

    Adding debug messages at the common API layer can be a useful tool for
    analyzing application behavior during debugging
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ideffd340405de2101b83980b02a663bd3ee7baaf
    billy-tsai committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    8072bf2 View commit details
    Browse the repository at this point in the history
  9. jtag: aspeed: Keep the value of clock divisor

    To ensure the STATE RESET command of the svf file is not missed due to a
    high frequency, this patch aims to set the default TCK frequency of the
    JTAG interface to 1MHz and maintain a constant divisor value for the
    global control register.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I4c3894bdec9a840054537250cf964345a72fa3b8
    billy-tsai committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    43e69f5 View commit details
    Browse the repository at this point in the history
  10. jtag: aspeed: Support trst control for ast2600 JTAG

    Add trst_set function for user space to control trst pin with ast2600
    JTAG.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I1150e7e5878af813a422fc04170c791de955312f
    billy-tsai committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    c899b08 View commit details
    Browse the repository at this point in the history
  11. drivers: jtag: Expand the max transfer data length

    Expands the max transfer data legth to 0xffffffff to meet the requirements
    of AMD YAAP utility.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ic2206cc8f91be045190b0489092849fc1ac0670d
    billy-tsai committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    e229f2a View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2023

  1. iio: adc: aspeed: Get the number of enabled channel.

    Retrieve the register value to calculate the number of enabled channels,
    which can be utilized to evaluate the updated frequency of each ADC
    channel.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Icdd5ce8562e83c5fffc815c4fedf94b760e52bb1
    billy-tsai committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    b4c926c View commit details
    Browse the repository at this point in the history
  2. iio: adc: aspeed: Support deglitch feature.

    Create event sysfs for applying the deglitch condition. When
    in_voltageY_thresh_rising_en/in_voltageY_thresh_falling_en is set to true,
    the driver will use the in_voltageY_thresh_rising_value and
    in_voltageY_thresh_falling_value as threshold values. If the ADC value
    falls outside this threshold, the driver will wait for the ADC sampling
    period and perform an additional read once to achieve the deglitching
    purpose.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ia629a416b1c26895195a4eca0eb379a86355f28f
    billy-tsai committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    2e83177 View commit details
    Browse the repository at this point in the history
  3. gpio: aspeed: Add the dummy read to ensure the write complete.

    erforming a dummy read ensures that the register write operation is fully
    completed, mitigating any potential bus delays that could otherwise impact
    the frequency of bitbang usage.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ib3f1a6aee2516b532263ec0437b329916933806c
    billy-tsai committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    647980e View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2023

  1. jtag: aspeed: Fix the from state for set tap function.

    The JTAG_STATE_CURRENT state from the api should be converted to
    aspeed_jtag->current_state instead of aspeed_jtag->state.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ia24ba4a3307a92d6a3fce2d7583fc3c7d456a43d
    billy-tsai committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    47e4cdc View commit details
    Browse the repository at this point in the history
  2. jtag: aspeed: process the TLR state in sw mode.

    When the end state is TLR, the driver should execute the same procedure
    as a reset.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I6c48fdffa788939e74aeff7038c83c4b33db4476
    billy-tsai committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    259983b View commit details
    Browse the repository at this point in the history
  3. jtag: aspeed: Add ndelay when toggling tck in sw mode.

    Add ndelay to make sure tck is slower than expected.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I30e8286a396d5d26aece8f5957ba1d141d058e7b
    billy-tsai committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    f4635aa View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. soc/aspeed: espi: Split eSPI drivers for SoC generations

    The eSPI controller has major design diversity between different
    generations. This results in lots of if-else statements checking
    the HW model in the driver code. The driver eventually gets hard
    to read and maintain.
    
    Based on the feedback given by the upstream review process, it is
    decided to split the eSPI drivers for each Aspeed SoC generation.
    And the regmap MFD interface is also dropped by integrating the
    eSPI control and eSPI MMBI drivers.
    
    The user interface as well as the IOCTL code remain unchanged.
    If the legacy implementation for AST2500 or AST2600 is wanted,
    simply revert this patch.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I7c579dfaac8ecc079ff9eaf81b850b24314e9bbb
    ChiaweiW committed Jun 8, 2023
    Configuration menu
    Copy the full SHA
    b0e588f View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. soc/aspeed: espi: Miscellaneous fix

    1. fix incorrect OOB TX control register write
    2. fix OOB DMA data address
    3. add SW reset to clean cached OOB RX DMA descriptor
    4. add default statement for switch-case
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I02d8205053760f49631938ca2e4cdfde6c6a6c5c
    ChiaweiW committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    638775b View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2023

  1. media: aspeed: Use %pad for dma_addr_t

    dma_addr_t may be defined as 32 or 64 bit per configuration. Use %pad
    can handle it properly.
    
    Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
    Change-Id: I48da668d36039710676391e6a1abcee7152e8dd5
    jammyaspeed committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    4c6e8ac View commit details
    Browse the repository at this point in the history
  2. media: aspeed: Use vm_flags to tell input/output mmap

    Input buffer is used for input which need write flag only. In this way,
    we can tell that VM_READ is for capture buffer.
    
    Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
    Change-Id: If5d43fc8a32b994764e85ac2a0a4782a25583c6c
    jammyaspeed committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    5615a41 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2023

  1. Revert "spi: spi-gpio: Implement spidelay by ndelay"

    This reverts commit d1238fd.
    
    Reason for revert: no need
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: Ibd2e9a149f8474d5a3e65fe68c25a565ca0aca3b
    chintingkuo committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    5e97b15 View commit details
    Browse the repository at this point in the history
  2. arm: dts: ast2600-dcscm-avenue-city: add u-boot partition

    Partition were missing when porting from aspeed-ast2600-dcscm.dts
    
    Signed-off-by: Troy Lee <troy_lee@aspeedtech.com>
    Change-Id: I0ed77ea2aed1e0bbdf83a053ac6bdb1ee25760b2
    LeeTroy committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    cdfaa4c View commit details
    Browse the repository at this point in the history
  3. mtd: spi-nor: Add gd55b01gf and gd55b02gf ID info

    Add gd55b01gf and gd55b02gf flash parts information.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: Ic0d7bda4bba634a7f493baec791c2d95a0be3bf4
    chintingkuo committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    8f88870 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2023

  1. usb: host: ehci: set 512 bytes FIFO threshold for Aspeed platform

    Set 512 bytes transmit FIFO threshold to avoid incomplete
    data packet transfer if the DMA engine cannot fetch the
    data in time.
    
    Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
    Change-Id: I32254454ddbe21b91cfbd7089ebf17be0a61a34b
    Neal-liu committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    8e8fddf View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2023

  1. drivers: soc/aspeed: Remove legacy eSPI files

    The new eSPI drivers are individually implemented for
    AST25xx/AST26xx/AST27xx SoCs due to design diversity.
    Remove the legacy driver files.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I7ee673ff643eb2bbd297e4bd1ecd082ca83fd20c
    ChiaweiW committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    b129e9e View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2023

  1. spi-nor: Remove dual mode for GDxxBxxGE flash part

    Since GDxxBxxGE flash part doesn't support SPI dual mode,
    SPI_NOR_DUAL_READ property should be removed.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: I462154d24460d961ca028acfe9bf04987c944b8e
    chintingkuo committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    39a065f View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2023

  1. i3c: aspeed: Remove the usage of hw pec.

    This patch removes all usage of hardware PEC when the I3C interface is in
    slave mode. The intention is to offload the PEC generation to the user
    space instead of embedding it within the device driver.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I3c0e05e40e3ca843cd2176fe11d79dbd8134e75c
    billy-tsai committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    aee0a89 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2023

  1. soc/aspeed: espi: Revise SAFS DTS property name

    Rename flash-safs-taddr to flash-safs-tgt-addr.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I3a86eebb6829c4e03a73d9f90e5131d68f7de56e
    ChiaweiW committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    7898d77 View commit details
    Browse the repository at this point in the history
  2. iio: adc: aspeed: Extend the delay time to meet ADC hw behavior.

    The patch is intended to extend the delay time when the last channel of
    the ADC is enabled. In our ADC, it takes 12 dummy sampling periods to
    switch the sampling channel from CH7 to CH0. Therefore, the patch checks
    the enable status of channel 7 in order to determine the appropriate delay
    period for obtaining the updated ADC values of each channel.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I759510c9bddb704a384df83b8109b8e36d696f11
    billy-tsai committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    dd068f8 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. spi: aspeed: Fix bug for lower SPI clock frequency

    When SPI clock frequency is lower than 12.5MHz, SPI driver
    will hang before access SPI flash.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: If923369978b011e80a8f20fef9dcf610b0003ffb
    chintingkuo committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    dd05bd3 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2023

  1. drivers: aspeed: usb-phy: revise driver probe flow

    1. More flexibility to do PHY setting in dts node.
    2. Check USB port B controller reset is deassert before set.
    
    Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
    Change-Id: Ida7546ccbb7c4aef6b59d17e256b0e8a840f686a
    Neal-liu committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    38cae5c View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2023

  1. soc: aspeed: mctp: Use special DMA poll.

    In our hardware design, the MCTP controller relies on the PCIe interface,
    which does not undergo a reset during system reboot. Therefore, it is
    important to reserve dedicated DMA memory for the MCTP controller to
    prevent sharing it with other devices, leading to potential memory
    pollution.
    This patch utilizes the of_reserved_mem_device_init function to enforce
    the driver's usage of memory reserved in the dts. It also reorders the
    allocation process to ensure that the DMA address for Rx data consistently
    starts at the beginning of the reserved memory. This last change is
    necessary due to a hardware limitation, where the Rx DMA address cannot be
    altered until the MCTP controller is reset by the PCIe PERST signal.
    Due to the caching behavior of the MCTP controller, changing the Rx DMA
    address can result in partial data being written to the old address. This
    can lead to data corruption or inconsistencies.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I6d8abfa46fd25406297521d064c25e2ac309e0c9
    billy-tsai committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    f19bd01 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. media: aspeed: Fix memory overwrite if timing is 1600x900

    When capturing 1600x900, system could crash when system memory usage is
    tight.
    
    The size of macro block captured is 8x8. Therefore, we should make sure
    the height of src-buf is 8 aligned to fix this issue.
    
    Change-Id: I425d0fd9e5f4f5880e0fe4f2c9d409e14f888fc7
    Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
    jammyaspeed committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    fad53a7 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2023

  1. soc/aspeed: pcc: Add A2600-15 AP note patch support

    Add a DTS property "A2600-15" support to enforce the
    corresponding AP note patch. For the A2600-15 details,
    please refer to the document center of Aspeed website.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: Ia44ca45b5bb877a3135757f6ce2cfb2a900d8662
    ChiaweiW committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    3aeb912 View commit details
    Browse the repository at this point in the history
  2. ipmi-kcs: aspeed: Fix DTS property and HW feature inconsistency

    Revise the driver for more consistent DTS naming and use.
    In addition, the limitation on only 4 KCS channels support
    is also relaxed.
    
    The HW design supports only level high/low serial IRQ to
    upstream interrupts to Host. This patch also simplfies the
    driver and fix unsupported SIRQ mode.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: Iba6c019db92cd8e3eace5a6ec003f60213c7f5aa
    ChiaweiW committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    a346533 View commit details
    Browse the repository at this point in the history
  3. arm: dts: Update KCS nodes to adapt to new driver

    Use new KCS DTS property.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I96176686cc5bb162861e0164bfb452b29f1a82aa
    ChiaweiW committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    365f603 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. ipmi-kcs: aspeed: Decouple channel and HW instance

    Use "reg" instead of "kcs-channel" DTS property to identify
    the KCS HW instance in use.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: Iec75ac636ae1c05bca7b6df09bdce8c734ad8234
    ChiaweiW committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    04ebfbe View commit details
    Browse the repository at this point in the history
  2. i3c: aspeed: Add dts property to support ibi with pec.

    Use the dts property "aspeed,ibi-append-pec" to indicate the i3c slave to
    append the PEC at the end of the data. This feature is used to make the
    i3c slave can compatible with our i3c master which will always check the
    pec when received the IBI.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I7668d805ff7e3fc2db1c08ed5a96e5a59f8d6d88
    billy-tsai committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    7c07355 View commit details
    Browse the repository at this point in the history
  3. arm: dts: aspeed-g6: Fix KCS reg property

    Fix the reg property, which represent IDR/ODR/STR, for KCS nodes.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I5ee7643e6f9f2744116edaa4e21f89a03c5dedb3
    ChiaweiW committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    8b07306 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2023

  1. i3c: ast2600: fixed incorrect bitfield usage of the DAT

    Fixed the compile error when CONFIG_AST2600_I3C_CCC_WORKAROUND is on.
    The error is caused by the incorrect usage of the bitfields of the DAT.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I3902e7887a9be29832dcef406133918653f83dd6
    aspeeddylan committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    e381aee View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

  1. Revert "i3c: aspeed: Add dts property to support ibi with pec."

    This reverts commit 7c07355.
    
    Change-Id: I764e23f5999a7fef628488b27dd47be681a1d948
    billy-tsai committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    b224a14 View commit details
    Browse the repository at this point in the history
  2. i3c: aspeed: Add dts property to support ibi without pec.

    Use the dts property "aspeed,ibi-wo-pec" to indicate the i3c slave not to
    append the PEC at the end of the ibi data.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Id45bd4055e462ffbe2bcd652aed5aec8678280d7
    billy-tsai committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    ac82141 View commit details
    Browse the repository at this point in the history
  3. mtd: spi_nor: Add customized read function for w25q02gjv flash

    w25q02g flash part includes four 512Mb dies.
    Each die size is 0x04000000. User cannot execute
    continuous read operation which directly crosses
    each die boundary. Thus, a cross die boundary
    read operation should be divided into two or more
    read operations.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: Id0eb94fa2e7984ba1c85f4f49d0d5a55ab2ba2c2
    chintingkuo committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    1878c5f View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2023

  1. mtd: spi-nor: Check NULL pointer before using

    Pointer "info->fixups" should be checed in advance.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: Ib17f7d477203bcf2ed2bd03dd2910bb0f617573d
    chintingkuo committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    ad2733e View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2023

  1. mmc: aspeed: add runtime tuning

    1. remove errata torvalds#75 to make 8 bit tuning works.
    2. iterate each tap delay to find the best window and select center.
    3. while tuning failed, reset recovery will be launched. it needs to
       save/restore register.
    
    Signed-off-by: Cool Lee <cool_lee@aspeedtech.com>
    Change-Id: I02a9029dd8bc58f0a308bbd135d2cc90145eb394
    cooool1123 committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    0210da8 View commit details
    Browse the repository at this point in the history
  2. ARM: dts: ast2600: Add DTS file for TEE-enabled EVB

    Add a new DTS file for EVB with TEE-enabled.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: Ib738c7c7d15341055113884ea906fe01766a0643
    ChiaweiW committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    e872cac View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. soc:aspeed:host bmc device support for ast2700

    Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
    Change-Id: Ie84e3e787f1983b30b6e47ced32047f27fe6c302
    aspeedtech committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    2660ee6 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. soc/aspeed: espi: Add module build

    Add module build for Aspeed eSPI drivers.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: Ia1cc948a0fac67113ac634a1a3d5cf3dd5fccc8f
    ChiaweiW committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    ff2abda View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2023

  1. soc/aspeed: espi: Cleanup on probe failure

    Misc. devices registration does not have managed implementation.
    Therefore, this patch unregister misc devices and free DMA memory
    explicitly if driver probing failed.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: Ia6e2caaea1e187059b0d2a970bb9ecb1be287460
    ChiaweiW committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    43fc0dd View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2023

  1. soc/aspeed: ast2500-espi: Remove vGPIO direction/group settings

    The AST2500 eSPI vGPIO direction and group selection can only
    be configured by eSPI Host.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I7c2d3306042f234bf44a0376f17c90c417cce5d4
    ChiaweiW committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    b272893 View commit details
    Browse the repository at this point in the history
  2. soc/aspeed: ast2600-espi: Remove vGPIO group setting

    The groups of HW vGPIO are limited to GPIOA/B/C/D on AST2600.
    Remove the 'vw-gpio-group' DTS property as it has no effect.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I93d2f1c952bb28cae584d18f228d498643cddfe4
    ChiaweiW committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    ec7c84b View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. i3c: aspeed: Abort the I3C transfer if a timeout occurs.

    If the I3C transfer times out, this patch will execute the abort command
    to ensure that the I3C controller enters the halt status, which will
    guarantee that the FIFO reset is completely cleaned.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I36aafd39b2128eb5717371dc55ba00bb016f0871
    billy-tsai committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    8c4be9a View commit details
    Browse the repository at this point in the history
  2. soc: aspeed: mctp: Remove the condition of skipping the hw reset.

    This is because the reset assertion has already been removed by patch
    119b79c. Skipping the reset deassert could result in the driver
    not having the necessary pair of reset assertion and deassertion.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I8b150d5db8c9e1807421f7d09940a2baddf37be6
    billy-tsai committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    2da18ab View commit details
    Browse the repository at this point in the history
  3. soc: aspeed: mctp: Fix the bdf reporting.

    The device number should be situated in the [7:3] field of the BDF,
    instead of the [4:0] field.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I9bc9f33c962f20d5aba0c0a37d612902b45e7287
    billy-tsai committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    f31f8c1 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. i3c: ast2600: Change the wait condition of the gen_tbits.

    The condition for entering ast2600_i3c_gen_tbits_in() is when the FSM is
    in the "service ibi" state. It only try to escape the fsm from this
    status doesn't ensure that the controller will recover to the idle state
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I9d8773b02e81e664d5b84ee3b00c67669ed21479
    billy-tsai committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    7f752b7 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. gcc-plugins: Reorganize gimple includes for GCC 13

    The gimple-iterator.h header must be included before gimple-fold.h
    starting with GCC 13. Reorganize gimple headers to work for all GCC
    versions.
    
    Reported-by: Palmer Dabbelt <palmer@rivosinc.com>
    Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
    Link: https://lore.kernel.org/all/20230113173033.4380-1-palmer@rivosinc.com/
    Cc: linux-hardening@vger.kernel.org
    Signed-off-by: Kees Cook <keescook@chromium.org>
    
    Signed-off-by: Kevin Chen <kevin_chen@aspeedtech.com>
    Change-Id: I98615a089d50b72c7346755edbf5eb504638e1fd
    kees authored and aspeedkevin committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    8fa7d58 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. dts: aspeed: dcscm: Remove pch staging region

    Both BMC and BIOS firmware update will use img-stg region.
    
    Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
    Change-Id: Ia14864428d9cb54d825349a21f6ecc739d0fd9b8
    stevenlee7189 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    7c8cb3d View commit details
    Browse the repository at this point in the history
  2. drivers:i2c:add smbus xfer native support

    1.Implement i2c smbus transfer native support.
    
    Signed-off-by: Tommy Huang <tommy_huang@aspeedtech.com>
    Change-Id: Ie5c2db49ab49c21cd5d06b68c8eaa546a2563149
    TommyHuang0527 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    3ffcb0f View commit details
    Browse the repository at this point in the history
  3. soc:aspeed: update sync with ast2700 host-bmc-dev

    Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
    Change-Id: I408fde7b9d257d4a99ef341451e4271dedb6f496
    aspeedtech committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    adcf900 View commit details
    Browse the repository at this point in the history
  4. dtsi: rename pcie vuart from vuart->pcie_vuart

    Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
    Change-Id: If6831c63cd81f13e5a212d1957e63ed99a1e090c
    (cherry picked from commit 801d8b3)
    aspeedtech committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    1afd6fc View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2023

  1. soc: aspeed: mctp: Fix the condition for clearing rx_warmup.

    The rx_warmup flag should be cleared after the first loop when the chip
    version is A1/A2. This is because the initial loop of the receive buffer
    might conclude from an unpredictable location. Hence, the driver must
    continue searching for the packet in all buffers until the wrap-around
    condition stabilizes after the initial loop.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Id1c63b92d21a0f00989cc89aa8cb1cbc2baf6872
    billy-tsai committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    efb3213 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2023

  1. i3c: ast2600: Reject I2C transfers without data bytes

    The I3C controller will not receive any response for I2C transfers
    without data bytes. Consequently, the I3C controller is unable to
    determine whether these transfers are valid or not. Additionally, this
    situation can lead to timeouts in i2c_xfer, triggering an abort->reset
    event. Therefore, this patch rejects this kind of I2C transfers and
    presents a message to notify the users.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: Iab0d7f68df1be727a2b2bb37a314d734abe5ae91
    aspeeddylan committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    4bf0dcf View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2023

  1. i3c: ast2600: Organize the api to wait for abort/resume/reset.

    The abort/resume and reset fifo operations both require waiting for the
    hardware signal to confirm that the behavior has been successfully
    completed. Therefore, this patch introduces an API to incorporate the
    waiting behavior within specific functions.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I7d218379c6c93523284b77a998ab519829cc90d4
    billy-tsai committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    7989f41 View commit details
    Browse the repository at this point in the history
  2. i3c: ast2600: Fix the bus hang issue when ibi queue overflow.

    When our i3c controller nack the IBI which isn’t existed in our DAT the
    ibi buffer counter (IBI Buffer Status Count) may lose the control.
    Consequently, the counter surpasses the tolerance level for the ibi buffer
    capability(16). When the controller attempts to read the IBI buffer with a
    counter value greater than 16, the CPU will experience a hang due to the
    absence of a response from the bus. The software workaround introduced in
    this patch to avoid this scenario by the following step for handling the
    ibi:
    1. Enter the halt status to prevent additional IBIs from being serviced
    by hardware and subsequently dropped at the end of the function without
    software handling.
    2. Service only a maximum of 16 IBI statuses.
    3. Reset the ibi queue after each ibi service routine.
    As a side effect, this workaround could lead to a decrease in i3c
    performance and might not respond to IBI requests when servicing the
    previous IBI (i.e., causing the SCL to become stuck).
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ia9fc66aedb604dd8cef3af9f947047c45c6bc3b3
    billy-tsai committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    8cc6a27 View commit details
    Browse the repository at this point in the history
  3. Arm: dts: aspeed-g6: Add definitions in video

    Add definitions to simplify driver access to resources.
    
    Change-Id: If052324e42d1de3eeabda995375af92cd5e3209c
    Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
    jammyaspeed committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    48168fe View commit details
    Browse the repository at this point in the history
  4. media: aspeed: Make it common to access scu/gfx

    Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
    Change-Id: Id06d4a9b6f010ee09c6fa644d97bea4aec41f840
    jammyaspeed committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    9dc6237 View commit details
    Browse the repository at this point in the history
  5. mmc: aspeed: remove additional messages

    Signed-off-by: Cool Lee <cool_lee@aspeedtech.com>
    Change-Id: I3fcd1ab6c2c4694319e5f3d10ea3bc48516d8161
    cooool1123 committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    458a2b8 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2023

  1. media: aspeed: Refine regmap for scu/gfx

    Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
    Change-Id: Ieea89ea4adc4dd179dc865b107bd591c33a131ce
    jammyaspeed committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    260f915 View commit details
    Browse the repository at this point in the history
  2. dtsi: flash: add 32MB flash layout for evb

    update ast2500 evb flash layout
    
    Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
    Change-Id: I8b0683e433c65d781f0f0f0a83d10377c5324307
    jamin-aspeed committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    1a16d36 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2023

  1. soc: aspeed: mctp: Fix the register of peci-mctp.

    The device name in the platform_device_register_data API is used for
    binding with the device driver. If multiple mctp device needs to bind
    peci-mctp driver, it should change the ID to PLATFORM_DEVID_AUTO instead
    of modifying the name parameter.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ic895697e2663e256e375b9678aff564466ae6fe5
    billy-tsai committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    fe78d98 View commit details
    Browse the repository at this point in the history
  2. i3c: ast2600: Fix the step of the stop condition.

    The stop condition for the i3c protocol requires both the SCL and SDA
    lines to be low before the transition from low to high on the SDA line
    with the SCL line remains high.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I8453d0ba6ccd4a009899613738bd6852fc704319
    billy-tsai committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    de5b6f3 View commit details
    Browse the repository at this point in the history
  3. i3c: ast2600: Generate the stop condition when slave disable.

    The i3c slave requires a stop condition to clear the internal hardware
    flag. This prevents subsequent enable operations from failing due to this
    flag.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I762265e75118143034c6d7ffd9811f38deeec630
    billy-tsai committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    22fb54f View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. soc/aspeed: espi: Enhance cleanup operations

    Enhance the controller cleanup process.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I761a41161a881cdd941e6cf148695f8847724871
    ChiaweiW committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    8591e24 View commit details
    Browse the repository at this point in the history
  2. arm/dts: aspeed: Update TEE memory region of AST2600 EVB

    Update the OPTEE memory region based on the 1GB DRAM layout
    of AST2600 EVB.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I059ecce1d05abadca5bf9612b75e7fad68a7168c
    ChiaweiW committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    800cfcb View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. i3c: master: Implement CCC DEVCTRL function

    DEVCTRL is a broadcast CCC that is used to configure SPD-Hub and all
    devices behind hub.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I4ce04ee955eeeb370cc537f91dec4601b80416ac
    billy-tsai committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    461e8cf View commit details
    Browse the repository at this point in the history
  2. i3c: ast2600: Support DEVCTRL CCC.

    Add the id of DEVCTRL CCC to the support ccc list.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ia87ead608a77ba436f61c913f836b44c607f7623
    billy-tsai committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    6283a8d View commit details
    Browse the repository at this point in the history
  3. i3c: ast2600: Enable the pec for all devices.

    It's not feasible to restrict the payload length of the device isn't
    4n+1. Thus, eable the PEC for all devices, not just ASPEED i3c devices.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I7a10ee98a655259564fd45e73080a2db9a43a73d
    billy-tsai committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    ef43969 View commit details
    Browse the repository at this point in the history
  4. spi: aspeed: Support pure SPI mode only

    Add "pure-spi-mode-only" property in order to support
    the scenario where the total address decoded size is greater
    than 256MB.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: I6d12ff0eebc0088d4596181fbbd58136b3b2107f
    chintingkuo committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    e33e150 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. spi: aspeed: Free DMA buffer when driver is removed

    Use dma_free_coherent to free a DMA buffer when the driver
    is removed, otherwise, CMA will be exhausted during bind and
    unbind stress test.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: I5a810903303d3e07a0dc9c427a9eeca6fe8aea5b
    chintingkuo committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    beab744 View commit details
    Browse the repository at this point in the history
  2. arm/dts: aspeed-g6: Update partition layout

    Update partition layout for AST2600 SoC.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: Ia514e968bf84df3460d96db9cd226dae9149a4cf
    ChiaweiW committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    2eb66d7 View commit details
    Browse the repository at this point in the history
  3. soc/aspeed: ast2600-espi: Fix SAFS/eDAF mode setting

    The mode settings of SAFS/eDAF occupy two bits.
    It should be cleared and then re-configured.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: Iff403b82cd0a4d0a92c2c0caf4270dd3279e32d5
    ChiaweiW committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    24359a6 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. i3c: ast2600: Fix the dynamic address for the PEC.

    Get the slave dynamic address from the hardware register instead of the
    software variable to ensure the correct of the PEC value.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I6ecbc240dc9c4aab4ab1436e61892f776b4816a3
    billy-tsai committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    05710aa View commit details
    Browse the repository at this point in the history
  2. dts: ast2600-dcscm: Align partition layout with ast2600-evb

    Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
    Change-Id: Ia06bc38eed74bc8a58003fef23d6510cf743858b
    stevenlee7189 committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    a1078ec View commit details
    Browse the repository at this point in the history
  3. dts: ast2600-dcscm-amd: Align partition layout with ast2600-evb

    Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
    Change-Id: I25f62eef616d91e70b043b54d42340bb197b0d4d
    stevenlee7189 committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    d803a83 View commit details
    Browse the repository at this point in the history
  4. arm: dts: ast2600-dcscm-avenue-city: align partition with ast2600-evb

    Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
    Change-Id: I1fa583b2ec2e4ef7341b4510ed799a81e508168b
    stevenlee7189 committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    699f946 View commit details
    Browse the repository at this point in the history
  5. soc/aspeed: espi: Reorder memory cycle enabling

    Decline memory cycle read/write until everything are ready.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I1f4f3c4a0a9a97d6c65cdf960b956ae4b01a8c27
    ChiaweiW committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    67e6111 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2023

  1. configs: aspeed-g6: Change Kernel compression mode from LZO to XZ.

    Signed-off-by: Kevin Chen <kevin_chen@aspeedtech.com>
    Change-Id: I3a000a7b9ecd06ac274713a9be9a7bc7d625273d
    aspeedkevin committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    9d3199a View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2023

  1. arm/dts: aspeed: Update MCTP memory region of AST2600 EVB

    Update the MCTP memory region based on the 1GB DRAM layout
    of AST2600 EVB.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I70f43638c3f340964ed4d990eb5dfd7c232a23cf
    billy-tsai authored and aspeeddylan committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    07d152e View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2023

  1. usb: aspeed_vhub: Fix epn queue request synchronization issue

    ast_vhub_epn_queue API sometimes has synchronization problem with
    ast_vhub_epn_disable API. If disable the ep during enqueuing a request to
    the ep, the state and the request list may be wrong. Therefore, move the
    spinlock earlier to protect the whole ast_vhub_epn_queue API as cirtical
    section.
    
    Signed-off-by: Joe Wang <joe_wang@aspeedtech.com>
    Change-Id: Ic5fc640047f6d3ab38f03fb050070ee53232b999
    joe-aspeed committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    5b11d2c View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2023

  1. Merge branch 'dev-5.15' into merge-v5.15.80-fix

    Change-Id: I49ca10c1913e5b7cc2cd8ab5fb8769812cf610e8
    aspeedkevin committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    b0c9fed View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2023

  1. i3c: ast2600: Free the temp memory for PEC.

    Fix the issue of missing free temporary memory when appending PEC
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I631832422102cf89c1f5aad178e2fc2ce940ffff
    billy-tsai committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    8a20386 View commit details
    Browse the repository at this point in the history
  2. i3c: ast2600: Check the sir enable before sending it.

    The IBI notification in the 'put_read_data' function will trigger the IBI.
    Therefore, add the SIR enable check to prevent the slave from sending the
    IBI when the hardware does not allow it
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Idca8128c612e28a81204766596e3aeae5a17b39f
    billy-tsai committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    6c631ef View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2023

  1. i3c: ast2600: Get reset_control struct without reset-name

    Use "NULL" instead of "core_rst" to get the reset_control structure as
    there is no definition for the reset-control and reset-name.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I89593cb0cad001522346319762e8bc740680551c
    aspeeddylan committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    6407e01 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2023

  1. pinctrl: aspeed-g6: Remove unnecessary signal configure.

    1. Remove the configuration of the SCU470[13:0], which is reserved
    according to the datasheet.
    2. The driver will disable higher-priority signals, so clearing the
    configuration that has been set by the higher-priority signal is
    unnecessary.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I7a86b850f4166962ee317b6520702b61ddcef391
    billy-tsai committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    f8b4888 View commit details
    Browse the repository at this point in the history
  2. Revert "i3c: ast2600: Fix the bus hang issue when ibi queue overflow."

    When entering the halt state in IBI may lead to a race condition with
    private transfers, resulting in the halt and resume not pairing correctly.
    
    This reverts commit 8cc6a27.
    
    Change-Id: Ic02a758a3a20acfa83d844bdff569bb7d98b3667
    billy-tsai committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    4862c1f View commit details
    Browse the repository at this point in the history
  3. Revert "i3c: ast2600: prevent sharing hardware DAT in do_daa"

    The original patch was intended to address concerns about multiple devices
    sharing the same hardware DAT, which could lead to concerns about the
    dynamic change of the DAT address when the user space wants to transfer
    data with devices in the same group. After tracing the software stack of
    the transfer, it becomes clear that the race issue related to the usage of
    the hardware DAT won't occur. This is because each transfer locks the bus
    and unlocks it once the transfer is completed, the DAT change won't
    appear between this operation.
    
    This reverts commit 3dfae96.
    
    Change-Id: I350402e47110411e84ac20d7eb0b6f995d88b068
    billy-tsai committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    ba96117 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. i3c: ast2600: Avoid the bus hang issue when ibi queue overflow.

    When our i3c controller nack the IBI which isn’t existed in our DAT the
    ibi buffer counter (IBI Buffer Status Count) may lose the control.
    Consequently, the counter surpasses the tolerance level for the ibi buffer
    capability(16). When the controller attempts to read the IBI buffer with a
    counter value greater than 16, the CPU will experience a hang due to the
    absence of a response from the bus.
    This patch will clear the IBI FIFO when the IBI counter exceeds 16, and
    the IBI response status receives a NACK, indicating that the controller
    received the IBI from an address not included in the hardware DAT.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ifc4b4403e627f5f4c05279de659e2956887198c5
    billy-tsai committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    d316a12 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2023

  1. i3c: ast2600: Remove unused code

    Remove unused code.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: Idbc432279fd5b27167c823cb551afdbec1866cbe
    aspeeddylan committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    19db05d View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. arm:dts add alternate flash layout

    add alternate flash layout to support abr
    
    Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
    Change-Id: I194507d31842245445ff29b160b37078e9890552
    jamin-aspeed committed Oct 2, 2023
    Configuration menu
    Copy the full SHA
    1bdf2f2 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. configs: aspeed_g6: Disable /dev/mem/ filter

    For debug purposes.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I48ac6cd42f71b691209f9bb4dd5e26202f068777
    ChiaweiW committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    93d9b64 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. mtd: spi-nor: Add XMC flash parts

    Add XMC flash parts support.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: I361d6f4febf6bd8cd21eac3506c8f671ea460301
    chintingkuo committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    4ca064f View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2023

  1. i2c: ast2600 enable multi-master recover bus

    when i2c bus timeout, check the bus status, and recover the bus.
    
    Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
    Change-Id: I6d8f103437be65c484ed117ad7043777bf9847a0
    aspeedtech committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    e73e90f View commit details
    Browse the repository at this point in the history
  2. i2c: ast2600 i2c clock refine

    refine i2c clock assign and calculate.
    
    Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
    Change-Id: I7cb8a1686ac19a94c9000eb1dca49beeb697b353
    (cherry picked from commit 3e41f6f)
    aspeedtech committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    07fc10d View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2023

  1. i2c: ast2600 driver align submit

    align submit driver
    
    Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
    Change-Id: I9bc1bd3f8a251645d6e56d74666bc26962e39c2e
    aspeedtech committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    7232721 View commit details
    Browse the repository at this point in the history
  2. i2c: ast2600 driver align submit

    align submit driver
    
    Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
    Change-Id: I0fd152a6b3bba00dc6b8b807f1fc53e051901844
    aspeedtech committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    c9e8749 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2023

  1. i2c:ast2600 update for timeout

    align with submit timeout use i2c-scl-clk-low-timout-us
    
    Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
    Change-Id: I4aba66ada3e7ed46222e50f29da88335bc907d90
    aspeedtech committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    49e4ab3 View commit details
    Browse the repository at this point in the history
  2. i3c: Disable I3CDEV_FORCE_CREATE by default

    Disable I3CDEV_FORCE_CREATE by default, as most of the I3C developers
    start to develop their own device drivers.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: Ia2bb34eff389fafeb16d523d1ca8734350e99748
    aspeeddylan committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    a8a45ad View commit details
    Browse the repository at this point in the history
  3. i3c: ast2600: Correct I3CG_REG1 address calculation

    Correct the potential error of I3CG_REG1 address calculation.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: Iab8391bd57aaa685fb5ff09f52b1e75f54c2296c
    aspeeddylan committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    8b7e9fe View commit details
    Browse the repository at this point in the history
  4. i3c: mctp: Add AST2600A3 to the ID table

    Add AST2600A3 to the ID table for device driver binding.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I61018dfb42d4c8d80b0d8fa1f34ddfac6d69e6fb
    aspeeddylan committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    791b160 View commit details
    Browse the repository at this point in the history
  5. i3c: mctp: Disable PEC by default

    Disable HW PEC by default so that the receiver can obtain the complete
    raw data. This will help clarify the driver development issue.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I3a39039ffbe8310ffb79aea2dd572eb23ca49832
    aspeeddylan committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    385a6df View commit details
    Browse the repository at this point in the history
  6. i2c: ast2600 i2c timeout recover.

    1. When sw timeout occur, reset i2c bus
    2. If in multi-master mode timeout due to sda low, try to recover bus.
    
    Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
    Change-Id: I0c4d86cec7df6460c223a3e20c2e9d201cc817f3
    aspeedtech committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    69a94f4 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2023

  1. i2c: aspeed: Modify the SMBUS I2C_M_RECV_LEN checked behavior

    Remove the EPROTO status return when the SMBUS receive the package
    length from first byte. The package length will be modified by
    linux kernel define.
    
    Signed-off-by: Tommy Huang <tommy_huang@aspeedtech.com>
    Change-Id: I5284d209050186fcbd6f69e8f1c8f6f3a50b835c
    TommyHuang0527 committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    d373320 View commit details
    Browse the repository at this point in the history
  2. soc/aspeed: ast2600-espi: Disable memory cycle auto-off

    Disable the peripheral memory cycle auto-off feature on WDT
    reset events.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: Ibbb1ef6c9f5083d57e691883acd002f68c16dc9c
    ChiaweiW committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    ad5ec80 View commit details
    Browse the repository at this point in the history
  3. jtag: add the deprecated for the JTAG_ASPEED_INTERNAL.

    Add the 'deprecated' notice to discourage the use of
    'jtag-aspeed-internal.c'.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I66d0c37be03ac6d6a1ba28c439db2d2eb5a4688e
    billy-tsai committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    f6447df View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. jtag: aspeed: Keep the TRSTn to high when jtag hw2 enable.

    The TRST control bit for JTAG hardware mode 2 is part of the mode2 control
    register. In order to ensure that TRST remains high when performing other
    operations and to avoid potential issues with devices that require it, we
    should set this bit to 1 when enabling JTAG to meet the usage of the
    jtag hw mode1.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I103b05894045ad314b319e612ccc3576a470a59b
    billy-tsai committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    f53861f View commit details
    Browse the repository at this point in the history
  2. jtag: aspeed: Add low level operation for trst set.

    Controlling the TRST pin for JTAG hardware mode 1 and mode 2 requires
    setting different register bits. This patch introduces a low-level
    operation API to manage these two modes separately.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I9ca90cc357551ad3ec7610fb9086fa3228733b38
    billy-tsai committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    d72fca1 View commit details
    Browse the repository at this point in the history
  3. jtag: aspeed: Use the out_en in hw2 register for sw mode.

    For the software mode, it's still necessary to enable out_en and select
    the out_en in the hw2 register to maintain control of the TRST bit same as
    hw2.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Ifc66d03b74cab334bbe24132ca3c7bc4d8439395
    billy-tsai committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    1b80adc View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. dts: aspeed_dcscm: Remove adt7490 device

    Remove unnessary adt7490 from i2c7 bus.
    
    Signed-off-by: Tommy Huang <tommy_huang@aspeedtech.com>
    Change-Id: Ic931ede1f62ed4bbb0ad70f6755529fb480bd79e
    TommyHuang0527 committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    303d16a View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2023

  1. drivers: crypto: hace: remove unnecessary dummy read

    Remove unncessary dummy read.
    
    Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
    Change-Id: I510a4149b7933debdd8f0ec0c8d140be381feb3a
    Neal-liu committed Nov 6, 2023
    Configuration menu
    Copy the full SHA
    aa2541e View commit details
    Browse the repository at this point in the history
  2. arm/dts: ast2600-evb-tee: Align to EVB board DTS

    Align the DTS configuration by including the default
    EVB DTS to reduce the maintain efforts.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I6dad48893b53d946f590b0ac13428923d2a0b917
    ChiaweiW committed Nov 6, 2023
    Configuration menu
    Copy the full SHA
    71e2002 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2023

  1. soc/aspeed: udma: Refactor coding style

    1. use size macro
    2. use FIELD_PREP
    3. shorten macro naming
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: Ic28226a5d539487c178f892eb6144c2b3a42b200
    ChiaweiW committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    e780476 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2023

  1. spi: aspeed: Add support dual and quad io mode

    Support dual and quad IO on fmc_spi.c.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: I55d88e32f59fdd74b4b3f321eb2c35908dbeb526
    chintingkuo committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    25b91eb View commit details
    Browse the repository at this point in the history
  2. dts: aspeed: Remove redundant SPI settings

    Remove unnecessary SPI bus-width settings.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: Icb710e395b2a3bb3f071c7941a3e88857f786844
    chintingkuo committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    e0256dd View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2023

  1. arm: dts: aspeed: Fix the property name for ADC.

    Rplace the ADC "vref = <2500>;" property with "aspeed,int-vref-microvolt
    = <2500000>;"
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: Icc3f4d9f9dc407f3eeda2d0170b3a770f9e2ae05
    billy-tsai committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    695ab64 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2023

  1. ipmi: kcs_bmc_aspeed: Add IDA support

    Use IDA to get a unique ID for device node indexing if
    the 'kcs-channel' property is not specified.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I1103d6299c7251ff5cb6544c613ae74041486e9a
    ChiaweiW committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    4db9120 View commit details
    Browse the repository at this point in the history
  2. ipmi: bt_bmc_aspeed: Add IDA/SIRQ/IO_BASE configuration

    1.
    Use IDA to get a unique ID for device node indexing if
    the 'bt-channel' property is not specified.
    
    2.
    Add upstream SerIRQ configuration support via the
    'bt-upstream-serirq' property
    
    3.
    Add IO base address configuration support via the
    'bt-io-addr' property.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I8ca10401a24374e464764adda503db70b21a7186
    ChiaweiW committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    38dd9f1 View commit details
    Browse the repository at this point in the history
  3. ipmi: bt_bmc_aspeed: Fix SerIRQ type

    Only IRQ_TYPE_LEVEL_LOW/HIGH are supported.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I01602a0c6fed767d2b499412af2ade2179da5ebd
    ChiaweiW committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    e9589e4 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2023

  1. ipmi: kcs_bmc_aspeed: Refine INFO message

    Refine dev_info() message upon successful probing.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I0b4612136dc078fe8eb9e8d13f43f11047874b12
    ChiaweiW committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    5a95c20 View commit details
    Browse the repository at this point in the history
  2. soc/aspeed: lpc_snoop: Add dual node support

    Add dual node support and refactor coding style.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: Ie219aa261e0be7ffe7519ae706d2c812cf1335b6
    ChiaweiW committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    99db9cf View commit details
    Browse the repository at this point in the history
  3. soc/aspeed: pcc: Add dual node support

    Add dual node support.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: Ie8927674e228191aff540fe9bb4b5d35058242cd
    ChiaweiW committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    7c7042a View commit details
    Browse the repository at this point in the history
  4. soc/aspeed: mbox: Add dual node support

    Add dual node support.
    
    Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
    Change-Id: I89e69552bebf98e28afe8a77ff6c56619294179c
    ChiaweiW committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    86b440a View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2023

  1. i2c: fix index 1~4.

    fix update for index 1~4
    
    Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
    Change-Id: I01c5111ae2c4832319595fcd03d180b9ede9fcd8
    (cherry picked from commit 476bb03)
    aspeedtech committed Dec 13, 2023
    Configuration menu
    Copy the full SHA
    0e13196 View commit details
    Browse the repository at this point in the history
  2. dts: aspeed: Add shm-size property for shared memory.

    Change-Id: I8906d03d85870e19e77ff27e0562f77cadf6f489
    Signed-off-by: Kevin Chen <kevin_chen@aspeedtech.com>
    aspeedkevin committed Dec 13, 2023
    Configuration menu
    Copy the full SHA
    4d83b48 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2023

  1. soc: aspeed: process shared memory data with CM3.

    Change-Id: I3e3895bc0d3754239aa6d995d279061ae2a50414
    Signed-off-by: Kevin Chen <kevin_chen@aspeedtech.com>
    aspeedkevin committed Dec 14, 2023
    Configuration menu
    Copy the full SHA
    011015c View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2023

  1. soc: aspeed: mctp: Avoid using dma_alloc_coherent.

    The dma_alloc_coherent will automatically clear the allocated memory,
    causing a time gap when the MCTP controller receives the packet after BMC
    reboot or kernel module reinstall.
    ast2500: The MCTP rx can't be stopped by the software or WDT.
    ast2600: The MCTP rx can be stopped by the WDT, but still cannot be
    stopped by the software.
    This may result in using '0' as the rx data destination address, leading
    to memory pollution.
    Instead, this patch uses ioremap and phys_to_dma to obtain the CPU address
    and DMA address to avoid it.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I26300a35e4e91e0527b64e88e96adf77a26f7c55
    billy-tsai committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    47b5625 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2024

  1. soc: aspeed: ssp: Use ioremap for large memory usage.

    dma_alloc_coherent cannot alloc the memory bigger than 32MB in
    linux-5.15 in ast2600. Use the ioremap by the physical to get
    the virtual address for release_firmware usage.
    
    Change-Id: I3ac532836a1b47044d4e156e4430cf1030f5ccf2
    aspeedkevin committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    2c7f39c View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. spi-nor: Add XTX flash parts support

    Add XT25W512B and XT25W01GB flash parts support.
    
    Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
    Change-Id: I86b08cc2c401453780ed69ed59aa4151c7a5d8c4
    chintingkuo committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    274b8c0 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2024

  1. drivers: mmc: Patch HOST_CONTROL2 register missing after top reset

    HOST_CONTROL2 register will be cleared after top reset,
    it needs to be saved/resotred while reset.
    
    Signed-off-by: Cool Lee <cool_lee@aspeedtech.com>
    Change-Id: Ie97acac87eb81d73fa20294c777776dbacb377e0
    (cherry picked from commit 0c69253)
    cooool1123 committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    3aec06f View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. arm: dts: aspeed-g6: add ast2600 sram range in dtsi.

    Change-Id: I4b61d289e68370e3149aab1eae8ac332809be46c
    Signed-off-by: Kevin Chen <kevin_chen@aspeedtech.com>
    aspeedtech authored and aspeedkevin committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    a40e981 View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

  1. i2c: ast2600: Modify for SMBus driver support usage

    Change the SMBus support just on i2c buffer mode.
    
    Signed-off-by: Tommy Huang <tommy_huang@aspeedtech.com>
    Change-Id: I0d225e28f94beced2e3a14f914847d449fd5766b
    TommyHuang0527 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    faf3118 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2024

  1. i3c: ast2600: Fix typo of the group address mask

    Fix the typo when applying `dev_grp->mask.clr`.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I35b2fe0c5f8abc1e4020a8f5b3c24e535813c467
    aspeeddylan committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    9d650c4 View commit details
    Browse the repository at this point in the history
  2. i2c: ast2600: Fix the DMA unmap behavior

    When the device nak occur, the DMA map would not be released.
    Add behavior to check if the DMA need to be released before
    leaving master transfer function.
    
    Signed-off-by: Tommy Huang <tommy_huang@aspeedtech.com>
    Change-Id: Ic83674df33e373e5861f30f3c263f172cc086bec
    (cherry picked from commit 465f886)
    TommyHuang0527 committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    c2fb133 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. i3c: ast2600: Implement JESD403 timed reset via SW force mode

    The hardware timed reset pattern cannot be sent if the SDA is held low
    by the target device. This commit implements it via software force mode.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: Ifaa4dc96e88a95427cc2acd30074e68aa2f94c64
    aspeeddylan committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    017d6c4 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. soc: aspeed: mctp: unified the method to get bdf

    The bdf value is only valid when pcie link-up.
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I4667075c88ceee295088e80164765794eeaadd10
    billy-tsai committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    d295200 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2024

  1. pinctrl: pinctrl-aspeed-g6: Fix register offset for pinconf of GPIOR-T

    The register offset to disable the internal pull-down of GPIOR~T is 0x630
    instead of 0x620, as specified in the Ast2600 datasheet v15
    The datasheet can download from the official Aspeed website.
    
    Fixes: 15711ba ("pinctrl: aspeed-g6: Add AST2600 pinconf support")
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
    Change-Id: Iaa8e09a7d357c84c10798a9b7342e065ef374b0b
    billy-tsai committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    5b8d510 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. i3c: ast2600: Recover the bus if SDA stuck low

    Toggle the SCL pulses (up tp 19 pulses) when failed to transfer and the
    SDA stuck low.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: I6d40994e5e7b5fe6005df42380d1b0a80620b075
    aspeeddylan committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    8ec430d View commit details
    Browse the repository at this point in the history
  2. i3c: ast2600: Rework JESD403 timed reset

    Try to prevent using a software-forced timed reset, as this approach
    doesn't take care of ongoing transfers and IBIs. The new implementation
    lets the controller enter a halt state first to ensure that ongoing
    transfers are completed. Then, it recovers the bus to an idle state if
    the current SDA level is tied low by the target devices. If the SDA
    remains low, it uses a software-forced mode; otherwise, it uses the
    hardware mode.
    
    Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
    Change-Id: Id2ad10ded18d7dfe7c032803ddde76dcf1d0a775
    aspeeddylan committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    7ade5af View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. arm: dts: aspeed-g6: Complete the interrupt property for sgpiom

    The interrupt controller node needs the #interrupt-cells property to
    inform the consumer about how to specify its parameters. This patch adds
    it to complete the interrupt property for sgpiom as an interrupt
    controller
    
    Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
    Change-Id: I63621548a0e39b4ee7f7e4784579c3d8d9bf59eb
    billy-tsai committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    1a1a4df View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. i2c: aspeed: Reset the i2c controller when timeout occurs

    Reset the i2c controller when an i2c transfer timeout occurs.
    The remaining interrupts and device should be reset to avoid
    unpredictable controller behavior.
    
    Signed-off-by: Tommy Huang <tommy_huang@aspeedtech.com>
    Change-Id: I21531d4eef586e6d1464a341f54761c6ddcd1966
    TommyHuang0527 committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    cae1d25 View commit details
    Browse the repository at this point in the history