|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
| 2 | + |
| 3 | +/dts-v1/; |
| 4 | + |
| 5 | +#include "msm8916-pm8916.dtsi" |
| 6 | +#include <dt-bindings/gpio/gpio.h> |
| 7 | + |
| 8 | +/ { |
| 9 | + model = "ARK Benefit A3"; |
| 10 | + compatible = "ark,peach", "qcom,msm8916"; |
| 11 | + chassis-type = "handset"; |
| 12 | + |
| 13 | + aliases { |
| 14 | + serial0 = &blsp1_uart2; |
| 15 | + }; |
| 16 | + |
| 17 | + chosen { |
| 18 | + stdout-path = "serial0"; |
| 19 | + }; |
| 20 | + |
| 21 | + gpio-keys { |
| 22 | + compatible = "gpio-keys"; |
| 23 | + |
| 24 | + pinctrl-names = "default"; |
| 25 | + pinctrl-0 = <&gpio_keys_default>; |
| 26 | + |
| 27 | + label = "GPIO Buttons"; |
| 28 | + |
| 29 | + volume-up { |
| 30 | + label = "Volume Up"; |
| 31 | + gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>; |
| 32 | + linux,code = <KEY_VOLUMEUP>; |
| 33 | + }; |
| 34 | + |
| 35 | + volume-down { |
| 36 | + label = "Volume Down"; |
| 37 | + gpios = <&msmgpio 108 GPIO_ACTIVE_LOW>; |
| 38 | + linux,code = <KEY_VOLUMEDOWN>; |
| 39 | + }; |
| 40 | + }; |
| 41 | +}; |
| 42 | + |
| 43 | +&blsp1_uart2 { |
| 44 | + status = "okay"; |
| 45 | +}; |
| 46 | + |
| 47 | +&pm8916_usbin { |
| 48 | + status = "okay"; |
| 49 | +}; |
| 50 | + |
| 51 | +&pronto { |
| 52 | + status = "okay"; |
| 53 | +}; |
| 54 | + |
| 55 | +&sdhc_1 { |
| 56 | + status = "okay"; |
| 57 | + |
| 58 | + pinctrl-names = "default", "sleep"; |
| 59 | + pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>; |
| 60 | + pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>; |
| 61 | +}; |
| 62 | + |
| 63 | +&sdhc_2 { |
| 64 | + status = "okay"; |
| 65 | + |
| 66 | + pinctrl-names = "default", "sleep"; |
| 67 | + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>; |
| 68 | + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>; |
| 69 | + |
| 70 | + non-removable; |
| 71 | +}; |
| 72 | + |
| 73 | +&usb { |
| 74 | + status = "okay"; |
| 75 | + extcon = <&pm8916_usbin>; |
| 76 | + dr_mode = "peripheral"; |
| 77 | +}; |
| 78 | + |
| 79 | +&usb_hs_phy { |
| 80 | + extcon = <&pm8916_usbin>; |
| 81 | +}; |
| 82 | + |
| 83 | +&smd_rpm_regulators { |
| 84 | + vdd_l1_l2_l3-supply = <&pm8916_s3>; |
| 85 | + vdd_l4_l5_l6-supply = <&pm8916_s4>; |
| 86 | + vdd_l7-supply = <&pm8916_s4>; |
| 87 | + |
| 88 | + s3 { |
| 89 | + regulator-min-microvolt = <1200000>; |
| 90 | + regulator-max-microvolt = <1300000>; |
| 91 | + }; |
| 92 | + |
| 93 | + s4 { |
| 94 | + regulator-min-microvolt = <1800000>; |
| 95 | + regulator-max-microvolt = <2100000>; |
| 96 | + }; |
| 97 | + |
| 98 | + l1 { |
| 99 | + regulator-min-microvolt = <1225000>; |
| 100 | + regulator-max-microvolt = <1225000>; |
| 101 | + }; |
| 102 | + |
| 103 | + l2 { |
| 104 | + regulator-min-microvolt = <1200000>; |
| 105 | + regulator-max-microvolt = <1200000>; |
| 106 | + }; |
| 107 | + |
| 108 | + l4 { |
| 109 | + regulator-min-microvolt = <2050000>; |
| 110 | + regulator-max-microvolt = <2050000>; |
| 111 | + }; |
| 112 | + |
| 113 | + l5 { |
| 114 | + regulator-min-microvolt = <1800000>; |
| 115 | + regulator-max-microvolt = <1800000>; |
| 116 | + }; |
| 117 | + |
| 118 | + l6 { |
| 119 | + regulator-min-microvolt = <1800000>; |
| 120 | + regulator-max-microvolt = <1800000>; |
| 121 | + }; |
| 122 | + |
| 123 | + l7 { |
| 124 | + regulator-min-microvolt = <1800000>; |
| 125 | + regulator-max-microvolt = <1800000>; |
| 126 | + }; |
| 127 | + |
| 128 | + l8 { |
| 129 | + regulator-min-microvolt = <2850000>; |
| 130 | + regulator-max-microvolt = <2900000>; |
| 131 | + }; |
| 132 | + |
| 133 | + l9 { |
| 134 | + regulator-min-microvolt = <3300000>; |
| 135 | + regulator-max-microvolt = <3300000>; |
| 136 | + }; |
| 137 | + |
| 138 | + l10 { |
| 139 | + regulator-min-microvolt = <2700000>; |
| 140 | + regulator-max-microvolt = <2800000>; |
| 141 | + }; |
| 142 | + |
| 143 | + l11 { |
| 144 | + regulator-min-microvolt = <1800000>; |
| 145 | + regulator-max-microvolt = <2950000>; |
| 146 | + regulator-allow-set-load; |
| 147 | + regulator-system-load = <200000>; |
| 148 | + }; |
| 149 | + |
| 150 | + l12 { |
| 151 | + regulator-min-microvolt = <1800000>; |
| 152 | + regulator-max-microvolt = <2950000>; |
| 153 | + }; |
| 154 | + |
| 155 | + l13 { |
| 156 | + regulator-min-microvolt = <3075000>; |
| 157 | + regulator-max-microvolt = <3075000>; |
| 158 | + }; |
| 159 | + |
| 160 | + l14 { |
| 161 | + regulator-min-microvolt = <1800000>; |
| 162 | + regulator-max-microvolt = <3300000>; |
| 163 | + }; |
| 164 | + |
| 165 | + l15 { |
| 166 | + regulator-min-microvolt = <1800000>; |
| 167 | + regulator-max-microvolt = <3300000>; |
| 168 | + }; |
| 169 | + |
| 170 | + l16 { |
| 171 | + regulator-min-microvolt = <1800000>; |
| 172 | + regulator-max-microvolt = <3300000>; |
| 173 | + }; |
| 174 | + |
| 175 | + l17 { |
| 176 | + regulator-min-microvolt = <2850000>; |
| 177 | + regulator-max-microvolt = <2850000>; |
| 178 | + }; |
| 179 | + |
| 180 | + l18 { |
| 181 | + regulator-min-microvolt = <2700000>; |
| 182 | + regulator-max-microvolt = <2700000>; |
| 183 | + }; |
| 184 | +}; |
| 185 | + |
| 186 | +&msmgpio { |
| 187 | + gpio_keys_default: gpio-keys-default { |
| 188 | + pins = "gpio107", "gpio108"; |
| 189 | + function = "gpio"; |
| 190 | + |
| 191 | + drive-strength = <2>; |
| 192 | + bias-pull-up; |
| 193 | + }; |
| 194 | +}; |
0 commit comments