Skip to content

Commit edae4a6

Browse files
kevinwidjaja21andersson
authored andcommitted
ARM: dts: qcom: msm8974-sony-xperia-rhine: Move camera buttons to amami & honami
An upcoming board in the sony-xperia-rhine family (sony-togari) does not have dedicated camera buttons, so move those from common rhine dtsi to amami and honami dts files. Signed-off-by: Kevin Widjaja <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Luca Weiss <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 702639b commit edae4a6

File tree

3 files changed

+32
-14
lines changed

3 files changed

+32
-14
lines changed

arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine-amami.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@
55
model = "Sony Xperia Z1 Compact";
66
compatible = "sony,xperia-amami", "qcom,msm8974";
77
chassis-type = "handset";
8+
9+
gpio-keys {
10+
key-camera-snapshot {
11+
label = "camera_snapshot";
12+
gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
13+
linux,input-type = <1>;
14+
linux,code = <KEY_CAMERA>;
15+
};
16+
17+
key-camera-focus {
18+
label = "camera_focus";
19+
gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
20+
linux,input-type = <1>;
21+
linux,code = <KEY_CAMERA_FOCUS>;
22+
};
23+
};
824
};
925

1026
&smbb {

arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine-honami.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,20 @@
55
model = "Sony Xperia Z1";
66
compatible = "sony,xperia-honami", "qcom,msm8974";
77
chassis-type = "handset";
8+
9+
gpio-keys {
10+
key-camera-snapshot {
11+
label = "camera_snapshot";
12+
gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
13+
linux,input-type = <1>;
14+
linux,code = <KEY_CAMERA>;
15+
};
16+
17+
key-camera-focus {
18+
label = "camera_focus";
19+
gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
20+
linux,input-type = <1>;
21+
linux,code = <KEY_CAMERA_FOCUS>;
22+
};
23+
};
824
};

arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,6 @@
2828
linux,code = <KEY_VOLUMEDOWN>;
2929
};
3030

31-
key-camera-snapshot {
32-
label = "camera_snapshot";
33-
gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
34-
linux,input-type = <1>;
35-
linux,code = <KEY_CAMERA>;
36-
};
37-
38-
key-camera-focus {
39-
label = "camera_focus";
40-
gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
41-
linux,input-type = <1>;
42-
linux,code = <KEY_CAMERA_FOCUS>;
43-
};
44-
4531
key-volume-up {
4632
label = "volume_up";
4733
gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;

0 commit comments

Comments
 (0)