Skip to contentSkip to conversation

arm64: defconfig: enable some core components for Rockchip socs

PATCH Superseded Heiko Stuebner 1 participant 8 messages May 24, 2017 Arm Rockchip

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

cover arm64: defconfig: enable some core components for Rockchip socs

This contains enablement of newly supported Rockchip components as well as some core drivers used in conjunction with Rockchip socs but possibly also other devices.

If applicable, this should probably be applied to the arm-soc arm64-defconfig branch, or I could provide a pull-request for a branch if so desired.

Heiko Stuebner (7):
arm64: defconfig: enable Rockchip pcie support
arm64: defconfig: enable Rockchip saradc
arm64: defconfig: enable keyboard_adc for adc-keys
arm64: defconfig: enable Rockchip spi driver
arm64: defconfig: enable more cros-ec options
arm64: defconfig: enable Rockchip thermal controller
arm64: defconfig: enable fan53555 regulator

 arch/arm64/configs/defconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)
Signature · 1 line
2.11.0
author maintainer
#1 lore raw

PATCH 1/7 arm64: defconfig: enable Rockchip pcie support

Enable to the controller and phy drivers as modules.

---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/configs/defconfig +2 -0
index 65cdd878cfbd..a12ccb40ce0a 100644
@@ -68,6 +68,7 @@ CONFIG_PCIE_QCOM=y
 CONFIG_PCIE_ARMADA_8K=y
 CONFIG_PCI_AARDVARK=y
 CONFIG_PCIE_RCAR=y
+CONFIG_PCIE_ROCKCHIP=m
 CONFIG_PCI_HOST_GENERIC=y
 CONFIG_PCI_XGENE=y
 CONFIG_ARM64_VA_BITS_48=y
@@ -484,6 +485,7 @@ CONFIG_PHY_HI6220_USB=y
 CONFIG_PHY_SUN4I_USB=y
 CONFIG_PHY_ROCKCHIP_INNO_USB2=y
 CONFIG_PHY_ROCKCHIP_EMMC=y
+CONFIG_PHY_ROCKCHIP_PCIE=m
 CONFIG_PHY_XGENE=y
 CONFIG_PHY_TEGRA_XUSB=y
 CONFIG_ARM_SCPI_PROTOCOL=y
Signature · 1 line
2.11.0
author maintainer
#2 lore raw

PATCH 2/7 arm64: defconfig: enable Rockchip saradc

In reply to Heiko Stuebner

Enable the sucessfive approximation adc that gets often used for example for additional buttons on Rockchip boards.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index a12ccb40ce0a..f4492605c0a9 100644
@@ -474,6 +474,7 @@ CONFIG_ARCH_TEGRA_186_SOC=y
 CONFIG_EXTCON_USB_GPIO=y
 CONFIG_IIO=y
 CONFIG_EXYNOS_ADC=y
+CONFIG_ROCKCHIP_SARADC=m
 CONFIG_PWM=y
 CONFIG_PWM_BCM2835=m
 CONFIG_PWM_MESON=m
Signature · 1 line
2.11.0
author maintainer
#3 lore raw

PATCH 3/7 arm64: defconfig: enable keyboard_adc for adc-keys

In reply to Heiko Stuebner

Keyboard driver for keys whose state gets read through an iio adc block, like the saradc on Rockchip socs.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index f4492605c0a9..3aa4d54e1c0d 100644
@@ -209,6 +209,7 @@ CONFIG_BRCMFMAC=m
 CONFIG_WL18XX=m
 CONFIG_WLCORE_SDIO=m
 CONFIG_INPUT_EVDEV=y
+CONFIG_KEYBOARD_ADC=m
 CONFIG_KEYBOARD_GPIO=y
 CONFIG_INPUT_MISC=y
 CONFIG_INPUT_PM8941_PWRKEY=y
Signature · 1 line
2.11.0
author maintainer
#4 lore raw

PATCH 4/7 arm64: defconfig: enable Rockchip spi driver

In reply to Heiko Stuebner

