-
Notifications
You must be signed in to change notification settings - Fork 3
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
Upstreaming max597x #3
base: hwmon-next
Are you sure you want to change the base?
Commits on Nov 1, 2021
-
Merge tag 'aspeed-5.16-devicetree' into dev-5.15
ASPEED device tree updates for 5.15 - New machines: * TYAN S7106 BMC, a x86 server from about four years ago - Descriptions for the AST2600 ADC, which now has an upstream driver - Lots of GPIO line names. The OpenBMC project has adopted a scheme for naming the lines, and new additions will follow this guide - New I2C devices for Rainier, Everest, EthanolX, Mt Jade - Fixes for fp5280g2 which has seen some recent development, including the addtion of a QEmu machine for testing
Configuration menu - View commit details
-
Copy full SHA for 67eda75 - Browse repository at this point
Copy the full SHA 67eda75View commit details -
Merge tag 'aspeed-5.16-defconfig' into dev-5.15
ASPEED defconfig updates for 5.16 - Add options that are enabled in the common OpenBMC kernel - Re-enable DRM_FBDEV_EMULATION - Turn on the various sensor drivers that are used in BMC systems, so we can boot test where they are modelled in Qemu
Configuration menu - View commit details
-
Copy full SHA for 422a661 - Browse repository at this point
Copy the full SHA 422a661View commit details -
Merge tag 'fsi-for-v5.16' into dev-5.15
FSI changes for v5.16 - SBEFIFO usersapce interfaces to perform FFDC (First Failure Data Capture) and detect timeouts - A fix to handle multiple messages in flight
Configuration menu - View commit details
-
Copy full SHA for c8450b6 - Browse repository at this point
Copy the full SHA c8450b6View commit details -
Merge tag 'aspeed-5.16-devicetree-2' into 5-15-patches
ASPEED device tree updates for 5.16, round 2 - New machines: * Inventec Transformers, an x86 family server with an AST2600 BMC - Updates to the Everest and Rainier sensors, gpios and KCS devices - New UART routing device tree description
Configuration menu - View commit details
-
Copy full SHA for d8ed311 - Browse repository at this point
Copy the full SHA d8ed311View commit details -
usb: ehci: Handshake CMD_RUN instead of STS_HALT for Aspeed
For Aspeed, HCHalted status depends on not only Run/Stop but also ASS/PSS status. Handshake CMD_RUN on startup instead. OpenBMC-Staging-Count: 2 Signed-off-by: Neal Liu <neal_liu@aspeedtech.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Reviewed-by: Tao Ren <rentao.bupt@gmail.com> Tested-by: Tao Ren <rentao.bupt@gmail.com> Reviewed-by: Joel Stanley <joel@jms.id.au> Fixes: 280a904 ("ehci: fix EHCI host controller initialization sequence") Link: https://lore.kernel.org/r/20210910073619.26095-1-neal_liu@aspeedtech.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 186baa0 - Browse repository at this point
Copy the full SHA 186baa0View commit details -
hwmon: (pmbus/ibm-cffps) Add mfg_id debugfs entry
Add support for the manufacturer ID to the debugfs entries. OpenBMC-Staging-Count: 2 Signed-off-by: Brandon Wyman <bjwyman@gmail.com> Link: https://lore.kernel.org/r/20211004144339.2634330-1-bjwyman@gmail.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for cc54222 - Browse repository at this point
Copy the full SHA cc54222View commit details -
hwmon: (pmbus/ibm-cffps) Use MFR_ID to choose version
There are multiple power supplies that will indicate CFFPS_CCIN_VERSION_1, use the manufacturer ID to determine if it should be treated as version cffps1 or version cffps2. Signed-off-by: Brandon Wyman <bjwyman@gmail.com> Link: https://lore.kernel.org/r/20211004144339.2634330-2-bjwyman@gmail.com [groeck: Fixed continuation line alignment] Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 52a6bb9 - Browse repository at this point
Copy the full SHA 52a6bb9View commit details -
dt-bindings: iio: adc: Add ast2600-adc bindings
Add device tree bindings document for the aspeed ast2600 adc device driver. Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20210831071458.2334-3-billy_tsai@aspeedtech.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for a7df739 - Browse repository at this point
Copy the full SHA a7df739View commit details -
iio: adc: aspeed: completes the bitfield declare.
This patch completes the declare of ADC register bitfields and uses the same prefix ASPEED_ADC_* for these bitfields. In addition, tidy up space alignment of the codes. Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20210831071458.2334-4-billy_tsai@aspeedtech.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for e0965b6 - Browse repository at this point
Copy the full SHA e0965b6View commit details -
iio: adc: aspeed: Keep model data to driver data.
Keep the model data pointer to driver data for reducing the usage of of_device_get_match_data(). Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20210922081520.30580-2-billy_tsai@aspeedtech.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for deac1d3 - Browse repository at this point
Copy the full SHA deac1d3View commit details -
iio: adc: aspeed: Restructure the model data
This patch refactors the model data structure to distinguish the function form different versions of aspeed ADC. - Rename the vref_voltage to vref_fixed_mv and add vref_mv driver data When driver probe will check vref_fixed_mv value and store it to vref_mv which isn't const value. - Add num_channels Make num_channles of iio device can be changed by different model_data - Add need_prescaler flag and scaler_bit_width The need_prescaler flag is used to tell the driver the clock divider needs another Prescaler and the scaler_bit_width to set the clock divider bitfield width. Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20210922081520.30580-3-billy_tsai@aspeedtech.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 9456652 - Browse repository at this point
Copy the full SHA 9456652View commit details -
iio: adc: aspeed: Add vref config function
Add the function to check the vref_fixed_mv and set the value to driver data. Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20210922081520.30580-4-billy_tsai@aspeedtech.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for c6c3800 - Browse repository at this point
Copy the full SHA c6c3800View commit details -
iio: adc: aspeed: Use model_data to set clk scaler.
This patch uses need_prescaler and scaler_bit_width to set the ADC clock scaler. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20210922081520.30580-5-billy_tsai@aspeedtech.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for c399bcf - Browse repository at this point
Copy the full SHA c399bcfView commit details -
iio: adc: aspeed: Use devm_add_action_or_reset.
This patch use devm_add_action_or_reset to handle the error in probe phase. Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20210922081520.30580-6-billy_tsai@aspeedtech.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 1cc97cf - Browse repository at this point
Copy the full SHA 1cc97cfView commit details -
iio: adc: aspeed: Support ast2600 adc.
Make driver to support ast2600 adc device. - Use shared reset controller - Complete the vref configure function - Add the model data for ast2600 adc Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20210922081520.30580-7-billy_tsai@aspeedtech.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 9d45acd - Browse repository at this point
Copy the full SHA 9d45acdView commit details -
iio: adc: aspeed: Fix the calculate error of clock.
The ADC clock formula is ast2400/2500: ADC clock period = PCLK * 2 * (ADC0C[31:17] + 1) * (ADC0C[9:0] + 1) ast2600: ADC clock period = PCLK * 2 * (ADC0C[15:0] + 1) They all have one fixed divided 2 and the legacy driver didn't handle it. This patch register the fixed factory clock device as the parent of ADC clock scaler to fix this issue. Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20210922081520.30580-8-billy_tsai@aspeedtech.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for df09911 - Browse repository at this point
Copy the full SHA df09911View commit details -
iio: adc: aspeed: Add func to set sampling rate.
Add the function to set the sampling rate and keep the sampling period for a driver used to wait the fresh value. In addition, since the ADC clock is required when initializing the ADC device, move clk_prepare_enable ahead of the initialization phase. Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20210922081520.30580-9-billy_tsai@aspeedtech.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for e3da596 - Browse repository at this point
Copy the full SHA e3da596View commit details -
iio: adc: aspeed: Add compensation phase.
This patch adds a compensation phase to improve the accuracy of ADC measurement. This is the built-in function through input half of the reference voltage to get the ADC offset. Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20210922081520.30580-10-billy_tsai@aspeedtech.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 54614fa - Browse repository at this point
Copy the full SHA 54614faView commit details -
iio: adc: aspeed: Support battery sensing.
In ast2600, ADC integrate dividing circuit at last input channel for battery sensing. This patch use the dts property "battery-sensing" to enable this feature makes the last channel of each adc can tolerance higher voltage than reference voltage. The offset interface of ch7 will be separated when enabling the battery sensing mode. Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20210922081520.30580-11-billy_tsai@aspeedtech.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for b4c845e - Browse repository at this point
Copy the full SHA b4c845eView commit details -
iio: adc: aspeed: Get and set trimming data.
The ADC controller has a trimming register for fine-tune the reference voltage. The trimming value comes from the OTP register which will be written during chip production. This patch will read this OTP value and configure it to the ADC register when the ADC controller probes and using dts property "aspeed,trim-data-valid" to determine whether to execute this flow. Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20210922081520.30580-12-billy_tsai@aspeedtech.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for fc643c9 - Browse repository at this point
Copy the full SHA fc643c9View commit details -
iio: adc: aspeed: Fix spelling mistake "battey" -> "battery"
There is a spelling mistake in a dev_warn message. Fix it. Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20211001120018.17570-1-colin.king@canonical.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for a39b4eb - Browse repository at this point
Copy the full SHA a39b4ebView commit details -
dt-bindings: soc: Add Aspeed XDMA Engine
Document the bindings for the Aspeed AST25XX and AST26XX XDMA engine. Signed-off-by: Eddie James <eajames@linux.ibm.com> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/1588697905-23444-2-git-send-email-eajames@linux.ibm.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 0e776b2 - Browse repository at this point
Copy the full SHA 0e776b2View commit details -
hwmon: (pmbus/lm25066) Add offset coefficients
With the exception of the lm5066i, all the devices handled by this driver had been missing their offset ('b') coefficients for direct format readings. Cc: stable@vger.kernel.org Fixes: 58615a9 ("hwmon: (pmbus/lm25066) Add support for LM25056") Fixes: e53e649 ("hwmon: (pmbus/lm25066) Refactor device specific coefficients") Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Link: https://lore.kernel.org/r/20210928092242.30036-2-zev@bewilderbeest.net Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 9dea952 - Browse repository at this point
Copy the full SHA 9dea952View commit details -
hwmon: (pmbus/lm25066) Adjust lm25066 PSC_CURRENT_IN_L mantissa
At least as of Revision J, the datasheet has a slightly different value than what we'd had in the driver. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Link: https://lore.kernel.org/r/20210928092242.30036-3-zev@bewilderbeest.net Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 9013683 - Browse repository at this point
Copy the full SHA 9013683View commit details -
hwmon: (pmbus/lm25066) Avoid forward declaration of lm25066_id
Reordering things to put the table before the probe function eliminates the need for it. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Link: https://lore.kernel.org/r/20210928092242.30036-4-zev@bewilderbeest.net Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for ccc6476 - Browse repository at this point
Copy the full SHA ccc6476View commit details -
hwmon: (pmbus/lm25066) Let compiler determine outer dimension of lm25…
…066_coeff Maintaining this manually is error prone (there are currently only five chips supported, not six); gcc can do it for us automatically. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Fixes: 666c149 ("hwmon: (pmbus/lm25066) Drop support for LM25063") Link: https://lore.kernel.org/r/20210928092242.30036-5-zev@bewilderbeest.net Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 5f79672 - Browse repository at this point
Copy the full SHA 5f79672View commit details -
hwmon: (pmbus/lm25066) Mark lm25066_coeff array const
lm25066_coeff is read-only. Mark it as such. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Link: https://lore.kernel.org/r/20210928092242.30036-6-zev@bewilderbeest.net [groeck: Added description] Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 11d6414 - Browse repository at this point
Copy the full SHA 11d6414View commit details -
hwmon: (pmbus/lm25066) Add OF device ID table
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:<device>. But this could change in the future so the correct approach is to have an OF device ID table if the devices are registered via OF. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Link: https://lore.kernel.org/r/20210928092242.30036-7-zev@bewilderbeest.net [groeck: Replaced reference to reasoning with reasoning, fixed checkpatch warnings, fixed compile warning comparing of_id->data w/ i2c_id->driver_data] Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for a3749c6 - Browse repository at this point
Copy the full SHA a3749c6View commit details -
hwmon: (pmbus/lm25066) Support configurable sense resistor values
The appropriate mantissa values for the lm25066 family's direct-format current and power readings are a function of the sense resistor employed between the SENSE and VIN pins of the chip. Instead of assuming that resistance is always the same 1mOhm as used in the datasheet, allow it to be configured via a device-tree property ("shunt-resistor-micro-ohms"). Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Link: https://lore.kernel.org/r/20210928092242.30036-8-zev@bewilderbeest.net [groeck: Fixed checkpatch warnings] Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for b40e40b - Browse repository at this point
Copy the full SHA b40e40bView commit details -
dt-bindings: hwmon/pmbus: Add ti,lm25066 power-management IC
Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20210928092242.30036-9-zev@bewilderbeest.net Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for aaebf74 - Browse repository at this point
Copy the full SHA aaebf74View commit details -
soc: aspeed: Add XDMA Engine Driver
The XDMA engine embedded in the AST2500 and AST2600 SOCs performs PCI DMA operations between the SOC (acting as a BMC) and a host processor in a server. This commit adds a driver to control the XDMA engine and adds functions to initialize the hardware and memory and start DMA operations. Signed-off-by: Eddie James <eajames@linux.ibm.com> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/1588697905-23444-3-git-send-email-eajames@linux.ibm.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for e4fc895 - Browse repository at this point
Copy the full SHA e4fc895View commit details -
soc: aspeed: xdma: Add user interface
This commits adds a miscdevice to provide a user interface to the XDMA engine. The interface provides the write operation to start DMA operations. The DMA parameters are passed as the data to the write call. The actual data to transfer is NOT passed through write. Note that both directions of DMA operation are accomplished through the write command; BMC to host and host to BMC. The XDMA driver reserves an area of physical memory for DMA operations, as the XDMA engine is restricted to accessing certain physical memory areas on some platforms. This memory forms a pool from which users can allocate pages for their usage with calls to mmap. The space allocated by a client will be the space used in the DMA operation. For an "upstream" (BMC to host) operation, the data in the client's area will be transferred to the host. For a "downstream" (host to BMC) operation, the host data will be placed in the client's memory area. Poll is also provided in order to determine when the DMA operation is complete for non-blocking IO. Signed-off-by: Eddie James <eajames@linux.ibm.com> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/1588697905-23444-4-git-send-email-eajames@linux.ibm.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for e1e3478 - Browse repository at this point
Copy the full SHA e1e3478View commit details -
soc: aspeed: xdma: Add reset ioctl
Users of the XDMA engine need a way to reset it if something goes wrong. Problems on the host side, or user error, such as incorrect host address, may result in the DMA operation never completing and no way to determine what went wrong. Therefore, add an ioctl to reset the engine so that users can recover in this situation. Signed-off-by: Eddie James <eajames@linux.ibm.com> Acked-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/1588697905-23444-5-git-send-email-eajames@linux.ibm.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 0892202 - Browse repository at this point
Copy the full SHA 0892202View commit details -
mtd: spi-nor: aspeed: use command mode for reads
When reading flash contents, try to use the "command mode" if the AHB window configured for the flash module is big enough. Else, just fall back to the "user mode" to perform the read. OpenBMC-Staging-Count: 14 Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 1a6c619 - Browse repository at this point
Copy the full SHA 1a6c619View commit details -
mtd: spi-nor: aspeed: add support for SPI dual IO read mode
Implements support for the dual IO read mode on aspeed SMC/FMC controllers which uses both MISO and MOSI lines for data during a read to double the read bandwidth. Still to be done SNOR_PROTO_1_2_2 Based on work from Robert Lippert <roblip@gmail.com> OpenBMC-Staging-Count: 14 Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 485d400 - Browse repository at this point
Copy the full SHA 485d400View commit details -
mtd: spi-nor: aspeed: link controller with the ahb clock
We will need the AHB frequency to set the HCLK settings in the SMC controller to optimize the reads. OpenBMC-Staging-Count: 14 Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 386270c - Browse repository at this point
Copy the full SHA 386270cView commit details -
mtd: spi-nor: aspeed: optimize read mode
This is only for SPI controllers as U-Boot should have done it already for the FMC controller using DMAs. The algo is based on the one found in the OpenPOWER pflash tool. It first reads a golden buffer at low speed and then performs reads with different clocks and delay cycles settings to find the fastest configuration for the chip. It can be deactivated at boot time with the kernel parameter : aspeed_smc.optimize_read=0 OpenBMC-Staging-Count: 14 Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Alexander Soldatov <a.soldatov@yadro.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 5e70f66 - Browse repository at this point
Copy the full SHA 5e70f66View commit details -
mtd: spi-nor: aspeed: limit the maximum SPI frequency
The optimize read algo can choose a 100MHz SPI frequency which might be a bit too high for dual output IO on some chips, for the W25Q256 on palmetto for instance. The MX66L1G45G on witherspoon should be fine though. Also, the second chip of the FMC controller does not get any optimize settings for reads. Only the first is configured by U-Boot. To fix these two issues, we introduce a "spi-max-frequency" property in the device tree which will be used to cap the optimize read algorithm and we run the algo on the FMC controller chips as well. By default, the frequency setting is 50MHz. OpenBMC-Staging-Count: 13 Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 1c74dec - Browse repository at this point
Copy the full SHA 1c74decView commit details -
mtd: spi-nor: aspeed: introduce a aspeed_smc_default_read() helper
OpenBMC-Staging-Count: 10 Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Configuration menu - View commit details
-
Copy full SHA for 176825e - Browse repository at this point
Copy the full SHA 176825eView commit details -
mtd: spi-nor: aspeed: clarify 4BYTE address mode mask
OpenBMC-Staging-Count: 10 Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Configuration menu - View commit details
-
Copy full SHA for f3aff9a - Browse repository at this point
Copy the full SHA f3aff9aView commit details -
mtd: spi-nor: aspeed: use memcpy_fromio() to capture the optimization…
… buffer aspeed_smc_read_from_ahb() only reads the first word which is not what we want. We want to capture a CALIBRATE_BUF_SIZE size window of the flash contents to optimize the read. OpenBMC-Staging-Count: 10 Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Configuration menu - View commit details
-
Copy full SHA for 8519d93 - Browse repository at this point
Copy the full SHA 8519d93View commit details -
mtd: spi-nor: aspeed: add support for the 4B opcodes
Switch the default controller value to use the read mode in order to customize the command and use SPINOR_OP_READ_4B (0x13) when the chip supports 4B opcodes. OpenBMC-Staging-Count: 10 Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Configuration menu - View commit details
-
Copy full SHA for 21f1c39 - Browse repository at this point
Copy the full SHA 21f1c39View commit details -
mtd: spi-nor: Add support for w25q512jv
OpenBMC-Staging-Count: 7 Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for be9f73b - Browse repository at this point
Copy the full SHA be9f73bView commit details -
mtd: spi-nor: aspeed: Introduce a field for the AHB physical address
On the AST2600, we will use it to compute the address of the chip AHB window from the Segment Register value. It also removes the need of aspeed_smc_ahb_base_phy() helper. OpenBMC-Staging-Count: 7 Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 42366d5 - Browse repository at this point
Copy the full SHA 42366d5View commit details -
mtd: spi-nor: aspeed: Introduce segment operations
AST2600 will use a different encoding for the addresses defined in the Segment Register. OpenBMC-Staging-Count: 7 Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 939ed61 - Browse repository at this point
Copy the full SHA 939ed61View commit details -
mtd: spi-nor: aspeed: add initial support for ast2600
The Segment Registers of the AST2600 have a different encoding. A 1MB unit is used and the address range of a flash SPI slave is encoded with offsets in the overall controller window. The previous SoC AST2400 and AST2500 used absolute addresses. Only bits [27:20] are relevant and the end address is an upper bound limit. SPI training yet to come. OpenBMC-Staging-Count: 7 Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 99d197c - Browse repository at this point
Copy the full SHA 99d197cView commit details -
mtd: spi-nor: aspeed: Check for disabled segments on the AST2600
The segments can be disabled on the AST2600 (zero register value). CS0 is open by default but not the other CS. This is closing the access to the flash device in user mode and forbids scanning. For multiple CS, we will need firmware or a DT property to reopen the flash AHB window. OpenBMC-Staging-Count: 7 Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for c15b751 - Browse repository at this point
Copy the full SHA c15b751View commit details -
mtd: spi-nor: aspeed: Introduce training operations per platform
The read timing compensation register is different on the AST2600 and training will be slightly more complex. OpenBMC-Staging-Count: 7 Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 59b049d - Browse repository at this point
Copy the full SHA 59b049dView commit details -
mtd: spi-nor: aspeed: Introduce a HCLK mask for training
The AST2600 handles more HCLK divisors than its predecessors. OpenBMC-Staging-Count: 7 Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 87c5660 - Browse repository at this point
Copy the full SHA 87c5660View commit details -
mtd: spi-nor: aspeed: check upper freq limit when doing training
OpenBMC-Staging-Count: 7 Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for b643618 - Browse repository at this point
Copy the full SHA b643618View commit details -
mtd: spi-nor: aspeed: add support for AST2600 training
The training consists of finding the appropriate read timing delays for the HCLK dividers 2, 3, 4, and 5 and store the results in the Read Timing Compensation register. The previous SoC AST2500 and AST2400 were covering a broader HCLK range [ 1 - 5 ] because the AHB frequency was lower. The algorithm first reads a golden buffer at low speed and then performs reads with different clocks and delay cycles settings to find a breaking point. This selects the default clock frequency for the CEx control register. The current settings are bit optimistic as we pick the first delay giving good results. A safer approach would be to determine an interval and choose the middle value. We might change the approach depending on the results on other systems. Only CS0 is taken into account for the moment. OpenBMC-Staging-Count: 7 Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 6445ad1 - Browse repository at this point
Copy the full SHA 6445ad1View commit details -
dt-bindings: hwmon: pmbus: Add Maxim MAX31785 documentation
OpenBMC-Staging-Count: 15 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for a7ff7bf - Browse repository at this point
Copy the full SHA a7ff7bfView commit details -
pmbus (max31785): Add support for devicetree configuration
OpenBMC-Staging-Count: 15 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Tested-by: George Keishing <gkeishin@in.ibm.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for b642c0d - Browse repository at this point
Copy the full SHA b642c0dView commit details -
pmbus (core): Use driver callbacks in pmbus_get_fan_rate()
The driver may have overridden the pmbus_read_byte_data() callback, so make sure we use that to achieve expected behaviour. This helps in the MAX31785 case where we may need to perform a one-shot retry of transfers in the face of a failure. OpenBMC-Staging-Count: 15 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Eddie James <eajames@linux.vnet.ibm.com> Tested-by: George Keishing <gkeishin@in.ibm.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for e8ce604 - Browse repository at this point
Copy the full SHA e8ce604View commit details -
pmbus (core): One-shot retries for failure to set page
Work around the shonky behaviour seen with the MAX31785 where we fail to set the page register in some circumstances. There's no real elegant way to do this. We can propagate the error up, but that forces us to retry the operation way up the call tree in any number of places. It also forces callers to split out pmbus_set_page() from the pmbus_{read,write}_{byte,word}_data() functions in order to differentiate between a failure to set the page and a failure to read a register (that might not exist, in which case an error is anticiptated). OpenBMC-Staging-Count: 15 Cc: Eddie James <eajames@linux.vnet.ibm.com> Cc: Matt Spinler <mspinler@linux.vnet.ibm.com> Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Eddie James <eajames@linux.vnet.ibm.com> Tested-by: George Keishing <gkeishin@in.ibm.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 727f19e - Browse repository at this point
Copy the full SHA 727f19eView commit details -
pmbus (max31785): Wrap all I2C accessors in one-shot failure handlers
The MAX31785(A) has shown erratic behaviour across multiple system designs, unexpectedly clock stretching and NAKing transactions. Perform a one-shot retry if necessary for all access attempts. OpenBMC-Staging-Count: 15 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Tested-by: George Keishing <gkeishin@in.ibm.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for fc65026 - Browse repository at this point
Copy the full SHA fc65026View commit details -
/dev/mem: add a devmem kernel parameter to activate the device
For security reasons, some configuration needs to run without /dev/mem but on some occasions, to debug HW for instance, it's still useful to be able to reboot the system with access to physical memory. Add a kernel parameter which activates the /dev/mem device only when 'mem.devmem' is enabled. OpenBMC-Staging-Count: 12 Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 6c0e684 - Browse repository at this point
Copy the full SHA 6c0e684View commit details -
dt-binding: bmc: Add NPCM7xx LPC BPC documentation
Added device tree binding documentation for Nuvoton BMC NPCM7xx BIOS Post Code (BPC). The NPCM7xx BPC monitoring two configurable I/O addresses written by the host on Low Pin Count (LPC) bus. OpenBMC-Staging-Count: 11 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 74b3d2c - Browse repository at this point
Copy the full SHA 74b3d2cView commit details -
misc: npcm7xx-lpc-bpc: add NPCM7xx BIOS post code driver
Add NPCM7xx BIOS post code (BPC) driver, the BPC monitoring two I/O address written by the host on the LPC. OpenBMC-Staging-Count: 11 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for ad545b7 - Browse repository at this point
Copy the full SHA ad545b7View commit details -
dt-binding: bmc: add npcm7xx pci mailbox document
Added device tree binding documentation for Nuvoton BMC NPCM7XX PCI mailbox. OpenBMC-Staging-Count: 11 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for b61d98b - Browse repository at this point
Copy the full SHA b61d98bView commit details -
misc: mbox: add npcm7xx pci mailbox driver
Add Nuvoton BMC NPCM7XX PCI Mailbox driver. OpenBMC-Staging-Count: 11 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> [v5.0: Fix access_ok for API change] Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for f068ffb - Browse repository at this point
Copy the full SHA f068ffbView commit details -
dt-binding: net: document NPCM7xx EMC DT bindings
Added device tree binding documentation for Nuvoton NPCM7xx Ethernet MAC Controller (EMC). OpenBMC-Staging-Count: 11 Signed-off-by: Avi Fishman <avifishman70@gmail.com> Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 4e09a43 - Browse repository at this point
Copy the full SHA 4e09a43View commit details -
net: npcm: add NPCM7xx Ethernet MAC controller
Add Nuvoton BMC NPCM7xx Ethernet MAC controller (EMC) driver. OpenBMC-Staging-Count: 11 Signed-off-by: Avi Fishman <avifishman70@gmail.com> Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 66747db - Browse repository at this point
Copy the full SHA 66747dbView commit details -
net: npcm: Support for fixed PHYs
Most of our machines don't have PHYs between the NIC and the BMC over their NC-SI port. We don't want to use the kernel NC-SI machinery, but we do want phyless support. OpenBMC-Staging-Count: 3 Signed-off-by: William A. Kennington III <wak@google.com> Reviewed-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Tomer Maimon <tmaimon77@gmail.com> Link: https://lore.kernel.org/r/20210327004920.388957-1-wak@google.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for f1c0b6a - Browse repository at this point
Copy the full SHA f1c0b6aView commit details -
ARM: dts: aspeed: witherspoon: Update max31785 node
Witherspoon contains four dual-tach fans. We configure them go to 100% when the fault pin is asserted, and disable the fan ramp watchdog. This preserves the behaviour of the previous driver. OpenBMC-Staging-Count: 15 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 098f156 - Browse repository at this point
Copy the full SHA 098f156View commit details -
ARM: dts: npcm7xx: Add out of tree nodes
FIU, ADC, RST, VCD and SPI, PECI, regulator and HGPIO pins nodes. OpenBMC-Staging-Count: 11 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for d62f2b8 - Browse repository at this point
Copy the full SHA d62f2b8View commit details -
ARM: dts: nuvoton: npcm730: Add UDC device
This is the remaining non-mainline component of the patch that adds the NPCM730 common device tree. OpenBMC-Staging-Count: 4 Signed-off-by: Fran Hsu <Fran.Hsu@quantatw.com> Reviewed-by: Benjamin Fair <benjaminfair@google.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for a608c96 - Browse repository at this point
Copy the full SHA a608c96View commit details -
ARM: dts: nuvoton: gsj: Add non-mainline nodes
This is the remaining non-mainline component of the patch that adds the GSJ machine. OpenBMC-Staging-Count: 4 Signed-off-by: Fran Hsu <Fran.Hsu@quantatw.com> Reviewed-by: Benjamin Fair <benjaminfair@google.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for f9a7a36 - Browse repository at this point
Copy the full SHA f9a7a36View commit details -
ARM: dts: olympus: Add non-mainline nodes
This is the remaining non-mainline component of the patch that adds the Opympus machine. OpenBMC-Staging-Count: 4 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 8c25468 - Browse repository at this point
Copy the full SHA 8c25468View commit details -
ARM: dts: npcm750: Add fuse regmap support node
OpenBMC-Staging-Count: 4 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Reviewed-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/20210113200010.71845-5-tmaimon77@gmail.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 310db6a - Browse repository at this point
Copy the full SHA 310db6aView commit details -
ARM: dts: npcm7xx: Link fuse syscon to adc and wdt
These modules need a phandle reference to the fuse device in order to read out system specific settings. OpenBMC-Staging-Count: 4 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Link: https://lore.kernel.org/r/20210119223412.223492-2-tmaimon77@gmail.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 24e69e9 - Browse repository at this point
Copy the full SHA 24e69e9View commit details -
dt-binding: edac: add NPCM ECC documentation
Add device tree documentation for Nuvoton BMC ECC OpenBMC-Staging-Count: 9 Signed-off-by: George Hung <george.hung@quantatw.com> Reviewed-by: Avi Fishman <avifishman70@gmail.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for c58e760 - Browse repository at this point
Copy the full SHA c58e760View commit details -
edac: npcm: Add Nuvoton NPCM7xx EDAC driver
Add support for the Nuvoton NPCM7xx SoC EDAC driver NPCM7xx ECC datasheet from nuvoton.israel-Poleg: "Cadence DDR Controller User’s Manual For DDR3 & DDR4 Memories" Tested: Forcing an ECC error event Write a value to the xor_check_bits parameter that will trigger an ECC event once that word is read For example, to force a single-bit correctable error on bit 0 of the user-word space shown, write 0x75 into that byte of the xor_check_bits parameter and then assert fwc (force write check) bit to 'b1' (mem base: 0xf0824000, xor_check_bits reg addr: 0x178) $ devmem 0xf0824178 32 0x7501 To force a double-bit un-correctable error for the user-word space, write 0x03 into that byte of the xor_check_bits parameter $ devmem 0xf0824178 32 0x301 OpenBMC-Staging-Count: 9 Signed-off-by: George Hung <george.hung@quantatw.com> Reviewed-by: Avi Fishman <avifishman70@gmail.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 00d5d14 - Browse repository at this point
Copy the full SHA 00d5d14View commit details -
ipmi: aspeed-g6: Add compatible strings
The AST2600 SoC contains the same IPMI (BT/KCS) devices as the AST2500. OpenBMC-Staging-Count: 7 Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 7550108 - Browse repository at this point
Copy the full SHA 7550108View commit details -
reset: simple: Add AST2600 compatibility string
The AST2600 SoC contains the same LPC register set as the AST2500. OpenBMC-Staging-Count: 7 Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 617dc20 - Browse repository at this point
Copy the full SHA 617dc20View commit details -
clk: ast2600: enable BCLK for PCI/PCIe bus always
BCLK for PCI/PCIe bus should be enabled always with having the CLK_IS_CRITICAL flag otherwise it will be disabled at kernel late initcall phase as an unused clock, and eventually it causes unexpected behavior on BMC features that are connected to the host through PCI/PCIe bus. OpenBMC-Staging-Count: 6 Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 26e2d99 - Browse repository at this point
Copy the full SHA 26e2d99View commit details -
eeprom: at25: Split reads into chunks and cap write size
Make use of spi_max_transfer_size to avoid requesting transfers that are too large for some spi controllers. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Signed-off-by: Eddie James <eajames@linux.ibm.com> Signed-off-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/20200820170228.42053-8-eajames@linux.ibm.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 7eed5f0 - Browse repository at this point
Copy the full SHA 7eed5f0View commit details -
dt-bindings: input: Add documentation for IBM Operation Panel
Document the bindings for the IBM Operation Panel, which provides a simple interface to control a server. It has a display and three buttons. Also update MAINTAINERS for the new file. OpenBMC-Staging-Count: 4 Signed-off-by: Eddie James <eajames@linux.ibm.com> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/20200909203059.23427-2-eajames@linux.ibm.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 76e339d - Browse repository at this point
Copy the full SHA 76e339dView commit details -
input: misc: Add IBM Operation Panel driver
Add a driver to get the button events from the panel and provide them to userspace with the input subsystem. The panel is connected with I2C and controls the bus, so the driver registers as an I2C slave device. OpenBMC-Staging-Count: 4 Signed-off-by: Eddie James <eajames@linux.ibm.com> Reviewed-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/20200909203059.23427-3-eajames@linux.ibm.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for cdd83b8 - Browse repository at this point
Copy the full SHA cdd83b8View commit details -
net: ftgmac100: Ensure tx descriptor updates are visible
We must ensure the tx descriptor updates are visible before updating the tx pointer. This resolves the tx hangs observed on the 2600 when running iperf: root@ast2600:~# iperf3 -c 192.168.86.146 -R Connecting to host 192.168.86.146, port 5201 Reverse mode, remote host 192.168.86.146 is sending [ 5] local 192.168.86.173 port 43886 connected to 192.168.86.146 port 5201 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 90.7 MBytes 760 Mbits/sec [ 5] 1.00-2.00 sec 91.7 MBytes 769 Mbits/sec [ 5] 2.00-3.00 sec 91.7 MBytes 770 Mbits/sec [ 5] 3.00-4.00 sec 91.7 MBytes 769 Mbits/sec [ 5] 4.00-5.00 sec 91.8 MBytes 771 Mbits/sec [ 5] 5.00-6.00 sec 91.8 MBytes 771 Mbits/sec [ 5] 6.00-7.00 sec 91.9 MBytes 771 Mbits/sec [ 5] 7.00-8.00 sec 91.4 MBytes 767 Mbits/sec [ 5] 8.00-9.00 sec 91.3 MBytes 766 Mbits/sec [ 5] 9.00-10.00 sec 91.9 MBytes 771 Mbits/sec [ 5] 10.00-11.00 sec 91.8 MBytes 770 Mbits/sec [ 5] 11.00-12.00 sec 91.8 MBytes 770 Mbits/sec [ 5] 12.00-13.00 sec 90.6 MBytes 761 Mbits/sec [ 5] 13.00-14.00 sec 45.2 KBytes 370 Kbits/sec [ 5] 14.00-15.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 15.00-16.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 16.00-17.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 17.00-18.00 sec 0.00 Bytes 0.00 bits/sec [ 67.031671] ------------[ cut here ]------------ [ 67.036870] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:442 dev_watchdog+0x2dc/0x300 [ 67.046123] NETDEV WATCHDOG: eth2 (ftgmac100): transmit queue 0 timed out OpenBMC-Staging-Count: 4 Fixes: 52c0cae ("ftgmac100: Remove tx descriptor accessors") Link: https://lore.kernel.org/r/20201020220639.130696-1-joel@jms.id.au Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for a35e7e3 - Browse repository at this point
Copy the full SHA a35e7e3View commit details -
clk: npcm7xx: add read only flag to divider clocks
Add read only flag to all divider clocks except SPI3 clock. OpenBMC-Staging-Count: 4 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Reviewed-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/20210113200010.71845-2-tmaimon77@gmail.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for ea925b1 - Browse repository at this point
Copy the full SHA ea925b1View commit details -
iio: adc: Add calibration support to npcm ADC
Add calibration to improve accuracy measurement when using internal reference voltage. Tthe calibration values taken are from the FUSE module. OpenBMC-Staging-Count: 4 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Reviewed-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/20210113200010.71845-4-tmaimon77@gmail.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for ea2549b - Browse repository at this point
Copy the full SHA ea2549bView commit details -
watchdog: npcm: Add DT restart priority and reset type support
Add device tree restart priority and three reset types support. OpenBMC-Staging-Count: 4 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Link: https://lore.kernel.org/r/20210113200010.71845-7-tmaimon77@gmail.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 0c5f1f8 - Browse repository at this point
Copy the full SHA 0c5f1f8View commit details -
pinctrl: npcm7xx: Add HGPIO pin support to NPCM7xx pinctrl driver
OpenBMC-Staging-Count: 4 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Reviewed-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/20210113200010.71845-8-tmaimon77@gmail.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 9a54372 - Browse repository at this point
Copy the full SHA 9a54372View commit details -
pinctrl: pinconf: add pin persist configuration
Add generic pin persist configuration support. OpenBMC-Staging-Count: 4 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Link: https://lore.kernel.org/r/20210113200010.71845-9-tmaimon77@gmail.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 2c52c07 - Browse repository at this point
Copy the full SHA 2c52c07View commit details -
pinctrl: npcm7xx: Add pin persist configuration support
OpenBMC-Staging-Count: 4 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Link: https://lore.kernel.org/r/20210113200010.71845-10-tmaimon77@gmail.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for bb065bb - Browse repository at this point
Copy the full SHA bb065bbView commit details -
spi: npcm-pspi: Add full duplex support
Modify the IRQ handler in the NPCM PSPI driver to support SPI full duplex communication. OpenBMC-Staging-Count: 4 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Link: https://lore.kernel.org/r/20210113200010.71845-11-tmaimon77@gmail.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 9209d22 - Browse repository at this point
Copy the full SHA 9209d22View commit details -
dt-binding: bmc: add NPCM7XX JTAG master documentation
Added device tree binding documentation for Nuvoton NPCM7XX JTAG master. OpenBMC-Staging-Count: 4 Signed-off-by: Stanley Chu <yschu@nuvoton.com> Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Link: https://lore.kernel.org/r/20210113200010.71845-12-tmaimon77@gmail.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for f736bcb - Browse repository at this point
Copy the full SHA f736bcbView commit details -
misc: Add NPCM7xx JTAG master driver
The NPCM7xx JTAG master using GPIO lines and NPCM PSPI bus. OpenBMC-Staging-Count: 4 Signed-off-by: Stanley Chu <yschu@nuvoton.com> Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Link: https://lore.kernel.org/r/20210113200010.71845-13-tmaimon77@gmail.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 9634fd2 - Browse repository at this point
Copy the full SHA 9634fd2View commit details -
watchdog: npcm: Modify get reset status function
Once the syscon phandle is not found the WD reset status will not be supported, so return to the function caller. OpenBMC-Staging-Count: 4 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Link: https://lore.kernel.org/r/20210119223412.223492-5-tmaimon77@gmail.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for baf077c - Browse repository at this point
Copy the full SHA baf077cView commit details -
ARM: configs: add defconfig for Nuvoton NPCM7xx BMC
OpenBMC-Staging-Count: 11 Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 4e50e9a - Browse repository at this point
Copy the full SHA 4e50e9aView commit details -
ARM: dts: aspeed: tacoma: Remove CFAM reset GPIO
witherspoon hardware and p9 chips have very sensitive requirements for the cfam-reset. We're seeing power faults with the kernel based cfam reset due to this. Could adapt the power application to use the new kernel based cfam reset interface but there's not a lot to be gained there since the power application is going away with p10 and this limitation is not present in p10. OpenBMC-Staging-Count: 3 Signed-off-by: Eddie James <eajames@linux.ibm.com> Link: https://lore.kernel.org/r/20210308225419.46530-17-eajames@linux.ibm.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for e73eb7f - Browse repository at this point
Copy the full SHA e73eb7fView commit details -
ipmi: kcs_bmc: Add a "raw" character device interface
The existing IPMI chardev encodes IPMI behaviours as the name suggests. However, KCS devices are useful beyond IPMI (or keyboards), as they provide a means to generate IRQs and exchange arbitrary data between a BMC and its host system. Implement a "raw" KCS character device that exposes the IDR, ODR and STR registers to userspace via read() and write() implemented on a character device: +--------+--------+---------+ | Offset | read() | write() | +--------+--------+---------+ | 0 | IDR | ODR | +--------+--------+---------+ | 1 | STR | STR | +--------+--------+---------+ This interface allows userspace to implement arbitrary (though somewhat inefficient) protocols for exchanging information between a BMC and host firmware. Conceptually the KCS interface can be used as an out-of-band mechanism for interrupt-signaled control messages while bulk data transfers occur over more appropriate interfaces between the BMC and the host (which may lack their own interrupt mechanism, e.g. LPC FW cycles). poll() is provided, which will wait for IBF or OBE conditions for data reads and writes respectively. Reads of STR on its own never blocks, though accessing both offsets in the one system call may block if the data registers are not ready. OpenBMC-Staging-Count: 3 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Link: https://lore.kernel.org/r/20210623033854.587464-3-andrew@aj.id.au Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for ef25ad5 - Browse repository at this point
Copy the full SHA ef25ad5View commit details -
ARM: dts: ast2600evb: Enable EHCI controller
OpenBMC-Staging-Count: 3 Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 728d545 - Browse repository at this point
Copy the full SHA 728d545View commit details -
ARM: dts: tacoma: Clean up KCS nodes
Make the Tacoma KCS nodes reflect the configuration of the Rainier and Everest nodes. OpenBMC-Staging-Count: 3 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Link: https://lore.kernel.org/r/20210709151119.2683600-1-andrew@aj.id.au Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for d2e56b8 - Browse repository at this point
Copy the full SHA d2e56b8View commit details -
ARM: configs: aspeed: Add openbmc kernel options
Enable sensors and other drivers used by OpenBMC systems. Turn on some options to help debugging and testing. OpenBMC-Staging-Count: 2 Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 4092d5a - Browse repository at this point
Copy the full SHA 4092d5aView commit details -
leds: pca955x: Make the gpiochip always expose all pins
The devicetree binding allows specifying which pins are GPIO vs LED. Limiting the instantiated gpiochip to just these pins as the driver currently does requires an arbitrary mapping between pins and GPIOs, but such a mapping is not implemented by the driver. As a result, specifying GPIOs in such a way that they don't map 1-to-1 to pin indexes does not function as expected. Establishing such a mapping is more complex than not and even if we did, doing so leads to a slightly hairy userspace experience as the behaviour of the PCA955x gpiochip would depend on how the pins are assigned in the devicetree. Instead, always expose all pins via the gpiochip to provide a stable interface and track which pins are in use. Specifying a pin as `type = <PCA955X_TYPE_GPIO>;` in the devicetree becomes a no-op. I've assessed the impact of this change by looking through all of the affected devicetrees as of the tag leds-5.15-rc1: ``` $ git grep -l 'pca955[0123]' $(find . -name dts -type d) arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts arch/arm/boot/dts/aspeed-bmc-opp-mowgli.dts arch/arm/boot/dts/aspeed-bmc-opp-swift.dts arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts ``` These are all IBM-associated platforms. I've analysed both the devicetrees and schematics where necessary to determine whether any systems hit the hazard of the current broken behaviour. For the most part, the systems specify the pins as either all LEDs or all GPIOs, or at least do so in a way such that the broken behaviour isn't exposed. The main counter-point to this observation is the Everest system whose devicetree describes a large number of PCA955x devices and in some cases has pin assignments that hit the hazard. However, there does not seem to be any use of the affected GPIOs in the userspace associated with Everest. Regardless, any use of the hazardous GPIOs in Everest is already broken, so let's fix the interface and then fix any already broken userspace with it. OpenBMC-Staging-Count: 2 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20210921043936.468001-2-andrew@aj.id.au Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 5e89374 - Browse repository at this point
Copy the full SHA 5e89374View commit details -
leds: pca955x: Allow zero LEDs to be specified
It's valid to use the PCA955x devices just for GPIOs and not for LEDs. In this case, as PCA955X_TYPE_GPIO is now equivalent to PCA955X_TYPE_NONE, remove the test for whether we have any child nodes specified in the devicetree. A consequence of this is it's now possible to bind the driver to a PCA955x device when dynamically instantiated through the I2C subsystem's `new_device` interface. OpenBMC-Staging-Count: 2 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20210921043936.468001-3-andrew@aj.id.au Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 65271b0 - Browse repository at this point
Copy the full SHA 65271b0View commit details -
ARM: dts: nuvoton: gbs: split SPI flash partition
Split the primary and secondary BIOS SPI EEPROMs in 2 partitions OpenBMC-Staging-Count: 2 Signed-off-by: George Hung <george.hung@quantatw.com> Link: https://lore.kernel.org/r/20211008053006.31961-1-george.hung@quantatw.com
Configuration menu - View commit details
-
Copy full SHA for ed8bdda - Browse repository at this point
Copy the full SHA ed8bddaView commit details -
ipmi: bt-bmc: Use registers directly
This driver was originally written to use the regmap abstraction with no clear benefit. As the registers are always mmio and there is no sharing of the region with other devices, we can safely read and write without the locking that regmap provides. This reduces the code size of the driver by about 25%. OpenBMC-Staging-Count: 2 Signed-off-by: Joel Stanley <joel@jms.id.au> Message-Id: <20210903051039.307991-1-joel@jms.id.au> Signed-off-by: Corey Minyard <cminyard@mvista.com>
Configuration menu - View commit details
-
Copy full SHA for f7058fa - Browse repository at this point
Copy the full SHA f7058faView commit details -
spi: fsi: Print status on error
Print the SPI engine status register when an error is detected. This will aid tremendously in debugging failed transactions. OpenBMC-Staging-Count: 2 Signed-off-by: Eddie James <eajames@linux.ibm.com> Link: https://lore.kernel.org/r/20211004195149.29759-1-eajames@linux.ibm.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 2d12a2b - Browse repository at this point
Copy the full SHA 2d12a2bView commit details -
ARM: dts: nuvoton: gbs: Change the name of the partitions
Change the name of the partitions for BIOS primary and secondary SPI EEPROMs. OpenBMC-Staging-Count: 2 Signed-off-by: George Hung <george.hung@quantatw.com> Link: https://lore.kernel.org/r/20211026054904.8888-1-george.hung@quantatw.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 90fde5c - Browse repository at this point
Copy the full SHA 90fde5cView commit details -
spi: fsi: Fix contention in the FSI2SPI engine
There was nothing to protect multiple SPI controllers on the same FSI2SPI device from being accessed through the FSI2SPI device at the same time. For example, multiple writes to the command and data registers might occur for different SPI controllers, resulting in complete chaos in the SPI engine. To prevent this, add a FSI2SPI device level mutex and lock it in the SPI register read and write functions. OpenBMC-Staging-Count: 1 Fixes: bbb6b2f ("spi: Add FSI-attached SPI controller driver") Signed-off-by: Eddie James <eajames@linux.ibm.com> Link: https://lore.kernel.org/r/20211026193327.52420-1-eajames@linux.ibm.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Joel Stanley <joel@jms.id.au>
Configuration menu - View commit details
-
Copy full SHA for 4c17788 - Browse repository at this point
Copy the full SHA 4c17788View commit details -
soc: aspeed: Add UART routing support
Add driver support for the UART routing control. Users can perform runtime configuration of the RX muxes among the UART controllers and the UART IO pins. The sysfs interface is also exported for the convenience of routing paths check and update. Signed-off-by: Oskar Senft <osk@google.com> Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com> Signed-off-by: Joel Stanley <joel@jms.id.au> Tested-by: Lei YU <yulei.sh@bytedance.com> Link: https://lore.kernel.org/r/20210927023053.6728-5-chiawei_wang@aspeedtech.com Link: https://lore.kernel.org/r/20211022000616.481772-1-joel@jms.id.au' Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Configuration menu - View commit details
-
Copy full SHA for a6f2ddf - Browse repository at this point
Copy the full SHA a6f2ddfView commit details
Commits on Apr 7, 2022
-
dt-bindings: regulator: Add bindings for MAX5970 and MAX5978
The MAX597x is a smart switch with fault protection and sensor readings. Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
Configuration menu - View commit details
-
Copy full SHA for d9d7dbe - Browse repository at this point
Copy the full SHA d9d7dbeView commit details -
regulator: max597x: Add support for MAX5970 and MAX5978
Implement a regulator driver with IRQ support for fault management. Written against documentation [1] and [2] and tested on real hardware. The MAX597x cannot regulate the output voltage and thus acts as switch with seperate voltage and current monitors. Every channel has it's own regulator supply nammed 'vss1-supply' and 'vss2-supply'. The driver requires the 'shunt-resistor-micro-ohms' to be present in the devicetree to properly calculate current related values. You must specify compatible devictree layout: regulator@3a { reg = <0x3a>; vss1-supply = <&p3v3>; compatible = "maxim,max5978"; ... regulators { sw0_ref: SW0 { regulator-compatible = "SW0"; shunt-resistor-micro-ohms = <12000>; ... } } } 1: https://datasheets.maximintegrated.com/en/ds/MAX5970.pdf 2: https://datasheets.maximintegrated.com/en/ds/MAX5978.pdf Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
Configuration menu - View commit details
-
Copy full SHA for 7d334c3 - Browse repository at this point
Copy the full SHA 7d334c3View commit details -
regulator: max597x: Add IIO support
The MAX597x monitors voltages and current for fault protection. Allow to read the measured values using the IIO framework. On MAX5978 two IIO channels are exposed and on MAX5970 4 IIO channels are exposed. Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
Configuration menu - View commit details
-
Copy full SHA for eab8bac - Browse repository at this point
Copy the full SHA eab8bacView commit details