[PATCH v6 2/9] ARM: dts: stm32: Add pin map for ltdc & spi5 on stm32f429-disco board

2020-05-27 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for ltdc and spi5 controller on stm32f429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 67 ++ 1 file changed, 67 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-p

[PATCH v6 1/9] ARM: dts: stm32: Add dma config for spi5

2020-05-27 Thread dillon . minfei
From: dillon min Enable spi5's dma configuration. for graphics data output to ilitek ili9341 panel via mipi dbi interface Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/s

[PATCH v6 4/9] dt-bindings: display: panel: Add ilitek ili9341 panel bindings

2020-05-27 Thread dillon . minfei
From: dillon min Add documentation for "ilitek,ili9341" panel. Signed-off-by: dillon min --- .../bindings/display/panel/ilitek,ili9341.yaml | 69 ++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml

[PATCH v6 0/9] Enable ili9341 and l3gd20 on stm32f429-disco

2020-05-27 Thread dillon . minfei
From: dillon min V6: 1 separate '[PATCH v5 5/8]' patchs to two, each one has a Fixes tags according to Stephen Boyd's suggestion 2 fix panel-ilitek-ili9341 compile warning 'warning: Function parameter or member xxx not described in xxx' with W=1 V5's update based on Mark Brown's suggestion,

[PATCH v6 5/9] clk: stm32: Fix stm32f429's ltdc driver hang in set clock rate

2020-05-27 Thread dillon . minfei
From: dillon min This is due to misuse ‘PLL_VCO_SAI' and'PLL_SAI' in clk-stm32f4.c 'PLL_SAI' is 2, 'PLL_VCO_SAI' is 7(defined in include/dt-bindings/clock/stm32fx-clock.h). 'post_div' point to 'post_div_data[]', 'post_div->pll_num' is PLL_I2S or PLL_SAI. 'clks[PLL_VCO_SAI]' has valid 'struct cl

[PATCH v6 6/9] clk: stm32: Fix ltdc's clock turn off by clk_disable_unused() after kernel startup

2020-05-27 Thread dillon . minfei
From: dillon min stm32's clk driver register two ltdc gate clk to clk core by clk_hw_register_gate() and clk_hw_register_composite() first: 'stm32f429_gates[]', clk name is 'ltdc', which no user to use. second: 'stm32f429_aux_clk[]', clk name is 'lcd-tft', used by ltdc driver both of them point

[PATCH v6 8/9] spi: stm32: Add 'SPI_SIMPLEX_RX', 'SPI_3WIRE_RX' support for stm32f4

2020-05-27 Thread dillon . minfei
From: dillon min in l3gd20 driver startup, there is a setup failed error return from stm32 spi driver " [2.687630] st-gyro-spi spi0.0: supply vdd not found, using dummy regulator [2.696869] st-gyro-spi spi0.0: supply vddio not found, using dummy regulator [2.706707] spi_s

[PATCH v6 7/9] drm/panel: Add ilitek ili9341 panel driver

2020-05-27 Thread dillon . minfei
From: dillon min This driver combine tiny/ili9341.c mipi_dbi_interface driver with mipi_dpi_interface driver, can support ili9341 with serial mode or parallel rgb interface mode by register configuration. Signed-off-by: dillon min --- Hi Linus, Noralf, Andy, Changes since V5: fix panel-ilitek

[PATCH v6 9/9] spi: flags 'SPI_CONTROLLER_MUST_RX' and 'SPI_CONTROLLER_MUST_TX' can't be coexit with 'SPI_3WIRE' mode

2020-05-27 Thread dillon . minfei
From: dillon min since chip spi driver need get the transfer direction by 'tx_buf' and 'rx_buf' of 'struct spi_transfer' in 'SPI_3WIRE' mode. so, we need bypass 'SPI_CONTROLLER_MUST_RX' and 'SPI_CONTROLLER_MUST_TX' feature in 'SPI_3WIRE' mode Signed-off-by: dillon min --- drivers/spi/spi.c |

[PATCH v2] ARM: dts: Configure osc clock for d_can on am437x

2020-07-13 Thread dillon . minfei
From: dillon min V1 -> V2: correct commit messages based on Stephen Rothwell's reviewing. make Fixes tags to oneline. make all commit message tags at the end of commit message V1: Got following d_can probe errors with kernel 5.8-rc1 on am437x [ 10.730822] CAN device driver interface Starting

[PATCH v2] Since am437x have the same clock structure with am335x [1][2], reuse the code from Tony Lindgren's patch [3] to fix dcan probe failed on am437x platform.

