[PATCH v3] serial: stm32: optimize spin lock usage

2021-04-16 Thread dillon . minfei
From: dillon min This patch aims to fix two potential bug: - no lock to protect uart register in this case stm32_usart_threaded_interrupt() spin_lock(&port->lock); ... stm32_usart_receive_chars() uart_handle_sysrq_char(); sysrq_function(); printk();

[PATCH v3 2/4] dt-bindings: arm: imx: Add i.mx6q DaSheng COM-9XX SBC

2021-04-14 Thread dillon . minfei
From: dillon min The DaSheng Com-9xx is and ARM based signle board computer (SBC) featuring: - i.MX6Q - 2GiB LPDDR3 DRAM - 8GiB eMMC 5.0 FLASH - 4MiB SPI Flash - USB 2.0 Host/Device - Multiple multi-protocol RS232/RS485 Serial ports - microSD socket - 5V DC power input - HDMI1.4a,1080p@60 - RGMII

[PATCH v3 3/4] arm: dts: imx: Add i.mx6q DaSheng COM-9XX SBC board support

2021-04-14 Thread dillon . minfei
From: dillon min The DaSheng Com-9xx is and ARM based signle board computer (SBC) featuring: - i.MX6Q - 2GiB LPDDR3 DRAM - 8GiB eMMC 5.0 FLASH - 4MiB SPI Flash - USB 2.0 Host/Device - Multiple multi-protocol RS232/RS485 Serial ports - microSD socket - 5V DC power input - HDMI1.4a,1080p@60 - RGMII

[PATCH v3 4/4] media: i2c: ov2659: Use clk_{prepare_enable,disable_unprepare}() to set xvclk on/off

2021-04-14 Thread dillon . minfei
From: dillon min On some platform(imx6q), xvclk might not switch on in advance, also for power save purpose, xvclk should not be always on. so, add clk_prepare_enable(), clk_disable_unprepare() in driver side to set xvclk on/off at proper stage. Add following changes: - add 'struct clk *clk;' in

[PATCH v3 0/4] arm: imx: Add i.mx6q DaSheng COM-9XX SBC board support

2021-04-14 Thread dillon . minfei
From: dillon min This patchset aims to add kernel support on DaSheng COM-8XX SBC board optimize ov2659 driver to handle xvclk on/off at proper stage to save power changes based on master branch, since commit id: 89698becf06d341a700913c3d89ce2a914af69a2 The DaSheng Com-9xx is and ARM based signl

[PATCH v3 1/4] dt-bindings: add dasheng vendor prefix

2021-04-14 Thread dillon . minfei
From: dillon min Add vendor prefix for DaSheng, Inc. Signed-off-by: dillon min Reviewed-by: Krzysztof Kozlowski --- v3: - move v2 patch 4 to v3 patch 1 - add 'Reviewed-by: Krzysztof Kozlowski ' Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) di

[PATCH v2 1/4] dt-bindings: arm: imx: Add i.mx6q DaSheng COM-9XX SBC board dts support

2021-04-13 Thread dillon . minfei
From: dillon min The DaSheng Com-9xx is and ARM based signle board computer (SBC) featuring: - i.MX6Q - 2GiB LPDDR3 DRAM - 8GiB eMMC 5.0 FLASH - 4MiB SPI Flash - USB 2.0 Host/Device - Multiple multi-protocol RS232/RS485 Serial ports - microSD socket - 5V DC power input - HDMI1.4a,1080p@60 - RGMII

[PATCH v2 3/4] media: i2c: ov2659: Add clk_prepare_enable(), clk_disable_unprepare() to handle xvclk

2021-04-13 Thread dillon . minfei
From: dillon min For power save purpose, xvclk might not be always on. need add clk_prepare_enable(), clk_disable_unprepare() at driver side to set xvclk on/off at proper stage. Add following changes: - add 'struct clk *clk' in 'struct ov2659' - enable xvclk in ov2659_power_on() - disable xvclk

[PATCH v2 4/4] dt-bindings: add dasheng vendor prefix

2021-04-13 Thread dillon . minfei
From: dillon min Add vendor prefix for DaSheng, Inc. Signed-off-by: dillon min --- v2: new add Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindin

[PATCH v2 2/4] arm: dts: imx: Add i.mx6q DaSheng COM-9XX SBC board support

2021-04-13 Thread dillon . minfei
From: dillon min The DaSheng Com-9xx is and ARM based signle board computer (SBC) featuring: - i.MX6Q - 2GiB LPDDR3 DRAM - 8GiB eMMC 5.0 FLASH - 4MiB SPI Flash - USB 2.0 Host/Device - Multiple multi-protocol RS232/RS485 Serial ports - microSD socket - 5V DC power input - HDMI1.4a,1080p@60 - RGMII

[PATCH v2 0/4] arm: imx: Add i.mx6q DaSheng COM-9XX SBC board support

2021-04-13 Thread dillon . minfei
From: dillon min This patchset aims to add kernel support on DaSheng COM-8XX SBC board optimize ov2659 driver to handle xvclk on/off at proper stage to save power changes based on master branch, since commit id: 89698becf06d341a700913c3d89ce2a914af69a2 The DaSheng Com-9xx is and ARM based signl

[PATCH v1 3/3] media: i2c: ov2659: Add clk_prepare_enable(), clk_disable_unprepare() to handle xvclk

2021-04-13 Thread dillon . minfei
From: dillon min For power save purpose, xvclk might not be always on. need add clk_prepare_enable(), clk_disable_unprepare() at driver side to set xvclk on/off at proper stage. Add following changes: - add 'struct clk *clk' in 'struct ov2659' - enable xvclk in ov2659_power_on() - disable xvclk

