xref: /freebsd/sys/contrib/device-tree/src/arm/qcom/qcom-msm8660-surf.dts (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
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 {
38	keypad@148 {
39		linux,keymap = <
40			MATRIX_KEY(0, 0, KEY_FN_F1)
41			MATRIX_KEY(0, 1, KEY_UP)
42			MATRIX_KEY(0, 2, KEY_LEFT)
43			MATRIX_KEY(0, 3, KEY_VOLUMEUP)
44			MATRIX_KEY(1, 0, KEY_FN_F2)
45			MATRIX_KEY(1, 1, KEY_RIGHT)
46			MATRIX_KEY(1, 2, KEY_DOWN)
47			MATRIX_KEY(1, 3, KEY_VOLUMEDOWN)
48			MATRIX_KEY(2, 3, KEY_ENTER)
49			MATRIX_KEY(4, 0, KEY_CAMERA_FOCUS)
50			MATRIX_KEY(4, 1, KEY_UP)
51			MATRIX_KEY(4, 2, KEY_LEFT)
52			MATRIX_KEY(4, 3, KEY_HOME)
53			MATRIX_KEY(4, 4, KEY_FN_F3)
54			MATRIX_KEY(5, 0, KEY_CAMERA)
55			MATRIX_KEY(5, 1, KEY_RIGHT)
56			MATRIX_KEY(5, 2, KEY_DOWN)
57			MATRIX_KEY(5, 3, KEY_BACK)
58			MATRIX_KEY(5, 4, KEY_MENU)
59			>;
60		keypad,num-rows = <6>;
61		keypad,num-columns = <5>;
62	};
63};
64
65/* eMMC */
66&sdcc1 {
67	vmmc-supply = <&vsdcc_fixed>;
68	status = "okay";
69};
70
71/* External micro SD card */
72&sdcc3 {
73	vmmc-supply = <&vsdcc_fixed>;
74	status = "okay";
75};
76