Skip to content

Commit

Permalink
arm64: dts: qcom: Add WiFI/BT LEDs on db820c
Browse files Browse the repository at this point in the history
The DragonBoard820c has two additional LEDs, for "WiFI" and "BT". Use
the first two LPG channels and wire them to the MPPs using DTEST lines.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
  • Loading branch information
andersson committed Aug 28, 2018
1 parent 4aa5ae7 commit 786fbb7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
18 changes: 18 additions & 0 deletions arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,24 @@
};
};

&pm8994_mpps {
pm8994_mpp2_wifi_led: mpp2-wifi-led-active {
pins = "mpp2";
function = "sink";

output-low;
qcom,dtest = <1>;
};

pm8994_mpp4_bt_led: mpp4-wifi-led-active {
pins = "mpp4";
function = "sink";

output-low;
qcom,dtest = <2>;
};
};

&pmi8994_mpps {
pmi8994_mpp2_userled4: mpp2-userled4 {
pins = "mpp2";
Expand Down
28 changes: 28 additions & 0 deletions arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,34 @@
};

&spmi_bus {
pmic@1 {
lpg {
status = "okay";

qcom,dtest = <1 2>,
<2 2>,
<0 0>,
<0 0>,
<0 0>,
<0 0>;

pinctrl-names = "default";
pinctrl-0 = <&pm8994_mpp2_wifi_led>, <&pm8994_mpp4_bt_led>;

wifi-led {
led-sources = <1>;
linux,default-trigger = "phy0tx";
default-state = "off";
};

bt-led {
led-sources = <2>;
linux,default-trigger = "hci0-power";
default-state = "off";
};
};
};

pmic@3 {
lpg@b100 {
qcom,power-source = <1>;
Expand Down

0 comments on commit 786fbb7

Please sign in to comment.