2020-07-13 Thread dillon . minfei
From: dillon min Fixes: 1a5cd7c23cc5 ("bus: ti-sysc: Enable all clocks directly during init to read revision") [1]: https://www.ti.com/lit/pdf/spruh73 Chapter-23, Figure 23-1. DCAN Integration [2]: https://www.ti.com/lit/pdf/spruhl7 Chapter-25, Figure 25-1. DCAN Integration [3]: commit 516f1117

[PATCH v3] Since am437x have the same clock structure with am335x [1][2], reuse the code from Tony Lindgren's patch [3] to fix dcan probe failed on am437x platform.

2020-07-13 Thread dillon . minfei
From: dillon min [1]: https://www.ti.com/lit/pdf/spruh73 Chapter-23, Figure 23-1. DCAN Integration [2]: https://www.ti.com/lit/pdf/spruhl7 Chapter-25, Figure 25-1. DCAN Integration [3]: commit 516f1117d0fb ("ARM: dts: Configure osc clock for d_can on am335x") Signed-off-by: dillon min Fixes: 1

[PATCH v3] ARM: dts: Configure osc clock for d_can on am437x

2020-07-13 Thread dillon . minfei
From: dillon min V2 -> V3: make Fixes tags after Signed-off-by line. V1 -> V2: correct commit messages based on Stephen Rothwell's reviewing. make Fixes tags to oneline. make all commit message tags at the end of commit message V1: Got following d_can probe errors with kernel 5.8-rc1 on am437x

[PATCH v4] ARM: dts: Configure osc clock for d_can on am437x

2020-07-13 Thread dillon . minfei
From: dillon min V3 -> V4: make Fixes tags before Signed-off-by line. make subject more clear and short. add driver probe failed log to commit message. V2 -> V3: make Fixes tags after Signed-off-by line. V1 -> V2: correct commit messages based on Stephen Rothwell's reviewing. make Fixes tags to

[PATCH v4] Fix dcan driver probe failed on am437x platform

2020-07-13 Thread dillon . minfei
From: dillon min Got following d_can probe errors with kernel 5.8-rc1 on am437x [ 10.730822] CAN device driver interface Starting Wait for Network to be Configured... [ OK ] Reached target Network. [ 10.787363] c_can_platform 481cc000.can: probe failed [ 10.792484] c_can_platform: probe

[PATCH 0/3] Enable l3gd20 on stm32f429-disco board

2020-05-08 Thread dillon . minfei
From: dillon min This patchset is for enable l3gd20 on stm32f429-disco board has following changes: 1, enable spi5 controller on stm32f429-disco (dts) 2, add spi5 pinmap for stm32f429-disco (dts) 3, add SPI_SIMPLEX_RX, SPI_3WIRE_RX support for stm32f4 dillon min (3): ARM: dts: stm32: Add pi

[PATCH 1/3] ARM: dts: stm32: Add pin map for spi5 on stm32f429-disco board

2020-05-08 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for ltdc, spi5 controller on stm32f429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi b/arch/

[PATCH 3/3] spi: stm32: Add SPI_SIMPLEX_RX, SPI_3WIRE_RX support for stm32f4

2020-05-08 Thread dillon . minfei
From: dillon min in l3gd20 driver startup, there is a setup failed error return from stm32 spi driver " [2.687630] st-gyro-spi spi0.0: supply vdd not found, using dummy regulator [2.696869] st-gyro-spi spi0.0: supply vddio not found, using dummy regulator [2.706707] spi_stm32 4001500

[PATCH 2/3] ARM: dts: stm32: enable l3gd20 on stm32429-disco board

2020-05-08 Thread dillon . minfei
From: dillon min Enable l3gd20 on stm32429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429-disco.dts | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm32f429-disco.dts index 30c0f67

[PATCH 1/4] ARM: dts: stm32: Add drm panel ili9341 support for stm32f429-disco board

2020-05-05 Thread dillon . minfei
From: dillon min 1, add stm32f429-disco ltdc pins mux config 2, add ltdc nodes pinned with ili9341 3, add spi5 node Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 67 ++ arch/arm/boot/dts/stm32f429-disco.dts | 40 2

[PATCH 2/4] dt-bindings: display: Add ilitek-9341 binding

2020-05-05 Thread dillon . minfei
From: dillon min add ili9341 for stm32f429-disco board some hardware resources can be found here https://www.st.com/zh/evaluation-tools/32f429idiscovery.html Signed-off-by: dillon min --- .../bindings/display/panel/ilitek,ili9341.yaml | 55 ++ 1 file changed, 55 inserti

