1// SPDX-License-Identifier: GPL-2.0-only 2 3#include "msm8916-pm8916.dtsi" 4 5#include <dt-bindings/gpio/gpio.h> 6#include <dt-bindings/leds/common.h> 7 8/ { 9 chassis-type = "embedded"; 10 11 aliases { 12 serial0 = &blsp1_uart2; 13 }; 14 15 chosen { 16 stdout-path = "serial0"; 17 }; 18 19 reserved-memory { 20 mpss_mem: mpss@86800000 { 21 reg = <0x0 0x86800000 0x0 0x5500000>; 22 no-map; 23 }; 24 25 gps_mem: gps@8bd00000 { 26 reg = <0x0 0x8bd00000 0x0 0x200000>; 27 no-map; 28 }; 29 }; 30 31 gpio-keys { 32 compatible = "gpio-keys"; 33 34 pinctrl-0 = <&button_default>; 35 pinctrl-names = "default"; 36 37 label = "GPIO Buttons"; 38 39 /* GPIO is board-specific */ 40 button_restart: button-restart { 41 label = "Restart"; 42 linux,code = <KEY_RESTART>; 43 }; 44 }; 45 46 leds { 47 compatible = "gpio-leds"; 48 49 pinctrl-0 = <&gpio_leds_default>; 50 pinctrl-names = "default"; 51 52 /* 53 * GPIOs are board-specific. 54 * Functions and default-states defined here are fallbacks. 55 * Feel free to override them if your board is different. 56 */ 57 led_r: led-r { 58 color = <LED_COLOR_ID_RED>; 59 default-state = "on"; 60 function = LED_FUNCTION_POWER; 61 }; 62 63 led_g: led-g { 64 color = <LED_COLOR_ID_GREEN>; 65 default-state = "off"; 66 function = LED_FUNCTION_WLAN; 67 }; 68 69 led_b: led-b { 70 color = <LED_COLOR_ID_BLUE>; 71 default-state = "off"; 72 function = LED_FUNCTION_WAN; 73 }; 74 }; 75}; 76 77&bam_dmux { 78 status = "okay"; 79}; 80 81&bam_dmux_dma { 82 status = "okay"; 83}; 84 85&blsp1_uart2 { 86 status = "okay"; 87}; 88 89/* Remove &dsi_phy0 from clocks to make sure that gcc probes with display disabled */ 90&gcc { 91 clocks = <&xo_board>, <&sleep_clk>, <0>, <0>, <0>, <0>, <0>; 92}; 93 94&mpss { 95 status = "okay"; 96}; 97 98&pm8916_usbin { 99 status = "okay"; 100}; 101 102&pronto { 103 status = "okay"; 104}; 105 106&sdhc_1 { 107 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>; 108 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>; 109 pinctrl-names = "default", "sleep"; 110 111 status = "okay"; 112}; 113 114&usb { 115 extcon = <&pm8916_usbin>; 116 dr_mode = "peripheral"; 117 118 status = "okay"; 119}; 120 121&usb_hs_phy { 122 extcon = <&pm8916_usbin>; 123}; 124 125&smd_rpm_regulators { 126 vdd_l1_l2_l3-supply = <&pm8916_s3>; 127 vdd_l4_l5_l6-supply = <&pm8916_s4>; 128 vdd_l7-supply = <&pm8916_s4>; 129 130 s3 { 131 regulator-min-microvolt = <1200000>; 132 regulator-max-microvolt = <1300000>; 133 }; 134 135 s4 { 136 regulator-min-microvolt = <1800000>; 137 regulator-max-microvolt = <2100000>; 138 }; 139 140 l1 { 141 regulator-min-microvolt = <1225000>; 142 regulator-max-microvolt = <1225000>; 143 }; 144 145 l2 { 146 regulator-min-microvolt = <1200000>; 147 regulator-max-microvolt = <1200000>; 148 }; 149 150 l4 { 151 regulator-min-microvolt = <2050000>; 152 regulator-max-microvolt = <2050000>; 153 }; 154 155 l5 { 156 regulator-min-microvolt = <1800000>; 157 regulator-max-microvolt = <1800000>; 158 }; 159 160 l6 { 161 regulator-min-microvolt = <1800000>; 162 regulator-max-microvolt = <1800000>; 163 }; 164 165 l7 { 166 regulator-min-microvolt = <1800000>; 167 regulator-max-microvolt = <1800000>; 168 }; 169 170 l8 { 171 regulator-min-microvolt = <2850000>; 172 regulator-max-microvolt = <2900000>; 173 }; 174 175 l9 { 176 regulator-min-microvolt = <3300000>; 177 regulator-max-microvolt = <3300000>; 178 }; 179 180 l10 { 181 regulator-min-microvolt = <2700000>; 182 regulator-max-microvolt = <2800000>; 183 }; 184 185 l11 { 186 regulator-min-microvolt = <1800000>; 187 regulator-max-microvolt = <2950000>; 188 regulator-system-load = <200000>; 189 regulator-allow-set-load; 190 }; 191 192 l12 { 193 regulator-min-microvolt = <1800000>; 194 regulator-max-microvolt = <2950000>; 195 }; 196 197 l13 { 198 regulator-min-microvolt = <3075000>; 199 regulator-max-microvolt = <3075000>; 200 }; 201 202 l14 { 203 regulator-min-microvolt = <1800000>; 204 regulator-max-microvolt = <3300000>; 205 }; 206 207 l15 { 208 regulator-min-microvolt = <1800000>; 209 regulator-max-microvolt = <3300000>; 210 }; 211 212 l16 { 213 regulator-min-microvolt = <1800000>; 214 regulator-max-microvolt = <3300000>; 215 }; 216 217 l17 { 218 regulator-min-microvolt = <2850000>; 219 regulator-max-microvolt = <2850000>; 220 }; 221 222 l18 { 223 regulator-min-microvolt = <2700000>; 224 regulator-max-microvolt = <2700000>; 225 }; 226}; 227 228&msmgpio { 229 /* pins are board-specific */ 230 button_default: button-default-state { 231 function = "gpio"; 232 drive-strength = <2>; 233 }; 234 235 gpio_leds_default: gpio-leds-default-state { 236 function = "gpio"; 237 drive-strength = <2>; 238 bias-disable; 239 }; 240}; 241