Lines Matching +full:flash +full:- +full:led +full:- +full:controller

1 // SPDX-License-Identifier: GPL-2.0-only
3 /dts-v1/;
5 #include "msm8939-pm8916.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
12 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
17 chassis-type = "handset";
26 stdout-path = "serial0";
29 gpio-hall-sensor {
30 compatible = "gpio-keys";
32 pinctrl-0 = <&gpio_hall_sensor_default>;
33 pinctrl-names = "default";
37 event-hall-sensor {
40 linux,input-type = <EV_SW>;
42 linux,can-disable;
46 gpio-keys {
47 compatible = "gpio-keys";
49 pinctrl-0 = <&gpio_keys_default>;
50 pinctrl-names = "default";
54 button-volume-up {
62 compatible = "gpio-leds";
64 led-0 {
67 default-state = "off";
70 pinctrl-0 = <&button_backlight_default>;
71 pinctrl-names = "default";
75 reg_ts_vdd: regulator-vdd-ts {
76 compatible = "regulator-fixed";
77 regulator-name = "regulator-vdd-ts";
78 regulator-min-microvolt = <2850000>;
79 regulator-max-microvolt = <2850000>;
82 enable-active-high;
84 pinctrl-0 = <&ts_vdd_default>;
85 pinctrl-names = "default";
89 compatible = "pwm-backlight";
91 brightness-levels = <0 255>;
92 num-interpolated-steps = <255>;
93 default-brightness-level = <128>;
94 enable-gpios = <&tlmm 98 GPIO_ACTIVE_HIGH>;
96 pinctrl-0 = <&lcd_bl_en_default>;
97 pinctrl-names = "default";
100 flash-led-controller {
102 flash-gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>;
103 enable-gpios = <&tlmm 49 GPIO_ACTIVE_HIGH>;
105 pinctrl-0 = <&camera_front_flash_default>;
106 pinctrl-names = "default";
108 led {
111 flash-max-timeout-us = <250000>;
115 usb_id: usb-id {
116 compatible = "linux,extcon-usb-gpio";
117 id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
118 pinctrl-0 = <&usb_id_default &usb_id_switch_default>;
119 pinctrl-names = "default";
127 led-controller@30 {
130 #address-cells = <1>;
131 #size-cells = <0>;
133 vin-supply = <&pm8916_l17>;
134 vio-supply = <&pm8916_l6>;
136 pinctrl-0 = <&status_led_default>;
137 pinctrl-names = "default";
139 multi-led {
143 #address-cells = <1>;
144 #size-cells = <0>;
146 led@0 {
151 led@1 {
156 led@2 {
163 flash-led-controller@53 {
167 enable-gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>;
169 pinctrl-0 = <&camera_rear_flash_default>;
170 pinctrl-names = "default";
172 #address-cells = <1>;
173 #size-cells = <0>;
175 led@0 {
179 led-sources = <0>, <1>;
188 compatible = "asahi-kasei,ak09911";
191 vdd-supply = <&pm8916_l17>;
192 vid-supply = <&pm8916_l6>;
194 reset-gpios = <&tlmm 68 GPIO_ACTIVE_HIGH>;
196 pinctrl-0 = <&mag_reset_default>;
197 pinctrl-names = "default";
200 light-sensor@23 {
203 proximity-near-level = <75>;
205 vdd-supply = <&pm8916_l17>;
206 vddio-supply = <&pm8916_l5>;
208 interrupts-extended = <&tlmm 113 IRQ_TYPE_EDGE_FALLING>;
210 pinctrl-0 = <&light_int_default>;
211 pinctrl-names = "default";
218 vdd-supply = <&pm8916_l17>;
219 vddio-supply = <&pm8916_l6>;
230 interrupts-extended = <&tlmm 13 IRQ_TYPE_LEVEL_LOW>;
232 reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
234 vdda-supply = <&pm8916_l6>;
235 vdd-supply = <&reg_ts_vdd>;
237 pinctrl-0 = <&ts_int_reset_default>;
238 pinctrl-names = "default";
250 status_led_default: status-led-default-state {
253 power-source = <PM8916_GPIO_VPH>;
254 bias-disable;
255 output-high;
260 pwm_out: mpp4-state {
263 power-source = <PM8916_MPP_VPH>;
264 output-low;
270 pinctrl-0 = <&pwm_out>;
271 pinctrl-names = "default";
282 regulator-min-microvolt = <2850000>;
283 regulator-max-microvolt = <2850000>;
296 pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
297 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
298 pinctrl-names = "default", "sleep";
300 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
327 button_backlight_default: button-backlight-default-state {
330 drive-strength = <2>;
331 bias-disable;
334 camera_front_flash_default: camera-front-flash-default-state {
337 drive-strength = <2>;
338 bias-disable;
341 camera_rear_flash_default: camera-rear-flash-default-state {
344 drive-strength = <2>;
345 bias-disable;
348 gpio_hall_sensor_default: gpio-hall-sensor-default-state {
351 drive-strength = <2>;
352 bias-disable;
355 gpio_keys_default: gpio-keys-default-state {
358 drive-strength = <2>;
359 bias-pull-up;
362 lcd_bl_en_default: lcd-bl-en-default-state {
365 drive-strength = <2>;
366 bias-disable;
369 light_int_default: light-int-default-state {
372 drive-strength = <2>;
373 bias-disable;
376 mag_reset_default: mag-reset-default-state {
379 drive-strength = <2>;
380 bias-disable;
383 sdc2_cd_default: sdc2-cd-default-state {
386 drive-strength = <2>;
387 bias-disable;
390 ts_int_reset_default: ts-int-reset-default-state {
393 drive-strength = <2>;
394 bias-disable;
397 ts_vdd_default: ts-vdd-default-state {
400 drive-strength = <2>;
401 bias-disable;
404 usb_id_default: usb-id-default-state {
407 drive-strength = <8>;
408 bias-pull-up;
411 usb_id_switch_default: usb-id-switch-default-state {
414 drive-strength = <2>;
415 output-high;