Lines Matching +full:pcie +full:- +full:phy2

1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 * Authors: Frank Wunderlich <frank-w@public-files.de>
9 /dts-v1/;
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/leds/common.h>
14 #include <dt-bindings/pinctrl/mt65xx.h>
19 model = "Bananapi BPI-R3 Mini";
20 chassis-type = "embedded";
21 compatible = "bananapi,bpi-r3mini", "mediatek,mt7986a";
30 stdout-path = "serial0:115200n8";
33 dcin: regulator-12v {
34 compatible = "regulator-fixed";
35 regulator-name = "12vd";
36 regulator-min-microvolt = <12000000>;
37 regulator-max-microvolt = <12000000>;
38 regulator-boot-on;
39 regulator-always-on;
42 fan: pwm-fan {
43 compatible = "pwm-fan";
44 #cooling-cells = <2>;
50 cooling-levels = <255 96 0>;
54 reg_1p8v: regulator-1v8 {
55 compatible = "regulator-fixed";
56 regulator-name = "1.8vd";
57 regulator-min-microvolt = <1800000>;
58 regulator-max-microvolt = <1800000>;
59 regulator-boot-on;
60 regulator-always-on;
61 vin-supply = <&dcin>;
64 reg_3p3v: regulator-3v3 {
65 compatible = "regulator-fixed";
66 regulator-name = "3.3vd";
67 regulator-min-microvolt = <3300000>;
68 regulator-max-microvolt = <3300000>;
69 regulator-boot-on;
70 regulator-always-on;
71 vin-supply = <&dcin>;
74 usb_vbus: regulator-5v {
75 compatible = "regulator-fixed";
76 regulator-name = "usb_vbus";
77 regulator-min-microvolt = <5000000>;
78 regulator-max-microvolt = <5000000>;
80 regulator-boot-on;
83 en8811_a: regulator-phy1 {
84 compatible = "regulator-fixed";
85 regulator-name = "phy1";
86 regulator-min-microvolt = <3300000>;
87 regulator-max-microvolt = <3300000>;
89 regulator-always-on;
92 en8811_b: regulator-phy2 {
93 compatible = "regulator-fixed";
94 regulator-name = "phy2";
95 regulator-min-microvolt = <3300000>;
96 regulator-max-microvolt = <3300000>;
98 regulator-always-on;
102 compatible = "gpio-leds";
104 green_led: led-0 {
108 default-state = "on";
112 gpio-keys {
113 compatible = "gpio-keys";
115 reset-key {
125 cooling-maps {
128 cooling-device = <&fan 2 2>;
134 cooling-device = <&fan 1 1>;
140 cooling-device = <&fan 0 0>;
154 compatible = "mediatek,eth-mac";
156 phy-mode = "2500base-x";
157 phy-handle = <&phy0>;
161 compatible = "mediatek,eth-mac";
163 phy-mode = "2500base-x";
164 phy-handle = <&phy1>;
167 mdio: mdio-bus {
168 #address-cells = <1>;
169 #size-cells = <0>;
174 pinctrl-names = "default", "state_uhs";
175 pinctrl-0 = <&mmc0_pins_default>;
176 pinctrl-1 = <&mmc0_pins_uhs>;
177 vmmc-supply = <&reg_3p3v>;
178 vqmmc-supply = <&reg_1p8v>;
183 pinctrl-names = "default";
184 pinctrl-0 = <&i2c_pins>;
192 address-width = <8>;
199 phy0: ethernet-phy@14 {
201 interrupts-extended = <&pio 48 IRQ_TYPE_EDGE_FALLING>;
202 reset-gpios = <&pio 49 GPIO_ACTIVE_LOW>;
203 reset-assert-us = <10000>;
204 reset-deassert-us = <20000>;
205 phy-mode = "2500base-x";
206 full-duplex;
208 airoha,pnswap-rx;
211 #address-cells = <1>;
212 #size-cells = <0>;
218 function-enumerator = <1>;
219 default-state = "keep";
225 function-enumerator = <2>;
226 default-state = "keep";
231 phy1: ethernet-phy@15 {
233 interrupts-extended = <&pio 46 IRQ_TYPE_EDGE_FALLING>;
234 reset-gpios = <&pio 47 GPIO_ACTIVE_LOW>;
235 reset-assert-us = <10000>;
236 reset-deassert-us = <20000>;
237 phy-mode = "2500base-x";
238 full-duplex;
240 airoha,pnswap-rx;
243 #address-cells = <1>;
244 #size-cells = <0>;
250 function-enumerator = <1>;
251 default-state = "keep";
257 function-enumerator = <2>;
258 default-state = "keep";
264 &pcie {
265 pinctrl-names = "default";
266 pinctrl-0 = <&pcie_pins>;
275 i2c_pins: i2c-pins {
282 mmc0_pins_default: mmc0-pins {
287 conf-cmd-dat {
291 input-enable;
292 drive-strength = <4>;
293 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
295 conf-clk {
297 drive-strength = <6>;
298 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
300 conf-ds {
302 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
304 conf-rst {
306 drive-strength = <4>;
307 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
311 mmc0_pins_uhs: mmc0-uhs-pins {
316 conf-cmd-dat {
320 input-enable;
321 drive-strength = <4>;
322 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
324 conf-clk {
326 drive-strength = <6>;
327 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
329 conf-ds {
331 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
333 conf-rst {
335 drive-strength = <4>;
336 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
340 pcie_pins: pcie-pins {
342 function = "pcie";
347 pwm_pins: pwm-pins {
354 spi_flash_pins: spi-flash-pins {
361 usb_ngff_pins: usb-ngff-pins {
362 ngff-gnss-off-conf {
364 drive-strength = <8>;
365 mediatek,pull-up-adv = <1>;
367 ngff-pe-rst-conf {
369 drive-strength = <8>;
370 mediatek,pull-up-adv = <1>;
372 ngff-wwan-off-conf {
374 drive-strength = <8>;
375 mediatek,pull-up-adv = <1>;
377 ngff-pwr-off-conf {
379 drive-strength = <8>;
380 mediatek,pull-up-adv = <1>;
382 ngff-rst-conf {
384 drive-strength = <8>;
385 mediatek,pull-up-adv = <1>;
387 ngff-coex-conf {
389 drive-strength = <8>;
390 mediatek,pull-up-adv = <1>;
394 wf_2g_5g_pins: wf-2g-5g-pins {
407 drive-strength = <4>;
411 wf_dbdc_pins: wf-dbdc-pins {
424 drive-strength = <4>;
428 wf_led_pins: wf-led-pins {
437 pinctrl-names = "default";
438 pinctrl-0 = <&pwm_pins>;
443 pinctrl-names = "default";
444 pinctrl-0 = <&spi_flash_pins>;
448 compatible = "spi-nand";
449 #address-cells = <1>;
450 #size-cells = <1>;
453 spi-max-frequency = <20000000>;
454 spi-tx-bus-width = <4>;
455 spi-rx-bus-width = <4>;
460 pinctrl-names = "default";
461 pinctrl-0 = <&usb_ngff_pins>;
462 vusb33-supply = <&reg_3p3v>;
463 vbus-supply = <&usb_vbus>;
485 pinctrl-names = "default", "dbdc";
486 pinctrl-0 = <&wf_2g_5g_pins>, <&wf_led_pins>;
487 pinctrl-1 = <&wf_dbdc_pins>, <&wf_led_pins>;
490 led-active-low;