2017-08-12 05:41:06

by Jagan Teki

[permalink] [raw]
Subject: [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.

Signed-off-by: Jagan Teki <[email protected]>
---
drivers/bus/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig
index 2408ea3..ae3d8f3 100644
--- a/drivers/bus/Kconfig
+++ b/drivers/bus/Kconfig
@@ -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
--
2.7.4


2017-08-12 05:41:15

by Jagan Teki

[permalink] [raw]
Subject: [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.

Signed-off-by: Jagan Teki <[email protected]>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 33d2d62..a11fce7 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -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

2017-08-12 05:41:24

by Jagan Teki

[permalink] [raw]
Subject: [PATCH 3/3] arm64: defconfig: Enable CONFIG_REGULATOR_AXP20X

From: Jagan Teki <[email protected]>

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

Signed-off-by: Jagan Teki <[email protected]>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index a11fce7..d8f23c5 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -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

2017-08-14 07:22:33

by Chen-Yu Tsai

[permalink] [raw]
Subject: Re: [PATCH 1/3] bus: kconfig: Enable SUNXI RSB for arm64

On Sat, Aug 12, 2017 at 1:40 PM, Jagan Teki <[email protected]> wrote:
> 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

>
> Signed-off-by: Jagan Teki <[email protected]>

2017-08-14 07:28:55

by Chen-Yu Tsai

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

On Sat, Aug 12, 2017 at 1:40 PM, Jagan Teki <[email protected]> wrote:
> From: Jagan Teki <[email protected]>
>
> X-Powers AXP series PMICs with RSB is need for sunxi a64

The proper vendor name is "Allwinner".

> so make it default in defconfig.
>
> Signed-off-by: Jagan Teki <[email protected]>

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

> ---
> arch/arm64/configs/defconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index 33d2d62..a11fce7 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -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
>

2017-08-14 07:45:03

by Chen-Yu Tsai

[permalink] [raw]
Subject: Re: [PATCH 3/3] arm64: defconfig: Enable CONFIG_REGULATOR_AXP20X

On Sat, Aug 12, 2017 at 1:40 PM, Jagan Teki <[email protected]> wrote:
> From: Jagan Teki <[email protected]>
>
> X-POWERS AXP20X PMIC Regulators is need for sunxi a64
> so make it default in defconfig.
>
> Signed-off-by: Jagan Teki <[email protected]>

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

> ---
> arch/arm64/configs/defconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index a11fce7..d8f23c5 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -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
>