Integrate meta-seco-mtk/linux-seco-mtk/oleksii/e58_revb
Commit: clea-os/layers/seco/meta-seco-mtk@603452aa
Integrate linux-seco-mtk/oleksii/e58_revb
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@e714149e
[NONFUNC] Change some fieldnames in struct stm32
gpio_chip -> gpiochip gpio_pins -> gpiopins irq_mask -> irqmask pwm_chip -> pwmchip pwm_pins -> pwmpins boot_mode -> bootmode
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@e65a7d2e
[E58][DTB] Remove unused pio nodes
wifi_pins_pwrseq was only used for MediaTek's EVK board, thus not needed on E58 modules
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@3891d455
[E58][DTB] Add backlight_lcd1 node
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@35c819e3
[MT8188] Add disp_pwm1 node
It was just missing from the Genio700. Is added in kernel 6.6, but adding here for full functionality
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@18cc8b86
[E58][DTS] Configure pinmux for PWM0
For some reason, in Genio510 GPIO29 isn't muxed to PWM0 by default
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@d284260d
[E58][DTB] Rename E58 dts files
to match SECO conventions
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@aebaf4a2
[E58][DTB] Update rtc
RevB board has the new rv3028 rtc
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@927e836f
rtc: add BSM parameter
BSM or Backup Switch Mode is a common feature on RTCs, allowing to select how the RTC will decide when to switch from its primary power supply to the backup power supply. It is necessary to be able to set it from userspace as there are uses cases where it has to be done dynamically.
Supported values are: RTC_BSM_DISABLED: disabled RTC_BSM_DIRECT: switching will happen as soon as Vbackup > Vdd RTC_BSM_LEVEL: switching will happen around a threshold, usually with an hysteresis RTC_BSM_STANDBY: switching will not happen until Vdd > Vbackup, this is useful to ensure the RTC doesn't draw any power until the device is first powered on.
Signed-off-by: Alexandre Belloni alexandre.belloni@bootlin.com Link: https://lore.kernel.org/r/20211018151933.76865-6-alexandre.belloni@bootlin.com
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@937acce6
rtc: add correction parameter
Add a new parameter allowing the get and set the correction using ioctls instead of just sysfs.
Signed-off-by: Alexandre Belloni alexandre.belloni@bootlin.com Link: https://lore.kernel.org/r/20211018151933.76865-5-alexandre.belloni@bootlin.com
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@3ad935c7
rtc: expose correction feature
Add a new feature for RTCs able to correct the oscillator imprecision. This is also called offset or trimming. Such drivers have a .set_offset callback, use that to set the feature bit from the core.
Signed-off-by: Alexandre Belloni alexandre.belloni@bootlin.com Link: https://lore.kernel.org/r/20211018151933.76865-4-alexandre.belloni@bootlin.com
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@f2366d84
rtc: add parameter ioctl
Add an ioctl allowing to get and set extra parameters for an RTC. For now, only handle getting available features.
Signed-off-by: Alexandre Belloni alexandre.belloni@bootlin.com Link: https://lore.kernel.org/r/20211018151933.76865-3-alexandre.belloni@bootlin.com
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@c686ec18
rtc: add alarm related features
Add more alarm related features to be declared by drivers.
Signed-off-by: Alexandre Belloni alexandre.belloni@bootlin.com Link: https://lore.kernel.org/r/20211018151933.76865-2-alexandre.belloni@bootlin.com
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@9f3aec3d
[DRIVER] rv3028: add support for setting BSM mode in device tree
This commit adds the devicetree node "backup-switch-mode" to the rv3028 driver. It supports the following values:
- direct
- level
- disabled
The values correspond to the different BSM options in the datasheet. When the setting is present in the devicetree, the driver checks the current mode during the probing phase. If the desired value differs from the current value, it is written to the RTC and a message is printed to dmesg, stating the new mode.
Source: seco-ne/kernel/linux-imx-kuk@92daec58
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@b39e1684
rtc: rv3028: Fix codestyle errors
Compiler warnings:
drivers/rtc/rtc-rv3028.c: In function 'rv3028_param_set': drivers/rtc/rtc-rv3028.c:559:20: warning: statement will never be executed [-Wswitch-unreachable] 559 | u8 mode; | ^~~~ drivers/rtc/rtc-rv3028.c: In function 'rv3028_param_get': drivers/rtc/rtc-rv3028.c:526:21: warning: statement will never be executed [-Wswitch-unreachable] 526 | u32 value; | ^~~~~
Fix it by moving the variable declaration to the beginning of the function.
Cc: Alessandro Zummo a.zummo@towertech.it Cc: Alexandre Belloni alexandre.belloni@bootlin.com Cc: linux-rtc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Reported-by: k2ci kernel-bot@kylinos.cn Signed-off-by: Ke Sun sunke@kylinos.cn Link: https://lore.kernel.org/r/20221008071321.1799971-1-sunke@kylinos.cn Signed-off-by: Alexandre Belloni alexandre.belloni@bootlin.com
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@53ef6c6a
rtc: rv3028: add BSM support
Backup Switch Mode controls how the RTC decides when to switch to the backup power supply. As it is disabled by default, provide a way to enable and configure it.
Signed-off-by: Alexandre Belloni alexandre.belloni@bootlin.com Link: https://lore.kernel.org/r/20211018151933.76865-7-alexandre.belloni@bootlin.com
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@4ff878bc
[E58][DTB] Add internal eeprom
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@db9639fb
[NON-FUNCTIONAL] Cleanup device trees from comented out code
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@eafe04f4
[E58][DTB] Adjust pinfunc to RevB
Reflect hardware changes in RevB
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@bcc2630a
[E58][DTB] Add GPIO line names for the processor
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@a5d3f938
[E58][DTB] Adjust stm32 configuration for the new driver
New driver requires a slightly different configuration in device tree
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@2545b72a
[E58][DTB] Rename CPU_IRQ line on STM32
This line is on both CPU and STM32 with same name, need to distinguish
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@ca661357
[E58][DTB] Move SMARC_GPIO6 pin from STM32 to Processor
GPIO6 is connected to both STM32 and Processor. It is used as a touch interrupt on Modular Vision, so it was decided to be controlled by the processor for better reliability and response
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@bb3baa26
[DRIVER] stm32-driver backported from branch seco_lf-6.6.23-2.0.0_e39
- there is no distinction between GPIOs and IRQ-lines anymore
- several contron-registers of the stm32-firmware have changed
- a reboot-notifiers has been added
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@273752de
[NON-FUNCTIONAL] Remove readme from stm32 driver
Driver is added back to kernel tree
--
Commit: clea-os/bsp/mediatek/linux-seco-mtk@bdae049b
[E58][DTB] Add support for RevB STM32 GPIOs
Some GPIOs were remapped in RevB