ASR_BASE

Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/marvell/linux/arch/arm/boot/dts/asr_pm802.dtsi b/marvell/linux/arch/arm/boot/dts/asr_pm802.dtsi
new file mode 100644
index 0000000..ec6f729
--- /dev/null
+++ b/marvell/linux/arch/arm/boot/dts/asr_pm802.dtsi
@@ -0,0 +1,117 @@
+/*
+ *  Copyright 2018 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.
+ */
+
+&pmic5 {
+	compatible = "asr,pm802";
+	reg = <0x00>;
+/*	interrupts = <4>;
+	interrupt-parent = <&intc>;
+	interrupt-controller;
+	#interrupt-cells = <1>;
+*/
+	asr,pm802-irq-write-clear;
+	/* set scs-int-active-high depending on board connection */
+	/* scs-int-active-high; */
+
+	asr,pm802-power-page-addr = <0x1>;
+	asr,pm802-gpadc-page-addr = <0x2>;
+
+	regulators {
+		compatible = "asr,pm802-regulator";
+
+		BUCK1 {
+			regulator-compatible = "PM802-BUCK1";
+			regulator-min-microvolt = <600000>;
+			regulator-max-microvolt = <3950000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+		BUCK2 {
+			regulator-compatible = "PM802-BUCK2";
+			regulator-min-microvolt = <600000>;
+			regulator-max-microvolt = <3950000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+		BUCK3 {
+			regulator-compatible = "PM802-BUCK3";
+			regulator-min-microvolt = <600000>;
+			regulator-max-microvolt = <3950000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+		BUCK4 {
+			regulator-compatible = "PM802-BUCK4";
+			regulator-min-microvolt = <600000>;
+			regulator-max-microvolt = <3950000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+		BUCK5 {
+			regulator-compatible = "PM802-BUCK5";
+			regulator-min-microvolt = <600000>;
+			regulator-max-microvolt = <3950000>;
+			regulator-always-on;
+		};
+		LDO1 {
+			regulator-compatible = "PM802-LDO1";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+		LDO2 {
+			regulator-compatible = "PM802-LDO2";
+			regulator-min-microvolt = <1700000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+		/* LDO3 {
+			regulator-compatible = "PM802-LDO3";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <3300000>;
+		};*/
+		pm802ldo4: LDO4  {
+			regulator-compatible = "PM802-LDO4";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <3300000>;
+		};
+		LDO5 {
+			regulator-compatible = "PM802-LDO5";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+		pm802ldo6: LDO6 {
+			regulator-compatible = "PM802-LDO6";
+			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>;
+	};
+	usb802: usb {
+		compatible = "marvell,88pm80x-usb";
+		vbus_gpio = <0xff>; /* set_vbus */
+		/* id-gpadc = <0xff>;*//* usb-id */
+		vchg-from-exton = <1>;
+	};
+	wd {
+		compatible = "marvell,88pm80x-wdt";
+	};
+};