|
20 | 20 | model = "Samsung Galaxy Ace 4 (SM-G357FZ)";
|
21 | 21 | compatible = "samsung,heatqlte", "qcom,msm8916";
|
22 | 22 | chassis-type = "handset";
|
| 23 | + |
| 24 | + i2c-touchkey { |
| 25 | + compatible = "i2c-gpio"; |
| 26 | + sda-gpios = <&tlmm 8 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; |
| 27 | + scl-gpios = <&tlmm 10 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; |
| 28 | + |
| 29 | + pinctrl-0 = <&touchkey_i2c_default>; |
| 30 | + pinctrl-names = "default"; |
| 31 | + |
| 32 | + #address-cells = <1>; |
| 33 | + #size-cells = <0>; |
| 34 | + |
| 35 | + touchkey@20 { |
| 36 | + compatible = "cypress,tm2-touchkey"; |
| 37 | + reg = <0x20>; |
| 38 | + |
| 39 | + interrupts-extended = <&tlmm 9 IRQ_TYPE_EDGE_RISING>; |
| 40 | + |
| 41 | + vcc-supply = <®_vcc_touchkey>; |
| 42 | + vdd-supply = <®_vdd_touchkey_led>; |
| 43 | + |
| 44 | + pinctrl-0 = <&touchkey_int_default>; |
| 45 | + pinctrl-names = "default"; |
| 46 | + |
| 47 | + linux,keycodes = <KEY_APPSELECT KEY_BACK>; |
| 48 | + }; |
| 49 | + }; |
| 50 | + |
| 51 | + reg_vcc_touchkey: regulator-vcc-touchkey { |
| 52 | + compatible = "regulator-fixed"; |
| 53 | + regulator-name = "vcc_touchkey"; |
| 54 | + regulator-min-microvolt = <1800000>; |
| 55 | + regulator-max-microvolt = <1800000>; |
| 56 | + |
| 57 | + gpio = <&tlmm 11 GPIO_ACTIVE_HIGH>; |
| 58 | + enable-active-high; |
| 59 | + |
| 60 | + pinctrl-0 = <&vdd_touchkey_default>; |
| 61 | + pinctrl-names = "default"; |
| 62 | + }; |
| 63 | + |
| 64 | + reg_vdd_touchkey_led: regulator-vdd-touchkey-led { |
| 65 | + compatible = "regulator-fixed"; |
| 66 | + regulator-name = "vdd_touchkey_led"; |
| 67 | + regulator-min-microvolt = <3300000>; |
| 68 | + regulator-max-microvolt = <3300000>; |
| 69 | + |
| 70 | + gpio = <&tlmm 60 GPIO_ACTIVE_HIGH>; |
| 71 | + enable-active-high; |
| 72 | + |
| 73 | + pinctrl-0 = <&vdd_touchkey_led_default>; |
| 74 | + pinctrl-names = "default"; |
| 75 | + }; |
23 | 76 | };
|
24 | 77 |
|
25 | 78 | &battery {
|
|
35 | 88 | &panel {
|
36 | 89 | compatible = "samsung,s6288a0";
|
37 | 90 | };
|
| 91 | + |
| 92 | +&tlmm { |
| 93 | + touchkey_i2c_default: touchkey-i2c-default-state { |
| 94 | + pins = "gpio8", "gpio10"; |
| 95 | + function = "gpio"; |
| 96 | + drive-strength = <2>; |
| 97 | + bias-disable; |
| 98 | + }; |
| 99 | + |
| 100 | + touchkey_int_default: touchkey-int-default-state { |
| 101 | + pins = "gpio9"; |
| 102 | + function = "gpio"; |
| 103 | + drive-strength = <2>; |
| 104 | + bias-disable; |
| 105 | + }; |
| 106 | + |
| 107 | + vdd_touchkey_default: vdd-touchkey-default-state { |
| 108 | + pins = "gpio11"; |
| 109 | + function = "gpio"; |
| 110 | + drive-strength = <2>; |
| 111 | + bias-disable; |
| 112 | + }; |
| 113 | + |
| 114 | + vdd_touchkey_led_default: vdd-touchkey-led-default-state { |
| 115 | + pins = "gpio60"; |
| 116 | + function = "gpio"; |
| 117 | + drive-strength = <2>; |
| 118 | + bias-disable; |
| 119 | + }; |
| 120 | +}; |
0 commit comments