1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/input/input.h> 2 #include <dt-bindings/input/input.h> 3 3 4 #include "qcom-msm8660.dtsi" 4 #include "qcom-msm8660.dtsi" 5 #include "pm8058.dtsi" 5 #include "pm8058.dtsi" 6 6 7 / { 7 / { 8 model = "Qualcomm MSM8660 SURF"; 8 model = "Qualcomm MSM8660 SURF"; 9 compatible = "qcom,msm8660-surf", "qco 9 compatible = "qcom,msm8660-surf", "qcom,msm8660"; 10 10 11 aliases { 11 aliases { 12 serial0 = &gsbi12_serial; 12 serial0 = &gsbi12_serial; 13 }; 13 }; 14 14 15 chosen { 15 chosen { 16 stdout-path = "serial0:115200n 16 stdout-path = "serial0:115200n8"; 17 }; 17 }; 18 18 19 /* Temporary fixed regulator */ 19 /* Temporary fixed regulator */ 20 vsdcc_fixed: vsdcc-regulator { 20 vsdcc_fixed: vsdcc-regulator { 21 compatible = "regulator-fixed" 21 compatible = "regulator-fixed"; 22 regulator-name = "SDCC Power"; 22 regulator-name = "SDCC Power"; 23 regulator-min-microvolt = <270 23 regulator-min-microvolt = <2700000>; 24 regulator-max-microvolt = <270 24 regulator-max-microvolt = <2700000>; 25 regulator-always-on; 25 regulator-always-on; 26 }; 26 }; 27 }; 27 }; 28 28 29 &gsbi12 { 29 &gsbi12 { 30 qcom,mode = <GSBI_PROT_I2C_UART>; 30 qcom,mode = <GSBI_PROT_I2C_UART>; 31 status = "okay"; 31 status = "okay"; 32 }; 32 }; 33 33 34 &gsbi12_serial { 34 &gsbi12_serial { 35 status = "okay"; 35 status = "okay"; 36 }; 36 }; 37 37 38 &pm8058 { 38 &pm8058 { 39 interrupts-extended = <&tlmm 88 IRQ_TY 39 interrupts-extended = <&tlmm 88 IRQ_TYPE_LEVEL_LOW>; 40 }; 40 }; 41 41 42 &pm8058_keypad { 42 &pm8058_keypad { 43 linux,keymap = < 43 linux,keymap = < 44 MATRIX_KEY(0, 0, KEY_FN_F1) 44 MATRIX_KEY(0, 0, KEY_FN_F1) 45 MATRIX_KEY(0, 1, KEY_UP) 45 MATRIX_KEY(0, 1, KEY_UP) 46 MATRIX_KEY(0, 2, KEY_LEFT) 46 MATRIX_KEY(0, 2, KEY_LEFT) 47 MATRIX_KEY(0, 3, KEY_VOLUMEUP) 47 MATRIX_KEY(0, 3, KEY_VOLUMEUP) 48 MATRIX_KEY(1, 0, KEY_FN_F2) 48 MATRIX_KEY(1, 0, KEY_FN_F2) 49 MATRIX_KEY(1, 1, KEY_RIGHT) 49 MATRIX_KEY(1, 1, KEY_RIGHT) 50 MATRIX_KEY(1, 2, KEY_DOWN) 50 MATRIX_KEY(1, 2, KEY_DOWN) 51 MATRIX_KEY(1, 3, KEY_VOLUMEDOW 51 MATRIX_KEY(1, 3, KEY_VOLUMEDOWN) 52 MATRIX_KEY(2, 3, KEY_ENTER) 52 MATRIX_KEY(2, 3, KEY_ENTER) 53 MATRIX_KEY(4, 0, KEY_CAMERA_FO 53 MATRIX_KEY(4, 0, KEY_CAMERA_FOCUS) 54 MATRIX_KEY(4, 1, KEY_UP) 54 MATRIX_KEY(4, 1, KEY_UP) 55 MATRIX_KEY(4, 2, KEY_LEFT) 55 MATRIX_KEY(4, 2, KEY_LEFT) 56 MATRIX_KEY(4, 3, KEY_HOME) 56 MATRIX_KEY(4, 3, KEY_HOME) 57 MATRIX_KEY(4, 4, KEY_FN_F3) 57 MATRIX_KEY(4, 4, KEY_FN_F3) 58 MATRIX_KEY(5, 0, KEY_CAMERA) 58 MATRIX_KEY(5, 0, KEY_CAMERA) 59 MATRIX_KEY(5, 1, KEY_RIGHT) 59 MATRIX_KEY(5, 1, KEY_RIGHT) 60 MATRIX_KEY(5, 2, KEY_DOWN) 60 MATRIX_KEY(5, 2, KEY_DOWN) 61 MATRIX_KEY(5, 3, KEY_BACK) 61 MATRIX_KEY(5, 3, KEY_BACK) 62 MATRIX_KEY(5, 4, KEY_MENU) 62 MATRIX_KEY(5, 4, KEY_MENU) 63 >; 63 >; 64 keypad,num-rows = <6>; 64 keypad,num-rows = <6>; 65 keypad,num-columns = <5>; 65 keypad,num-columns = <5>; 66 }; 66 }; 67 67 68 &rpm { 68 &rpm { 69 regulators-0 { 69 regulators-0 { 70 compatible = "qcom,rpm-pm8901- 70 compatible = "qcom,rpm-pm8901-regulators"; 71 }; 71 }; 72 72 73 regulators-1 { 73 regulators-1 { 74 compatible = "qcom,rpm-pm8058- 74 compatible = "qcom,rpm-pm8058-regulators"; 75 }; 75 }; 76 }; 76 }; 77 77 78 /* eMMC */ 78 /* eMMC */ 79 &sdcc1 { 79 &sdcc1 { 80 vmmc-supply = <&vsdcc_fixed>; 80 vmmc-supply = <&vsdcc_fixed>; 81 status = "okay"; 81 status = "okay"; 82 }; 82 }; 83 83 84 /* External micro SD card */ 84 /* External micro SD card */ 85 &sdcc3 { 85 &sdcc3 { 86 vmmc-supply = <&vsdcc_fixed>; 86 vmmc-supply = <&vsdcc_fixed>; 87 status = "okay"; 87 status = "okay"; 88 }; 88 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.