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

From: Manivannan Sadhasivam
Date: Fri Mar 08 2019 - 20:58:59 EST


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