2020-06-18 16:12:19 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
|
|
|
|
* Copyright (c) 2019 Vamrs Limited
|
|
|
|
* Copyright (c) 2019 Amarula Solutions(India)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/pinctrl/rockchip.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "vamrs,rk3288-vmarc-som", "rockchip,rk3288";
|
|
|
|
|
|
|
|
vccio_flash: vccio-flash-regulator {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "vccio_flash";
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
vin-supply = <&vcc_io>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&emmc {
|
|
|
|
bus-width = <8>;
|
|
|
|
cap-mmc-highspeed;
|
|
|
|
disable-wp;
|
|
|
|
non-removable;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
|
2020-07-21 15:24:35 +00:00
|
|
|
vmmc-supply = <&vcc_io>;
|
|
|
|
vqmmc-supply = <&vccio_flash>;
|
2020-06-18 16:12:19 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gmac {
|
|
|
|
assigned-clocks = <&cru SCLK_MAC>;
|
|
|
|
phy-supply = <&vcc_io>;
|
|
|
|
snps,reset-gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2020-07-21 15:24:39 +00:00
|
|
|
&hdmi {
|
|
|
|
ddc-i2c-bus = <&i2c5>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&hdmi_cec_c0>;
|
|
|
|
};
|
|
|
|
|
2020-06-18 16:12:19 +00:00
|
|
|
&i2c0 {
|
|
|
|
clock-frequency = <400000>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
rk808: pmic@1b {
|
|
|
|
compatible = "rockchip,rk808";
|
|
|
|
reg = <0x1b>;
|
|
|
|
interrupt-parent = <&gpio0>;
|
|
|
|
interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pmic_int &global_pwroff>;
|
|
|
|
rockchip,system-power-controller;
|
|
|
|
wakeup-source;
|
|
|
|
#clock-cells = <1>;
|
|
|
|
clock-output-names = "rk808-clkout1", "rk808-clkout2";
|
|
|
|
|
2020-07-21 15:24:35 +00:00
|
|
|
vcc1-supply = <&vcc5v0_sys>;
|
|
|
|
vcc2-supply = <&vcc5v0_sys>;
|
|
|
|
vcc3-supply = <&vcc5v0_sys>;
|
|
|
|
vcc4-supply = <&vcc5v0_sys>;
|
|
|
|
vcc6-supply = <&vcc5v0_sys>;
|
|
|
|
vcc7-supply = <&vcc5v0_sys>;
|
2020-06-18 16:12:19 +00:00
|
|
|
vcc8-supply = <&vcc_io>;
|
|
|
|
vcc9-supply = <&vcc_io>;
|
2020-07-21 15:24:35 +00:00
|
|
|
vcc10-supply = <&vcc5v0_sys>;
|
|
|
|
vcc11-supply = <&vcc5v0_sys>;
|
2020-06-18 16:12:19 +00:00
|
|
|
vcc12-supply = <&vcc_io>;
|
|
|
|
vddio-supply = <&vcc_io>;
|
|
|
|
|
|
|
|
regulators {
|
|
|
|
vdd_cpu: DCDC_REG1 {
|
2020-07-21 15:24:35 +00:00
|
|
|
regulator-name = "vdd_arm";
|
2020-06-18 16:12:19 +00:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <750000>;
|
|
|
|
regulator-max-microvolt = <1400000>;
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-off-in-suspend;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vdd_gpu: DCDC_REG2 {
|
2020-07-21 15:24:35 +00:00
|
|
|
regulator-name = "vdd_gpu";
|
2020-06-18 16:12:19 +00:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <850000>;
|
|
|
|
regulator-max-microvolt = <1250000>;
|
|
|
|
regulator-ramp-delay = <6000>;
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-off-in-suspend;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vcc_ddr: DCDC_REG3 {
|
2020-07-21 15:24:35 +00:00
|
|
|
regulator-name = "vcc_ddr";
|
2020-06-18 16:12:19 +00:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-on-in-suspend;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vcc_io: DCDC_REG4 {
|
2020-07-21 15:24:35 +00:00
|
|
|
regulator-name = "vcc_io";
|
2020-06-18 16:12:19 +00:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-on-in-suspend;
|
|
|
|
regulator-suspend-microvolt = <3300000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vcc_tp: LDO_REG1 {
|
2020-07-21 15:24:35 +00:00
|
|
|
regulator-name = "vcc_tp";
|
2020-06-18 16:12:19 +00:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-off-in-suspend;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vcca_codec: LDO_REG2 {
|
2020-07-21 15:24:35 +00:00
|
|
|
regulator-name = "vcca_codec";
|
2020-06-18 16:12:19 +00:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-on-in-suspend;
|
|
|
|
regulator-suspend-microvolt = <3300000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vdd_10: LDO_REG3 {
|
2020-07-21 15:24:35 +00:00
|
|
|
regulator-name = "vdd_10";
|
2020-06-18 16:12:19 +00:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <1000000>;
|
|
|
|
regulator-max-microvolt = <1000000>;
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-on-in-suspend;
|
|
|
|
regulator-suspend-microvolt = <1000000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vcc_wl: LDO_REG4 {
|
2020-07-21 15:24:35 +00:00
|
|
|
regulator-name = "vcc_wl";
|
2020-06-18 16:12:19 +00:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-on-in-suspend;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vccio_sd: LDO_REG5 {
|
2020-07-21 15:24:35 +00:00
|
|
|
regulator-name = "vccio_sd";
|
2020-06-18 16:12:19 +00:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-on-in-suspend;
|
|
|
|
regulator-suspend-microvolt = <3300000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vdd10_lcd: LDO_REG6 {
|
2020-07-21 15:24:35 +00:00
|
|
|
regulator-name = "vdd10_lcd";
|
2020-06-18 16:12:19 +00:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <1000000>;
|
|
|
|
regulator-max-microvolt = <1000000>;
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-off-in-suspend;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vcc_18: LDO_REG7 {
|
2020-07-21 15:24:35 +00:00
|
|
|
regulator-name = "vcc_18";
|
2020-06-18 16:12:19 +00:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-on-in-suspend;
|
|
|
|
regulator-suspend-microvolt = <1800000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vcc18_lcd: LDO_REG8 {
|
2020-07-21 15:24:35 +00:00
|
|
|
regulator-name = "vcc18_lcd";
|
2020-06-18 16:12:19 +00:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-off-in-suspend;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vcc_sd: SWITCH_REG1 {
|
2020-07-21 15:24:35 +00:00
|
|
|
regulator-name = "vcc_sd";
|
2020-06-18 16:12:19 +00:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-off-in-suspend;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vcc_lcd: SWITCH_REG2 {
|
2020-07-21 15:24:35 +00:00
|
|
|
regulator-name = "vcc_lcd";
|
2020-06-18 16:12:19 +00:00
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-off-in-suspend;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-07-21 15:24:39 +00:00
|
|
|
&i2c5 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2020-06-18 16:12:19 +00:00
|
|
|
&pinctrl {
|
|
|
|
pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
|
|
|
|
drive-strength = <8>;
|
|
|
|
};
|
|
|
|
|
|
|
|
pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
|
|
|
|
bias-pull-up;
|
|
|
|
drive-strength = <8>;
|
|
|
|
};
|
|
|
|
|
|
|
|
pmic {
|
|
|
|
pmic_int: pmic-int {
|
|
|
|
rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sdmmc {
|
|
|
|
sdmmc_bus4: sdmmc-bus4 {
|
|
|
|
rockchip,pins =
|
|
|
|
<6 RK_PC0 1 &pcfg_pull_up_drv_8ma>,
|
|
|
|
<6 RK_PC1 1 &pcfg_pull_up_drv_8ma>,
|
|
|
|
<6 RK_PC2 1 &pcfg_pull_up_drv_8ma>,
|
|
|
|
<6 RK_PC3 1 &pcfg_pull_up_drv_8ma>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sdmmc_clk: sdmmc-clk {
|
2020-07-21 15:24:35 +00:00
|
|
|
rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none_drv_8ma>;
|
2020-06-18 16:12:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sdmmc_cmd: sdmmc-cmd {
|
2020-07-21 15:24:35 +00:00
|
|
|
rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up_drv_8ma>;
|
2020-06-18 16:12:19 +00:00
|
|
|
};
|
|
|
|
};
|
2020-07-21 15:24:38 +00:00
|
|
|
|
|
|
|
vbus_host {
|
|
|
|
usb1_en_oc: usb1-en-oc {
|
|
|
|
rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vbus_typec {
|
|
|
|
usb0_en_oc: usb0-en-oc {
|
|
|
|
rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&usbphy {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_host0_ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_host0_ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_host1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_otg {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&vbus_host {
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>; /* USB1_EN_OC# */
|
|
|
|
};
|
|
|
|
|
|
|
|
&vbus_typec {
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; /* USB0_EN_OC# */
|
2020-06-18 16:12:19 +00:00
|
|
|
};
|