8b21180f | 17-Jan-2025 |
Michal Simek <michal.simek@xilinx.com> |
i2c: eeprom: Use reg property instead of offset and size
Remove adhoc dt binding for fixed-partition definition for i2c eeprom. fixed-partition are using reg property instead of offset/size pair.
(
i2c: eeprom: Use reg property instead of offset and size
Remove adhoc dt binding for fixed-partition definition for i2c eeprom. fixed-partition are using reg property instead of offset/size pair.
(cherry picked from commit f692b479f02d9b2689b0686f1f6ff2f06c6ecc59)
Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tan Siewert <tan.siewert@hetzner.com> Link: https://patch.msgid.link/20250117094434.16641-13-tan.siewert@hetzner.com Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
b2e75b2a | 17-Jan-2025 |
Eugen Hristev <eugen.hristev@microchip.com> |
misc: i2c_eeprom: implement different probe test eeprom offset
Because of this commit : 5ae84860b0 ("misc: i2c_eeprom: verify that the chip is functional at probe()") at probe time, each eeprom is t
misc: i2c_eeprom: implement different probe test eeprom offset
Because of this commit : 5ae84860b0 ("misc: i2c_eeprom: verify that the chip is functional at probe()") at probe time, each eeprom is tested for read at offset 0.
The Atmel AT24MAC402 eeprom has different mapping. One i2c slave address is used for the lower 0x80 bytes and another i2c slave address is used for the upper 0x80 bytes. Because of this basically the i2c master sees 2 different slaves. We need the upper bytes because we read the unique MAC address from this EEPROM area.
However this implies that our slave address will return error on reads from address 0x0 to 0x80.
To solve this, implemented an offset field inside platform data that is by default 0 (as it is used now), but can be changed in the compatible table.
The probe function will now read at this offset and use it, instead of blindly checking offset 0.
This will fix the regression noticed on these EEPROMs since the commit abovementioned that introduces the probe failed issue.
(cherry picked from commit b24dc83f156604f253ef6521776444188c5bff9b)
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> Reviewed-by: Heiko Schocher <hs@denx.de> Signed-off-by: Tan Siewert <tan.siewert@hetzner.com> Link: https://patch.msgid.link/20250117094434.16641-12-tan.siewert@hetzner.com Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
fa909a9a | 17-Jan-2025 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
misc: i2c_eeprom: store pagesize instead of pagewidth in i2c_eeprom_drv_data
Associate the pagesize with compatible strings, and copy it to priv->pagesize. This is more straight-forward.
(cherry pi
misc: i2c_eeprom: store pagesize instead of pagewidth in i2c_eeprom_drv_data
Associate the pagesize with compatible strings, and copy it to priv->pagesize. This is more straight-forward.
(cherry picked from commit 0c17bb1cbe87c5b00880d3445b46c437f3f22e02)
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Tan Siewert <tan.siewert@hetzner.com> Link: https://patch.msgid.link/20250117094434.16641-11-tan.siewert@hetzner.com Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
c6dc0466 | 17-Jan-2025 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
misc: i2c_eeprom: remove pagewidth field from i2c_eeprom
This struct member is not used in any effective way. Remove it.
(cherry picked from commit ed6dd4e460bd94150dc09fce547a27e2fcca66eb)
Signed
misc: i2c_eeprom: remove pagewidth field from i2c_eeprom
This struct member is not used in any effective way. Remove it.
(cherry picked from commit ed6dd4e460bd94150dc09fce547a27e2fcca66eb)
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Tan Siewert <tan.siewert@hetzner.com> Link: https://patch.msgid.link/20250117094434.16641-10-tan.siewert@hetzner.com Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
868b63cb | 17-Jan-2025 |
Robert Beckett <bob.beckett@collabora.com> |
misc: i2c_eeprom: set offset len and chip addr offset mask
Set the correct offset length and chip address offset mask for each device to allow correct access to total capacity of the devices.
(cher
misc: i2c_eeprom: set offset len and chip addr offset mask
Set the correct offset length and chip address offset mask for each device to allow correct access to total capacity of the devices.
(cherry picked from commit 821c982e359a383c8b95106e135da9fd98f16d2b)
Signed-off-by: Robert Beckett <bob.beckett@collabora.com> Signed-off-by: Tan Siewert <tan.siewert@hetzner.com> Link: https://patch.msgid.link/20250117094434.16641-9-tan.siewert@hetzner.com Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
edd76254 | 17-Jan-2025 |
Robert Beckett <bob.beckett@collabora.com> |
misc: i2c_eeprom: add size query
Add ability to query size of eeprom device and partitions
(cherry picked from commit 033e18b47bd020610f84ca88c5ce3b88215d563a)
Signed-off-by: Robert Beckett <bob.b
misc: i2c_eeprom: add size query
Add ability to query size of eeprom device and partitions
(cherry picked from commit 033e18b47bd020610f84ca88c5ce3b88215d563a)
Signed-off-by: Robert Beckett <bob.beckett@collabora.com> Reviewed-by: Heiko Schocher <hs@denx.de> Signed-off-by: Tan Siewert <tan.siewert@hetzner.com> Link: https://patch.msgid.link/20250117094434.16641-8-tan.siewert@hetzner.com Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
1021ebcd | 17-Jan-2025 |
Robert Beckett <bob.beckett@collabora.com> |
misc: i2c_eeprom: add fixed partitions support
Add ability to partition eeprom via devicetree bindings
(cherry picked from commit 1a59cb426d50082821df941146a9ec20decd118f)
Signed-off-by: Robert Be
misc: i2c_eeprom: add fixed partitions support
Add ability to partition eeprom via devicetree bindings
(cherry picked from commit 1a59cb426d50082821df941146a9ec20decd118f)
Signed-off-by: Robert Beckett <bob.beckett@collabora.com> Reviewed-by: Heiko Schocher <hs@denx.de> Signed-off-by: Tan Siewert <tan.siewert@hetzner.com> Link: https://patch.msgid.link/20250117094434.16641-7-tan.siewert@hetzner.com Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
62465631 | 17-Jan-2025 |
Simon Glass <sjg@chromium.org> |
common: Move old EEPROM functions into a new header
These functions do not use driver model but are still used. Move them to a new eeprom.h header file.
(cherry picked from commit cb3ef6810a27c8ddf
common: Move old EEPROM functions into a new header
These functions do not use driver model but are still used. Move them to a new eeprom.h header file.
(cherry picked from commit cb3ef6810a27c8ddf5db8694bcef9337f27d12ce)
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Tan Siewert <tan.siewert@hetzner.com> Link: https://patch.msgid.link/20250117094434.16641-6-tan.siewert@hetzner.com Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
fdcc3af3 | 17-Jan-2025 |
Baruch Siach <baruch@tkos.co.il> |
misc: i2c_eeprom: verify that the chip is functional at probe()
Read a single byte from EEPROM to verify that it is actually there.
This is equivalent to Linux kernel commit 00f0ea70d2b8 ("eeprom:
misc: i2c_eeprom: verify that the chip is functional at probe()
Read a single byte from EEPROM to verify that it is actually there.
This is equivalent to Linux kernel commit 00f0ea70d2b8 ("eeprom: at24: check if the chip is functional in probe()").
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
(cherry picked from commit 5ae84860b0428b37063a6d7b03cae26a4e772da7)
hs: fixed style check prefer kernel type 'u8' over 'uint8_t' Signed-off-by: Tan Siewert <tan.siewert@hetzner.com> Link: https://patch.msgid.link/20250117094434.16641-5-tan.siewert@hetzner.com Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
a775a92e | 17-Jan-2025 |
Baruch Siach <baruch@tkos.co.il> |
misc: i2c_eeprom: add eeprom write support
Write up to page size in each i2c transfer.
(cherry picked from commit 84c80c63d53bc8a7779b1e7e7084ee3b2d20e768)
Signed-off-by: Baruch Siach <baruch@tkos
misc: i2c_eeprom: add eeprom write support
Write up to page size in each i2c transfer.
(cherry picked from commit 84c80c63d53bc8a7779b1e7e7084ee3b2d20e768)
Signed-off-by: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Heiko Schocher <hs@denx.de> Signed-off-by: Tan Siewert <tan.siewert@hetzner.com> Link: https://patch.msgid.link/20250117094434.16641-4-tan.siewert@hetzner.com Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
7ce14386 | 17-Jan-2025 |
Baruch Siach <baruch@tkos.co.il> |
misc: i2c_eeprom: support DT pagesize property
Read the page size from DT when available.
(cherry picked from commit a29034d1e6d1c1535055f455b5af5906a7edbc04)
Signed-off-by: Baruch Siach <baruch@t
misc: i2c_eeprom: support DT pagesize property
Read the page size from DT when available.
(cherry picked from commit a29034d1e6d1c1535055f455b5af5906a7edbc04)
Signed-off-by: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Heiko Schocher <hs@denx.de> Signed-off-by: Tan Siewert <tan.siewert@hetzner.com> Link: https://patch.msgid.link/20250117094434.16641-3-tan.siewert@hetzner.com Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
1937be48 | 23-Feb-2023 |
Jammy Huang <jammy_huang@aspeedtech.com> |
misc: dp: Fix BMC mode can't control if patch for no driver works
If the patch for no host driver works(1024x768/800x600), it will overwrite 0x18000de0 which BMC used to control DP. Move the patch l
misc: dp: Fix BMC mode can't control if patch for no driver works
If the patch for no host driver works(1024x768/800x600), it will overwrite 0x18000de0 which BMC used to control DP. Move the patch later for Host mode only after checking 0x1e6eb0b8[24].
Version: 20230130
Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com> Change-Id: I6b317fa6ac7ab15556b898bb7dfddd4b47aacae9
show more ...
|
8dcd603a | 30-Nov-2022 |
Jammy Huang <jammy_huang@aspeedtech.com> |
misc: dp: Modify scratch reg's, 1e6e210c, behavior
1. Don't clear 1e6e210c to 0 if hpd event 2. At beginning, update 1e6e210c[28] per hpd's status
Version: 20221130
Change-Id: I6f4129499d748fe103c
misc: dp: Modify scratch reg's, 1e6e210c, behavior
1. Don't clear 1e6e210c to 0 if hpd event 2. At beginning, update 1e6e210c[28] per hpd's status
Version: 20221130
Change-Id: I6f4129499d748fe103c9bc597a31909be841b314 Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
show more ...
|
a22bad12 | 15-Nov-2022 |
Jammy Huang <jammy_huang@aspeedtech.com> |
misc: dp: Support VBIOS/UEFI's vga-only mode
If 1e6ec08f[1] is 1, DP will apply patch to bring 800x600/1024x768, when 1e6ec0e0 is not configured.
Change-Id: I2669bffed80600a3169a5a9a39fb51372320b02
misc: dp: Support VBIOS/UEFI's vga-only mode
If 1e6ec08f[1] is 1, DP will apply patch to bring 800x600/1024x768, when 1e6ec0e0 is not configured.
Change-Id: I2669bffed80600a3169a5a9a39fb51372320b020 Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
show more ...
|
d99caab4 | 11-Nov-2022 |
Jammy Huang <jammy_huang@aspeedtech.com> |
misc: dp: refine config for redriver
Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com> Change-Id: I65f36c7e35b2ecffd8ac32bd43730a80a4968168 |
6875160c | 11-Nov-2022 |
Jammy Huang <jammy_huang@aspeedtech.com> |
misc: dp: Fix dp display turn black for a sudden if BMC reboot
In previous commit, skipping reset is not enough. we skip all operations to mcu here if mcu running.
Fixes: f7347bb73 (misc: dp: Fix d
misc: dp: Fix dp display turn black for a sudden if BMC reboot
In previous commit, skipping reset is not enough. we skip all operations to mcu here if mcu running.
Fixes: f7347bb73 (misc: dp: Fix dp display turn black for a sudden if BMC)
Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com> Change-Id: Iafc40796674bba5537fb3a7db6b861c6132d7915
show more ...
|
f7347bb7 | 24-Oct-2022 |
Jammy Huang <jammy_huang@aspeedtech.com> |
misc: dp: Fix dp display turn black for a sudden if BMC reboot
When dp driver probe, reset will be trigger to make sure DP/MCU go to expected default status. In this way, dp display will turn black
misc: dp: Fix dp display turn black for a sudden if BMC reboot
When dp driver probe, reset will be trigger to make sure DP/MCU go to expected default status. In this way, dp display will turn black since dp is not working for a sudden.
To avoid this situation, we can check if dp-fw is running. Only do reset if DP/MCU have never been programmed before.
Change-Id: I2020e5e91fc1375096e05b78bdb3d4c96077e498 Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
show more ...
|
5d1c67e0 | 07-Aug-2022 |
Jammy Huang <jammy_huang@aspeedtech.com> |
misc: dp: To fix no video when driver not support
Because dp patch for graphics driver is not upstreamed until 2022. Most distributions doesn't support DP natively. When user try to install OS using
misc: dp: To fix no video when driver not support
Because dp patch for graphics driver is not upstreamed until 2022. Most distributions doesn't support DP natively. When user try to install OS using DP, there will be no GUI available.
To fix this problem, we will check vga's reg to see if there is mismatch between vga current timing and information shared for DP.
version: 20220826
Change-Id: I2179fe6834f05a658bc229482119a6ee98ef5276 Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
show more ...
|
6cc0d931 | 07-Aug-2022 |
Jammy Huang <jammy_huang@aspeedtech.com> |
misc: dp: Refine code
1. Clear 0xd00~0xd30 at init. 2. Use ALIGN_DONE rather than port sync at 2nd check of video enable.
Change-Id: Iffd821a91e08c97f342dd190bbe87c49a7bec1d9 Signed-off-by: Jammy H
misc: dp: Refine code
1. Clear 0xd00~0xd30 at init. 2. Use ALIGN_DONE rather than port sync at 2nd check of video enable.
Change-Id: Iffd821a91e08c97f342dd190bbe87c49a7bec1d9 Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
show more ...
|
008e56e2 | 18-Jul-2022 |
Jammy Huang <jammy_huang@aspeedtech.com> |
misc: dp: Improve stability
1. Refine Link training flow 2. Correct Enhanced Frame mode policy 3, Save sink device's capability Save DPCD, 0000h~000bh, to 0x18000d20~0x18000d28. 4, Fix AUX_WRITE
misc: dp: Improve stability
1. Refine Link training flow 2. Correct Enhanced Frame mode policy 3, Save sink device's capability Save DPCD, 0000h~000bh, to 0x18000d20~0x18000d28. 4, Fix AUX_WRITE deadlock if sink doesn't support CMD 5. Add 1dB voltage swing to EQ.
version: 20220725
Change-Id: I13439ed3d12c61cbf06a4cfa7c6ee5ddfa0ec205 Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
show more ...
|
29d8356f | 23-Jun-2022 |
Jammy Huang <jammy_huang@aspeedtech.com> |
misc: dp: Improve compatibility
DP can't normally output with Some dp-2-vga adapters. To fix the problem, we have following updates:
1. Revert previous changes for timing and use original standard
misc: dp: Improve compatibility
DP can't normally output with Some dp-2-vga adapters. To fix the problem, we have following updates:
1. Revert previous changes for timing and use original standard ones 2. Correct the value for average symbol per tu.
version: 20220623
Change-Id: I6b187f11a1889fd0ed731b607b2a6ffc937d22dd Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
show more ...
|
9402ee85 | 25-May-2022 |
Jammy Huang <jammy_huang@aspeedtech.com> |
misc: dp: Improve compatibility
Currently, we will adjust de-emphasis per dp sink's adjust request for pre-emphasis. This is unreasonable.
Modify as below: pre-emphasis level 0 = de-emphasis 6dB
misc: dp: Improve compatibility
Currently, we will adjust de-emphasis per dp sink's adjust request for pre-emphasis. This is unreasonable.
Modify as below: pre-emphasis level 0 = de-emphasis 6dB pre-emphasis level 1 = de-emphasis 3.5dB pre-emphasis level 2 = de-emphasis 0dB
version: 20220622
Change-Id: I3620e3ac713d52652ea62006fa789ec51e189947 Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
show more ...
|
bde71e5f | 25-May-2022 |
Jammy Huang <jammy_huang@aspeedtech.com> |
misc: dp: Fix black screen occasionally
Correct typo on condition for re-training.
version: 20220525
Fixes: 25d399cf222 (misc: dp: Fix monitors black screen with 15m cable) Change-Id: Ia115041dcaf
misc: dp: Fix black screen occasionally
Correct typo on condition for re-training.
version: 20220525
Fixes: 25d399cf222 (misc: dp: Fix monitors black screen with 15m cable) Change-Id: Ia115041dcafcf70505d59a7b3f70eb74e8b3e2f6 Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
show more ...
|
930f6822 | 19-May-2022 |
Jammy Huang <jammy_huang@aspeedtech.com> |
misc: dp: Fix monitors black screen with 15m cable
1. Only use dpcd 111h if dp rev > 1.1 2. adapt dp-tx' de-emphasis 3. Use 202h + 204h rather than 205h to see if re-training needed
version: 202205
misc: dp: Fix monitors black screen with 15m cable
1. Only use dpcd 111h if dp rev > 1.1 2. adapt dp-tx' de-emphasis 3. Use 202h + 204h rather than 205h to see if re-training needed
version: 20220520
Change-Id: I1cf94cfd29f4fee2e62da08564a5e2c962fa4401 Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
show more ...
|
86112c47 | 10-May-2022 |
Jammy Huang <jammy_huang@aspeedtech.com> |
misc: dp: Fix black screen occasionally
1. Check DPCD 200h~205h to see if LINK LOSS to avoid this problem. 2. Disable MST_EN by DPCD 111h
version: 20220510
Change-Id: I0dcedd199233274f6f0970f34532
misc: dp: Fix black screen occasionally
1. Check DPCD 200h~205h to see if LINK LOSS to avoid this problem. 2. Disable MST_EN by DPCD 111h
version: 20220510
Change-Id: I0dcedd199233274f6f0970f3453227ff6cb5aca6 Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
show more ...
|