It gets built in, as things like the cros-ec depend on the spi driver being there on ChromeOS hardware - and ideally early on.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index 3aa4d54e1c0d..51c884f96125 100644
@@ -265,6 +265,7 @@ CONFIG_SPI_MESON_SPIFC=m
 CONFIG_SPI_ORION=y
 CONFIG_SPI_PL022=y
 CONFIG_SPI_QUP=y
+CONFIG_SPI_ROCKCHIP=y
 CONFIG_SPI_S3C64XX=y
 CONFIG_SPI_SPIDEV=m
 CONFIG_SPMI=y
Signature · 1 line
2.11.0
author maintainer
#5 lore raw

PATCH 5/7 arm64: defconfig: enable more cros-ec options

In reply to Heiko Stuebner

Enable the spi part as well as the keyboard driver as built-in, as this allows access to the device, even if the ramdisk containing other drivers is faulty or missing.

The cros-ec-pwm gets enabled as module, as it is normally only used to drive display backlights.

---
 arch/arm64/configs/defconfig | 3 +++
 1 file changed, 3 insertions(+)
arch/arm64/configs/defconfig +3 -0
index 51c884f96125..f6c50a403f1a 100644
@@ -210,6 +210,7 @@ CONFIG_WL18XX=m
 CONFIG_WLCORE_SDIO=m
 CONFIG_INPUT_EVDEV=y
 CONFIG_KEYBOARD_ADC=m
+CONFIG_KEYBOARD_CROS_EC=y
 CONFIG_KEYBOARD_GPIO=y
 CONFIG_INPUT_MISC=y
 CONFIG_INPUT_PM8941_PWRKEY=y
@@ -303,6 +304,7 @@ CONFIG_RENESAS_WDT=y
 CONFIG_BCM2835_WDT=y
 CONFIG_MFD_CROS_EC=y
 CONFIG_MFD_CROS_EC_I2C=y
+CONFIG_MFD_CROS_EC_SPI=y
 CONFIG_MFD_EXYNOS_LPASS=m
 CONFIG_MFD_HI655X_PMIC=y
 CONFIG_MFD_MAX77620=y
@@ -479,6 +481,7 @@ CONFIG_EXYNOS_ADC=y
 CONFIG_ROCKCHIP_SARADC=m
 CONFIG_PWM=y
 CONFIG_PWM_BCM2835=m
+CONFIG_PWM_CROS_EC=m
 CONFIG_PWM_MESON=m
 CONFIG_PWM_ROCKCHIP=y
 CONFIG_PWM_SAMSUNG=y
Signature · 1 line
2.11.0
author maintainer
#6 lore raw

PATCH 6/7 arm64: defconfig: enable Rockchip thermal controller

In reply to Heiko Stuebner

Allows to read the cpu and gpu temperatures and affect frequency scaling if necessary.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index f6c50a403f1a..1716ed326f68 100644
@@ -296,6 +296,7 @@ CONFIG_THERMAL_GOV_POWER_ALLOCATOR=y
 CONFIG_CPU_THERMAL=y
 CONFIG_THERMAL_EMULATION=y
 CONFIG_EXYNOS_THERMAL=y
+CONFIG_ROCKCHIP_THERMAL=m
 CONFIG_WATCHDOG=y
 CONFIG_S3C2410_WATCHDOG=y
 CONFIG_MESON_GXBB_WATCHDOG=m
Signature · 1 line
2.11.0
author maintainer
#7 lore raw

PATCH 7/7 arm64: defconfig: enable fan53555 regulator

In reply to Heiko Stuebner

The fan53555 or its register-compatible cousins Silergy syr827 and syr828 are often used on Rockchip socs as cpu-supply next to regular pmic.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index 1716ed326f68..97c123e09e45 100644
@@ -312,6 +312,7 @@ CONFIG_MFD_MAX77620=y
 CONFIG_MFD_SPMI_PMIC=y
 CONFIG_MFD_RK808=y
 CONFIG_MFD_SEC_CORE=y
+CONFIG_REGULATOR_FAN53555=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
 CONFIG_REGULATOR_GPIO=y
 CONFIG_REGULATOR_HI655X=y
Signature · 1 line
2.11.0