arm64: dts: qcom: kaanapali-qrd: Add PMIC support
Include PMIC files used on Kaanapali QRD boards. Add configurations for keys (volume up and volume down), RGB LEDs and flash LEDs. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Shawn Guo <shengchao.guo@oss.qualcomm.com> Signed-off-by: Jishnu Prakash <jishnu.prakash@oss.qualcomm.com> Signed-off-by: Jingyi Wang <jingyi.wang@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260322-knp-pmic-dt-v1-3-70bc40ea4428@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>master
parent
45ddb3f3c2
commit
cb6763a078
|
|
@ -5,9 +5,21 @@
|
|||
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/linux-event-codes.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
|
||||
#include "kaanapali.dtsi"
|
||||
|
||||
#include "pm8010-kaanapali.dtsi" /* SPMI1: SID-12/13 */
|
||||
#include "pmd8028-kaanapali.dtsi" /* SPMI1: SID-4 */
|
||||
#include "pmh0101.dtsi" /* SPMI0: SID-1 */
|
||||
#include "pmh0104-kaanapali.dtsi" /* SPMI1: SID-9 */
|
||||
#include "pmh0110-kaanapali.dtsi" /* SPMI0: SID-3/5/6/8 */
|
||||
#include "pmih0108-kaanapali.dtsi" /* SPMI1: SID-7 */
|
||||
#include "pmk8850.dtsi" /* SPMI0: SID-0 */
|
||||
#include "pmr735d-kaanapali.dtsi" /* SPMI1: SID-10 */
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Kaanapali QRD";
|
||||
compatible = "qcom,kaanapali-qrd", "qcom,kaanapali";
|
||||
|
|
@ -52,6 +64,22 @@
|
|||
clock-div = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
pinctrl-0 = <&key_vol_up_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
key-volume-up {
|
||||
label = "Volume Up";
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
gpios = <&tlmm 101 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <15>;
|
||||
linux,can-disable;
|
||||
wakeup-source;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&apps_rsc {
|
||||
|
|
@ -665,6 +693,63 @@
|
|||
};
|
||||
};
|
||||
|
||||
&pmh0101_flash {
|
||||
status = "okay";
|
||||
|
||||
led-0 {
|
||||
function = LED_FUNCTION_FLASH;
|
||||
function-enumerator = <0>;
|
||||
color = <LED_COLOR_ID_YELLOW>;
|
||||
led-sources = <1>, <4>;
|
||||
led-max-microamp = <500000>;
|
||||
flash-max-microamp = <2000000>;
|
||||
flash-max-timeout-us = <1280000>;
|
||||
};
|
||||
|
||||
led-1 {
|
||||
function = LED_FUNCTION_FLASH;
|
||||
function-enumerator = <1>;
|
||||
color = <LED_COLOR_ID_WHITE>;
|
||||
led-sources = <2>, <3>;
|
||||
led-max-microamp = <500000>;
|
||||
flash-max-microamp = <2000000>;
|
||||
flash-max-timeout-us = <1280000>;
|
||||
};
|
||||
};
|
||||
|
||||
&pmh0101_pwm {
|
||||
status = "okay";
|
||||
|
||||
multi-led {
|
||||
color = <LED_COLOR_ID_RGB>;
|
||||
function = LED_FUNCTION_STATUS;
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
led@1 {
|
||||
reg = <1>;
|
||||
color = <LED_COLOR_ID_RED>;
|
||||
};
|
||||
|
||||
led@2 {
|
||||
reg = <2>;
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
};
|
||||
|
||||
led@3 {
|
||||
reg = <3>;
|
||||
color = <LED_COLOR_ID_BLUE>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pon_resin {
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sdhc_2 {
|
||||
cd-gpios = <&tlmm 55 GPIO_ACTIVE_LOW>;
|
||||
|
||||
|
|
@ -701,6 +786,13 @@
|
|||
<74 1>, /* eSE */
|
||||
<119 2>, /* SoCCP */
|
||||
<144 4>; /* CXM UART */
|
||||
|
||||
key_vol_up_default: key-vol-up-default-state {
|
||||
pins = "gpio101";
|
||||
function = "gpio";
|
||||
output-disable;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
&uart7 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue