]> git.ipfire.org Git - thirdparty/u-boot.git/blob - src/arm64/qcom/ipq9574-rdp-common.dtsi
Squashed 'dts/upstream/' changes from aaba2d45dc2a..b35b9bd1d4ee
[thirdparty/u-boot.git] / src / arm64 / qcom / ipq9574-rdp-common.dtsi
1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2 /*
3 * IPQ9574 RDP board common device tree source
4 *
5 * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
6 * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
7 */
8
9 /dts-v1/;
10
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/leds/common.h>
14 #include "ipq9574.dtsi"
15
16 / {
17 aliases {
18 serial0 = &blsp1_uart2;
19 };
20
21 chosen {
22 stdout-path = "serial0:115200n8";
23 };
24
25 regulator_fixed_3p3: s3300 {
26 compatible = "regulator-fixed";
27 regulator-min-microvolt = <3300000>;
28 regulator-max-microvolt = <3300000>;
29 regulator-boot-on;
30 regulator-always-on;
31 regulator-name = "fixed_3p3";
32 };
33
34 regulator_fixed_0p925: s0925 {
35 compatible = "regulator-fixed";
36 regulator-min-microvolt = <925000>;
37 regulator-max-microvolt = <925000>;
38 regulator-boot-on;
39 regulator-always-on;
40 regulator-name = "fixed_0p925";
41 };
42
43 gpio-keys {
44 compatible = "gpio-keys";
45 pinctrl-0 = <&gpio_keys_default>;
46 pinctrl-names = "default";
47
48 button-wps {
49 label = "wps";
50 linux,code = <KEY_WPS_BUTTON>;
51 gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
52 debounce-interval = <60>;
53 };
54 };
55
56 leds {
57 compatible = "gpio-leds";
58 pinctrl-0 = <&gpio_leds_default>;
59 pinctrl-names = "default";
60
61 led-0 {
62 color = <LED_COLOR_ID_GREEN>;
63 function = LED_FUNCTION_WLAN;
64 gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
65 linux,default-trigger = "phy0tx";
66 default-state = "off";
67 };
68 };
69 };
70
71 &blsp1_spi0 {
72 pinctrl-0 = <&spi_0_pins>;
73 pinctrl-names = "default";
74 status = "okay";
75
76 flash@0 {
77 compatible = "micron,n25q128a11", "jedec,spi-nor";
78 reg = <0>;
79 #address-cells = <1>;
80 #size-cells = <1>;
81 spi-max-frequency = <50000000>;
82 };
83 };
84
85 &blsp1_uart2 {
86 pinctrl-0 = <&uart2_pins>;
87 pinctrl-names = "default";
88 status = "okay";
89 };
90
91 &rpm_requests {
92 regulators {
93 compatible = "qcom,rpm-mp5496-regulators";
94
95 ipq9574_s1: s1 {
96 /*
97 * During kernel bootup, the SoC runs at 800MHz with 875mV set by the bootloaders.
98 * During regulator registration, kernel not knowing the initial voltage,
99 * considers it as zero and brings up the regulators with minimum supported voltage.
100 * Update the regulator-min-microvolt with SVS voltage of 725mV so that
101 * the regulators are brought up with 725mV which is sufficient for all the
102 * corner parts to operate at 800MHz
103 */
104 regulator-min-microvolt = <725000>;
105 regulator-max-microvolt = <1075000>;
106 };
107
108 mp5496_l2: l2 {
109 regulator-min-microvolt = <1800000>;
110 regulator-max-microvolt = <1800000>;
111 regulator-always-on;
112 regulator-boot-on;
113 };
114 };
115 };
116
117 &sleep_clk {
118 clock-frequency = <32000>;
119 };
120
121 &tlmm {
122 spi_0_pins: spi-0-state {
123 pins = "gpio11", "gpio12", "gpio13", "gpio14";
124 function = "blsp0_spi";
125 drive-strength = <8>;
126 bias-disable;
127 };
128
129 gpio_keys_default: gpio-keys-default-state {
130 pins = "gpio37";
131 function = "gpio";
132 drive-strength = <8>;
133 bias-pull-up;
134 };
135
136 gpio_leds_default: gpio-leds-default-state {
137 pins = "gpio64";
138 function = "gpio";
139 drive-strength = <8>;
140 bias-pull-up;
141 };
142 };
143
144 &usb_0_dwc3 {
145 dr_mode = "host";
146 };
147
148 &usb_0_qmpphy {
149 vdda-pll-supply = <&mp5496_l2>;
150 vdda-phy-supply = <&regulator_fixed_0p925>;
151
152 status = "okay";
153 };
154
155 &usb_0_qusbphy {
156 vdd-supply = <&regulator_fixed_0p925>;
157 vdda-pll-supply = <&mp5496_l2>;
158 vdda-phy-dpdm-supply = <&regulator_fixed_3p3>;
159
160 status = "okay";
161 };
162
163 &usb3 {
164 status = "okay";
165 };
166
167 &xo_board_clk {
168 clock-frequency = <24000000>;
169 };