Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | status = "okay"; |
| 76 | }; |
| 77 | |
| 78 | /* Remove &mdss_dsi0_phy from clocks to make sure that gcc probes with display disabled */ |
| 79 | &gcc { |
| 80 | clocks = <&xo_board>, <&sleep_clk>, <0>, <0>, <0>, <0>, <0>; |
| 81 | }; |
| 82 | |
| 83 | &mba_mem { |
| 84 | status = "okay"; |
| 85 | }; |
| 86 | |
| 87 | &mpss { |
| 88 | status = "okay"; |
| 89 | }; |
| 90 | |
| 91 | &mpss_mem { |
| 92 | reg = <0x0 0x86800000 0x0 0x5500000>; |
| 93 | status = "okay"; |
| 94 | }; |
| 95 | |
| 96 | &pm8916_usbin { |
| 97 | status = "okay"; |
| 98 | }; |
| 99 | |
| 100 | &sdhc_1 { |
| 101 | status = "okay"; |
| 102 | }; |
| 103 | |
| 104 | &usb { |
| 105 | extcon = <&pm8916_usbin>; |
| 106 | usb-role-switch; |
| 107 | |
| 108 | status = "okay"; |
| 109 | }; |
| 110 | |
| 111 | &usb_hs_phy { |
| 112 | extcon = <&pm8916_usbin>; |
| 113 | }; |
| 114 | |
| 115 | &venus { |
| 116 | status = "okay"; |
| 117 | }; |
| 118 | |
| 119 | &venus_mem { |
| 120 | status = "okay"; |
| 121 | }; |
| 122 | |
| 123 | &wcnss { |
| 124 | status = "okay"; |
| 125 | }; |
| 126 | |
| 127 | &wcnss_iris { |
| 128 | compatible = "qcom,wcn3620"; |
| 129 | }; |
| 130 | |
| 131 | &wcnss_mem { |
| 132 | status = "okay"; |
| 133 | }; |
| 134 | |
| 135 | &tlmm { |
| 136 | /* pins are board-specific */ |
| 137 | button_default: button-default-state { |
| 138 | function = "gpio"; |
| 139 | drive-strength = <2>; |
| 140 | }; |
| 141 | |
| 142 | gpio_leds_default: gpio-leds-default-state { |
| 143 | function = "gpio"; |
| 144 | drive-strength = <2>; |
| 145 | bias-disable; |
| 146 | }; |
| 147 | }; |