xref: /linux/scripts/dtc/include-prefixes/arm/qcom/qcom-msm8660-surf.dts (revision 06d07429858317ded2db7986113a9e0129cd599b)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring#include <dt-bindings/input/input.h>
3724ba675SRob Herring
4724ba675SRob Herring#include "qcom-msm8660.dtsi"
5b00c86c2SDmitry Baryshkov#include "pm8058.dtsi"
6724ba675SRob Herring
7724ba675SRob Herring/ {
8724ba675SRob Herring	model = "Qualcomm MSM8660 SURF";
9724ba675SRob Herring	compatible = "qcom,msm8660-surf", "qcom,msm8660";
10724ba675SRob Herring
11724ba675SRob Herring	aliases {
12724ba675SRob Herring		serial0 = &gsbi12_serial;
13724ba675SRob Herring	};
14724ba675SRob Herring
15724ba675SRob Herring	chosen {
16724ba675SRob Herring		stdout-path = "serial0:115200n8";
17724ba675SRob Herring	};
18724ba675SRob Herring
19724ba675SRob Herring	/* Temporary fixed regulator */
20724ba675SRob Herring	vsdcc_fixed: vsdcc-regulator {
21724ba675SRob Herring		compatible = "regulator-fixed";
22724ba675SRob Herring		regulator-name = "SDCC Power";
23724ba675SRob Herring		regulator-min-microvolt = <2700000>;
24724ba675SRob Herring		regulator-max-microvolt = <2700000>;
25724ba675SRob Herring		regulator-always-on;
26724ba675SRob Herring	};
27724ba675SRob Herring};
28724ba675SRob Herring
29724ba675SRob Herring&gsbi12 {
30724ba675SRob Herring	qcom,mode = <GSBI_PROT_I2C_UART>;
31724ba675SRob Herring	status = "okay";
32724ba675SRob Herring};
33724ba675SRob Herring
34724ba675SRob Herring&gsbi12_serial {
35724ba675SRob Herring	status = "okay";
36724ba675SRob Herring};
37724ba675SRob Herring
3841cdee8aSDmitry Baryshkov&pm8058 {
3941cdee8aSDmitry Baryshkov	interrupts-extended = <&tlmm 88 IRQ_TYPE_LEVEL_LOW>;
4041cdee8aSDmitry Baryshkov};
4141cdee8aSDmitry Baryshkov
42a26d147fSDmitry Baryshkov&pm8058_keypad {
43724ba675SRob Herring	linux,keymap = <
44724ba675SRob Herring		MATRIX_KEY(0, 0, KEY_FN_F1)
45724ba675SRob Herring		MATRIX_KEY(0, 1, KEY_UP)
46724ba675SRob Herring		MATRIX_KEY(0, 2, KEY_LEFT)
47724ba675SRob Herring		MATRIX_KEY(0, 3, KEY_VOLUMEUP)
48724ba675SRob Herring		MATRIX_KEY(1, 0, KEY_FN_F2)
49724ba675SRob Herring		MATRIX_KEY(1, 1, KEY_RIGHT)
50724ba675SRob Herring		MATRIX_KEY(1, 2, KEY_DOWN)
51724ba675SRob Herring		MATRIX_KEY(1, 3, KEY_VOLUMEDOWN)
52724ba675SRob Herring		MATRIX_KEY(2, 3, KEY_ENTER)
53724ba675SRob Herring		MATRIX_KEY(4, 0, KEY_CAMERA_FOCUS)
54724ba675SRob Herring		MATRIX_KEY(4, 1, KEY_UP)
55724ba675SRob Herring		MATRIX_KEY(4, 2, KEY_LEFT)
56724ba675SRob Herring		MATRIX_KEY(4, 3, KEY_HOME)
57724ba675SRob Herring		MATRIX_KEY(4, 4, KEY_FN_F3)
58724ba675SRob Herring		MATRIX_KEY(5, 0, KEY_CAMERA)
59724ba675SRob Herring		MATRIX_KEY(5, 1, KEY_RIGHT)
60724ba675SRob Herring		MATRIX_KEY(5, 2, KEY_DOWN)
61724ba675SRob Herring		MATRIX_KEY(5, 3, KEY_BACK)
62724ba675SRob Herring		MATRIX_KEY(5, 4, KEY_MENU)
63724ba675SRob Herring		>;
64724ba675SRob Herring	keypad,num-rows = <6>;
65724ba675SRob Herring	keypad,num-columns = <5>;
66724ba675SRob Herring};
67724ba675SRob Herring
68*203cc864SDmitry Baryshkov&rpm {
69*203cc864SDmitry Baryshkov	regulators-0 {
70*203cc864SDmitry Baryshkov		compatible = "qcom,rpm-pm8901-regulators";
71*203cc864SDmitry Baryshkov	};
72*203cc864SDmitry Baryshkov
73*203cc864SDmitry Baryshkov	regulators-1 {
74*203cc864SDmitry Baryshkov		compatible = "qcom,rpm-pm8058-regulators";
75*203cc864SDmitry Baryshkov	};
76*203cc864SDmitry Baryshkov};
77*203cc864SDmitry Baryshkov
78724ba675SRob Herring/* eMMC */
79724ba675SRob Herring&sdcc1 {
80724ba675SRob Herring	vmmc-supply = <&vsdcc_fixed>;
81724ba675SRob Herring	status = "okay";
82724ba675SRob Herring};
83724ba675SRob Herring
84724ba675SRob Herring/* External micro SD card */
85724ba675SRob Herring&sdcc3 {
86724ba675SRob Herring	vmmc-supply = <&vsdcc_fixed>;
87724ba675SRob Herring	status = "okay";
88724ba675SRob Herring};
89