[PATCH v1 0/3] arm: imx: Add i.mx6q DaSheng COM-9XX SBC board support

2021-04-13 Thread dillon . minfei
From: dillon min This patchset aims to add kernel support on DaSheng COM-8XX SBC board optimize ov2659 driver to handle xvclk on/off at proper stage to save power changes based on master branch, since commit id: 89698becf06d341a700913c3d89ce2a914af69a2 The DaSheng Com-9xx is and ARM based signl

[PATCH v1 1/3] dt-bindings: arm: imx: Add i.mx6q DaSheng COM-9XX SBC board dts support

2021-04-13 Thread dillon . minfei
From: dillon min The DaSheng Com-9xx is and ARM based signle board computer (SBC) featuring: - i.MX6Q - 2GiB LPDDR3 DRAM - 8GiB eMMC 5.0 FLASH - 4MiB SPI Flash - USB 2.0 Host/Device - Multiple multi-protocol RS232/RS485 Serial ports - microSD socket - 5V DC power input - HDMI1.4a,1080p@60 - RGMII

[PATCH v1 2/3] arm: dts: imx: Add i.mx6q DaSheng COM-9XX SBC board support

2021-04-13 Thread dillon . minfei
From: dillon min The DaSheng Com-9xx is and ARM based signle board computer (SBC) featuring: - i.MX6Q - 2GiB LPDDR3 DRAM - 8GiB eMMC 5.0 FLASH - 4MiB SPI Flash - USB 2.0 Host/Device - Multiple multi-protocol RS232/RS485 Serial ports - microSD socket - 5V DC power input - HDMI1.4a,1080p@60 - RGMII

[PATCH v2] serial: stm32: optimize spin lock usage

2021-04-12 Thread dillon . minfei
From: dillon min To avoid potential deadlock in spin_lock usage, use spin_lock_irqsave, spin_trylock_irqsave(), spin_unlock_irqrestore() in process context. remove unused local_irq_save/restore call. Cc: Alexandre Torgue Cc: Maxime Coquelin Cc: Gerald Baeza Cc: Erwan Le Ray Reported-by: ker

[PATCH] serial: stm32: optimize spin lock usage

2021-04-11 Thread dillon . minfei
From: dillon min To avoid potential deadlock in spin_lock usage, change to use spin_lock_irqsave(), spin_unlock_irqrestore() in process(thread_fn) context. spin_lock(), spin_unlock() under handler context. remove unused local_irq_save/restore call. Signed-off-by: dillon min --- Was verified on

[PATCH v9 6/6] dt-bindings: serial: stm32: Use 'type: object' instead of false for 'additionalProperties'

2021-03-31 Thread dillon . minfei
From: dillon min To use additional properties 'bluetooth' on serial, need replace false with 'type: object' for 'additionalProperties' to make it as a node, else will run into dtbs_check warnings. 'arch/arm/boot/dts/stm32h750i-art-pi.dt.yaml: serial@40004800: 'bluetooth' does not match any of th

[PATCH v9 3/6] ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h750

2021-03-31 Thread dillon . minfei
From: dillon min This patch is intend to add support stm32h750 value line, just add stm32h7-pinctrl.dtsi for extending, with following changes: - rename stm32h743-pinctrl.dtsi to stm32h7-pinctrl.dtsi - update stm32h743i-{dico/eval}.dtsi to include stm32h7-pinctrl.dtsi - add dts binding usart3, u

[PATCH v9 4/6] ARM: dts: stm32: add support for art-pi board based on stm32h750xbh6

2021-03-31 Thread dillon . minfei
From: dillon min This patchset has following changes: - introduce stm32h750.dtsi to support stm32h750 value line - add stm32h750i-art-pi.dtb (arch/arm/boot/dts/Makefile) - add stm32h750-art-pi.dts to support art-pi board art-pi board component: - 8MiB qspi flash - 16MiB spi flash - 32MiB sdram

[PATCH v9 5/6] ARM: stm32: Add a new SOC - STM32H750

2021-03-31 Thread dillon . minfei
From: dillon min The STM32H750 is a Cortex-M7 MCU running at 480MHz and containing 128KBytes internal flash, 1MiB SRAM. Signed-off-by: dillon min --- v9: no changes arch/arm/mach-stm32/board-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32/board-dt.c b/arch/arm/mac

[PATCH v9 2/6] dt-bindings: arm: stm32: Add compatible strings for ART-PI board

2021-03-31 Thread dillon . minfei
From: dillon min Art-pi based on stm32h750xbh6, with following resources: -8MiB QSPI flash -16MiB SPI flash -32MiB SDRAM -AP6212 wifi, bt, fm detail information can be found at: https://art-pi.gitee.io/website/ Signed-off-by: dillon min Acked-by: Rob Herring --- v9: no changes Documentatio

[PATCH v9 0/6] ARM: STM32: add art-pi(stm32h750xbh6) board support

