Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 5 additions & 59 deletions arch/arm64/boot/dts/qcom/sm8250-pico4-phoenix.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@
};

/*
* The stock tree's GPIO keys, with its labels and codes (its "volume_up" sends
* KEY_VOLUMEDOWN, as on PICO OS).
* The stock tree's GPIO key, with its label and code (its "volume_up" sends
* KEY_VOLUMEDOWN, as on PICO OS). The stock tree also declares home, confirm and
* app keys; the PICO 4 has no such buttons and nothing drives their lines.
*/
gpio-keys {
compatible = "gpio-keys";
label = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&key_vol_up_default>, <&key_home_default>, <&key_confirm_default>,
<&app_key_default>;
pinctrl-0 = <&key_vol_up_default>;

key-volume-up {
label = "volume_up";
Expand All @@ -71,36 +71,6 @@
debounce-interval = <15>;
linux,can-disable;
};

key-confirm {
label = "confirm_key";
gpios = <&pm8150_gpios 7 GPIO_ACTIVE_LOW>;
linux,input-type = <EV_KEY>;
linux,code = <KEY_ENTER>;
wakeup-source;
debounce-interval = <15>;
linux,can-disable;
};

key-home {
label = "home";
gpios = <&pm8150_gpios 1 GPIO_ACTIVE_LOW>;
linux,input-type = <EV_KEY>;
linux,code = <KEY_HOME>;
wakeup-source;
debounce-interval = <15>;
linux,can-disable;
};

key-app {
label = "app_key";
gpios = <&tlmm 40 GPIO_ACTIVE_LOW>;
linux,input-type = <EV_KEY>;
linux,code = <KEY_BACK>;
wakeup-source;
debounce-interval = <15>;
linux,can-disable;
};
};

reserved-memory {
Expand Down Expand Up @@ -458,30 +428,14 @@
input-disable;
};

/* The keys' pins as the stock tree configures them. */
key_home_default: key-home-default-state {
pins = "gpio1";
function = "normal";
input-enable;
bias-pull-up;
power-source = <0>;
};

/* The key's pin as the stock tree configures it. */
key_vol_up_default: key-vol-up-default-state {
pins = "gpio6";
function = "normal";
input-enable;
bias-pull-up;
power-source = <1>;
};

key_confirm_default: key-confirm-default-state {
pins = "gpio7";
function = "normal";
input-enable;
bias-pull-up;
power-source = <1>;
};
};

/*
Expand Down Expand Up @@ -868,14 +822,6 @@
bias-pull-down;
};

/* The app key's pin as the stock tree configures it. */
app_key_default: app-key-default-state {
pins = "gpio40";
function = "gpio";
drive-strength = <6>;
bias-pull-up;
};

/* The stock panel pins: the reset (75) and its neighbour 60, driven at 8 mA. */
display_reset_default: display-reset-default-state {
pins = "gpio75", "gpio60";
Expand Down