[PATCH 0/2] Handle I2C and SPI reset on HI6220 SoC

Manivannan Sadhasivam manivannan.sadhasivam at linaro.org
Fri Mar 8 17:56:33 PST 2019


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.


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(+)


More information about the linux-arm-kernel mailing list