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 mmc0 = &sdhc_1; /* eMMC */ 13 serial0 = &blsp_uart2; 14 }; 15 16 chosen { 17 stdout-path = "serial0"; 18 }; 19 20 gpio-keys { 21 compatible = "gpio-keys"; 22 23 pinctrl-0 = <&button_default>; 24 pinctrl-names = "default"; 25 26 label = "GPIO Buttons"; 27 28 /* GPIO is board-specific */ 29 button_restart: button-restart { 30 label = "Restart"; 31 linux,code = <KEY_RESTART>; 32 }; 33 }; 34 35 leds { 36 compatible = "gpio-leds"; 37 38 pinctrl-0 = <&gpio_leds_default>; 39 pinctrl-names = "default"; 40 41 /* 42 * GPIOs are board-specific. 43 * Functions and default-states defined here are fallbacks. 44 * Feel free to override them if your board is different. 45 */ 46 led_r: led-r { 47 color = <LED_COLOR_ID_RED>; 48 default-state = "on"; 49 function = LED_FUNCTION_POWER; 50 }; 51 52 led_g: led-g { 53 color = <LED_COLOR_ID_GREEN>; 54 default-state = "off"; 55 function = LED_FUNCTION_WLAN; 56 }; 57 58 led_b: led-b { 59 color = <LED_COLOR_ID_BLUE>; 60 default-state = "off"; 61 function = LED_FUNCTION_WAN; 62 }; 63 }; 64}; 65 66&bam_dmux { 67 status = "okay"; 68}; 69 70&bam_dmux_dma { 71 status = "okay"; 72}; 73 74&blsp_uart2 { 75 pinctrl-0 = <&blsp_uart2_console_default>; 76 pinctrl-1 = <&blsp_uart2_console_sleep>; 77 pinctrl-names = "default", "sleep"; 78 status = "okay"; 79}; 80 81/* Remove &mdss_dsi0_phy from clocks to make sure that gcc probes with display disabled */ 82&gcc { 83 clocks = <&xo_board>, <&sleep_clk>, <0>, <0>, <0>, <0>, <0>; 84}; 85 86&mba_mem { 87 status = "okay"; 88}; 89 90&mpss { 91 status = "okay"; 92}; 93 94&mpss_mem { 95 reg = <0x0 0x86800000 0x0 0x5500000>; 96 status = "okay"; 97}; 98 99&pm8916_usbin { 100 status = "okay"; 101}; 102 103&sdhc_1 { 104 status = "okay"; 105}; 106 107&usb { 108 extcon = <&pm8916_usbin>; 109 usb-role-switch; 110 111 status = "okay"; 112}; 113 114&usb_hs_phy { 115 extcon = <&pm8916_usbin>; 116}; 117 118&venus { 119 status = "okay"; 120}; 121 122&venus_mem { 123 status = "okay"; 124}; 125 126&wcnss { 127 status = "okay"; 128}; 129 130&wcnss_iris { 131 compatible = "qcom,wcn3620"; 132}; 133 134&wcnss_mem { 135 status = "okay"; 136}; 137 138&tlmm { 139 /* pins are board-specific */ 140 button_default: button-default-state { 141 function = "gpio"; 142 drive-strength = <2>; 143 }; 144 145 gpio_leds_default: gpio-leds-default-state { 146 function = "gpio"; 147 drive-strength = <2>; 148 bias-disable; 149 }; 150}; 151