2021-03-31 Thread dillon . minfei
From: dillon min This patchset intend to add art-pi board support, this board developed by rt-thread(https://www.rt-thread.org/). Board resources: 8MiB QSPI flash 16MiB SPI flash 32MiB SDRAM AP6212 wifi,bt,fm comb sw context: - as stm32h750 just has 128k bytes internal flash, so running a fw on

[PATCH v9 1/6] Documentation: arm: stm32: Add stm32h750 value line doc

2021-03-31 Thread dillon . minfei
From: dillon min This patchset add support for soc stm32h750, stm32h750 has mirror different from stm32h743 itemstm32h743 stm32h750 flash size: 2MiB 128KiB adc:none 3 crypto-hash:none aes/hamc/des/tdes/md5/sha detail information can

[PATCH v8 5/6] ARM: stm32: Add a new SOC - STM32H750

2021-03-30 Thread dillon . minfei
From: dillon min The STM32H750 is a Cortex-M7 MCU running at 480MHz and containing 128KBytes internal flash, 1MiB SRAM. Signed-off-by: dillon min --- v8: no changes arch/arm/mach-stm32/board-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32/board-dt.c b/arch/arm/mac

[PATCH v8 6/6] dt-bindings: serial: stm32: Use 'type: object' instead of false for 'additionalProperties'

2021-03-30 Thread dillon . minfei
From: dillon min To use additional properties 'bluetooth' on serial, need replace false with 'type: object' for 'additionalProperties' to make it as a node, else will run into dtbs_check warnings. 'arch/arm/boot/dts/stm32h750i-art-pi.dt.yaml: serial@40004800: 'bluetooth' does not match any of th

[PATCH v8 4/6] ARM: dts: stm32: add support for art-pi board based on stm32h750xbh6

2021-03-30 Thread dillon . minfei
From: dillon min This patchset has following changes: - introduce stm32h750.dtsi to support stm32h750 value line - add stm32h750i-art-pi.dtb (arch/arm/boot/dts/Makefile) - add stm32h750-art-pi.dts to support art-pi board art-pi board component: - 8MiB qspi flash - 16MiB spi flash - 32MiB sdram

[PATCH v8 3/6] ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h750

2021-03-30 Thread dillon . minfei
From: dillon min This patch is intend to add support stm32h750 value line, just add stm32h7-pinctrl.dtsi for extending, with following changes: - rename stm32h743-pinctrl.dtsi to stm32h7-pinctrl.dtsi - update stm32h743i-{dico/eval}.dtsi to include stm32h7-pinctrl.dtsi - add dts binding usart3, u

[PATCH v8 2/6] dt-bindings: arm: stm32: Add compatible strings for ART-PI board

2021-03-30 Thread dillon . minfei
From: dillon min Art-pi based on stm32h750xbh6, with following resources: -8MiB QSPI flash -16MiB SPI flash -32MiB SDRAM -AP6212 wifi, bt, fm detail information can be found at: https://art-pi.gitee.io/website/ Signed-off-by: dillon min Acked-by: Rob Herring --- v8: no changes Documentatio

[PATCH v8 1/6] Documentation: arm: stm32: Add stm32h750 value line doc

2021-03-30 Thread dillon . minfei
From: dillon min This patchset add support for soc stm32h750, stm32h750 has mirror different from stm32h743 itemstm32h743 stm32h750 flash size: 2MiB 128KiB adc:none 3 crypto-hash:none aes/hamc/des/tdes/md5/sha detail information can

[PATCH v8 0/6] ARM: STM32: add art-pi(stm32h750xbh6) board support

2021-03-30 Thread dillon . minfei
From: dillon min This patchset intend to add art-pi board support, this board developed by rt-thread(https://www.rt-thread.org/). Board resources: 8MiB QSPI flash 16MiB SPI flash 32MiB SDRAM AP6212 wifi,bt,fm comb sw context: - as stm32h750 just has 128k bytes internal flash, so running a fw on

[PATCH v7 6/6] dt-bindings: serial: stm32: Use 'type: object' instead of false for 'additionalProperties'

2021-03-29 Thread dillon . minfei
From: dillon min To use additional properties 'bluetooth' on serial, need replace false with 'type: object' for 'additionalProperties' to make it as a node, else will run into dtbs_check warnings. 'arch/arm/boot/dts/stm32h750i-art-pi.dt.yaml: serial@40004800: 'bluetooth' does not match any of th

[PATCH v7 5/6] ARM: stm32: Add a new SOC - STM32H750

2021-03-29 Thread dillon . minfei
From: dillon min The STM32H750 is a Cortex-M7 MCU running at 480MHz and containing 128KBytes internal flash, 1MiB SRAM. Signed-off-by: dillon min --- v7: no changes arch/arm/mach-stm32/board-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32/board-dt.c b/arch/arm/mac

[PATCH v7 4/6] ARM: dts: stm32: add support for art-pi board based on stm32h750xbh6

2021-03-29 Thread dillon . minfei
From: dillon min This patchset has following changes: - introduce stm32h750.dtsi to support stm32h750 value line - add stm32h750i-art-pi.dtb (arch/arm/boot/dts/Makefile) - add dts binding usart3 for bt, uart4 for console usart3/uart4 pinctrl in stm32h7-pinctrl.dtsi usart3/uart4 register in s

[PATCH v7 3/6] ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h750

2021-03-29 Thread dillon . minfei
From: dillon min This patch is intend to add support stm32h750 value line, just add stm32h7-pinctrl.dtsi for extending, with following changes: - rename stm32h743-pinctrl.dtsi to stm32h7-pinctrl.dtsi - move compatible string "st,stm32h743-pinctrl" from stm32h7-pinctrl.dtsi to stm32h743-pinctrl

[PATCH v7 2/6] dt-bindings: arm: stm32: Add compatible strings for ART-PI board

2021-03-29 Thread dillon . minfei
From: dillon min Art-pi based on stm32h750xbh6, with following resources: -8MiB QSPI flash -16MiB SPI flash -32MiB SDRAM -AP6212 wifi, bt, fm detail information can be found at: https://art-pi.gitee.io/website/ Signed-off-by: dillon min Acked-by: Rob Herring --- v7: no changes Documentatio

[PATCH v7 0/6] ARM: STM32: add art-pi(stm32h750xbh6) board support

2021-03-29 Thread dillon . minfei
From: dillon min This patchset intend to add art-pi board support, this board developed by rt-thread(https://www.rt-thread.org/). Board resources: 8MiB QSPI flash 16MiB SPI flash 32MiB SDRAM AP6212 wifi,bt,fm comb sw context: - as stm32h750 just has 128k bytes internal flash, so running a fw on

[PATCH v7 1/6] Documentation: arm: stm32: Add stm32h750 value line doc

2021-03-29 Thread dillon . minfei
From: dillon min This patchset add support for soc stm32h750, stm32h750 has mirror different from stm32h743 itemstm32h743 stm32h750 flash size: 2MiB 128KiB adc:none 3 crypto-hash:none aes/hamc/des/tdes/md5/sha detail information can

[PATCH v6 9/9] dt-bindings: serial: stm32: Use 'type: object' instead of false for 'additionalProperties'

2021-03-26 Thread dillon . minfei
From: dillon min To use additional properties 'bluetooth' on serial, need replace false with 'type: object' for 'additionalProperties' to make it as a node, else will run into dtbs_check warnings. 'arch/arm/boot/dts/stm32h750i-art-pi.dt.yaml: serial@40004800: 'bluetooth' does not match any of th

[PATCH v6 7/9] ARM: stm32: Add a new SOC - STM32H750

2021-03-26 Thread dillon . minfei
From: dillon min The STM32H750 is a Cortex-M7 MCU running at 480MHz and containing 128KBytes internal flash, 1MiB SRAM. Signed-off-by: dillon min --- v6: no changes arch/arm/mach-stm32/board-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32/board-dt.c b/arch/arm/ma

[PATCH v6 8/9] pinctrl: stm32: Add STM32H750 MCU pinctrl support

2021-03-26 Thread dillon . minfei
From: dillon min This patch adds STM32H750 pinctrl and GPIO support since stm32h750 has the same pin alternate functions with stm32h743, so just reuse the stm32h743's pinctrl driver Signed-off-by: dillon min --- v6: no changes drivers/pinctrl/stm32/Kconfig | 2 +- drivers/pinctrl

[PATCH v6 6/9] ARM: dts: stm32: add support for art-pi board based on stm32h750xbh6

2021-03-26 Thread dillon . minfei
From: dillon min This patchset has following changes: - introduce stm32h750.dtsi to support stm32h750 value line - add stm32h750i-art-pi.dtb (arch/arm/boot/dts/Makefile) - add dts binding usart3 for bt, uart4 for console usart3/uart4 pinctrl in stm32h7-pinctrl.dtsi usart3/uart4 register in s

[PATCH v6 0/9] ARM: STM32: add art-pi(stm32h750xbh6) board support

2021-03-26 Thread dillon . minfei
From: dillon min This patchset intend to add art-pi board support, this board developed by rt-thread(https://www.rt-thread.org/). Board resources: 8MiB QSPI flash 16MiB SPI flash 32MiB SDRAM AP6212 wifi,bt,fm comb sw context: - as stm32h750 just has 128k bytes internal flash, so running a fw on

[PATCH v6 5/9] ARM: dts: stm32: add stm32h750-pinctrl.dtsi

2021-03-26 Thread dillon . minfei
From: dillon min This patch add stm32h750-pinctrl.dtsi which just reference stm32h7-pinctrl.dtsi Signed-off-by: dillon min --- v6: no changes arch/arm/boot/dts/stm32h750-pinctrl.dtsi | 12 1 file changed, 12 insertions(+) create mode 100644 arch/arm/boot/dts/stm32h750-pinctrl.d

[PATCH v6 4/9] ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h750

2021-03-26 Thread dillon . minfei
From: dillon min This patch is intend to add support stm32h750 value line, just add stm32h7-pinctrl.dtsi for extending, with following changes: - rename stm32h743-pinctrl.dtsi to stm32h7-pinctrl.dtsi - move compatible string "st,stm32h743-pinctrl" from stm32h7-pinctrl.dtsi to stm32h743-pinctrl

[PATCH v6 1/9] Documentation: arm: stm32: Add stm32h750 value line doc

2021-03-26 Thread dillon . minfei
From: dillon min This patchset add support for soc stm32h750, stm32h750 has mirror different from stm32h743 itemstm32h743 stm32h750 flash size: 2MiB 128KiB adc:none 3 crypto-hash:none aes/hamc/des/tdes/md5/sha detail information can

[PATCH v5 7/9] ARM: stm32: Add a new SOC - STM32H750

2021-03-24 Thread dillon . minfei
From: dillon min The STM32H750 is a Cortex-M7 MCU running at 480MHz and containing 128KBytes internal flash, 1MiB SRAM. Signed-off-by: dillon min --- v5: no changes arch/arm/mach-stm32/board-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32/board-dt.c b/arch/arm/ma

[PATCH v5 9/9] dt-bindings: serial: stm32: Use 'type: object' instead of false for 'additionalProperties'

2021-03-24 Thread dillon . minfei
From: dillon min To use additional properties 'bluetooth' on serial, need replace false with 'type: object' for 'additionalProperties' to make it as a node, else will run into dtbs_check warnings. 'arch/arm/boot/dts/stm32h750i-art-pi.dt.yaml: serial@40004800: 'bluetooth' does not match any of th

[PATCH v5 8/9] pinctrl: stm32: Add STM32H750 MCU pinctrl support

2021-03-24 Thread dillon . minfei
From: dillon min This patch adds STM32H750 pinctrl and GPIO support since stm32h750 has the same pin alternate functions with stm32h743, so just reuse the stm32h743's pinctrl driver Signed-off-by: dillon min --- v5: no changes drivers/pinctrl/stm32/Kconfig | 2 +- drivers/pinctrl

[PATCH v5 6/9] ARM: dts: stm32: add support for art-pi board based on stm32h750xbh6

2021-03-24 Thread dillon . minfei
From: dillon min This patchset has following changes: - introduce stm32h750.dtsi to support stm32h750 value line - add stm32h750i-art-pi.dtb (arch/arm/boot/dts/Makefile) - add dts binding usart3 for bt, uart4 for console usart3/uart4 pinctrl in stm32h7-pinctrl.dtsi usart3/uart4 register in s

[PATCH v5 4/9] ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h750

2021-03-24 Thread dillon . minfei
From: dillon min This patch is intend to add support stm32h750 value line, just add stm32h7-pinctrl.dtsi for extending, with following changes: - rename stm32h743-pinctrl.dtsi to stm32h7-pinctrl.dtsi - move compatible string "st,stm32h743-pinctrl" from stm32h7-pinctrl.dtsi to stm32h743-pinctrl

[PATCH v5 5/9] ARM: dts: stm32: add stm32h750-pinctrl.dtsi

2021-03-24 Thread dillon . minfei
From: dillon min This patch add stm32h750-pinctrl.dtsi which just reference stm32h7-pinctrl.dtsi Signed-off-by: dillon min --- v5: no changes arch/arm/boot/dts/stm32h750-pinctrl.dtsi | 12 1 file changed, 12 insertions(+) create mode 100644 arch/arm/boot/dts/stm32h750-pinctrl.d

[PATCH v5 1/9] Documentation: arm: stm32: Add stm32h750 value line doc

2021-03-24 Thread dillon . minfei
From: dillon min This patchset add support for soc stm32h750, stm32h750 has mirror different from stm32h743 itemstm32h743 stm32h750 flash size: 2MiB 128KiB adc:none 3 crypto-hash:none aes/hamc/des/tdes/md5/sha detail information can

[PATCH v5 0/9] ARM: STM32: add art-pi(stm32h750xbh6) board support

2021-03-24 Thread dillon . minfei
From: dillon min This patchset intend to add art-pi board support, this board developed by rt-thread(https://www.rt-thread.org/). Board resources: 8MiB QSPI flash 16MiB SPI flash 32MiB SDRAM AP6212 wifi,bt,fm comb sw context: - as stm32h750 just has 128k bytes internal flash, so running a fw on

[PATCH v4 9/9] dt-bindings: serial: stm32: Use 'unevaluatedProperties' instead of 'additionalProperties'

2021-03-19 Thread dillon . minfei
From: dillon min To use additional properties 'bluetooth', need use unevaluatedProperties to fix dtbs_check warnings. 'arch/arm/boot/dts/stm32h750i-art-pi.dt.yaml: serial@40004800: 'bluetooth' does not match any of the regexes: 'pinctrl-[0-9]+' Reported-by: kernel test robot Fixes: af1c2d81695

[PATCH v4 6/9] ARM: dts: stm32: add support for art-pi board based on stm32h750xbh6

2021-03-19 Thread dillon . minfei
From: dillon min This patchset has following changes: - introduce stm32h750.dtsi to support stm32h750 value line - add stm32h750i-art-pi.dtb (arch/arm/boot/dts/Makefile) - add dts binding usart3 for bt, uart4 for console usart3/uart4 pinctrl in stm32h7-pinctrl.dtsi usart3/uart4 register in s

[PATCH v4 5/9] ARM: dts: stm32: add stm32h750-pinctrl.dtsi

2021-03-19 Thread dillon . minfei
From: dillon min This patch add stm32h750-pinctrl.dtsi which just reference stm32h7-pinctrl.dtsi Signed-off-by: dillon min --- v4: no changes arch/arm/boot/dts/stm32h750-pinctrl.dtsi | 12 1 file changed, 12 insertions(+) create mode 100644 arch/arm/boot/dts/stm32h750-pinctrl.d

[PATCH v4 4/9] ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h750

2021-03-19 Thread dillon . minfei
From: dillon min This patch is intend to add support stm32h750 value line, just add stm32h7-pinctrl.dtsi for extending, with following changes: - rename stm32h743-pinctrl.dtsi to stm32h7-pinctrl.dtsi - move compatible string "st,stm32h743-pinctrl" from stm32h7-pinctrl.dtsi to stm32h743-pinctrl

[PATCH v4 8/9] pinctrl: stm32: Add STM32H750 MCU pinctrl support

2021-03-19 Thread dillon . minfei
From: dillon min This patch adds STM32H750 pinctrl and GPIO support since stm32h750 has the same pin alternate functions with stm32h743, so just reuse the stm32h743's pinctrl driver Signed-off-by: dillon min --- v4: no changes drivers/pinctrl/stm32/Kconfig | 2 +- drivers/pinctrl

[PATCH v4 7/9] ARM: stm32: Add a new SOC - STM32H750

2021-03-19 Thread dillon . minfei
From: dillon min The STM32H750 is a Cortex-M7 MCU running at 480MHz and containing 128KBytes internal flash, 1MiB SRAM. Signed-off-by: dillon min --- v4: no changes arch/arm/mach-stm32/board-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32/board-dt.c b/arch/arm/ma

[PATCH v4 1/9] Documentation: arm: stm32: Add stm32h750 value line doc

2021-03-19 Thread dillon . minfei
From: dillon min This patchset add support for soc stm32h750, stm32h750 has mirror different from stm32h743 itemstm32h743 stm32h750 flash size: 2MiB 128KiB adc:none 3 crypto-hash:none aes/hamc/des/tdes/md5/sha detail information can

[PATCH v4 0/9] ARM: STM32: add art-pi(stm32h750xbh6) board support

2021-03-19 Thread dillon . minfei
From: dillon min This patchset intend to add art-pi board support, this board developed by rt-thread(https://www.rt-thread.org/). Board resources: 8MiB QSPI flash 16MiB SPI flash 32MiB SDRAM AP6212 wifi,bt,fm comb sw context: - as stm32h750 just has 128k bytes internal flash, so running a fw on

[PATCH v2] ARM: dts: imx6ull: fix ubi mount failed on MYS-6ULX-IOT board

2021-03-17 Thread dillon . minfei
From: dillon min This patch intend to fix ubi filesystem mount failed on MYS-6ULX-IOT board. Hi Shawn, Sorry for the incorrect commit message, could you help to update the part regard to it with git commit --amend? thanks. Changes in v2: just correct commit message, no code changes. dillon m

[PATCH v2] ARM: dts: imx6ull: fix ubi filesystem mount failed

2021-03-17 Thread dillon . minfei
From: dillon min For NAND Ecc layout, there is a dependency from old kernel's nand driver setting and current. if old kernel use 4 bit ecc , we should use 4 bit in new kernel either. else will run into following error at filesystem mounting. So, enable fsl,use-minimum-ecc from device tree, to fi

[PATCH v3 9/9] dt-bindings: serial: stm32: add phandle 'bluetooth' to fix dtbs_check warrning

2021-03-15 Thread dillon . minfei
From: dillon min when run make dtbs_check with 'bluetoothi brcm,bcm43438-bt' dts enabled on stm32h7, there is a warrning popup: >> arch/arm/boot/dts/stm32h750i-art-pi.dt.yaml: serial@40004800: 'bluetooth' does not match any of the regexes: 'pinctrl-[0-9]+' to make dtbs_check happy, so add a

[PATCH v3 8/9] pinctrl: stm32: Add STM32H750 MCU pinctrl support

2021-03-15 Thread dillon . minfei
From: dillon min This patch adds STM32H750 pinctrl and GPIO support since stm32h750 has the same pin alternate functions with stm32h743, so just reuse the stm32h743's pinctrl driver Signed-off-by: dillon min --- drivers/pinctrl/stm32/Kconfig | 2 +- drivers/pinctrl/stm32/pinctrl-st

[PATCH v3 7/9] ARM: stm32: Add a new SOC - STM32H750

2021-03-15 Thread dillon . minfei
From: dillon min The STM32H750 is a Cortex-M7 MCU running at 480MHz and containing 128KBytes internal flash, 1MiB SRAM. Signed-off-by: dillon min --- arch/arm/mach-stm32/board-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32/board-dt.c b/arch/arm/mach-stm32/board-dt

[PATCH v3 6/9] ARM: dts: stm32: add support for art-pi board based on stm32h750xbh6

2021-03-15 Thread dillon . minfei
From: dillon min This patchset has following changes: - introduce stm32h750.dtsi to support stm32h750 value line - add stm32h750i-art-pi.dtb (arch/arm/boot/dts/Makefile) - add dts binding usart3 for bt, uart4 for console usart3/uart4 pinctrl in stm32h7-pinctrl.dtsi usart3/uart4 register in s

[PATCH v3 5/9] ARM: dts: stm32: add stm32h750-pinctrl.dtsi

2021-03-15 Thread dillon . minfei
From: dillon min This patch add stm32h750-pinctrl.dtsi which just reference stm32h7-pinctrl.dtsi Signed-off-by: dillon min --- arch/arm/boot/dts/stm32h750-pinctrl.dtsi | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 arch/arm/boot/dts/stm32h750-pinctrl.dtsi diff --git a/

[PATCH v3 4/9] ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h750

2021-03-15 Thread dillon . minfei
From: dillon min This patch is intend to add support stm32h750 value line, just add stm32h7-pinctrl.dtsi for extending, with following changes: - rename stm32h743-pinctrl.dtsi to stm32h7-pinctrl.dtsi - move compatible string "st,stm32h743-pinctrl" from stm32h7-pinctrl.dtsi to stm32h743-pinctrl

[PATCH v3 3/9] dt-bindings: pinctrl: stm32: Add stm32h750 pinctrl

2021-03-15 Thread dillon . minfei
From: dillon min This patch intend to add pinctrl configuration support for stm32h750 value line The datasheet of stm32h750 value line can be found at: https://www.st.com/resource/en/datasheet/stm32h750ib.pdf Signed-off-by: dillon min --- Documentation/devicetree/bindings/pinctrl/st,stm32-pin

[PATCH v3 1/9] Documentation: arm: stm32: Add stm32h750 value line doc

2021-03-15 Thread dillon . minfei
From: dillon min This patchset add support for soc stm32h750, stm32h750 has mirror different from stm32h743 itemstm32h743 stm32h750 flash size: 2MiB 128KiB adc:none 3 crypto-hash:none aes/hamc/des/tdes/md5/sha detail information can

[PATCH v3 2/9] dt-bindings: arm: stm32: Add compatible strings for ART-PI board

2021-03-15 Thread dillon . minfei
From: dillon min Art-pi based on stm32h750xbh6, with following resources: -8MiB QSPI flash -16MiB SPI flash -32MiB SDRAM -AP6212 wifi, bt, fm detail information can be found at: https://art-pi.gitee.io/website/ Signed-off-by: dillon min --- Documentation/devicetree/bindings/arm/stm32/stm32.y

[PATCH v3 0/9] ARM: STM32: add art-pi(stm32h750xbh6) board support

2021-03-15 Thread dillon . minfei
From: dillon min This patchset intend to add art-pi board support, this board developed by rt-thread(https://www.rt-thread.org/). Board resources: 8MiB QSPI flash 16MiB SPI flash 32MiB SDRAM AP6212 wifi,bt,fm comb sw context: - as stm32h750 just has 128k bytes internal flash, so running a fw o

[PATCH v2 8/8] pinctrl: stm32: Add STM32H750 MCU pinctrl support

2021-03-11 Thread dillon . minfei
From: dillon min This patch adds STM32H750 pinctrl and GPIO support since stm32h750 has the same pin alternate functions with stm32h743, so just reuse the stm32h743's pinctrl driver Signed-off-by: dillon min --- v2: - add compatible string st,stm32h750-pinctrl to pinctl-stm32h743.c as they ha

[PATCH v2 6/8] ARM: dts: stm32: add support for art-pi board based on stm32h750xbh6

2021-03-11 Thread dillon . minfei
From: dillon min This patchset has following changes: - introduce stm32h750.dtsi to support stm32h750 value line - add stm32h750i-art-pi.dtb (arch/arm/boot/dts/Makefile) - add dts binding usart3 for bt, uart4 for console usart3/uart4 pinctrl in stm32h7-pinctrl.dtsi usart3/uart4 register in s

[PATCH v2 7/8] ARM: stm32: Add a new SOC - STM32H750

2021-03-11 Thread dillon . minfei
From: dillon min The STM32H750 is a Cortex-M7 MCU running at 480MHz and containing 128KBytes internal flash, 1MiB SRAM. Signed-off-by: dillon min --- v2: no changes arch/arm/mach-stm32/board-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32/board-dt.c b/arch/arm/mac

[PATCH v2 5/8] ARM: dts: stm32: add stm32h750-pinctrl.dtsi

2021-03-11 Thread dillon . minfei
From: dillon min This patch add stm32h750-pinctrl.dtsi which just reference stm32h7-pinctrl.dtsi Signed-off-by: dillon min --- v2: no changes arch/arm/boot/dts/stm32h750-pinctrl.dtsi | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 arch/arm/boot/dts/stm32h750-pinctrl.dts

[PATCH v2 4/8] ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h750

2021-03-11 Thread dillon . minfei
From: dillon min This patch is intend to add support stm32h750 value line, just add stm32h7-pinctrl.dtsi for extending, with following changes: - rename stm32h743-pinctrl.dtsi to stm32h7-pinctrl.dtsi - move compatible string "st,stm32h743-pinctrl" from stm32h7-pinctrl.dtsi to stm32h743-pinctrl

[PATCH v2 3/8] dt-bindings: pinctrl: stm32: Add stm32h750 pinctrl

2021-03-11 Thread dillon . minfei
From: dillon min This patch intend to add pinctrl configuration support for stm32h750 value line The datasheet of stm32h750 value line can be found at: https://www.st.com/resource/en/datasheet/stm32h750ib.pdf Signed-off-by: dillon min --- v2: just add more commit message description Document

[PATCH v2 2/8] dt-bindings: arm: stm32: Add compatible strings for ART-PI board

2021-03-11 Thread dillon . minfei
From: dillon min Art-pi based on stm32h750xbh6, with following resources: -8MiB QSPI flash -16MiB SPI flash -32MiB SDRAM -AP6212 wifi, bt, fm detail information can be found at: https://art-pi.gitee.io/website/ Signed-off-by: dillon min --- v2: no changes Documentation/devicetree/bindings/a

[PATCH v2 1/8] Documentation: arm: stm32: Add stm32h750 value line doc

2021-03-11 Thread dillon . minfei
From: dillon min This patchset add support for soc stm32h750, stm32h750 has mirror different from stm32h743 itemstm32h743 stm32h750 flash size: 2MiB 128KiB adc:none 3 crypto-hash:none aes/hamc/des/tdes/md5/sha detail information can

[PATCH v2 0/8] ARM: STM32: add art-pi(stm32h750xbh6) board support

2021-03-11 Thread dillon . minfei
From: dillon min This patchset intend to add art-pi board support, this board developed by rt-thread(https://www.rt-thread.org/). Board resources: 8MiB QSPI flash 16MiB SPI flash 32MiB SDRAM AP6212 wifi,bt,fm comb sw context: - as stm32h750 just has 128k bytes internal flash, so running a fw o

[PATCH] ARM: dts: imx6ull: fix ubi mount failed on MYS-6ULX-IOT board

2021-03-08 Thread dillon . minfei
From: dillon min This patch intend to fix ubi filesystem mount failed on MYS-6ULX-IOT board, from Micron MT29F2G08ABAEAWP's datasheets, we need to choose 4-bit ECC. Table 18: Error Management Details Description Requirement Minimum number of valid blocks (NV

[PATCH] ARM: dts: imx6ull: fix ubi filesystem mount failed

2021-03-08 Thread dillon . minfei
From: dillon min since Micron MT29F2G08ABAEAWP's ecc error management: |Description| Requirement |Minimum required ECC | 4-bit ECC per 528 bytes |Minimum ECC with internal ECC enabled | 4-bit ECC per 516 bytes (user data) +

[PATCH 8/8] ARM: stm32: add initial support for stm32h750

2021-03-03 Thread dillon . minfei
From: dillon min Signed-off-by: dillon min --- arch/arm/mach-stm32/board-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32/board-dt.c b/arch/arm/mach-stm32/board-dt.c index 011d57b488c2..a766310d8dca 100644 --- a/arch/arm/mach-stm32/board-dt.c +++ b/arch/arm/mach-stm3

[PATCH 7/8] ARM: dts: stm32: add support for art-pi board based on stm32h750xbh6

2021-03-03 Thread dillon . minfei
From: dillon min This patchset has following changes: - add stm32h750i-art-pi.dtb - add dts binding usart3 for bt, uart4 for console - add dts binding sdmmc2 for wifi - add stm32h750-art-pi.dts to support art-pi board board component: - 8MiB qspi flash - 16MiB spi flash - 32MiB sdram - ap6212 w

[PATCH 6/8] ARM: dts: stm32: add stm32h750-pinctrl.dtsi

2021-03-03 Thread dillon . minfei
From: dillon min Signed-off-by: dillon min --- arch/arm/boot/dts/stm32h750-pinctrl.dtsi | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 arch/arm/boot/dts/stm32h750-pinctrl.dtsi diff --git a/arch/arm/boot/dts/stm32h750-pinctrl.dtsi b/arch/arm/boot/dts/stm32h750-pinctrl.d

[PATCH 5/8] ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h75x

2021-03-03 Thread dillon . minfei
From: dillon min To support stm32h750 and stm32h743, we need a base stm32h7-pinctrl.dtsi as stm32h743 & h750 has almost the same interface. so, just rename stm32h743-pinctrl.dtsi to stm32h7-pinctrl.dtsi Signed-off-by: dillon min --- arch/arm/boot/dts/stm32h7-pinctrl.dtsi | 392 ++

[PATCH 4/8] dt-bindings: pinctrl: stm32: Add stm32h750 pinctrl

2021-03-03 Thread dillon . minfei
From: dillon min Signed-off-by: dillon min --- Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml i

[PATCH 3/8] dt-bindings: arm: stm32: Add compatible strings for ART-PI board

2021-03-03 Thread dillon . minfei
From: dillon min Art-pi based on stm32h750xbh6, with following resources: -8MiB QSPI flash -16MiB SPI flash -32MiB SDRAM -AP6212 wifi, bt, fm detail information can be found at: https://art-pi.gitee.io/website/ Signed-off-by: dillon min --- Documentation/devicetree/bindings/arm/stm32/stm32.y

[PATCH 2/8] Documentation: arm: stm32: Add stm32h750 value line

2021-03-03 Thread dillon . minfei
From: dillon min detail information can be found at: https://www.st.com/en/microcontrollers-microprocessors/stm32h750-value-line.html Signed-off-by: dillon min --- Documentation/arm/index.rst| 1 + Documentation/arm/stm32/stm32h750-overview.rst | 33 +++

[PATCH 0/8] ARM: STM32: add art-pi(stm32h750xbh6) board support

2021-03-03 Thread dillon . minfei
From: dillon min This patchset intend to add art-pi board support, this board developed by rt-thread(https://www.rt-thread.org/). Board resources: 8MiB QSPI flash 16MiB SPI flash 32MiB SDRAM AP6212 wifi,bt,fm comb sw context: - as stm32h750 just has 128k bytes internal flash, so running a fw o

[PATCH 1/8] ARM: ARMv7-M: Fix register restore corrupt after svc call

2021-03-03 Thread dillon . minfei
From: dillon min For some case, kernel not boot by u-boot(single thread), but by rtos , as most rtos use pendsv to do context switch. So, we need add an lr check after svc call, to find out should use psp or msp. else register restore after svc call might be corrupted. Fixes: b70cd406d7fe ("ARM

[PATCH: V2 2/2] gpio: tc35894: Disable Direct KBD interrupts to enable gpio irq

2020-09-03 Thread dillon . minfei
From: dillon min On tc35894, have to disable direct keypad interrupts to make it as general purpose interrupts functionality work. if not, after chip reset, IRQST(0x91) will always 0x20, IRQN always low level, can't be clear. Configure DIRECTx to enable general purpose gpio mode, else read GPIOM

[PATCH: V2 1/2] gpio: tc35894: fix up tc35894 interrupt configuration

2020-09-03 Thread dillon . minfei
From: dillon min The offset of regmap is incorrect, j * 8 is move to the wrong register. for example: asume i = 0, j = 1. we want to set KPY5 as interrupt falling edge mode, regmap[0][1] should be TC3589x_GPIOIBE1 0xcd but, regmap[i] + j * 8 = TC3589x_GPIOIBE0 + 8 ,point to 0xd4, this is TC3589

[PATCH: V2 0/2] Fix TC35894 gpio interrupt bug

2020-09-03 Thread dillon . minfei
From: dillon min This patchset intend to fix two bug on tc35894 V2: 1 change V1[1] patch's Fixes tag 2 add DIRECTx register configuration in tc3589x_gpio_irq_sync_unlock() to active general purpose gpio mode, else can't read correct GPIOMISx to identify which interrupt V1: 1 offset counti

[PATCH: 0/2] Fix TC35894 gpio interrupt bug

2020-08-31 Thread dillon . minfei
From: dillon min This patchset intend to fix two bug on tc35894 1 offset counting is wrong in tc3589x_gpio_irq_sync_unlock() 2 disable Direct KBD interrupts in gpio-tc3589x's probe(), at least have to do this on tc35894, if not, after chip reset, IRQST(0x91) will always be 0x20, IRQN always

[PATCH: 1/2] gpio: tc35894: fix up tc35894 interrupt configuration

2020-08-31 Thread dillon . minfei
From: dillon min The offset of regmap is incorrect, j * 8 is move to the wrong register. for example: asume i = 0, j = 1. we want to set KPY5 as interrupt falling edge mode, regmap[0][1] should be TC3589x_GPIOIBE1 0xcd but, regmap[i] + j * 8 = TC3589x_GPIOIBE0 + 8 ,point to 0xd4, this is TC3589

[PATCH: 2/2] gpio: tc35894: Disable Direct KBD interrupts to enable gpio irq

2020-08-31 Thread dillon . minfei
From: dillon min On tc35894, have to disable direct keypad interrupts to make it as general purpose interrupts functionality work. if not, after chip reset, IRQST(0x91) will always 0x20, IRQN always low level, can't be clear. verified on tc35894, need more test on other tc3589x. Signed-off-by:

  1   2   3   >