GNU Linux-libre 6.1.90-gnu
[releases.git] / arch / arm64 / boot / dts / qcom / msm8916-samsung-grandmax.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 /dts-v1/;
4
5 #include "msm8916-samsung-e2015-common.dtsi"
6 #include <dt-bindings/leds/common.h>
7
8 /*
9  * NOTE: The original firmware from Samsung can only boot ARM32 kernels on some
10  * variants.
11  * Unfortunately, the firmware is signed and cannot be replaced easily.
12  * There seems to be no way to boot ARM64 kernels on 32-bit devices at the
13  * moment, even though the hardware would support it.
14  *
15  * However, it is possible to use this device tree by compiling an ARM32 kernel
16  * instead. For clarity and build testing this device tree is maintained next
17  * to the other MSM8916 device trees. However, it is actually used through
18  * arch/arm/boot/dts/qcom-msm8916-samsung-grandmax.dts
19  */
20
21 / {
22         model = "Samsung Galaxy Grand Max";
23         compatible = "samsung,grandmax", "qcom,msm8916";
24         chassis-type = "handset";
25
26         /delete-node/ gpio-hall-sensor;
27         /delete-node/ i2c-nfc;
28         /delete-node/ i2c-tkey;
29
30         gpio-leds {
31                 compatible = "gpio-leds";
32                 keyled {
33                         gpios = <&msmgpio 60 GPIO_ACTIVE_HIGH>;
34                         pinctrl-names = "default";
35                         pinctrl-0 = <&gpio_leds_default>;
36                 };
37         };
38 };
39
40 &reg_motor_vdd {
41         gpio = <&msmgpio 72 GPIO_ACTIVE_HIGH>;
42 };
43
44 &reg_touch_key {
45         status = "disabled";
46 };
47
48 &msmgpio {
49         gpio_leds_default: gpio-led-default {
50                 pins = "gpio60";
51                 function = "gpio";
52
53                 drive-strength = <2>;
54                 bias-disable;
55         };
56 };
57
58 &motor_en_default {
59         pins = "gpio72";
60 };