ASR_BASE

Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/marvell/linux/arch/arm/boot/dts/asr_pm813.dtsi b/marvell/linux/arch/arm/boot/dts/asr_pm813.dtsi
new file mode 100644
index 0000000..552a09a
--- /dev/null
+++ b/marvell/linux/arch/arm/boot/dts/asr_pm813.dtsi
@@ -0,0 +1,146 @@
+/*
+ *  Copyright 2021 ASR Microelectronics (Shanghai) Co., Ltd.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License version 2 as
+ *  published by the Free Software Foundation.
+ */
+
+&pmic7 {
+	compatible = "asr,pm813";
+	reg = <0x30>;
+	/* interrupts = <4>;
+	interrupt-parent = <&intc>;
+	interrupt-controller;
+	#interrupt-cells = <1>; */
+	asr,pm813-irq-write-clear;
+	/* set scs-int-active-high depending on board connection */
+	/* scs-int-active-high; */
+
+	asr,pm813-power-page-addr = <0x1>;
+
+	regulators {
+		compatible = "asr,pm813-regulator";
+
+		BUCK1 {
+			regulator-compatible = "PM813-BUCK1";
+			regulator-min-microvolt = <600000>;
+			regulator-max-microvolt = <3950000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+		BUCK2 {
+			regulator-compatible = "PM813-BUCK2";
+			regulator-min-microvolt = <600000>;
+			regulator-max-microvolt = <3950000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+		BUCK3 {
+			regulator-compatible = "PM813-BUCK3";
+			regulator-min-microvolt = <600000>;
+			regulator-max-microvolt = <3950000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+
+		pm813ldo1: LDO1 {
+			regulator-compatible = "PM813-LDO1";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+		};
+		pm813ldo2: LDO2 {
+			regulator-compatible = "PM813-LDO2";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+		pm813ldo3: LDO3 {
+			regulator-compatible = "PM813-LDO3";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+		};
+		pm813ldo4: LDO4  {
+			regulator-compatible = "PM813-LDO4";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+		};
+		pm813ldo5: LDO5 {
+			regulator-compatible = "PM813-LDO5";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+		pm813ldo6: LDO6 {
+			regulator-compatible = "PM813-LDO6";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+		pm813ldo7: LDO7 {
+			regulator-compatible = "PM813-LDO7";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+		/* pm813ldo8: LDO8 {
+			regulator-compatible = "PM813-LDO8";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-boot-on;
+			regulator-always-on;
+		}; */
+		pm813ldo9: LDO9  {
+			regulator-compatible = "PM813-LDO9";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+		};
+		pm813ldo10: LDO10 {
+			regulator-compatible = "PM813-LDO10";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+		};
+		pm813ldo11: LDO11 {
+			regulator-compatible = "PM813-LDO11";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+		pm813ldo12: LDO12 {
+			regulator-compatible = "PM813-LDO12";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+		};
+		pm813ldo13: LDO13 {
+			regulator-compatible = "PM813-LDO13";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+
+		};
+
+	};
+	dvc {
+		status = "okay";
+		compatible = "marvell,88pm8xx-dvc";
+		/* pm800 dvc affect buck1/4, affected 32bit = (1 << 3) | (1 << 0)*/
+		dvc-affected-buckbits = <1>;
+		dvc-gpio1 = <13>;
+		dvc-gpio2 = <127>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&dvc_pmx_func>;
+	};
+	usb813: usb {
+		compatible = "marvell,88pm80x-usb";
+		vbus_gpio = <0xff>; /* set_vbus */
+		/* id-gpadc = <0xff>;*//* usb-id */
+		vchg-from-exton = <1>;
+	};
+	wd {
+		compatible = "marvell,88pm80x-wdt";
+	};
+};