Linux Audio

Check our new training course

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