[PATCH 2/4] dt-bindings: display: Add ilitek-9341 binding

2020-05-05 Thread dillon . minfei
Add document for ilitek 9341 binding to stm32f429-disco board some hardware resource can be found here, https://www.st.com/zh/evaluation-tools/32f429idiscovery.html

[PATCH 3/4] drm/panel: Add Ilitek ILI9341 driver

2020-05-05 Thread dillon . minfei
Add drm panel driver ilitek ili9341 , based on panel/panel-ilitek-ili9322.c currently just support rgb input only

[PATCH 3/4] drm/panel: Add Ilitek ILI9341 driver

2020-05-05 Thread dillon . minfei
From: dillon min This adds support for the Ilitek ILI9341 QVGA (240x320) TFT panel driver. This panel driver supports parallel RGB input. The controller is combined with a physical panel and configured through the device tree. Signed-off-by: dillon min --- drivers/gpu/drm/panel/Kconfig

[PATCH 4/4] clk: stm32f4: fix ltdc driver hang as clk set rate failed

2020-05-05 Thread dillon . minfei
From: dillon min should use PLL_SAI offset of clks , not PLL_VCO_SAI else can not get clk gate. Signed-off-by: dillon min --- drivers/clk/clk-stm32f4.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-stm32f4.c b/drivers/clk/clk-stm32f4.c index 18117ce

[no subject]

2020-05-05 Thread dillon . minfei
Fix stm32f429's ltdc driver loading hang in ltdc clk enable. set clk_hw to the wrong offset of clks in stm32f4_rcc_register_pll, should be PLL_SAI

[PATCH v5 2/8] ARM: dts: stm32: Add pin map for ltdc & spi5 on stm32f429-disco board

2020-05-24 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for ltdc and spi5 controller on stm32f429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 67 ++ 1 file changed, 67 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-p

[PATCH v5 3/8] ARM: dts: stm32: enable ltdc binding with ili9341, gyro l3gd20 on stm32429-disco board

2020-05-24 Thread dillon . minfei
From: dillon min Enable the ltdc & ili9341, gyro l3gd20 on stm32429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429-disco.dts | 48 +++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/d

[PATCH v5 1/8] ARM: dts: stm32: Add dma config for spi5

2020-05-24 Thread dillon . minfei
From: dillon min Enable spi5's dma configuration. for graphics data output to ilitek ili9341 panel via mipi dbi interface Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/s

[PATCH v5 0/8] Enable ili9341 and l3gd20 on stm32f429-disco

2020-05-24 Thread dillon . minfei
From: dillon min V5's update based on Mark Brown's suggestion, use 'SPI_MASTER_MUST_RX' for SPI_SIMPLEX_RX mode on stm32 spi controller. V5: 1 instead of add send dummy data out under SIMPLEX_RX mode, add flags 'SPI_CONTROLLER_MUST_TX' for stm32 spi driver 2 bypass 'SPI_CONTROLLER_MUST_TX' an

[PATCH v5 5/8] clk: stm32: Fix stm32f429's ltdc driver hang in set clock rate, fix duplicated ltdc clock register to 'clk_core' case ltdc's clock turn off by clk_disable_unused()

2020-05-24 Thread dillon . minfei
From: dillon min ltdc set clock rate crashed 'post_div_data[]''s pll_num is PLL_I2S, PLL_SAI (number is 1,2). but, as pll_num is offset of 'clks[]' input to clk_register_pll_div(), which is FCLK, CLK_LSI, defined in 'include/dt-bindings/clock/stm32fx-clock.h' so, this is a null obj

[PATCH v5 4/8] dt-bindings: display: panel: Add ilitek ili9341 panel bindings

2020-05-24 Thread dillon . minfei
From: dillon min Add documentation for "ilitek,ili9341" panel. Signed-off-by: dillon min --- .../bindings/display/panel/ilitek,ili9341.yaml | 69 ++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml

[PATCH v5 8/8] spi: flags 'SPI_CONTROLLER_MUST_RX' and 'SPI_CONTROLLER_MUST_TX' can't be coexit with 'SPI_3WIRE' mode

2020-05-24 Thread dillon . minfei
From: dillon min since chip spi driver need get the transfer direction by 'tx_buf' and 'rx_buf' of 'struct spi_transfer' in 'SPI_3WIRE' mode. so, we need bypass 'SPI_CONTROLLER_MUST_RX' and 'SPI_CONTROLLER_MUST_TX' feature in 'SPI_3WIRE' mode Signed-off-by: dillon min --- drivers/spi/spi.c |

