mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 06:39:05 +00:00

The DTS code coding style expects exactly one space around '=' character. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Konrad Dybcio <konradybcio@kernel.org> Link: https://lore.kernel.org/r/20240905-dts-cleanup-v1-4-f4c5f7b2c8c2@linaro.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
88 lines
1.7 KiB
Plaintext
88 lines
1.7 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
/dts-v1/;
|
|
|
|
#include "msm8916-wingtech-wt865x8.dtsi"
|
|
|
|
/ {
|
|
model = "Lenovo A6000 (Wingtech WT86518)";
|
|
compatible = "wingtech,wt86518", "qcom,msm8916";
|
|
chassis-type = "handset";
|
|
|
|
speaker_amp: audio-amplifier {
|
|
compatible = "awinic,aw8738";
|
|
|
|
pinctrl-0 = <&spk_ext_pa_default>;
|
|
pinctrl-names = "default";
|
|
|
|
mode-gpios = <&tlmm 119 GPIO_ACTIVE_HIGH>;
|
|
sound-name-prefix = "Speaker Amp";
|
|
awinic,mode = <1>;
|
|
};
|
|
};
|
|
|
|
&blsp_i2c2 {
|
|
accelerometer@e {
|
|
compatible = "kionix,kxcj91008";
|
|
reg = <0xe>;
|
|
|
|
vdd-supply = <&pm8916_l6>;
|
|
vddio-supply = <&pm8916_l6>;
|
|
|
|
mount-matrix = "0", "-1", "0",
|
|
"-1", "0", "0",
|
|
"0", "0", "1";
|
|
};
|
|
};
|
|
|
|
&headphones_switch {
|
|
VCC-supply = <&pm8916_l17>;
|
|
};
|
|
|
|
&pm8916_bms {
|
|
power-supplies = <&pm8916_charger>;
|
|
};
|
|
|
|
&pm8916_charger {
|
|
qcom,fast-charge-safe-current = <900000>;
|
|
qcom,fast-charge-safe-voltage = <4300000>;
|
|
|
|
monitored-battery = <&battery>;
|
|
|
|
status = "okay";
|
|
};
|
|
|
|
&sound {
|
|
model = "wt88047";
|
|
widgets = "Speaker", "Speaker",
|
|
"Headphone", "Headphones";
|
|
pin-switches = "Speaker", "Headphones";
|
|
audio-routing = "Speaker", "Speaker Amp OUT",
|
|
"Speaker Amp IN", "HPH_R",
|
|
"Headphones", "Headphones Switch OUTL",
|
|
"Headphones", "Headphones Switch OUTR",
|
|
"Headphones Switch INL", "HPH_L",
|
|
"Headphones Switch INR", "HPH_R",
|
|
"AMIC1", "MIC BIAS Internal1",
|
|
"AMIC2", "MIC BIAS Internal2";
|
|
aux-devs = <&speaker_amp>, <&headphones_switch>;
|
|
};
|
|
|
|
&usb {
|
|
dr_mode = "peripheral";
|
|
extcon = <&pm8916_charger>;
|
|
};
|
|
|
|
&usb_hs_phy {
|
|
extcon = <&pm8916_charger>;
|
|
};
|
|
|
|
&tlmm {
|
|
spk_ext_pa_default: spk-ext-pa-default-state {
|
|
pins = "gpio119";
|
|
function = "gpio";
|
|
drive-strength = <2>;
|
|
bias-disable;
|
|
};
|
|
};
|