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)
53 lines
1.0 KiB
Devicetree
53 lines
1.0 KiB
Devicetree
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
|
|
&pm8994_gpios {
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&ls_exp_gpio_f>;
|
|
|
|
ls_exp_gpio_f: pm8994_gpio5 {
|
|
pinconf {
|
|
pins = "gpio5";
|
|
output-low;
|
|
power-source = <2>; // PM8994_GPIO_S4, 1.8V
|
|
};
|
|
};
|
|
|
|
volume_up_gpio: pm8996_gpio2 {
|
|
pinconf {
|
|
pins = "gpio2";
|
|
function = "normal";
|
|
input-enable;
|
|
drive-push-pull;
|
|
bias-pull-up;
|
|
qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
|
|
power-source = <PM8994_GPIO_S4>; // 1.8V
|
|
};
|
|
};
|
|
|
|
usb3_vbus_det_gpio: pm8996_gpio22 {
|
|
pinconf {
|
|
pins = "gpio22";
|
|
function = PMIC_GPIO_FUNC_NORMAL;
|
|
input-enable;
|
|
bias-pull-down;
|
|
qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
|
|
power-source = <PM8994_GPIO_S4>; // 1.8V
|
|
};
|
|
};
|
|
};
|
|
|
|
&pmi8994_gpios {
|
|
usb2_vbus_det_gpio: pmi8996_gpio6 {
|
|
pinconf {
|
|
pins = "gpio6";
|
|
function = PMIC_GPIO_FUNC_NORMAL;
|
|
input-enable;
|
|
bias-pull-down;
|
|
qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
|
|
power-source = <PM8994_GPIO_S4>; // 1.8V
|
|
};
|
|
};
|
|
};
|