[PATCH v5 7/8] spi: stm32: Add 'SPI_SIMPLEX_RX', 'SPI_3WIRE_RX' support for stm32f4

2020-05-24 Thread dillon . minfei
From: dillon min in l3gd20 driver startup, there is a setup failed error return from stm32 spi driver " [2.687630] st-gyro-spi spi0.0: supply vdd not found, using dummy regulator [2.696869] st-gyro-spi spi0.0: supply vddio not found, using dummy regulator [

[PATCH v5 6/8] drm/panel: Add ilitek ili9341 panel driver

2020-05-24 Thread dillon . minfei
From: dillon min This driver combine tiny/ili9341.c mipi_dbi_interface driver with mipi_dpi_interface driver, can support ili9341 with serial mode or parallel rgb interface mode by register configuration. Changes since V3: accoding to Linus Walleij's suggestion. 1 add more c

[PATCH v5 5/8] clk: stm32: Fix stm32f429's ltdc driver hang in set clock rate, fix duplicated ltdc clock register to 'clk_core' case ltdc's clock turn off by clk_disable_unused()

2020-05-24 Thread dillon . minfei
From: dillon min ltdc set clock rate crashed 'post_div_data[]''s pll_num is PLL_I2S, PLL_SAI (number is 1,2). but, as pll_num is offset of 'clks[]' input to clk_register_pll_div(), which is FCLK, CLK_LSI, defined in 'include/dt-bindings/clock/stm32fx-clock.h' so, this is a null obj

[PATCH v5 4/8] dt-bindings: display: panel: Add ilitek ili9341 panel bindings

2020-05-24 Thread dillon . minfei
From: dillon min Add documentation for "ilitek,ili9341" panel. Signed-off-by: dillon min --- .../bindings/display/panel/ilitek,ili9341.yaml | 69 ++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml

[PATCH v5 6/8] drm/panel: Add ilitek ili9341 panel driver

2020-05-24 Thread dillon . minfei
From: dillon min This driver combine tiny/ili9341.c mipi_dbi_interface driver with mipi_dpi_interface driver, can support ili9341 with serial mode or parallel rgb interface mode by register configuration. Changes since V3: accoding to Linus Walleij's suggestion. 1 add more c

[PATCH v5 2/8] ARM: dts: stm32: Add pin map for ltdc & spi5 on stm32f429-disco board

2020-05-24 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for ltdc and spi5 controller on stm32f429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 67 ++ 1 file changed, 67 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-p

[PATCH v5 7/8] spi: stm32: Add 'SPI_SIMPLEX_RX', 'SPI_3WIRE_RX' support for stm32f4

2020-05-24 Thread dillon . minfei
From: dillon min in l3gd20 driver startup, there is a setup failed error return from stm32 spi driver " [2.687630] st-gyro-spi spi0.0: supply vdd not found, using dummy regulator [2.696869] st-gyro-spi spi0.0: supply vddio not found, using dummy regulator [

[PATCH v5 1/8] ARM: dts: stm32: Add dma config for spi5

2020-05-24 Thread dillon . minfei
From: dillon min Enable spi5's dma configuration. for graphics data output to ilitek ili9341 panel via mipi dbi interface Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/s

[PATCH v5 0/8] Enable ili9341 and l3gd20 on stm32f429-disco

2020-05-24 Thread dillon . minfei
From: dillon min V5's update based on Mark Brown's suggestion, use 'SPI_MASTER_MUST_RX' for SPI_SIMPLEX_RX mode on stm32 spi controller. V5: 1 instead of add send dummy data out under SIMPLEX_RX mode, add flags 'SPI_CONTROLLER_MUST_TX' for stm32 spi driver 2 bypass 'SPI_CONTROLLER_MUST_TX' an

[PATCH v5 8/8] spi: flags 'SPI_CONTROLLER_MUST_RX' and 'SPI_CONTROLLER_MUST_TX' can't be coexit with 'SPI_3WIRE' mode

2020-05-24 Thread dillon . minfei
From: dillon min since chip spi driver need get the transfer direction by 'tx_buf' and 'rx_buf' of 'struct spi_transfer' in 'SPI_3WIRE' mode. so, we need bypass 'SPI_CONTROLLER_MUST_RX' and 'SPI_CONTROLLER_MUST_TX' feature in 'SPI_3WIRE' mode Signed-off-by: dillon min --- drivers/spi/spi.c |

[PATCH v5 3/8] ARM: dts: stm32: enable ltdc binding with ili9341, gyro l3gd20 on stm32429-disco board

