| 1 |
// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause |
| 2 |
/* |
| 3 |
* Copyright (C) 2020 Marek Vasut <[email protected]> |
| 4 |
*/ |
| 5 |
|
| 6 |
#include <dt-bindings/input/input.h> |
| 7 |
#include <dt-bindings/pwm/pwm.h> |
| 8 |
|
| 9 |
/ { |
| 10 |
led { |
| 11 |
compatible = "gpio-leds"; |
| 12 |
|
| 13 |
led-0 { |
| 14 |
label = "yellow:led"; |
| 15 |
gpios = <&gpioi 3 GPIO_ACTIVE_HIGH>; |
| 16 |
default-state = "off"; |
| 17 |
}; |
| 18 |
}; |
| 19 |
}; |
| 20 |
|
| 21 |
&adc { |
| 22 |
status = "disabled"; |
| 23 |
}; |
| 24 |
|
| 25 |
&dac { |
| 26 |
status = "disabled"; |
| 27 |
}; |
| 28 |
|
| 29 |
&fmc { |
| 30 |
status = "disabled"; |
| 31 |
}; |
| 32 |
|
| 33 |
&gpioa { |
| 34 |
/* |
| 35 |
* NOTE: The USB Port on the PicoITX needs a PWR_EN signal to enable |
| 36 |
* port power. This signal should be handled by USB power sequencing |
| 37 |
* in order to turn on port power when USB bus is powered up, but so |
| 38 |
* far there is no such functionality. |
| 39 |
*/ |
| 40 |
usb-port-power-hog { |
| 41 |
gpio-hog; |
| 42 |
gpios = <13 0>; |
| 43 |
output-low; |
| 44 |
line-name = "usb-port-power"; |
| 45 |
}; |
| 46 |
}; |
| 47 |
|
| 48 |
&gpioc { |
| 49 |
gpio-line-names = "", "", "", "", |
| 50 |
"", "", "PicoITX-In1", "", |
| 51 |
"", "", "", "", |
| 52 |
"", "", "", ""; |
| 53 |
}; |
| 54 |
|
| 55 |
&gpiod { |
| 56 |
gpio-line-names = "", "", "", "", |
| 57 |
"", "", "DHCOM-B", "", |
| 58 |
"", "", "", "PicoITX-Out1", |
| 59 |
"PicoITX-Out2", "", "", ""; |
| 60 |
}; |
| 61 |
|
| 62 |
&gpiog { |
| 63 |
gpio-line-names = "PicoITX-In2", "", "", "", |
| 64 |
"", "", "", "", |
| 65 |
"DHCOM-L", "", "", "", |
| 66 |
"", "", "", ""; |
| 67 |
}; |
| 68 |
|
| 69 |
&i2c2 { /* On board-to-board connector (optional) */ |
| 70 |
pinctrl-names = "default"; |
| 71 |
pinctrl-0 = <&i2c2_pins_a>; |
| 72 |
i2c-scl-rising-time-ns = <185>; |
| 73 |
i2c-scl-falling-time-ns = <20>; |
| 74 |
status = "okay"; |
| 75 |
/* spare dmas for other usage */ |
| 76 |
/delete-property/dmas; |
| 77 |
/delete-property/dma-names; |
| 78 |
}; |
| 79 |
|
| 80 |
&i2c5 { /* On board-to-board connector */ |
| 81 |
pinctrl-names = "default"; |
| 82 |
pinctrl-0 = <&i2c5_pins_a>; |
| 83 |
i2c-scl-rising-time-ns = <185>; |
| 84 |
i2c-scl-falling-time-ns = <20>; |
| 85 |
status = "okay"; |
| 86 |
/* spare dmas for other usage */ |
| 87 |
/delete-property/dmas; |
| 88 |
/delete-property/dma-names; |
| 89 |
}; |
| 90 |
|
| 91 |
&ksz8851 { |
| 92 |
status = "disabled"; |
| 93 |
}; |
| 94 |
|
| 95 |
&usart3 { |
| 96 |
pinctrl-names = "default"; |
| 97 |
pinctrl-0 = <&usart3_pins_a>; |
| 98 |
/delete-property/dmas; |
| 99 |
/delete-property/dma-names; |
| 100 |
status = "okay"; |
| 101 |
}; |
| 102 |
|
| 103 |
&uart8 { |
| 104 |
pinctrl-names = "default"; |
| 105 |
pinctrl-0 = <&uart8_pins_a &uart8_rtscts_pins_a>; |
| 106 |
/delete-property/dmas; |
| 107 |
/delete-property/dma-names; |
| 108 |
status = "okay"; |
| 109 |
}; |
| 110 |
|
| 111 |
&usbh_ehci { |
| 112 |
status = "okay"; |
| 113 |
}; |
| 114 |
|
| 115 |
&usbh_ohci { |
| 116 |
status = "okay"; |
| 117 |
}; |
| 118 |
|
| 119 |
&usbotg_hs { |
| 120 |
dr_mode = "otg"; |
| 121 |
pinctrl-0 = <&usbotg_hs_pins_a>; |
| 122 |
pinctrl-names = "default"; |
| 123 |
phy-names = "usb2-phy"; |
| 124 |
phys = <&usbphyc_port1 0>; |
| 125 |
vbus-supply = <&vbus_otg>; |
| 126 |
status = "okay"; |
| 127 |
}; |
| 128 |
|
| 129 |
&usbphyc { |
| 130 |
status = "okay"; |
| 131 |
}; |
| 132 |
|
| 133 |
&usbphyc_port0 { |
| 134 |
phy-supply = <&vdd_usb>; |
| 135 |
}; |
| 136 |
|
| 137 |
&usbphyc_port1 { |
| 138 |
phy-supply = <&vdd_usb>; |
| 139 |
}; |