From: dillon min <redacted>
This patch adds the pin configuration for I2C3 controller on
stm32f4.
Signed-off-by: dillon min <redacted>
---
arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
From: dillon min <redacted>
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 internal flash. besides, we need read 4
bytes to get touch screen xyz(x, y, pressure) coordinate data in
stmpe811 interrupt.
so, in stm32f4_i2c_handle_rx_done, as i2c read slower than running
in xip mode, have to adjust 'STOP/START bit set position' from last
two bytes to last one bytes. else, will get i2c timeout in reading
touch screen coordinate.
to not take side effect, introduce IIC_LAST_BYTE_POS to support xip
kernel or has mmu platform.
Signed-off-by: dillon min <redacted>
---
V4: indroduce 'IIC_LAST_BYTE_POS' to compatible with xipkernel boot
drivers/i2c/busses/i2c-stm32f4.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
Hi Dillon
On 6/9/20 3:26 PM, dillon.minfei@gmail.com wrote:
From: dillon min <redacted>
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 3/4] below ---
V2: remove id, blocks, irq-trigger from stmpe811 dts
V1:
ARM: dts: stm32: add I2C3 support on STM32F429 SoC
ARM: dts: stm32: Add pin map for I2C3 controller on stm32f4
ARM: dts: stm32: enable stmpe811 on stm32429-disco board
i2c: stm32f4: Fix stmpe811 get xyz data timeout issue
dillon min (4):
ARM: dts: stm32: add I2C3 support on STM32F429 SoC
ARM: dts: stm32: Add pin map for I2C3 controller on stm32f4
ARM: dts: stm32: enable stmpe811 on stm32429-disco board
i2c: stm32f4: Fix stmpe811 get xyz data timeout issue
arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 12 +++++++++
arch/arm/boot/dts/stm32f429-disco.dts | 47 ++++++++++++++++++++++++++++++++++
arch/arm/boot/dts/stm32f429.dtsi | 12 +++++++++
drivers/i2c/busses/i2c-stm32f4.c | 12 ++++++---
4 files changed, 80 insertions(+), 3 deletions(-)
DT patches applied on stm32-next. I changed node ordering in patch 3.
Thanks
Alex
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: dillon min <hidden> Date: 2020-06-15 10:07:31
On Mon, Jun 15, 2020 at 5:08 PM Alexandre Torgue
[off-list ref] wrote:
Hi Dillon
On 6/9/20 3:26 PM, dillon.minfei@gmail.com wrote:
quoted
From: dillon min <redacted>
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 3/4] below ---
V2: remove id, blocks, irq-trigger from stmpe811 dts
V1:
ARM: dts: stm32: add I2C3 support on STM32F429 SoC
ARM: dts: stm32: Add pin map for I2C3 controller on stm32f4
ARM: dts: stm32: enable stmpe811 on stm32429-disco board
i2c: stm32f4: Fix stmpe811 get xyz data timeout issue
dillon min (4):
ARM: dts: stm32: add I2C3 support on STM32F429 SoC
ARM: dts: stm32: Add pin map for I2C3 controller on stm32f4
ARM: dts: stm32: enable stmpe811 on stm32429-disco board
i2c: stm32f4: Fix stmpe811 get xyz data timeout issue
arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 12 +++++++++
arch/arm/boot/dts/stm32f429-disco.dts | 47 ++++++++++++++++++++++++++++++++++
arch/arm/boot/dts/stm32f429.dtsi | 12 +++++++++
drivers/i2c/busses/i2c-stm32f4.c | 12 ++++++---
4 files changed, 80 insertions(+), 3 deletions(-)
DT patches applied on stm32-next. I changed node ordering in patch 3.
From: dillon min <hidden> Date: 2021-03-15 12:45:28
Hi All,
Just a gentle ping.
Regards.
On Tue, Jun 9, 2020 at 9:27 PM [off-list ref] wrote:
quoted hunk
From: dillon min <redacted>
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 internal flash. besides, we need read 4
bytes to get touch screen xyz(x, y, pressure) coordinate data in
stmpe811 interrupt.
so, in stm32f4_i2c_handle_rx_done, as i2c read slower than running
in xip mode, have to adjust 'STOP/START bit set position' from last
two bytes to last one bytes. else, will get i2c timeout in reading
touch screen coordinate.
to not take side effect, introduce IIC_LAST_BYTE_POS to support xip
kernel or has mmu platform.
Signed-off-by: dillon min <redacted>
---
V4: indroduce 'IIC_LAST_BYTE_POS' to compatible with xipkernel boot
drivers/i2c/busses/i2c-stm32f4.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
From: Wolfram Sang <wsa@kernel.org> Date: 2021-03-15 13:01:53
On Mon, Mar 15, 2021 at 08:43:54PM +0800, dillon min wrote:
Hi All,
Just a gentle ping.
Pierre-Yves?
Regards.
On Tue, Jun 9, 2020 at 9:27 PM [off-list ref] wrote:
quoted
From: dillon min <redacted>
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 internal flash. besides, we need read 4
bytes to get touch screen xyz(x, y, pressure) coordinate data in
stmpe811 interrupt.
so, in stm32f4_i2c_handle_rx_done, as i2c read slower than running
in xip mode, have to adjust 'STOP/START bit set position' from last
two bytes to last one bytes. else, will get i2c timeout in reading
touch screen coordinate.
to not take side effect, introduce IIC_LAST_BYTE_POS to support xip
kernel or has mmu platform.
Signed-off-by: dillon min <redacted>
---
V4: indroduce 'IIC_LAST_BYTE_POS' to compatible with xipkernel boot
drivers/i2c/busses/i2c-stm32f4.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
From: dillon min <hidden> Date: 2021-05-07 02:55:30
Hi Pierre-Yves, Alain
Could you help to take a look?
i really appreciate it.
Thanks,
Best Regards
Dillon
On Mon, Mar 15, 2021 at 9:00 PM Wolfram Sang [off-list ref] wrote:
On Mon, Mar 15, 2021 at 08:43:54PM +0800, dillon min wrote:
quoted
Hi All,
Just a gentle ping.
Pierre-Yves?
quoted
Regards.
On Tue, Jun 9, 2020 at 9:27 PM [off-list ref] wrote:
quoted
From: dillon min <redacted>
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 internal flash. besides, we need read 4
bytes to get touch screen xyz(x, y, pressure) coordinate data in
stmpe811 interrupt.
so, in stm32f4_i2c_handle_rx_done, as i2c read slower than running
in xip mode, have to adjust 'STOP/START bit set position' from last
two bytes to last one bytes. else, will get i2c timeout in reading
touch screen coordinate.
to not take side effect, introduce IIC_LAST_BYTE_POS to support xip
kernel or has mmu platform.
Signed-off-by: dillon min <redacted>
---
V4: indroduce 'IIC_LAST_BYTE_POS' to compatible with xipkernel boot
drivers/i2c/busses/i2c-stm32f4.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
Hi Dillon
In order to test this patch, it's tricky to make a recent kernel running
on stm32f429-disco as this board embeds only 8MB of SDRAM and 2MB of flash.
Can you indicates us which kernel version you are using and also the kernel config please ?
Thanks
Patrice
On 5/7/21 4:54 AM, dillon min wrote:
Hi Pierre-Yves, Alain
Could you help to take a look?
i really appreciate it.
Thanks,
Best Regards
Dillon
On Mon, Mar 15, 2021 at 9:00 PM Wolfram Sang [off-list ref] wrote:
quoted
On Mon, Mar 15, 2021 at 08:43:54PM +0800, dillon min wrote:
quoted
Hi All,
Just a gentle ping.
Pierre-Yves?
quoted
Regards.
On Tue, Jun 9, 2020 at 9:27 PM [off-list ref] wrote:
quoted
From: dillon min <redacted>
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 internal flash. besides, we need read 4
bytes to get touch screen xyz(x, y, pressure) coordinate data in
stmpe811 interrupt.
so, in stm32f4_i2c_handle_rx_done, as i2c read slower than running
in xip mode, have to adjust 'STOP/START bit set position' from last
two bytes to last one bytes. else, will get i2c timeout in reading
touch screen coordinate.
to not take side effect, introduce IIC_LAST_BYTE_POS to support xip
kernel or has mmu platform.
Signed-off-by: dillon min <redacted>
---
V4: indroduce 'IIC_LAST_BYTE_POS' to compatible with xipkernel boot
drivers/i2c/busses/i2c-stm32f4.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
From: dillon min <hidden> Date: 2021-05-07 12:48:23
Hi Patrice
Thanks for the reply.
On Fri, May 7, 2021 at 8:29 PM Patrice CHOTARD
[off-list ref] wrote:
Hi Dillon
In order to test this patch, it's tricky to make a recent kernel running
on stm32f429-disco as this board embeds only 8MB of SDRAM and 2MB of flash.
Can you indicates us which kernel version you are using and also the kernel config please ?
Since this patch was submitted in last year, might it be 5.0? not for sure
Anyway, I will resubmit it in the recent kernel version with the kernel config
and a detailed test step for you.
Thanks for your time.
Thanks
Patrice
On 5/7/21 4:54 AM, dillon min wrote:
quoted
Hi Pierre-Yves, Alain
Could you help to take a look?
i really appreciate it.
Thanks,
Best Regards
Dillon
On Mon, Mar 15, 2021 at 9:00 PM Wolfram Sang [off-list ref] wrote:
quoted
On Mon, Mar 15, 2021 at 08:43:54PM +0800, dillon min wrote:
quoted
Hi All,
Just a gentle ping.
Pierre-Yves?
quoted
Regards.
On Tue, Jun 9, 2020 at 9:27 PM [off-list ref] wrote:
quoted
From: dillon min <redacted>
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 internal flash. besides, we need read 4
bytes to get touch screen xyz(x, y, pressure) coordinate data in
stmpe811 interrupt.
so, in stm32f4_i2c_handle_rx_done, as i2c read slower than running
in xip mode, have to adjust 'STOP/START bit set position' from last
two bytes to last one bytes. else, will get i2c timeout in reading
touch screen coordinate.
to not take side effect, introduce IIC_LAST_BYTE_POS to support xip
kernel or has mmu platform.
Signed-off-by: dillon min <redacted>
---
V4: indroduce 'IIC_LAST_BYTE_POS' to compatible with xipkernel boot
drivers/i2c/busses/i2c-stm32f4.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)