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

Commit aae6a21c authored by Gustavo Solaira's avatar Gustavo Solaira Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Enable 1.8V RGMII mode on SA415M CCARD



Enable 1.8V for SA415M CCARD board. Move PMIC pinctrl
settings to the pinctrl dtsi file. Enable GPIO_09 only
for CCARD boards which use 1.8V to drive RGMII IO lines.

Change-Id: I58561d9fa633a6b108bf34a6020f96dfa6343e39
Acked-by: default avatarRahul Kawadgave <rahulak@codeaurora.org>
Signed-off-by: default avatarGustavo Solaira <gustavos@codeaurora.org>
parent 01252c27
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -60,16 +60,18 @@
					<0x0 0xc2 0 IRQ_TYPE_NONE>,
					<0x0 0xc3 0 IRQ_TYPE_NONE>,
					<0x0 0xc4 0 IRQ_TYPE_NONE>,
					<0x0 0xc5 0 IRQ_TYPE_NONE>;
					<0x0 0xc5 0 IRQ_TYPE_NONE>,
					<0x0 0xc8 0 IRQ_TYPE_NONE>;
			interrupt-names = "pmxpoorwills_gpio1",
					  "pmxpoorwills_gpio2",
					  "pmxpoorwills_gpio3",
					  "pmxpoorwills_gpio4",
					  "pmxpoorwills_gpio5",
					  "pmxpoorwills_gpio6";
					  "pmxpoorwills_gpio6",
					  "pmxpoorwills_gpio9";
			gpio-controller;
			#gpio-cells = <2>;
			qcom,gpios-disallowed = <7 8 9>;
			qcom,gpios-disallowed = <7 8>;
		};

		pmxpoorwills_rtc: qcom,pmxpoorwills_rtc {
+9 −8
Original line number Diff line number Diff line
@@ -141,12 +141,13 @@
	};
};

&pmxpoorwills_gpios {
	a2b_cdc_sel {
		a2b_cdc_sel_default: a2b_cdc_sel_default {
			pins = "gpio1";
			power-source = <1>;
			output-high;
		};
&emac_hw {
	/delete-property/ vreg_rgmii-supply;
	pinctrl-names = "default";
	pinctrl-0 = <&vreg_rgmii_off_default>;
};

&vreg_rgmii_io_pads {
	regulator-min-microvolt = <1800000>;
	regulator-max-microvolt = <1800000>;
};
+17 −0
Original line number Diff line number Diff line
@@ -1755,6 +1755,14 @@
};

&pmxpoorwills_gpios {
	a2b_cdc_sel {
		a2b_cdc_sel_default: a2b_cdc_sel_default {
			pins = "gpio1";
			power-source = <1>;
			output-high;
		};
	};

	ambient_therm {
		ambient_therm_default: ambient_therm_default {
			pins = "gpio2";
@@ -1768,4 +1776,13 @@
			bias-high-impedance;
		};
	};

	vreg_rgmii_off {
		vreg_rgmii_off_default: vreg_rgmii_off_default {
			pins = "gpio9";
			bias-pull-down;
			output-disable;
			input-enable;
		};
	};
};
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -398,8 +398,8 @@
	vreg_rgmii_io_pads: rgmii_io_pads_regulator {
		compatible = "regulator-fixed";
		regulator-name = "rgmii_io_pads";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		regulator-min-microvolt = <2500000>;
		regulator-max-microvolt = <2500000>;
		regulator-enable-ramp-delay = <100>;
		gpio = <&tlmm 83 GPIO_ACTIVE_HIGH>;
		enable-active-high;