Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff62c904 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

ARM: dts: msm: Specify AMOLED regulator device for kona platforms



Add AMOLED regulator device in PM8150A that controls OLEB/AB/IBB
modules which powers the triple supply needed for AMOLED panels.
Enable the AMOLED regulator device for kona platforms.

Change-Id: I9f03d0fdce8e260c17bacecc27defe8a5a998000
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent df25d846
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 */


@@ -10,3 +10,7 @@
&qupv3_se12_2uart {
	status = "disabled";
};

&pm8150a_amoled {
	status = "ok";
};
+5 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 *  Copyright (c) 2018, The Linux Foundation. All rights reserved.
 *  Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 */


@@ -10,3 +10,7 @@
&qupv3_se12_2uart {
	status = "disabled";
};

&pm8150a_amoled {
	status = "ok";
};
+5 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 */

#include "kona-pmic-overlay.dtsi"
@@ -8,3 +8,7 @@
&qupv3_se12_2uart {
	status = "disabled";
};

&pm8150a_amoled {
	status = "ok";
};
+35 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. */
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. */

#include <dt-bindings/spmi/spmi.h>
#include <dt-bindings/interrupt-controller/irq.h>
@@ -326,6 +326,40 @@
				linux,default-trigger = "timer";
			};
		};

		pm8150a_amoled: qcom,amoled {
			compatible = "qcom,qpnp-amoled-regulator";
			#address-cells = <1>;
			#size-cells = <1>;
			status = "disabled";

			oledb_vreg: oledb@e000 {
				reg = <0xe000 0x100>;
				reg-names = "oledb_base";
				regulator-name = "oledb";
				regulator-min-microvolt = <4925000>;
				regulator-max-microvolt = <8100000>;
				qcom,swire-control;
			};

			ab_vreg: ab@de00 {
				reg = <0xde00 0x100>;
				reg-names = "ab_base";
				regulator-name = "ab";
				regulator-min-microvolt = <4600000>;
				regulator-max-microvolt = <6100000>;
				qcom,swire-control;
			};

			ibb_vreg: ibb@dc00 {
				reg = <0xdc00 0x100>;
				reg-names = "ibb_base";
				regulator-name = "ibb";
				regulator-min-microvolt = <800000>;
				regulator-max-microvolt = <5400000>;
				qcom,swire-control;
			};
		};
	};
};