From b047e4105b89535ea3151ce7476712776541bced Mon Sep 17 00:00:00 2001 From: Nico Berlee Date: Fri, 29 Nov 2024 13:54:03 +0100 Subject: [PATCH] feat: kernel driver support for RK3588 devices (Turing RK1) Contains most of the drivers needed for RK3588 devices, in this case for the Turing RK1 SBC overlay. This includes support for drivers: including the PCIe, voltage regulator, realtime clock, and USB drivers. * CONFIG_TYPEC: need to enable CONFIG_PHY_ROCKCHIP_USBDP * CONFIG_MFD_RK8XX_SPI: Makes the RK808 regulator work with cpufreq-dt * CONFIG_RTC_DRV_HYM8563: RTC driver for most RK3588 devices * CONFIG_PHY_ROCKCHIP_NANENG_COMBO_PHY: Needed for PCIe support * CONFIG_PHY_ROCKCHIP_USBDP: activates the necessary DT nodes to enable all 3 buses: USB 2.0, OTG, USB 3.0, host, USB 2.0, host ports Signed-off-by: Nico Berlee Signed-off-by: Noel Georgi (cherry picked from commit f81b190cc65dc93f9212d52cd95806ac79c170d2) --- kernel/build/config-arm64 | 39 +++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/kernel/build/config-arm64 b/kernel/build/config-arm64 index 44d2849e..f9a7185c 100644 --- a/kernel/build/config-arm64 +++ b/kernel/build/config-arm64 @@ -4800,7 +4800,7 @@ CONFIG_MFD_SPMI_PMIC=y # CONFIG_MFD_RC5T583 is not set CONFIG_MFD_RK8XX=y CONFIG_MFD_RK8XX_I2C=y -# CONFIG_MFD_RK8XX_SPI is not set +CONFIG_MFD_RK8XX_SPI=y # CONFIG_MFD_RN5T618 is not set CONFIG_MFD_SEC_CORE=y # CONFIG_MFD_SI476X_CORE is not set @@ -6263,7 +6263,34 @@ CONFIG_USB_CONFIGFS_F_PRINTER=y # CONFIG_USB_RAW_GADGET is not set # end of USB Gadget precomposed configurations -# CONFIG_TYPEC is not set +CONFIG_TYPEC=y +# CONFIG_TYPEC_TCPM is not set +# CONFIG_TYPEC_UCSI is not set +# CONFIG_TYPEC_TPS6598X is not set +# CONFIG_TYPEC_ANX7411 is not set +# CONFIG_TYPEC_RT1719 is not set +# CONFIG_TYPEC_HD3SS3220 is not set +# CONFIG_TYPEC_STUSB160X is not set +# CONFIG_TYPEC_WUSB3801 is not set + +# +# USB Type-C Multiplexer/DeMultiplexer Switch support +# +# CONFIG_TYPEC_MUX_FSA4480 is not set +# CONFIG_TYPEC_MUX_GPIO_SBU is not set +# CONFIG_TYPEC_MUX_PI3USB30532 is not set +# CONFIG_TYPEC_MUX_IT5205 is not set +# CONFIG_TYPEC_MUX_NB7VPQ904M is not set +# CONFIG_TYPEC_MUX_PTN36502 is not set +# CONFIG_TYPEC_MUX_WCD939X_USBSS is not set +# end of USB Type-C Multiplexer/DeMultiplexer Switch support + +# +# USB Type-C Alternate Mode drivers +# +# CONFIG_TYPEC_DP_ALTMODE is not set +# end of USB Type-C Alternate Mode drivers + CONFIG_USB_ROLE_SWITCH=y CONFIG_MMC=y CONFIG_PWRSEQ_EMMC=y @@ -6490,7 +6517,7 @@ CONFIG_RTC_DRV_DS1307=y # CONFIG_RTC_DRV_DS1307_CENTURY is not set # CONFIG_RTC_DRV_DS1374 is not set # CONFIG_RTC_DRV_DS1672 is not set -# CONFIG_RTC_DRV_HYM8563 is not set +CONFIG_RTC_DRV_HYM8563=y # CONFIG_RTC_DRV_MAX6900 is not set # CONFIG_RTC_DRV_MAX31335 is not set CONFIG_RTC_DRV_MAX77686=y @@ -7370,6 +7397,7 @@ CONFIG_MTK_MMSYS=y # CONFIG_QCOM_LLCC is not set # CONFIG_QCOM_OCMEM is not set # CONFIG_QCOM_PMIC_PDCHARGER_ULOG is not set +# CONFIG_QCOM_PMIC_GLINK is not set # CONFIG_QCOM_RAMP_CTRL is not set # CONFIG_QCOM_RMTFS_MEM is not set # CONFIG_QCOM_RPM_MASTER_STATS is not set @@ -7520,6 +7548,8 @@ CONFIG_EXTCON=y # CONFIG_EXTCON_RT8973A is not set # CONFIG_EXTCON_SM5502 is not set CONFIG_EXTCON_USB_GPIO=y +# CONFIG_EXTCON_USBC_TUSB320 is not set +# CONFIG_EXTCON_RTK_TYPE_C is not set CONFIG_MEMORY=y # CONFIG_ARM_PL172_MPMC is not set CONFIG_BRCMSTB_DPFE=y @@ -8322,12 +8352,13 @@ CONFIG_PHY_ROCKCHIP_INNO_HDMI=y CONFIG_PHY_ROCKCHIP_INNO_USB2=y # CONFIG_PHY_ROCKCHIP_INNO_CSIDPHY is not set CONFIG_PHY_ROCKCHIP_INNO_DSIDPHY=y -# CONFIG_PHY_ROCKCHIP_NANENG_COMBO_PHY is not set +CONFIG_PHY_ROCKCHIP_NANENG_COMBO_PHY=y CONFIG_PHY_ROCKCHIP_PCIE=y # CONFIG_PHY_ROCKCHIP_SAMSUNG_HDPTX is not set CONFIG_PHY_ROCKCHIP_SNPS_PCIE3=y CONFIG_PHY_ROCKCHIP_TYPEC=y CONFIG_PHY_ROCKCHIP_USB=y +CONFIG_PHY_ROCKCHIP_USBDP=y # CONFIG_PHY_SAMSUNG_USB2 is not set CONFIG_PHY_TEGRA_XUSB=y CONFIG_PHY_TEGRA194_P2U=y