summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts
diff options
context:
space:
mode:
authorIskren Chernev <iskren.chernev@gmail.com>2020-09-20 17:48:56 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2020-10-26 09:52:38 -0500
commit60367221d7d46d623dbef4cd30924e99c97ff2e5 (patch)
tree012c39d6b08d458cfbb2c575381f47e380fd0275 /arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts
parent972f5a62a698857f4a02a6667f53ca158ce7421d (diff)
ARM: dts: qcom: msm8974-klte: Add support for led
The klte uses a Panasonic AN30259A LED controller for it's indicator led. Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com> Link: https://lore.kernel.org/r/20200920144859.813032-5-iskren.chernev@gmail.com Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts')
-rw-r--r--arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts48
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts
index 085636f182d0..7b398da9b75e 100644
--- a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts
+++ b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts
@@ -4,6 +4,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Samsung Galaxy S5";
@@ -228,6 +229,44 @@
};
};
+ i2c-gpio-led {
+ compatible = "i2c-gpio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ scl-gpios = <&msmgpio 121 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ sda-gpios = <&msmgpio 120 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c_led_pins>;
+
+ i2c-gpio,delay-us = <2>;
+
+ led-controller@30 {
+ compatible = "panasonic,an30259a";
+ reg = <0x30>;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@1 {
+ reg = <1>;
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_RED>;
+ };
+
+ led@2 {
+ reg = <2>;
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
+ };
+
+ led@3 {
+ reg = <3>;
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_BLUE>;
+ };
+ };
+ };
+
/delete-node/ vreg-boost;
};
@@ -312,6 +351,15 @@
bias-pull-up;
};
};
+
+ i2c_led_pins: i2c-led {
+ mux {
+ pins = "gpio120", "gpio121";
+ function = "gpio";
+ input-enable;
+ bias-pull-down;
+ };
+ };
};
sdhci@f9824900 {