xref: /linux/scripts/dtc/include-prefixes/arm/qcom/qcom-msm8660-surf.dts (revision a26d147f187206854f7a88197d28333c0e11f41b)
1// SPDX-License-Identifier: GPL-2.0
2#include <dt-bindings/input/input.h>
3
4#include "qcom-msm8660.dtsi"
5
6/ {
7	model = "Qualcomm MSM8660 SURF";
8	compatible = "qcom,msm8660-surf", "qcom,msm8660";
9
10	aliases {
11		serial0 = &gsbi12_serial;
12	};
13
14	chosen {
15		stdout-path = "serial0:115200n8";
16	};
17
18	/* Temporary fixed regulator */
19	vsdcc_fixed: vsdcc-regulator {
20		compatible = "regulator-fixed";
21		regulator-name = "SDCC Power";
22		regulator-min-microvolt = <2700000>;
23		regulator-max-microvolt = <2700000>;
24		regulator-always-on;
25	};
26};
27
28&gsbi12 {
29	qcom,mode = <GSBI_PROT_I2C_UART>;
30	status = "okay";
31};
32
33&gsbi12_serial {
34	status = "okay";
35};
36
37&pm8058_keypad {
38	linux,keymap = <
39		MATRIX_KEY(0, 0, KEY_FN_F1)
40		MATRIX_KEY(0, 1, KEY_UP)
41		MATRIX_KEY(0, 2, KEY_LEFT)
42		MATRIX_KEY(0, 3, KEY_VOLUMEUP)
43		MATRIX_KEY(1, 0, KEY_FN_F2)
44		MATRIX_KEY(1, 1, KEY_RIGHT)
45		MATRIX_KEY(1, 2, KEY_DOWN)
46		MATRIX_KEY(1, 3, KEY_VOLUMEDOWN)
47		MATRIX_KEY(2, 3, KEY_ENTER)
48		MATRIX_KEY(4, 0, KEY_CAMERA_FOCUS)
49		MATRIX_KEY(4, 1, KEY_UP)
50		MATRIX_KEY(4, 2, KEY_LEFT)
51		MATRIX_KEY(4, 3, KEY_HOME)
52		MATRIX_KEY(4, 4, KEY_FN_F3)
53		MATRIX_KEY(5, 0, KEY_CAMERA)
54		MATRIX_KEY(5, 1, KEY_RIGHT)
55		MATRIX_KEY(5, 2, KEY_DOWN)
56		MATRIX_KEY(5, 3, KEY_BACK)
57		MATRIX_KEY(5, 4, KEY_MENU)
58		>;
59	keypad,num-rows = <6>;
60	keypad,num-columns = <5>;
61};
62
63/* eMMC */
64&sdcc1 {
65	vmmc-supply = <&vsdcc_fixed>;
66	status = "okay";
67};
68
69/* External micro SD card */
70&sdcc3 {
71	vmmc-supply = <&vsdcc_fixed>;
72	status = "okay";
73};
74