diff --git a/arch/arm64/boot/dts/qcom/msm8916-motorola-osprey.dts b/arch/arm64/boot/dts/qcom/msm8916-motorola-osprey.dts index ae571149620d39..2a44eb046a78bb 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-motorola-osprey.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-motorola-osprey.dts @@ -9,6 +9,8 @@ #include #include #include +#include +#include / { model = "Motorola Moto G 2015 (osprey)"; @@ -80,6 +82,12 @@ startup-delay-us = <300>; vin-supply = <&pm8916_l16>; }; + + backlight: backlight { + compatible = "led-backlight"; + leds = <&backlight_led>; + default-brightness-level = <192>; + }; }; &blsp_i2c1 { @@ -125,6 +133,21 @@ regulator-active-discharge = <1>; }; }; + + led-controler@64 { + compatible = "rohm,bd65b60"; + reg = <0x64>; + pinctrl-0 = <&backlight_reset_default>; + pinctrl-names = "default"; + + backlight_led: led { + function = LED_FUNCTION_BACKLIGHT; + color = ; + rohm,enable-outputs = ; + default-state = "keep"; + linux,default-trigger = "backlight"; + }; + }; }; &blsp_i2c2 { @@ -172,6 +195,7 @@ compatible = "motorola,osprey-panel"; reg = <0>; + backlight = <&backlight>; vsp-supply = <®_lcd_pos>; vsn-supply = <®_lcd_neg>; vddio-supply = <®_panel_vddio>; @@ -370,6 +394,14 @@ bias-pull-up; }; + backlight_reset_default: backlight-reset-default-state { + pins = "gpio113"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-high; + }; + gpio_keys_default: gpio-keys-default-state { pins = "gpio107"; function = "gpio";