Lines Matching +full:conf +full:- +full:mdio

1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
5 * Frank Wunderlich <frank-w@public-files.de>
9 /dts-v1/;
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/pinctrl/mt65xx.h>
18 model = "Bananapi BPI-R3";
19 chassis-type = "embedded";
20 compatible = "bananapi,bpi-r3", "mediatek,mt7986a";
29 stdout-path = "serial0:115200n8";
32 dcin: regulator-12vd {
33 compatible = "regulator-fixed";
34 regulator-name = "12vd";
35 regulator-min-microvolt = <12000000>;
36 regulator-max-microvolt = <12000000>;
37 regulator-boot-on;
38 regulator-always-on;
41 fan: pwm-fan {
42 compatible = "pwm-fan";
43 #cooling-cells = <2>;
44 /* cooling level (0, 1, 2) - pwm inverted */
45 cooling-levels = <255 96 0>;
50 gpio-keys {
51 compatible = "gpio-keys";
53 reset-key {
59 wps-key {
67 i2c_sfp1: i2c-gpio-0 {
68 compatible = "i2c-gpio";
69 sda-gpios = <&pio 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
70 scl-gpios = <&pio 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
71 i2c-gpio,delay-us = <2>;
72 #address-cells = <1>;
73 #size-cells = <0>;
77 i2c_sfp2: i2c-gpio-1 {
78 compatible = "i2c-gpio";
79 sda-gpios = <&pio 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
80 scl-gpios = <&pio 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
81 i2c-gpio,delay-us = <2>;
82 #address-cells = <1>;
83 #size-cells = <0>;
87 compatible = "gpio-leds";
89 green_led: led-0 {
93 default-state = "on";
96 blue_led: led-1 {
100 default-state = "off";
104 reg_1p8v: regulator-1p8v {
105 compatible = "regulator-fixed";
106 regulator-name = "1.8vd";
107 regulator-min-microvolt = <1800000>;
108 regulator-max-microvolt = <1800000>;
109 regulator-boot-on;
110 regulator-always-on;
111 vin-supply = <&dcin>;
114 reg_3p3v: regulator-3p3v {
115 compatible = "regulator-fixed";
116 regulator-name = "3.3vd";
117 regulator-min-microvolt = <3300000>;
118 regulator-max-microvolt = <3300000>;
119 regulator-boot-on;
120 regulator-always-on;
121 vin-supply = <&dcin>;
125 sfp1: sfp-1 {
127 i2c-bus = <&i2c_sfp1>;
128 los-gpios = <&pio 46 GPIO_ACTIVE_HIGH>;
129 maximum-power-milliwatt = <3000>;
130 mod-def0-gpios = <&pio 49 GPIO_ACTIVE_LOW>;
131 tx-disable-gpios = <&pio 20 GPIO_ACTIVE_HIGH>;
132 tx-fault-gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
136 sfp2: sfp-2 {
138 i2c-bus = <&i2c_sfp2>;
139 los-gpios = <&pio 31 GPIO_ACTIVE_HIGH>;
140 mod-def0-gpios = <&pio 47 GPIO_ACTIVE_LOW>;
141 maximum-power-milliwatt = <3000>;
142 tx-disable-gpios = <&pio 15 GPIO_ACTIVE_HIGH>;
143 tx-fault-gpios = <&pio 48 GPIO_ACTIVE_HIGH>;
148 cooling-maps {
149 cpu-active-high {
151 cooling-device = <&fan 2 2>;
155 cpu-active-med {
157 cooling-device = <&fan 1 1>;
161 cpu-active-low {
163 cooling-device = <&fan 0 0>;
177 compatible = "mediatek,eth-mac";
179 phy-mode = "2500base-x";
181 fixed-link {
183 full-duplex;
189 compatible = "mediatek,eth-mac";
191 phy-mode = "2500base-x";
193 managed = "in-band-status";
196 mdio: mdio-bus {
197 #address-cells = <1>;
198 #size-cells = <0>;
202 &mdio {
206 interrupt-controller;
207 #interrupt-cells = <1>;
208 interrupts-extended = <&pio 66 IRQ_TYPE_LEVEL_HIGH>;
209 reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
214 pinctrl-names = "default", "state_uhs";
215 pinctrl-0 = <&mmc0_pins_default>;
216 pinctrl-1 = <&mmc0_pins_uhs>;
217 vmmc-supply = <&reg_3p3v>;
218 vqmmc-supply = <&reg_1p8v>;
222 pinctrl-names = "default";
223 pinctrl-0 = <&i2c_pins>;
228 pinctrl-names = "default";
229 pinctrl-0 = <&pcie_pins>;
238 i2c_pins: i2c-pins {
245 mmc0_pins_default: mmc0-pins {
250 conf-cmd-dat {
254 input-enable;
255 drive-strength = <4>;
256 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
258 conf-clk {
260 drive-strength = <6>;
261 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
263 conf-ds {
265 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
267 conf-rst {
269 drive-strength = <4>;
270 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
274 mmc0_pins_uhs: mmc0-uhs-pins {
279 conf-cmd-dat {
283 input-enable;
284 drive-strength = <4>;
285 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
287 conf-clk {
289 drive-strength = <6>;
290 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
292 conf-ds {
294 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
296 conf-rst {
298 drive-strength = <4>;
299 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
303 pcie_pins: pcie-pins {
310 pwm_pins: pwm-pins {
317 spi_flash_pins: spi-flash-pins {
324 spic_pins: spic-pins {
331 uart1_pins: uart1-pins {
338 uart2_pins: uart2-pins {
345 wf_2g_5g_pins: wf-2g-5g-pins {
350 conf {
358 drive-strength = <4>;
362 wf_dbdc_pins: wf-dbdc-pins {
367 conf {
375 drive-strength = <4>;
379 wf_led_pins: wf-led-pins {
388 pinctrl-names = "default";
389 pinctrl-0 = <&pwm_pins>;
394 pinctrl-names = "default";
395 pinctrl-0 = <&spi_flash_pins>;
400 pinctrl-names = "default";
401 pinctrl-0 = <&spic_pins>;
411 #address-cells = <1>;
412 #size-cells = <0>;
442 phy-mode = "2500base-x";
444 managed = "in-band-status";
451 phy-mode = "2500base-x";
453 fixed-link {
455 full-duplex;
471 pinctrl-names = "default";
472 pinctrl-0 = <&uart1_pins>;
477 pinctrl-names = "default";
478 pinctrl-0 = <&uart2_pins>;
492 pinctrl-names = "default", "dbdc";
493 pinctrl-0 = <&wf_2g_5g_pins>, <&wf_led_pins>;
494 pinctrl-1 = <&wf_dbdc_pins>, <&wf_led_pins>;
497 led-active-low;