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