- Nov 27, 2024
-
-
Frieder Schrempf authored
The RTC EVI ouptut is connected to a GPIO. Add the interrupt so it can be used by the RTC driver. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
This fixes the LDO5 regulator handling of the pca9450 driver by taking the status of the SD_VSEL into account to determine which configuration register is used for the voltage setting. By making sure, that we always use the correct register when controlling the regulator we can fix an actual bug where the wrong IO voltage is used. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
The OSM-S i.MX93 SoM doesn't have the VSELECT signal of the USDHC controller connected to the PMICs SD_VSEL input. Instead SD_VSEL is hardwired to low level. Let the driver know this in order to use the proper register for reading and writing the voltage level. This fixes SD card access with the latest hardware revision. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
This fixes the LDO5 regulator handling of the pca9450 driver by taking the status of the SD_VSEL into account to determine which configuration register is used for the voltage setting. Even without this change there is no functional issue, as the code for switching the voltage in sdhci.c currently switches both, the VSELECT/SD_VSEL signal and the regulator voltage at the same time and doesn't run into an invalid corner case. We should still make sure, that we always use the correct register when controlling the regulator. At least in U-Boot this fixes an actual bug where the wrong IO voltage is used. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> --- Changes for v2: * rebase to current master
-
Frieder Schrempf authored
There are two ways to set the output voltage of the LD05 regulator. First by writing to the voltage selection registers and second by toggling the SD_VSEL signal. Usually board designers connect SD_VSEL to the VSELECT signal controlled by the USDHC controller, but in some cases the signal is hardwired to a fixed low level (therefore selecting 3.3V as initial value for allowing to boot from the SD card). In these cases, the voltage is only determined by the value of the LDO5CTRL_L register. Introduce a property nxp,sd-vsel-fixed-low to let the driver know that SD_VSEL is low and there is no GPIO to actually get that information from dynamically. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> --- Changes for v2: * new patch
-
Frieder Schrempf authored
The LDO5 regulator has two configuration registers, but only LDO5CTRL_L contains the bits for enabling/disabling the regulator. Fixes: 0935ff5f ("regulator: pca9450: add pca9450 pmic driver") Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> Reviewed-by:
Marek Vasut <marex@denx.de> --- Changes for v2: * none
-
Frieder Schrempf authored
For LDO5 we need to be able to check the status of the SD_VSEL input in order to know which control register is used. Read the status of the SD_VSEL signal via GPIO and use the correct register accordingly. To use this, the LDO5 node in the devicetree needs the sd-vsel-gpios property to reference the GPIO that is used to read back the SD_VSEL status internally. Please note that the SION bit in the IOMUX must be set if the signal is muxed as VSELECT and controlled by the USDHC controller. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> --- Changes for v2: * rebase to current master and stop using generic helper from regulator core
-
Frieder Schrempf authored
This reverts commit 8c67a11b. It turns out that all boards using the PCA9450 actually have the SD_VSEL input connected to the VSELECT signal of the SoCs SD/MMC interface. Therefore we don't need manual control for this signal via GPIO and threre aren't any users. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> --- Changes for v2: * rebase to current master
-
Frieder Schrempf authored
The USDHC controller is able to control the IO voltage of the SD card. There is no reason to use a GPIO to control it. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> --- Changes for v2: * new patch
-
Frieder Schrempf authored
This new property can be used for boards which have the SD_VSEL tied to a fixed low level. The voltage of LDO5 is therefore only controlled by writing to the LDO5CTRL_L register. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> --- Changes for v2: * new patch
-
Frieder Schrempf authored
In order to know the current status (which of the two control registers is used) for the LDO5 regulator, we need to route back the USDHC_VSELECT signal by setting the SION bit in the IOMUX. By adding the according GPIO as sd-vsel-gpios to the LDO5 node, we allow the regulator driver to sample the current status of the SD_VSEL signal that is used to select the correct control register. The SD_VSEL on the PMIC is always an input. It's driven by the SoC's VSELECT signal (controlled by the USDHC controller) and we use the SION bit in the IOMUX to internally loop back the signal in order to sample it using the GPIO. As the SD_VSEL pin is directly routed to the LDO5 regulator in the PMIC, make the sd-vsel-gpios property part of the LDO5 node. SoC PMIC +-----------------------+ +-------------------+ | | | | | | | | | GPIO <----------+ | | | | | | SD_VSEL| +-------+ | | USDHC_VSELECT ->+------------------->| LDO5 | | | | | +-------+ | | | | | +-----------------------+ +-------------------+ Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> --- Changes for v2: * extend commit message * split into two patches (revert old sd-vsel-gpios seperately)
-
Frieder Schrempf authored
This reverts commit 27866e3e. It turned out that this feature was implemented based on the wrong assumption that the SD_VSEL signal needs to be controlled as GPIO in any case. In fact the straight-forward approach is to mux the signal as USDHC_VSELECT and let the USDHC controller do the job. Most users never even used this property and the few who did have been or are getting migrated to the alternative approach. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
Sync Bot: Update v6.12-ktn to Latest Stable Kernel (v6.12.1) See merge request !171
-
- Nov 22, 2024
-
-
Greg Kroah-Hartman authored
Link: https://lore.kernel.org/r/20241120124100.444648273@linuxfoundation.org Tested-by:
Mark Brown <broonie@kernel.org> Tested-by:
SeongJae Park <sj@kernel.org> Tested-by:
Florian Fainelli <florian.fainelli@broadcom.com> Tested-by:
Shuah Khan <skhan@linuxfoundation.org> Tested-by:
Ron Economos <re@w6rz.net> Tested-by:
Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by:
Linux Kernel Functional Testing <lkft@linaro.org> Tested-by:
Christian Heusel <christian@heusel.eu> Tested-by:
Salvatore Bonaccorso <carnil@debian.org> Tested-by:
kernelci.org bot <bot@kernelci.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
Liam R. Howlett authored
The mmap_region() function tries to install a new vma, which requires a pre-allocation for the maple tree write due to the complex locking scenarios involved. Recent efforts to simplify the error recovery required the relocation of the preallocation of the maple tree nodes (via vma_iter_prealloc() calling mas_preallocate()) higher in the function. The relocation of the preallocation meant that, if there was a file associated with the vma and the driver call (mmap_file()) modified the vma flags, then a new merge of the new vma with existing vmas is attempted. During the attempt to merge the existing vma with the new vma, the vma iterator is used - the same iterator that would be used for the next write attempt to the tree. In the event of needing a further allocation and if the new allocations fails, the vma iterator (and contained maple state) will cleaned up, including freeing all previous allocations and will be reset internally. Upon returning to the __mmap_region() function, the error is available in the vma_merge_struct and can be used to detect the -ENOMEM status. Hitting an -ENOMEM scenario after the driver callback leaves the system in a state that undoing the mapping is worse than continuing by dipping into the reserve. A preallocation should be performed in the case of an -ENOMEM and the allocations were lost during the failure scenario. The __GFP_NOFAIL flag is used in the allocation to ensure the allocation succeeds after implicitly telling the driver that the mapping was happening. The range is already set in the vma_iter_store() call below, so it is not necessary and is dropped. Reported-by:
<syzbot+bc6bfc25a68b7a020ee1@syzkaller.appspotmail.com> Closes: https://syzkaller.appspot.com/x/log.txt?x=17b0ace8580000 Fixes: 5de19506 ("mm: resolve faulty mmap_region() error path behaviour") Signed-off-by:
Liam R. Howlett <Liam.Howlett@Oracle.com> Reviewed-by:
Vlastimil Babka <vbabka@suse.cz> Reviewed-by:
Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Cc: Jann Horn <jannh@google.com> Cc: <stable@vger.kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
Benoit Sevens authored
commit ecf2b43018da9579842c774b7f35dbe11b5c38dd upstream. This can lead to out of bounds writes since frames of this type were not taken into account when calculating the size of the frames buffer in uvc_parse_streaming. Fixes: c0efd232 ("V4L/DVB (8145a): USB Video Class driver") Signed-off-by:
Benoit Sevens <bsevens@google.com> Cc: stable@vger.kernel.org Acked-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by:
Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by:
Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
Hyunwoo Kim authored
commit e629295bd60abf4da1db85b82819ca6a4f6c1e79 upstream. When hvs is released, there is a possibility that vsk->trans may not be initialized to NULL, which could lead to a dangling pointer. This issue is resolved by initializing vsk->trans to NULL. Signed-off-by:
Hyunwoo Kim <v4bel@theori.io> Reviewed-by:
Stefano Garzarella <sgarzare@redhat.com> Acked-by:
Michael S. Tsirkin <mst@redhat.com> Link: https://patch.msgid.link/Zys4hCj61V+mQfX2@v4bel-B760M-AORUS-ELITE-AX Signed-off-by:
Jakub Kicinski <kuba@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
- Nov 19, 2024
-
-
Frieder Schrempf authored
The Kontron Electronics DL i.MX8MM consists of the BL i.MX8MM board and a 7" LVDS panel. Provide an overlay that enables the panel. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> Signed-off-by:
Shawn Guo <shawnguo@kernel.org>
-
Frieder Schrempf authored
The Kontron Electronics BL i.MX8MM has oboard disply bridges for DSI->HDMI and DSI->LVDS conversion. The DSI interface is muxed by a GPIO-controlled switch to one of these two bridges. By default the HDMI bridge is enabled. The LVDS bridge can be selected by loading an additional (panel-specific) overlay. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> Signed-off-by:
Shawn Guo <shawnguo@kernel.org>
-
Frieder Schrempf authored
This adds support for the Kontron Electronics i.MX8MP SMARC module (which uses the OSM-S i.MX8MP SoM) on the Kontron SMARC eval carrier. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> Signed-off-by:
Shawn Guo <shawnguo@kernel.org>
-
Frieder Schrempf authored
This adds support for the Kontron Electronics OSM-S i.MX8MP SoM and the matching baseboard BL i.MX8MP. The SoM hardware complies to the Open Standard Module (OSM) 1.1 specification, size S (https://sget.org/standards/osm ). Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> Signed-off-by:
Shawn Guo <shawnguo@kernel.org>
-
Frieder Schrempf authored
Add the bindings for the Kontron i.MX8MP OSM-S SoM and carrier boards. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> Acked-by:
Conor Dooley <conor.dooley@microchip.com> Acked-by:
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by:
Shawn Guo <shawnguo@kernel.org>
-
Frieder Schrempf authored
The Jenson BL-JT60050-01A is a 7" 1024x600 LVDS display. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> Acked-by:
Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20240828074753.25401-3-frieder@fris.de Signed-off-by:
Neil Armstrong <neil.armstrong@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240828074753.25401-3-frieder@fris.de
-
Frieder Schrempf authored
Add vendor prefix for manufacturer Jenson Display (http://jensondisplay.com ). Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> Acked-by:
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240828074753.25401-2-frieder@fris.de Signed-off-by:
Neil Armstrong <neil.armstrong@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240828074753.25401-2-frieder@fris.de
-
Frieder Schrempf authored
Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
-
Frieder Schrempf authored
The extension board for the Kontron BL i.MX8MM provides additional connectivity with the interfaces listed below. This change adds support for some of these. * M.2 PCIe Slot * SIM Slot for M.2 Modems * Raspberry Pi Pin Header * I2C * I2S/SAI * SDIO * SPI * UART * GPIOs * QWIIC I2C Conenctor * CSI Camera Connector * USB Host Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
The Kontron DL i.MX6ULL is a board (Kontron BL i.MX6ULL) with a 5" RGB display. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
The board flavor with 4.3" display is not an actual product and was never used. Remove it. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Eberhard Stoll authored
Board revision 195x 1470 has DIP switches and lacks uart3. So this change improves support for 195x 1470 design and drops support for the deprecated design 195x 1461.
-
Fabio Estevam authored
Allow the usage of ecspi3 in userspace. This is required for compatibility with the v5.4-ktn tree. Signed-off-by:
Fabio Estevam <festevam@denx.de> [adjust commit message] Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
-
Frieder Schrempf authored
Allow external SPI ports on Kontron boards to use the spidev driver. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
According to the datasheet this contains a Sitronix ST7262 driver chip. The timing values are taken from this chips datasheet. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
According to the datasheet this contains a Himax HX8282 driver chip. The timing values are taken from this chips datasheet. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
This sets the LED modes for the gigabit ethernet PHY to match the ones of the 100M USB ethernet. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
Add the new property to disable the combined LED modes to the bindings documentation. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Frieder Schrempf authored
By default the LED modes offer to combine two indicators like speed/link and activity in one LED. In order to use a LED only for the first of the two modes, the combined feature needs to be disabled. In order to do this we introduce a boolean devicetree property 'vsc8531,led-[N]-combine-disable' and wire it up to the matching bits in the LED behavior register. Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
- Nov 17, 2024
-
-
Linus Torvalds authored
-