mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 14:13:39 +00:00

This reverts commit46546f2882
because it mistakenly took PMIC pinctrl/GPIO as TLMM. The TLMM pinctrl uses "gpio" function, but PMIC uses "normal", so original code was correct: msm8998-oneplus-cheeseburger.dtb: pmic@2: gpio@c000:button-backlight-state: 'oneOf' conditional failed, one must be fixed: 'gpio' is not one of ['normal', 'paired', 'func1', 'func2', 'dtest1', 'dtest2', 'dtest3', 'dtest4', 'func3', 'func4'] Fixes:46546f2882
("arm64: dts: qcom: msm8998-oneplus-cheeseburger: fix backlight pin function") Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230312183622.460488-5-krzysztof.kozlowski@linaro.org
42 lines
951 B
Plaintext
42 lines
951 B
Plaintext
// SPDX-License-Identifier: BSD-3-Clause
|
|
/*
|
|
* OnePlus 5 (cheeseburger) device tree
|
|
*
|
|
* Copyright (c) 2021, Jami Kettunen <jamipkettunen@gmail.com>
|
|
*/
|
|
|
|
#include <dt-bindings/leds/common.h>
|
|
#include "msm8998-oneplus-common.dtsi"
|
|
|
|
/ {
|
|
model = "OnePlus 5";
|
|
compatible = "oneplus,cheeseburger", "qcom,msm8998";
|
|
chassis-type = "handset";
|
|
/* Required for bootloader to select correct board */
|
|
qcom,board-id = <8 0 16859 23>;
|
|
|
|
/* Capacitive keypad button backlight */
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&button_backlight_default>;
|
|
|
|
led-keypad-backlight {
|
|
gpios = <&pmi8998_gpios 5 GPIO_ACTIVE_HIGH>;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
function = LED_FUNCTION_KBD_BACKLIGHT;
|
|
default-state = "off";
|
|
};
|
|
};
|
|
};
|
|
|
|
&pmi8998_gpios {
|
|
button_backlight_default: button-backlight-state {
|
|
pins = "gpio5";
|
|
function = "normal";
|
|
bias-pull-down;
|
|
qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
|
|
};
|
|
};
|