2020-05-24 Thread dillon . minfei
From: dillon min Enable the ltdc & ili9341, gyro l3gd20 on stm32429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429-disco.dts | 48 +++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/d

[PATCH 0/2] Use 'arm_nommu_dma_ops' to handle dma memroy if device offer consistent dma memory region

2020-06-08 Thread dillon . minfei
From: dillon min when do mmap on /dev/fb0, we will get -6 error on cortex-m3/m4 or armv7m platform without cache support, this is caused by following reason: on armv7m platform, if no cache support, we will use dma direct mapping, but, this is not support on !MMU hardware, just return '-ENXIO' e

[PATCH 1/2] ARM: dts: stm32: Setup 4M bytes reserved memory for mmap

2020-06-08 Thread dillon . minfei
From: dillon min To mmap a framebuffer or v4l2 buffer from kernel to userspace on no-mmu platform, we need rely on 'arm_nommu_dma_ops' from arch/arm/mm/dma-mapping-nommu.c , so setup 4M bytes memory reserved for this purpose. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f469-disco.dts

[PATCH 2/2] arm-nommu: Add use_reserved_mem() to check if device support reserved memory

2020-06-08 Thread dillon . minfei
From: dillon min Currently, we use dma direct to request coherent memory for driver on armv7m platform if 'cacheid' is zero, but dma_direct_can_mmap() is return false, dma_direct_mmap() return -ENXIO for CONFIG_MMU undefined platform. so we have to back to use 'arm_nommu_dma_ops', add use_reserv

