Skip to contentSkip to conversation

ARM: dts: rmobile: Activate I2C7 on Alt

PATCH New Marek Vasut 1 participant 2 messages Mar 30, 2019 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: dts: rmobile: Activate I2C7 on Alt

Activate I2C7 on Alt to allow access to the PMIC.

Cc Nobuhiro Iwamatsu <[email protected]>
---
 arch/arm/dts/r8a7794-alt-u-boot.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/dts/r8a7794-alt-u-boot.dts +5 -0
index 593a418c3b..14cd39297e 100644
@@ -8,6 +8,11 @@
 #include "r8a7794-alt.dts"
 #include "r8a7794-u-boot.dtsi"
 
+&i2c7 {
+	status = "okay";
+	clock-frequency = <100000>;
+};
+
 &scif2 {
 	u-boot,dm-pre-reloc;
 };
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/2 ARM: rmobile: alt: Fix I2C bus number

The I2C bus number to access the PMIC is I2C 7, fix this.

Cc Nobuhiro Iwamatsu <[email protected]>
---
 board/renesas/alt/alt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/renesas/alt/alt.c +1 -1
index 7b85000203..0726776a57 100644
@@ -107,7 +107,7 @@ int board_phy_config(struct phy_device *phydev)
 void reset_cpu(ulong addr)
 {
 	struct udevice *dev;
-	const u8 pmic_bus = 1;
+	const u8 pmic_bus = 7;
 	const u8 pmic_addr = 0x58;
 	u8 data;
 	int ret;
Signature · 1 line
2.20.1