mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Add AW2016 RGB LED device nodes to expose the class LED devices for userspace to control them. Change-Id: I97f7e4ba13d44ddbf7634149e89f8087f0ddee98
244 lines
5.5 KiB
Devicetree
244 lines
5.5 KiB
Devicetree
#include "holi-audio-overlay.dtsi"
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/linux-event-codes.h>
|
|
#include "holi-pmic-overlay-pm6125.dtsi"
|
|
#include "holi-thermal-overlay-pm6125.dtsi"
|
|
#include "display/holi-sde-display-mtp-pm6125.dtsi"
|
|
#include "camera/holi-camera-pm6125-overlay.dtsi"
|
|
|
|
&wcd938x_codec {
|
|
cdc-vdd-rxtx-supply = <&L9A>;
|
|
cdc-vddio-supply = <&L9A>;
|
|
qcom,cdc-static-supplies = "cdc-vdd-rxtx",
|
|
"cdc-vddio";
|
|
/*
|
|
* Overriding cdc-vdd-mic-bias-supply to dummy value
|
|
* to avoid compilation errors as BOB is not definied
|
|
* for pm6125
|
|
*/
|
|
cdc-vdd-mic-bias-supply = <>;
|
|
};
|
|
|
|
&wcd937x_codec {
|
|
cdc-vdd-rxtx-supply = <&L9A>;
|
|
cdc-vddpx-supply = <&L9A>;
|
|
qcom,cdc-static-supplies = "cdc-vdd-rxtx",
|
|
"cdc-vddpx";
|
|
/*
|
|
* Overriding cdc-vdd-mic-bias-supply to dummy value
|
|
* to avoid compilation errors as BOB is not definied
|
|
* for pm6125
|
|
*/
|
|
cdc-vdd-mic-bias-supply = <>;
|
|
};
|
|
|
|
&wsa881x_i2c_e {
|
|
cdc-vdd-1p8-supply = <&L9A>;
|
|
};
|
|
|
|
&wsa881x_i2c_f {
|
|
cdc-vdd-1p8-supply = <&L9A>;
|
|
};
|
|
|
|
/* Dummy LDO reference */
|
|
&sdhc_1 {
|
|
status = "ok"
|
|
|
|
pinctrl-names = "default", "sleep";
|
|
pinctrl-0 = <&sdc1_on>;
|
|
pinctrl-1 = <&sdc1_off>;
|
|
|
|
vdd-supply = <&L24A>;
|
|
qcom,vdd-voltage-level = <2960000 2960000>;
|
|
qcom,vdd-current-level = <0 570000>;
|
|
|
|
vdd-io-supply = <&L11A>;
|
|
qcom,vdd-io-always-on;
|
|
qcom,vdd-io-lpm-sup;
|
|
qcom,vdd-io-voltage-level = <1800000 1800000>;
|
|
qcom,vdd-io-current-level = <0 325000>;
|
|
};
|
|
|
|
&sdhc_2 {
|
|
status = "ok"
|
|
|
|
pinctrl-names = "default", "sleep";
|
|
pinctrl-0 = <&sdc2_on>;
|
|
pinctrl-1 = <&sdc2_off>;
|
|
|
|
vdd-supply = <&L22A>;
|
|
qcom,vdd-voltage-level = <2960000 2960000>;
|
|
qcom,vdd-current-level = <0 800000>;
|
|
|
|
vdd-io-supply = <&L5A>;
|
|
qcom,vdd-io-voltage-level = <1800000 2960000>;
|
|
qcom,vdd-io-current-level = <0 22000>;
|
|
|
|
cd-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
&ufsphy_mem {
|
|
compatible = "qcom,ufs-phy-qmp-v3";
|
|
|
|
vdda-phy-supply = <&L7A>;
|
|
vdda-pll-supply = <&L4A>;
|
|
vdda-phy-max-microamp = <62900>;
|
|
vdda-pll-max-microamp = <18300>;
|
|
|
|
status = "ok"
|
|
};
|
|
|
|
&ufshc_mem {
|
|
vdd-hba-supply = <&gcc_ufs_phy_gdsc>;
|
|
vdd-hba-fixed-regulator;
|
|
|
|
vcc-supply = <&L24A>;
|
|
vcc-voltage-level = <2950000 2960000>;
|
|
vcc-max-microamp = <800000>;
|
|
|
|
vccq2-supply = <&L11A>;
|
|
vccq2-max-microamp = <800000>;
|
|
vccq2-voltage-level = <1800000 1800000>;
|
|
|
|
qcom,vddp-ref-clk-supply = <&L4A>;
|
|
qcom,vddp-ref-clk-max-microamp = <100>;
|
|
|
|
status = "ok"
|
|
};
|
|
|
|
&qupv3_se0_i2c {
|
|
status = "ok"
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
nq@28 {
|
|
compatible = "qcom,sn-nci";
|
|
reg = <0x28>;
|
|
qcom,sn-irq = <&tlmm 9 0x00>;
|
|
qcom,sn-ven = <&tlmm 6 0x00>;
|
|
qcom,sn-firm = <&tlmm 8 0x00>;
|
|
qcom,sn-clkreq = <&tlmm 7 0x00>;
|
|
qcom,sn-vdd-1p8-supply = <&L9A>;
|
|
qcom,sn-vdd-1p8-voltage = <1800000 1800000>;
|
|
qcom,sn-vdd-1p8-current = <157000>;
|
|
interrupt-parent = <&tlmm>;
|
|
interrupts = <9 0>;
|
|
interrupt-names = "nfc_irq";
|
|
pinctrl-names = "nfc_active", "nfc_suspend";
|
|
pinctrl-0 = <&nfc_int_active &nfc_enable_active>;
|
|
pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>;
|
|
};
|
|
};
|
|
|
|
&soc {
|
|
gpio_keys {
|
|
compatible = "gpio-keys";
|
|
label = "gpio-keys";
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&key_vol_up_default>;
|
|
|
|
vol_up {
|
|
label = "volume_up";
|
|
gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>;
|
|
linux,input-type = <1>;
|
|
linux,code = <KEY_VOLUMEUP>;
|
|
gpio-key,wakeup;
|
|
debounce-interval = <15>;
|
|
linux,can-disable;
|
|
};
|
|
};
|
|
};
|
|
|
|
&soc {
|
|
touch_avdd: touch_avdd_stub {
|
|
/*
|
|
* Touch eLDO controlled by gpio#53 is always ON.
|
|
* Using dummy regulator.
|
|
*/
|
|
compatible = "qcom,stub-regulator";
|
|
regulator-name = "touch_avdd_stub";
|
|
qcom,hpm-min-load = <10000>;
|
|
regulator-min-microvolt = <2700000>;
|
|
regulator-max-microvolt = <3544000>;
|
|
};
|
|
};
|
|
|
|
&qupv3_se8_i2c {
|
|
status = "okay";
|
|
qcom,i2c-touch-active="synaptics,tcm-i2c";
|
|
|
|
synaptics_tcm@20 {
|
|
compatible = "synaptics,tcm-i2c";
|
|
reg = <0x20>;
|
|
interrupt-parent = <&tlmm>;
|
|
interrupts = <22 0x2008>;
|
|
pinctrl-names = "pmx_ts_active","pmx_ts_suspend",
|
|
"pmx_ts_release";
|
|
pinctrl-0 = <&ts_active>;
|
|
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
|
|
pinctrl-2 = <&pmx_ts_release>;
|
|
vdd-supply = <&L9A>;
|
|
avdd-supply = <&touch_avdd>;
|
|
synaptics,pwr-reg-name = "avdd";
|
|
synaptics,bus-reg-name = "vdd";
|
|
synaptics,irq-gpio = <&tlmm 22 0x2008>;
|
|
synaptics,irq-on-state = <0>;
|
|
synaptics,reset-gpio = <&tlmm 21 0x00>;
|
|
synaptics,reset-on-state = <0>;
|
|
synaptics,reset-active-ms = <20>;
|
|
synaptics,reset-delay-ms = <200>;
|
|
synaptics,power-delay-ms = <200>;
|
|
synaptics,ubl-i2c-addr = <0x20>;
|
|
synaptics,extend_report;
|
|
synaptics,firmware-name = "synaptics_firmware.img";
|
|
|
|
panel = <&dsi_rm69299_visionox_amoled_video
|
|
&dsi_rm69299_visionox_amoled_cmd>;
|
|
};
|
|
};
|
|
|
|
&qupv3_se10_i2c {
|
|
awinic@64 {
|
|
compatible = "awinic,aw2016_led";
|
|
reg = <0x64>;
|
|
|
|
awinic,red {
|
|
awinic,name = "red";
|
|
awinic,id = <0>;
|
|
awinic,imax = <2>;
|
|
awinic,led-current = <3>;
|
|
awinic,max-brightness = <255>;
|
|
awinic,rise-time-ms = <6>;
|
|
awinic,hold-time-ms = <0>;
|
|
awinic,fall-time-ms = <6>;
|
|
awinic,off-time-ms = <4>;
|
|
};
|
|
|
|
awinic,green {
|
|
awinic,name = "green";
|
|
awinic,id = <1>;
|
|
awinic,imax = <2>;
|
|
awinic,led-current = <3>;
|
|
awinic,max-brightness = <255>;
|
|
awinic,rise-time-ms = <6>;
|
|
awinic,hold-time-ms = <0>;
|
|
awinic,fall-time-ms = <6>;
|
|
awinic,off-time-ms = <4>;
|
|
};
|
|
|
|
awinic,blue {
|
|
awinic,name = "blue";
|
|
awinic,id = <2>;
|
|
awinic,imax = <2>;
|
|
awinic,led-current = <3>;
|
|
awinic,max-brightness = <255>;
|
|
awinic,rise-time-ms = <6>;
|
|
awinic,hold-time-ms = <0>;
|
|
awinic,fall-time-ms = <6>;
|
|
awinic,off-time-ms = <4>;
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
#include "camera/holi-camera-sensor-pm6125-mtp.dtsi"
|