Lines Matching +full:pio +full:- +full:mode

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 {
56 gpios = <&pio 9 GPIO_ACTIVE_LOW>;
59 wps-key {
62 gpios = <&pio 10 GPIO_ACTIVE_LOW>;
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 {
92 gpios = <&pio 69 GPIO_ACTIVE_HIGH>;
93 default-state = "on";
96 blue_led: led-1 {
99 gpios = <&pio 86 GPIO_ACTIVE_HIGH>;
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 map-cpu-active-high {
151 cooling-device = <&fan 2 2>;
155 map-cpu-active-med {
157 cooling-device = <&fan 1 1>;
161 map-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>;
206 interrupt-controller;
207 #interrupt-cells = <1>;
208 interrupt-parent = <&pio>;
210 reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
215 pinctrl-names = "default", "state_uhs";
216 pinctrl-0 = <&mmc0_pins_default>;
217 pinctrl-1 = <&mmc0_pins_uhs>;
218 vmmc-supply = <&reg_3p3v>;
219 vqmmc-supply = <&reg_1p8v>;
223 pinctrl-names = "default";
224 pinctrl-0 = <&i2c_pins>;
229 pinctrl-names = "default";
230 pinctrl-0 = <&pcie_pins>;
238 &pio {
239 i2c_pins: i2c-pins {
246 mmc0_pins_default: mmc0-pins {
251 conf-cmd-dat {
255 input-enable;
256 drive-strength = <4>;
257 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
259 conf-clk {
261 drive-strength = <6>;
262 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
264 conf-ds {
266 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
268 conf-rst {
270 drive-strength = <4>;
271 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
275 mmc0_pins_uhs: mmc0-uhs-pins {
280 conf-cmd-dat {
284 input-enable;
285 drive-strength = <4>;
286 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
288 conf-clk {
290 drive-strength = <6>;
291 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
293 conf-ds {
295 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
297 conf-rst {
299 drive-strength = <4>;
300 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
304 pcie_pins: pcie-pins {
311 pwm_pins: pwm-pins {
318 spi_flash_pins: spi-flash-pins {
325 spic_pins: spic-pins {
332 uart1_pins: uart1-pins {
339 uart2_pins: uart2-pins {
346 wf_2g_5g_pins: wf-2g-5g-pins {
359 drive-strength = <4>;
363 wf_dbdc_pins: wf-dbdc-pins {
376 drive-strength = <4>;
380 wf_led_pins: wf-led-pins {
389 pinctrl-names = "default";
390 pinctrl-0 = <&pwm_pins>;
395 pinctrl-names = "default";
396 pinctrl-0 = <&spi_flash_pins>;
401 pinctrl-names = "default";
402 pinctrl-0 = <&spic_pins>;
412 #address-cells = <1>;
413 #size-cells = <0>;
443 phy-mode = "2500base-x";
445 managed = "in-band-status";
452 phy-mode = "2500base-x";
454 fixed-link {
456 full-duplex;
472 pinctrl-names = "default";
473 pinctrl-0 = <&uart1_pins>;
478 pinctrl-names = "default";
479 pinctrl-0 = <&uart2_pins>;
493 pinctrl-names = "default", "dbdc";
494 pinctrl-0 = <&wf_2g_5g_pins>, <&wf_led_pins>;
495 pinctrl-1 = <&wf_dbdc_pins>, <&wf_led_pins>;
498 led-active-low;