Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
148 lines
3.8 KiB
Devicetree
148 lines
3.8 KiB
Devicetree
/*
|
|
* Copyright (c) 2021 MediaTek Inc.
|
|
*
|
|
* 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.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
&odm {
|
|
rt5133_eint:rt5133_eint {
|
|
};
|
|
|
|
rt5133_gpio1: rt5133-gpio1 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "rt5133-gpio1";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
vin-supply = <&rt5133_ldo1>;
|
|
enable-active-high;
|
|
gpio = <&rt5133 0 0x0>;
|
|
};
|
|
|
|
rt5133_gpio2: rt5133-gpio2 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "rt5133-gpio2";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
vin-supply = <&rt5133_ldo1>;
|
|
enable-active-high;
|
|
gpio = <&rt5133 1 0x0>;
|
|
};
|
|
|
|
rt5133_gpio3: rt5133-gpio3 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "rt5133-gpio3";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
vin-supply = <&rt5133_ldo1>;
|
|
enable-active-high;
|
|
gpio = <&rt5133 2 0x0>;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
&i2c3 {
|
|
rt5133: rt5133@18 {
|
|
status = "ok"
|
|
compatible = "richtek,rt5133";
|
|
reg = <0x18>;
|
|
wakeup-source;
|
|
interrupts-extended = <&pio 92 0x0>;
|
|
enable-gpio = <&pio 162 0x0>;
|
|
gpio-supply = <&rt5133_ldo1>;
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
regulator_nb = "rt5133-ldo1", "rt5133-ldo2",
|
|
"rt5133-ldo3", "rt5133-ldo4",
|
|
"rt5133-ldo5", "rt5133-ldo6",
|
|
"rt5133-ldo7", "rt5133-ldo8";
|
|
regulators {
|
|
BASE {
|
|
regulator-name = "rt5133,base";
|
|
oc_shutdown_all = <0>;
|
|
pgb_shutdown_all = <0>;
|
|
};
|
|
rt5133_ldo1: LDO1 {
|
|
regulator-name = "rt5133-ldo1";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
regulator-active-discharge;
|
|
oc_ptsel = <1>;
|
|
pgb_ptsel = <1>;
|
|
soft_start_time_sel = <1>;
|
|
};
|
|
rt5133_ldo2: LDO2 {
|
|
regulator-name = "rt5133-ldo2";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <3200000>;
|
|
regulator-active-discharge;
|
|
oc_ptsel = <1>;
|
|
pgb_ptsel = <1>;
|
|
soft_start_time_sel = <1>;
|
|
};
|
|
rt5133_ldo3: LDO3 {
|
|
regulator-name = "rt5133-ldo3";
|
|
regulator-min-microvolt = <1700000>;
|
|
regulator-max-microvolt = <3000000>;
|
|
regulator-active-discharge;
|
|
oc_ptsel = <1>;
|
|
pgb_ptsel = <1>;
|
|
soft_start_time_sel = <1>;
|
|
};
|
|
rt5133_ldo4: LDO4 {
|
|
regulator-name = "rt5133-ldo4";
|
|
regulator-min-microvolt = <1700000>;
|
|
regulator-max-microvolt = <3000000>;
|
|
regulator-active-discharge;
|
|
oc_ptsel = <1>;
|
|
pgb_ptsel = <1>;
|
|
soft_start_time_sel = <1>;
|
|
};
|
|
rt5133_ldo5: LDO5 {
|
|
regulator-name = "rt5133-ldo5";
|
|
regulator-min-microvolt = <1700000>;
|
|
regulator-max-microvolt = <3000000>;
|
|
regulator-active-discharge;
|
|
oc_ptsel = <1>;
|
|
pgb_ptsel = <1>;
|
|
soft_start_time_sel = <1>;
|
|
};
|
|
rt5133_ldo6: LDO6 {
|
|
regulator-name = "rt5133-ldo6";
|
|
regulator-min-microvolt = <1700000>;
|
|
regulator-max-microvolt = <3000000>;
|
|
regulator-active-discharge;
|
|
oc_ptsel = <1>;
|
|
pgb_ptsel = <1>;
|
|
soft_start_time_sel = <1>;
|
|
};
|
|
rt5133_ldo7: LDO7 {
|
|
regulator-name = "rt5133-ldo7";
|
|
regulator-min-microvolt = <900000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
regulator-active-discharge;
|
|
oc_ptsel = <1>;
|
|
pgb_ptsel = <1>;
|
|
soft_start_time_sel = <1>;
|
|
};
|
|
rt5133_ldo8: LDO8 {
|
|
regulator-name = "rt5133-ldo8";
|
|
regulator-min-microvolt = <900000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
regulator-active-discharge;
|
|
oc_ptsel = <1>;
|
|
pgb_ptsel = <1>;
|
|
soft_start_time_sel = <1>;
|
|
};
|
|
};
|
|
|
|
};
|
|
};
|