// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
 *
 */

#include "rk3588-nvr-demo1-v21.dtsi"

&dsi1 {
	status = "disabled";
};

&i2c0 {
	/delete-node/ rk8603@43;

	vdd_cpu_big0_s0: vdd_cpu_big0_mem_s0: vdd_cpu_big1_s0: vdd_cpu_big1_mem_s0: rk8602@42 {
		compatible = "rockchip,rk8602";
		reg = <0x42>;
		vin-supply = <&vcc5v0_sys>;
		regulator-compatible = "rk860x-reg";
		regulator-name = "vdd_cpu_big0_s0";
		regulator-min-microvolt = <550000>;
		regulator-max-microvolt = <1050000>;
		regulator-ramp-delay = <2300>;
		rockchip,suspend-voltage-selector = <1>;
		regulator-boot-on;
		regulator-always-on;
		regulator-state-mem {
			regulator-off-in-suspend;
		};
	};
};

&i2c2 {
	status = "disabled";
	/delete-node/ rk8602@42;
};

&rkvenc0 {
	venc-supply = <&vdd_log_s0>;
	mem-supply = <&vdd_log_s0>;
	status = "okay";
};

&rkvenc1 {
	venc-supply = <&vdd_log_s0>;
	mem-supply = <&vdd_log_s0>;
	status = "okay";
};

&spi2 {
	rk806single@0 {
		regulators {
			/delete-node/ DCDC_REG4;

			vdd_npu_s0: vdd_npu_mem_s0: DCDC_REG4 {
				regulator-always-on;
				regulator-boot-on;
				regulator-min-microvolt = <550000>;
				regulator-max-microvolt = <950000>;
				regulator-init-microvolt = <750000>;
				regulator-ramp-delay = <2500>;
				regulator-name = "vdd_npu_s0";
				regulator-state-mem {
					regulator-off-in-suspend;
				};
			};
		};
	};
};
