linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Handle I2C and SPI reset on HI6220 SoC
@ 2019-03-09  1:56 Manivannan Sadhasivam
  2019-03-09  1:56 ` [PATCH 1/2] amba: Take device out of reset before reading pid and cid values Manivannan Sadhasivam
  2019-03-09  1:56 ` [PATCH 2/2] arm64: dts: hisilicon: Add reset properties for HI6220 I2C and SPI Manivannan Sadhasivam
  0 siblings, 2 replies; 10+ messages in thread
From: Manivannan Sadhasivam @ 2019-03-09  1:56 UTC (permalink / raw)
  To: linux, xuwei5
  Cc: linux-arm-kernel, linux-kernel, linus.walleij, daniel.thompson,
	peter.griffin, guodong.xu, haojian.zhuang, Manivannan Sadhasivam

Hello,

This small patchset adds the reset functionality to the I2C and SPI
peripherals on HI6220 SoC from HiSilicon. Those peripherals needs to be
taken out of reset before being used. But earlier we were depending on the
bootloader to do the job but as suggested by Daniel Thompson, a more
cleaner approach would be to handle the reset in corresponding drivers.

Hence, one of the patch adds reset properties to the I2C and SPI nodes
and the other one adds missing reset functionality to the AMBA Primecell
bus driver. Because the AMBA devices are being accessed before the driver
probe (reading pid and cid values), we need to deassert the reset line in
the bus driver itself just before the read.

I'd expect the patch 1 to go via arm tree and patch 2 via hisi tree.

Thanks,
Mani

Manivannan Sadhasivam (2):
  amba: Take device out of reset before reading pid and cid values
  arm64: dts: hisilicon: Add reset properties for HI6220 I2C and SPI

 arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 8 ++++++++
 drivers/amba/bus.c                        | 9 +++++++++
 2 files changed, 17 insertions(+)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-03-28 16:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-09  1:56 [PATCH 0/2] Handle I2C and SPI reset on HI6220 SoC Manivannan Sadhasivam
2019-03-09  1:56 ` [PATCH 1/2] amba: Take device out of reset before reading pid and cid values Manivannan Sadhasivam
2019-03-09 10:50   ` Linus Walleij
2019-03-12 12:27   ` Daniel Thompson
2019-03-20  6:56     ` Manivannan Sadhasivam
2019-03-20 14:29       ` Daniel Thompson
2019-03-20 17:29       ` Russell King - ARM Linux admin
2019-03-21 11:17         ` Daniel Thompson
2019-03-28 16:43           ` Linus Walleij
2019-03-09  1:56 ` [PATCH 2/2] arm64: dts: hisilicon: Add reset properties for HI6220 I2C and SPI Manivannan Sadhasivam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).