[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: 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: 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: 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: 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:

[PATCH 1/4] ARM: dts: stm32: add I2C3 support on STM32F429 SoC

2020-05-07 Thread dillon . minfei
From: dillon min This patch adds I2C3 instances of the STM32F429 SoC Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index d777069..257b843 10064

[no subject]

2020-05-07 Thread dillon . minfei
This patchset enable the stmpe811 touch screen on stm32f429-disco board, tested with ts_print. as sdram memory shortage on this disco board, so i didn't test ts_calibrate (kernel crashed at mmap in open framebuffer)

[PATCH 2/4] ARM: dts: stm32: Add pin map for I2C3 controller on stm32f4

2020-05-07 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for I2C3 controller on stm32f4. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi b/arch/arm/boot/dts/stm32f4-pinc

[PATCH 4/4] i2c: stm32f4: Fix stmpe811 get xyz data timeout issue

2020-05-07 Thread dillon . minfei
From: dillon min As stm32f429's internal flash is 2Mbytes and compiled kernel image bigger than 2Mbytes, so we have to load kernel image to sdram on stm32f429-disco board which has 8Mbytes sdram space. based on above context, as you knows kernel running on external sdram is more slower than inte

[PATCH 3/4] ARM: dts: stm32: enable stmpe811 on stm32429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min Enable the stmpe811 touch screen on stm32429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429-disco.dts | 50 +++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm

[PATCH 3/4] ARM: dts: stm32: enable stmpe811 on stm32429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min Enable the stmpe811 touch screen on stm32429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429-disco.dts | 47 +++ 1 file changed, 47 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm

[PATCH 3/4] ARM: dts: stm32: enable stmpe811 on stm32429-disco board

2020-05-07 Thread dillon . minfei
[PATCH 3/4] ARM: dts: stm32: enable stmpe811 on stm32429-disco board remove id, blocks, irq-trigger from the stmpe mfd dts node.

[PATCH V2] Enable stmpe811 on stm32f429-disco board

2020-05-07 Thread dillon . minfei
This patchset has following one patchs changed in V2 based on V1 Changes in V2: [Patch V2 3/4]: remove id, blocks, irq-trigger from dts node. Changes in V1: [Patch 1/4]: add I2C3 support on STM32F429 SoC [Patch 2/4]: Add pin map for I2C3 controller on stm32f4 [Patch 3/4]: enable stmpe811 on s

[PATCH V2 1/4] ARM: dts: stm32: add I2C3 support on STM32F429 SoC

2020-05-07 Thread dillon . minfei
From: dillon min This patch adds I2C3 instances of the STM32F429 SoC Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index d777069..257b843 10064

[PATCH V2 2/4] ARM: dts: stm32: Add pin map for I2C3 controller on stm32f4

2020-05-07 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for I2C3 controller on stm32f4. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi b/arch/arm/boot/dts/stm32f4-pinc

[PATCH V2 3/4] ARM: dts: stm32: enable stmpe811 on stm32429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min Enable the stmpe811 touch screen on stm32429-disco board. Signed-off-by: dillon min [PATCH 3/4]: ARM: dts: stm32: enable stmpe811 on stm32429-disco V2: patch 3: remove unused id, blocks, irq-trigger V1: patch 4: fix read touch screen xyz timeout bug patch 3: enable stmpe_tou

[PATCH V2 4/4] i2c: stm32f4: Fix stmpe811 get xyz data timeout issue

2020-05-07 Thread dillon . minfei
From: dillon min As stm32f429's internal flash is 2Mbytes and compiled kernel image bigger than 2Mbytes, so we have to load kernel image to sdram on stm32f429-disco board which has 8Mbytes sdram space. based on above context, as you knows kernel running on external sdram is more slower than inte

[PATCH v3 0/5] Enable ilitek ili9341 on stm32f429-disco board

2020-05-12 Thread dillon . minfei
From: dillon min This patchset has following changes: V3: merge original tiny/ili9341.c driver to panel/panel-ilitek-ili9341.c to support serial spi & parallel rgb interface in one driver. update ilitek,ili9341.yaml dts binding documentation. update stm32f429-disco dts binding V

[PATCH v3 2/5] dt-bindings: display: panel: Add ilitek ili9341 panel bindings

2020-05-12 Thread dillon . minfei
From: dillon min Add documentation for "ilitek,ili9341" panel. Signed-off-by: dillon min --- Changes: V3: change compatible to st,sf-tc240t-9370-t, match #vendor,#lcd_module style V2: verifyied with make dt_binding_check V1: none .../bindings/display/panel/ilitek,ili9341.yaml

[PATCH v3 1/5] ARM: dts: stm32: Add pin map for ltdc, spi5 on stm32f429-disco board

2020-05-12 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for ltdc, spi5 controller on stm32f429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 67 ++ 1 file changed, 67 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-pinc

[PATCH v3 4/5] clk: stm32: Fix stm32f429 ltdc driver loading hang in clk set rate. keep ltdc clk running after kernel startup

2020-05-12 Thread dillon . minfei
From: dillon min as store stm32f4_rcc_register_pll return to the wrong offset of clks, so ltdc gate clk is null. need change clks[PLL_VCO_SAI] to clks[PLL_SAI] add CLK_IGNORE_UNUSED for ltdc to make sure clk not be freed by clk_disable_unused Signed-off-by: dillon min --- drivers/clk/clk-stm3

[PATCH v3 3/5] ARM: dts: stm32: enable ltdc binding with ili9341 on stm32429-disco board

2020-05-12 Thread dillon . minfei
From: dillon min Enable the ltdc & ili9341 on stm32429-disco board. Signed-off-by: dillon min --- Changes: V3: change dts binding compatible to "st,sf-tc240t-9370-t" V2: none v1: none arch/arm/boot/dts/stm32f429-disco.dts | 39 +++ 1 file changed

[PATCH v3 5/5] drm/panel: Add ilitek ili9341 driver

2020-05-12 Thread dillon . minfei
From: dillon min Currently, we can use tinydrm ili9341 driver to drive ili9341 panel by spi interface (both register configuration and video) ili9341 have parallel and mcu interface as well, we extend the support to parallel rgb interface with DRM_MODE_CONNECTOR_DPI this driver can work as para

[PATCH v2 3/3] spi: stm32: Add SPI_SIMPLEX_RX, SPI_3WIRE_RX support for stm32f4

2020-05-12 Thread dillon . minfei
From: dillon min in l3gd20 driver startup, there is a setup failed error return from stm32 spi driver " [2.687630] st-gyro-spi spi0.0: supply vdd not found, using dummy regulator [2.696869] st-gyro-spi spi0.0: supply vddio not found, using dummy regulator [2.7

[PATCH v2 2/3] ARM: dts: stm32: enable l3gd20 on stm32429-disco board

2020-05-12 Thread dillon . minfei
From: dillon min L3gd20, st mems motion sensor, 3-axis digital output gyroscope, connect to stm32f429 via spi5 Signed-off-by: dillon min --- Hi Alexandre, V2: 1, insert blank line at stm32f420-disco.dts line 143 2, add more description about l3gd20 in commit message V1: enable l3

[PATCH v2 1/3] ARM: dts: stm32: Add pin map for spi5 on stm32f429-disco board

2020-05-12 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for ltdc, spi5 controller on stm32f429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi b/arch/

[PATCH v2 0/3] Enable l3gd20 on stm32f429-disco board

2020-05-12 Thread dillon . minfei
From: dillon min This patchset is for enable l3gd20 on stm32f429-disco board has following changes: V2: 1, insert blank line at stm32f420-disco.dts line 143 2, add more description for l3gd20 in commit message V1: 1, enable spi5 controller on stm32f429-disco (dts) 2, add spi5 pi

[PATCH] Configure osc clock for d_can on am437x

2020-06-21 Thread dillon . minfei
From: dillon min Got following d_can probe errors with kernel 5.8-rc1 on am437x [ 10.730822] CAN device driver interface Starting Wait for Network to be Configured... [ OK ] Reached target Network. [ 10.787363] c_can_platform 481cc000.can: probe failed [ 10.792484] c_can_platform: probe

[PATCH] ARM: dts: Configure osc clock for d_can on am437x

2020-06-21 Thread dillon . minfei
From: dillon min Since am437x have the same clock structure with am335x [1][2], reuse the code from Tony Lindgren's patch [3] to fix dcan probe failed on am437x platform. [1]: https://www.ti.com/lit/pdf/spruh73 Chapter-23, Figure 23-1. DCAN Integration [2]: https://www.ti.com/lit/pdf/spruhl7 Cha

[PATCH v4 0/4] Enable stmpe811 touch screen on stm32f429-disco board

2020-06-09 Thread dillon . minfei
From: dillon min This patchset is intend to enable stmpe811 touch screen on stm32f429-disco board with three dts and one i2c driver changes. has been validated by ts_print tool Changes log: V4: indroduce 'IIC_LAST_BYTE_POS' to compatible with xipkernel boot V3: just add change log in [PATCH V3

[PATCH v4 1/4] ARM: dts: stm32: add I2C3 support on STM32F429 SoC

2020-06-09 Thread dillon . minfei
From: dillon min This patch adds I2C3 instances of the STM32F429 SoC Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index d7770699feb5..257b8431

[PATCH v4 4/4] i2c: stm32f4: Fix stmpe811 get xyz data timeout issue

2020-06-09 Thread dillon . minfei
From: dillon min as stm32f429's internal flash is 2Mbytes and compiled kernel image bigger than 2Mbytes, so we have to load kernel image to sdram on stm32f429-disco board which has 8Mbytes sdram space. based on above context, as you knows kernel running on external sdram is more slower than inte

[PATCH v4 2/4] ARM: dts: stm32: Add pin map for I2C3 controller on stm32f4

2020-06-09 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for I2C3 controller on stm32f4. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi b/arch/arm/boot/dts/stm32f4-pinc

[PATCH v4 3/4] ARM: dts: stm32: enable stmpe811 on stm32429-disco board

2020-06-09 Thread dillon . minfei
From: dillon min Enable the stmpe811 touch screen on stm32429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429-disco.dts | 47 +++ 1 file changed, 47 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm

[PATCH v3 1/4] ARM: dts: stm32: add I2C3 support on STM32F429 SoC

2020-05-07 Thread dillon . minfei
From: dillon min This patch adds I2C3 instances of the STM32F429 SoC Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index d777069..257b843 10064

[PATCH v3 4/4] i2c: stm32f4: Fix stmpe811 get xyz data timeout issue

2020-05-07 Thread dillon . minfei
From: dillon min as stm32f429's internal flash is 2Mbytes and compiled kernel image bigger than 2Mbytes, so we have to load kernel image to sdram on stm32f429-disco board which has 8Mbytes sdram space. based on above context, as you knows kernel running on external sdram is more slower than inte

[PATCH v3 0/4] Enable stmpe811 touch screen on stm32f429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min This patchset is intend to enable stmpe811 touch screen on stm32f429-disco board with three dts and one i2c driver changes. has been validated by ts_print tool Changes log: V3: just add change log in [PATCH V3 3/4] below --- V2: remove id, blocks, irq-trigger from stmpe811 dt

[PATCH v3 2/4] ARM: dts: stm32: Add pin map for I2C3 controller on stm32f4

2020-05-07 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for I2C3 controller on stm32f4. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi b/arch/arm/boot/dts/stm32f4-pinc

[PATCH v3 3/4] ARM: dts: stm32: enable stmpe811 on stm32429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min Enable the stmpe811 touch screen on stm32429-disco board. Signed-off-by: dillon min --- Hi, Philippe Schenker, Alexandre Torgue compare to [patch v1 3/4], this patch remove id, blocks, irq-trigger from stmpe811 dts, as they not used by driver anymore. thanks. dillon, arch

[PATCH v2 2/5] ARM: dts: stm32: enable ltdc binding with ili9341 on stm32429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min Enable the ltdc & ili9341 on stm32429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429-disco.dts | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm32f429-

[PATCH v2 0/5] Enable ilitek ili9341 on stm32f429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min This patchset have following changes V2: verify ilitek,ili9341.yaml with make O=../linux-stm32 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml V1: add ili9341 drm panel driver add ltdc, spi5 controller for stm32f429-d

[PATCH v2 3/5] dt-bindings: display: panel: Add ilitek ili9341 panel bindings

2020-05-07 Thread dillon . minfei
From: dillon min Add documentation for "ilitek,ili9341" panel. Signed-off-by: dillon min --- Hi Rob Herring, This patch [PATCH V2 3/5] about ilitek,ili9341.yaml was verifyed with make dt_binding_check thanks. best regards, dillon, .../bindings/display/panel/ilitek,ili9341.yaml | 68 +

[PATCH v2 5/5] drm/panel: add panel driver for Ilitek ili9341 panels

2020-05-07 Thread dillon . minfei
From: dillon min This is a driver for 320x240 TFT panels, accepting a rgb input streams that get adapted and scaled to the panel. Signed-off-by: dillon min --- drivers/gpu/drm/panel/Kconfig| 8 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/pane

[PATCH v2 4/5] clk: stm32: Fix stm32f429 ltdc driver loading hang in clk set rate. keep ltdc clk running after kernel startup

2020-05-07 Thread dillon . minfei
From: dillon min as store stm32f4_rcc_register_pll return to the wrong offset of clks, so ltdc gate clk is null. need change clks[PLL_VCO_SAI] to clks[PLL_SAI] add CLK_IGNORE_UNUSED for ltdc to make sure clk not be freed by clk_disable_unused Signed-off-by: dillon min --- drivers/clk/clk-stm3

[PATCH v2 1/5] ARM: dts: stm32: Add pin map for ltdc, spi5 on stm32f429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for ltdc, spi5 controller on stm32f429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 67 ++ 1 file changed, 67 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-pinc

[PATCH v4 1/8] ARM: dts: stm32: Add dma config for spi5

2020-05-18 Thread dillon . minfei
From: dillon min Enable spi5's dma configuration. for graphics data output to ilitek ili9341 panel via mipi dbi interface Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/s

[PATCH v4 3/8] spi: stm32: Add 'SPI_SIMPLEX_RX', 'SPI_3WIRE_RX' support for stm32f4

2020-05-18 Thread dillon . minfei
From: dillon min in l3gd20 driver startup, there is a setup failed error return from stm32 spi driver " [2.687630] st-gyro-spi spi0.0: supply vdd not found, using dummy regulator [2.696869] st-gyro-spi spi0.0: supply vddio not found, using dummy regulator [2.7

[PATCH v4 2/8] ARM: dts: stm32: enable l3gd20 on stm32429-disco board

2020-05-18 Thread dillon . minfei
From: dillon min L3gd20, st mems motion sensor, 3-axis digital output gyroscope, connect to stm32f429 via spi5 Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi b/a

[PATCH v4 0/8] Enable ili9341 and l3gd20 on stm32f429-disco

2020-05-18 Thread dillon . minfei
From: dillon min According to alexandre torgue's suggestion, combine ili9341 and l3gd20's modification on stm32f429-disco board to one patchset. Changes: ili9341: V4: 1 update ili9341 panel driver according to Linus's suggestion 2 drop V1's No.5 patch, sumbit new changes for clk-stm32f4 3 merg

[PATCH v4 6/8] ARM: dts: stm32: enable ltdc binding with ili9341 on stm32429-disco board

2020-05-18 Thread dillon . minfei
From: dillon min Enable the ltdc & ili9341 on stm32429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429-disco.dts | 48 +++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm32f429-

[PATCH v4 5/8] dt-bindings: display: panel: Add ilitek ili9341 panel bindings

2020-05-18 Thread dillon . minfei
From: dillon min Add documentation for "ilitek,ili9341" panel. Signed-off-by: dillon min --- .../bindings/display/panel/ilitek,ili9341.yaml | 69 ++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml

[PATCH v4 7/8] clk: stm32: Fix stm32f429's ltdc driver hang in set clock rate.

2020-05-18 Thread dillon . minfei
From: dillon min fix duplicated ltdc clock register to 'clk_core' case ltdc's clock turn off by clk_disable_unused() ltdc set clock rate crashed: 'post_div_data[]''s pll_num is PLL_I2S, PLL_SAI (number is 1,2). but, as pll_num is offset of 'clks[]' input to clk_register_pll_div(), which

<    1   2   3   >