[PATCH] ARM: dts: aspeed: amd-ethanolx: Enable all used I2C busses

2021-04-15 Thread Konstantin Aladyshev
Enable all I2C busses that are used in AMD EthanolX CRB: i2c0 - APML P0 i2c1 - APML P1 i2c2 - FPGA i2c3 - 24LC128 EEPROM i2c4 - P0 Power regulators i2c5 - P1 Power regulators i2c6 - P0/P1 Thermal diode i2c7 - Thermal Sensors i2c8 - BMC I2C Signed-off-by: Konstantin Aladyshev --- arch

Re: [PATCH v2] hwmon: (sbtsi) Don't read sensor more than once if it doesn't respond

2021-04-06 Thread Konstantin Aladyshev
ata->lock); err = i2c_smbus_read_byte_data(data->client, SBTSI_REG_CONFIG); if (err < 0) return err; mutex_unlock(&data->lock); ``` Because it is not surrounded with the mutex lock/unlock in the original driver. Best regards, Konstantin Aladyshev On Wed, Apr 7, 2021 at 1

Re: [PATCH v2] hwmon: (sbtsi) Don't read sensor more than once if it doesn't respond

2021-04-06 Thread Konstantin Aladyshev
in my patch, is this an error? Best regards, Konstantin Aladyshev On Tue, Apr 6, 2021 at 11:09 PM Guenter Roeck wrote: > > On 4/6/21 12:20 PM, Konstantin Aladyshev wrote: > > Thanks for the comment. > > Yes, you are correct, this patch adds an extra 'i2c_smbus_read_byte_d

[PATCH v2] hwmon: (sbtsi) Don't read sensor more than once if it doesn't respond

2021-04-06 Thread Konstantin Aladyshev
read operation. Signed-off-by: Konstantin Aladyshev --- Changes in v2: - Fix typo in a commit message - Don't swap temp_int/temp_dec checks at the end of the 'sbtsi_read' function drivers/hwmon/sbtsi_temp.c | 55 +++--- 1 file changed, 27 insert

[PATCH] hwmon: (sbtsi) Don't read sensor more than once if it doesn't respond

2021-04-01 Thread Konstantin Aladyshev
From: Konstantin Aladyshev SBTSI sensors don't work when the CPU is off. In this case every 'i2c_smbus_read_byte_data' function would fail by a timeout. Currently temp1_max/temp1_min file reads can cause two such timeouts for every read. Restructure code so there will be no more t

[PATCH] ARM: dts: aspeed: amd-ethanolx: Enable secondary LPC snooping address

2021-01-27 Thread Konstantin Aladyshev
AMD EthanolX CRB uses 2-byte POST codes which are sent to ports 0x80/0x81. Currently ASPEED controller snoops only 0x80 port and therefore captures only the lower byte of each POST code. Enable secondary LPC snooping address to capture the higher byte of POST codes. Signed-off-by: Konstantin

[PATCH] ARM: dts: aspeed: amd-ethanolx: Add GPIO line names

2020-11-11 Thread Konstantin Aladyshev
Add GPIO line names for AMD EthanolX customer reference board. It populates AST2500 GPIO lines (A0-A7 to AC0-AC7) with AMD EthanolX designated names. Signed-off-by: Konstantin Aladyshev --- arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts | 44 +++ 1 file changed, 44 insertions

Re: [PATCH 1/3] ARM: dts: aspeed: amd-ethanolx: Update KCS nodes to use v2 binding

2020-10-27 Thread Konstantin Aladyshev
These changes got picked up from my backport patch to the 'dev-5.8' branch of the OpenBMC Linux repository. This patch also needed to be added to the main ASPEED Linux kernel, so it could get into subsequent branches of the OpenBMC Linux repository. Best regards, Konstantin Aladyshe

[PATCH 3/3] ARM: dts: aspeed: amd-ethanolx: Enable devices for the iKVM functionality

2020-10-27 Thread Konstantin Aladyshev
Enable the USB 2.0 Virtual Hub Controller and the Video Engine with it's reserved memory region for the implementation of the iKVM functionality in the BMC. Signed-off-by: Konstantin Aladyshev --- arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts | 22 +++ 1 file change

[PATCH 2/3] ARM: dts: aspeed: amd-ethanolx: Enable KCS channel 3

2020-10-27 Thread Konstantin Aladyshev
The KCS interface on the LPC channel 3 in the controller is used for the in-band BMC<->BIOS IPMI communication. 0xCA2 is a default host CPU LPC IO address for this interface. Signed-off-by: Konstantin Aladyshev --- arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts | 5 + 1 file chan

[PATCH 1/3] ARM: dts: aspeed: amd-ethanolx: Update KCS nodes to use v2 binding

2020-10-27 Thread Konstantin Aladyshev
v2 binding. Signed-off-by: Konstantin Aladyshev --- arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts b/arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts index 60ba86f3e5bc..89ddc38472