2017-10-11 19:02:25 +08:00
|
|
|
#include "qcom-msm8974.dtsi"
|
|
|
|
#include "qcom-pm8841.dtsi"
|
|
|
|
#include "qcom-pm8941.dtsi"
|
2017-10-11 19:02:26 +08:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
|
|
|
|
|
2017-10-11 19:02:25 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Fairphone 2";
|
|
|
|
compatible = "fairphone,fp2", "qcom,msm8974";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
serial0 = &blsp1_uart2;
|
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
2017-10-11 19:02:26 +08:00
|
|
|
|
|
|
|
gpio-keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
input-name = "gpio-keys";
|
|
|
|
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&gpio_keys_pin_a>;
|
|
|
|
|
|
|
|
camera-snapshot {
|
|
|
|
label = "camera_snapshot";
|
|
|
|
gpios = <&pm8941_gpios 1 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_CAMERA>;
|
|
|
|
wakeup-source;
|
|
|
|
debounce-interval = <15>;
|
|
|
|
};
|
|
|
|
|
|
|
|
volume-down {
|
|
|
|
label = "volume_down";
|
|
|
|
gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_VOLUMEDOWN>;
|
|
|
|
wakeup-source;
|
|
|
|
debounce-interval = <15>;
|
|
|
|
};
|
|
|
|
|
|
|
|
volume-up {
|
|
|
|
label = "volume_up";
|
|
|
|
gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_VOLUMEUP>;
|
|
|
|
wakeup-source;
|
|
|
|
debounce-interval = <15>;
|
|
|
|
};
|
|
|
|
};
|
2017-10-11 19:02:25 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&soc {
|
|
|
|
serial@f991e000 {
|
|
|
|
status = "ok";
|
|
|
|
};
|
|
|
|
};
|
2017-10-11 19:02:26 +08:00
|
|
|
|
|
|
|
&spmi_bus {
|
|
|
|
pm8941@0 {
|
|
|
|
gpios@c000 {
|
|
|
|
gpio_keys_pin_a: gpio-keys-active {
|
|
|
|
pins = "gpio1", "gpio2", "gpio5";
|
|
|
|
function = "normal";
|
|
|
|
|
|
|
|
bias-pull-up;
|
|
|
|
power-source = <PM8941_GPIO_S3>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|