Skip to contentSkip to conversation

bus: kconfig: Enable SUNXI RSB for arm64

PATCH In review Jagan Teki 2 participants 6 messages Aug 12, 2017 – Aug 14, 2017

lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH 1/3 bus: kconfig: Enable SUNXI RSB for arm64

From: Jagan Teki <[email protected]>

Sunxi arm64 doesn't have separate configs for
h5 and a64 so enable SUNXI_RSB bus for ARM64.

---
 drivers/bus/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/Kconfig +1 -1
index 2408ea3..ae3d8f3 100644
@@ -132,7 +132,7 @@ config SIMPLE_PM_BUS
 
 config SUNXI_RSB
 	tristate "Allwinner sunXi Reduced Serial Bus Driver"
-	  default MACH_SUN8I || MACH_SUN9I
+	  default MACH_SUN8I || MACH_SUN9I || ARM64
 	  depends on ARCH_SUNXI
 	  select REGMAP
 	  help
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 2/3 arm64: defconfig: Enable CONFIG_MFD_AXP20X_RSB

From: Jagan Teki <[email protected]>

X-Powers AXP series PMICs with RSB is need for sunxi a64 so make it default in defconfig.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index 33d2d62..a11fce7 100644
@@ -313,6 +313,7 @@ CONFIG_MESON_GXBB_WATCHDOG=m
 CONFIG_MESON_WATCHDOG=m
 CONFIG_RENESAS_WDT=y
 CONFIG_BCM2835_WDT=y
+CONFIG_MFD_AXP20X_RSB=y
 CONFIG_MFD_CROS_EC=y
 CONFIG_MFD_CROS_EC_I2C=y
 CONFIG_MFD_CROS_EC_SPI=y
Signature · 1 line
2.7.4
#2 lore raw

Re: [PATCH 2/3] arm64: defconfig: Enable CONFIG_MFD_AXP20X_RSB

Quoted 3 lines · Jagan Teki

From: Jagan Teki <[email protected]>

X-Powers AXP series PMICs with RSB is need for sunxi a64

The proper vendor name is "Allwinner".

Quoted 3 lines

so make it default in defconfig.

Applied with the following commit message:

arm64: defconfig: Enable MFD_AXP20X_RSB

The Allwinner A64 SoC is paired with the X-Powers AXP803 PMIC over the Reduced Serial Bus (RSB).

Enable the driver for this PMIC.

ChenYu

Quoted 19 lines
---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -1
index 33d2d62..a11fce7 100644
@@ -313,6 +313,7 @@ CONFIG_MESON_GXBB_WATCHDOG=m
 CONFIG_MESON_WATCHDOG=m
 CONFIG_RENESAS_WDT=y
 CONFIG_BCM2835_WDT=y
+CONFIG_MFD_AXP20X_RSB=y
 CONFIG_MFD_CROS_EC=y
 CONFIG_MFD_CROS_EC_I2C=y
 CONFIG_MFD_CROS_EC_SPI=y
--

2.7.4

author
#3 lore raw

PATCH 3/3 arm64: defconfig: Enable CONFIG_REGULATOR_AXP20X

In reply to Jagan Teki

From: Jagan Teki <[email protected]>

X-POWERS AXP20X PMIC Regulators is need for sunxi a64 so make it default in defconfig.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index a11fce7..d8f23c5 100644
@@ -323,6 +323,7 @@ CONFIG_MFD_MAX77620=y
 CONFIG_MFD_SPMI_PMIC=y
 CONFIG_MFD_RK808=y
 CONFIG_MFD_SEC_CORE=y
+CONFIG_REGULATOR_AXP20X=y
 CONFIG_REGULATOR_FAN53555=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
 CONFIG_REGULATOR_GPIO=y
Signature · 1 line
2.7.4
#4 lore raw

Re: [PATCH 3/3] arm64: defconfig: Enable CONFIG_REGULATOR_AXP20X

Quoted 6 lines · Jagan Teki

From: Jagan Teki <[email protected]>

X-POWERS AXP20X PMIC Regulators is need for sunxi a64 so make it default in defconfig.

Applied with the following commit message:

arm64: defconfig: Enable REGULATOR_AXP20X

The Allwinner A64 SoC is paired with the X-Powers AXP803 PMIC over the Reduced Serial Bus (RSB). The regulators of this PMIC supply all power rails of the SoC and many external peripherals.

Enable the driver for the regulators of this PMIC.

ChenYu

Quoted 19 lines
---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -1
index a11fce7..d8f23c5 100644
@@ -323,6 +323,7 @@ CONFIG_MFD_MAX77620=y
 CONFIG_MFD_SPMI_PMIC=y
 CONFIG_MFD_RK808=y
 CONFIG_MFD_SEC_CORE=y
+CONFIG_REGULATOR_AXP20X=y
 CONFIG_REGULATOR_FAN53555=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
 CONFIG_REGULATOR_GPIO=y
--

2.7.4

#5 lore raw
In reply to Jagan Teki
Quoted 4 lines · Jagan Teki

From: Jagan Teki <[email protected]>

Sunxi arm64 doesn't have separate configs for
h5 and a64 so enable SUNXI_RSB bus for ARM64.

The commit message is missing a lot of details. It assumes the reader knows about the A64 SoC and that it uses the RSB bus to communicate with the PMIC.

Applied for 4.14 with the following commit message:

bus: sunxi-rsb: Enable by default for ARM64

Allwinner's A64 SoC uses the "Reduced Serial Bus" to communicate with its companion PMIC.

Since arm64 does not have separate defconfigs for each platform or processor family, enable this driver by default for ARM64 as well. Note that the Kconfig symbol already depends on ARCH_SUNXI.

ChenYu

Quoted 2 lines