From bf067468588cf8426ce81ee99a1ae9fb040652b8 Mon Sep 17 00:00:00 2001 From: Weiwen Chen Date: Tue, 18 Oct 2022 19:59:53 +0800 Subject: [PATCH] ARM: dts: rockchip: add rv1103g-evb-v11.dts diff rv1103g-evb-v11 with rv1103g-evb-v10 1. delete USB OTG power supply 2. modify gpio GPIO2_D2: VICAP_VSYNC_M1/LCD_VSYNC/LED_PWM_WHITE --> VICAP_VSYNC_M1/LCD_VSYNC/IRC_BIN GPIO2_D3: VICAP_CLKOUT_M1/LCD_CLK/IRC_BIN --> VICAP_CLKOUT_M1/LCD_CLK/LED_PWM_WHITE GPIO3_C5: MIPI_RST0/LCD_PWREN --> MIPI_RST0/VICAP_RST GPIO3_C6: MIPI_RST1/VICAP_PDN/LCD_BL_PWM --> MIPI_RST1/VICAP_PDN/LCD_INT/LCD_PWREN Signed-off-by: Weiwen Chen Change-Id: I6882fda9a911bbc59f2c4f3e296947f39e5b8d2c --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/rv1103g-evb-v11.dts | 83 +++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 arch/arm/boot/dts/rv1103g-evb-v11.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 674e13367e8a..840368d3951a 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -975,6 +975,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \ rv1103g-battery-ipc-v10.dtb \ rv1103g-battery-ipc-v11.dtb \ rv1103g-evb-v10.dtb \ + rv1103g-evb-v11.dtb \ rv1103g-rmsl311-dloc-sl-v10.dtb \ rv1103g-scaner-v10.dtb \ rv1106g-38x38-ipc-v10.dtb \ diff --git a/arch/arm/boot/dts/rv1103g-evb-v11.dts b/arch/arm/boot/dts/rv1103g-evb-v11.dts new file mode 100644 index 000000000000..3d56f7515b47 --- /dev/null +++ b/arch/arm/boot/dts/rv1103g-evb-v11.dts @@ -0,0 +1,83 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2022 Rockchip Electronics Co., Ltd. + */ + +/dts-v1/; + +#include "rv1103.dtsi" +#include "rv1103-evb-v10.dtsi" +#include "rv1103-evb-cam.dtsi" + +/ { + model = "Rockchip RV1103G EVB V11 Board"; + compatible = "rockchip,rv1103g-evb-v11", "rockchip,rv1103"; + + vcc_1v8: vcc-1v8 { + compatible = "regulator-fixed"; + regulator-name = "vcc_1v8"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + vcc_3v3: vcc-3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc_3v3"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + vcc3v3_sd: vcc3v3-sd { + compatible = "regulator-fixed"; + gpio = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>; + regulator-name = "vcc3v3_sd"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-low; + regulator-always-on; + regulator-boot-on; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc_pwren>; + }; + + vcc3v3_wifi: vcc3v3-wifi { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3_wifi"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-low; + regulator-always-on; + regulator-boot-on; + gpio = <&gpio1 RK_PC7 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_pwren>; + }; +}; + +&pinctrl { + sdmmc { + /omit-if-no-ref/ + sdmmc_pwren: sdmmc-pwren { + rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + wifi { + wifi_pwren: wifi-pwren { + rockchip,pins = <1 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&saradc { + status = "okay"; + vref-supply = <&vcc_1v8>; +}; + +&usbdrd_dwc3 { + dr_mode = "host"; +};