Lines Matching +full:mdio +full:- +full:gpio0

1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree file for D-Link DNS-313 1-Bay Network Storage Enclosure
6 /dts-v1/;
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/thermal/thermal.h>
13 model = "D-Link DNS-313 1-Bay Network Storage Enclosure";
14 compatible = "dlink,dns-313", "cortina,gemini";
15 #address-cells = <1>;
16 #size-cells = <1>;
19 /* 64 MB SDRAM in a Nanya NT5DS32M16BS-6K package */
25 mdio-gpio0 = &mdio0;
30 stdout-path = "uart0:19200n8";
34 compatible = "gpio-keys";
36 button-esc {
37 debounce-interval = <100>;
38 wakeup-source;
46 compatible = "gpio-leds";
47 led-power {
49 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
50 default-state = "on";
51 linux,default-trigger = "heartbeat";
53 led-disk-blue {
55 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
56 default-state = "off";
58 led-disk-green {
60 gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
61 default-state = "off";
62 linux,default-trigger = "disk-read";
64 led-disk-red {
66 gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
67 default-state = "off";
68 linux,default-trigger = "disk-write";
73 * This is a ADDA AD0405GB-G73 fan @3000 and 6000 RPM.
75 fan0: gpio-fan {
76 compatible = "gpio-fan";
77 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>,
78 <&gpio0 12 GPIO_ACTIVE_HIGH>;
79 gpio-fan,speed-map = <0 0>, <3000 1>, <6000 2>;
80 #cooling-cells = <2>;
85 * a GPIO-controlled USB VBUS detect
88 compatible = "gpio-usb-b-connector", "usb-b-connector";
89 #phy-cells = <0>;
90 vbus-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
93 /* Global Mixed-Mode Technology G751 mounted on GPIO I2C */
95 compatible = "i2c-gpio";
96 sda-gpios = <&gpio0 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
97 scl-gpios = <&gpio0 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
98 #address-cells = <1>;
99 #size-cells = <0>;
101 g751: temperature-sensor@48 {
104 #thermal-sensor-cells = <0>;
108 thermal-zones {
109 chassis-thermal {
111 polling-delay = <20000>;
113 polling-delay-passive = <2000>;
115 thermal-sensors = <&g751>;
119 chassis_alert0: chassis-alert0 {
125 chassis_alert1: chassis-alert1 {
131 chassis_crit: chassis-crit {
139 cooling-maps {
142 cooling-device = <&fan0 1 1>;
146 cooling-device = <&fan0 2 2>;
152 mdio0: mdio {
153 compatible = "virtual,mdio-gpio";
154 /* Uses MDC and MDIO */
155 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
156 <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
157 #address-cells = <1>;
158 #size-cells = <0>;
161 phy0: ethernet-phy@1 {
163 device_type = "ethernet-phy";
173 compatible = "cortina,gemini-flash", "jedec-flash";
176 #address-cells = <1>;
177 #size-cells = <1>;
185 read-only;
190 read-only;
195 read-only;
203 gpio0_default_pins: pinctrl-gpio0 {
205 function = "gpio0";
218 /* Used by MDIO */
222 gpio1_default_pins: pinctrl-gpio1 {
229 pinctrl-gmii {
240 skew-delay = <0>;
244 skew-delay = <10>;
248 skew-delay = <15>;
252 skew-delay = <7>;
256 skew-delay = <10>;
266 skew-delay = <7>;
271 skew-delay = <5>;
276 drive-strength = <16>;
284 cortina,gemini-ata-muxmode = <0>;
285 cortina,gemini-enable-sata-bridge;
289 gpio0: gpio@4d000000 { label
290 pinctrl-names = "default";
291 pinctrl-0 = <&gpio0_default_pins>;
295 pinctrl-names = "default";
296 pinctrl-0 = <&gpio1_default_pins>;
302 ethernet-port@0 {
303 phy-mode = "rgmii";
304 phy-handle = <&phy0>;
306 ethernet-port@1 {
318 usb-phy = <&usb1_phy>;
319 pinctrl-names = "default";
320 pinctrl-0 = <&usb_default_pins>;