Linux Audio

Check our new training course

Linux BSP development engineering services

Need help to port Linux and bootloaders to your hardware?
Loading...
v4.17
  1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2/*
  3 * Copyright 2017 Toradex AG
  4 */
  5
  6/ {
  7	chosen {
  8		stdout-path = "serial0:115200n8";
  9	};
 10
 11	/* fixed crystal dedicated to mcp2515 */
 12	clk16m: clk16m {
 13		compatible = "fixed-clock";
 14		#clock-cells = <0>;
 15		clock-frequency = <16000000>;
 16	};
 17
 18	panel: panel {
 19		compatible = "edt,et057090dhu";
 20		backlight = <&bl>;
 21		power-supply = <&reg_3v3>;
 22
 23		port {
 24			panel_in: endpoint {
 25				remote-endpoint = <&lcdif_out>;
 26			};
 27		};
 28	};
 29
 30	reg_3v3: regulator-3v3 {
 31		compatible = "regulator-fixed";
 32		regulator-name = "3.3V";
 33		regulator-min-microvolt = <3300000>;
 34		regulator-max-microvolt = <3300000>;
 35	};
 36
 37	reg_5v0: regulator-5v0 {
 38		compatible = "regulator-fixed";
 39		regulator-name = "5V";
 40		regulator-min-microvolt = <5000000>;
 41		regulator-max-microvolt = <5000000>;
 42	};
 43
 44	reg_usbh_vbus: regulator-usbh-vbus {
 45		compatible = "regulator-fixed";
 46		pinctrl-names = "default";
 47		pinctrl-0 = <&pinctrl_usbh_reg>;
 48		regulator-name = "VCC_USB[1-4]";
 49		regulator-min-microvolt = <5000000>;
 50		regulator-max-microvolt = <5000000>;
 51		gpio = <&gpio1 2 GPIO_ACTIVE_LOW>;
 52		vin-supply = <&reg_5v0>;
 53	};
 54};
 55
 56&adc1 {
 57	status = "okay";
 58};
 59
 60&bl {
 61	brightness-levels = <0 4 8 16 32 64 128 255>;
 62	default-brightness-level = <6>;
 63	power-supply = <&reg_3v3>;
 64	pwms = <&pwm4 0 5000000 1>;
 65	status = "okay";
 66};
 67
 68&ecspi1 {
 69	status = "okay";
 70
 71	mcp2515: can@0 {
 72		compatible = "microchip,mcp2515";
 73		pinctrl-names = "default";
 74		pinctrl-0 = <&pinctrl_can_int>;
 75		reg = <0>;
 76		clocks = <&clk16m>;
 77		interrupt-parent = <&gpio2>;
 78		interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
 79		spi-max-frequency = <10000000>;
 80		vdd-supply = <&reg_3v3>;
 81		xceiver-supply = <&reg_5v0>;
 82		status = "okay";
 83	};
 84};
 85
 86&i2c1 {
 87	status = "okay";
 88
 89	/* M41T0M6 real time clock on carrier board */
 90	m41t0m6: rtc@68 {
 91		compatible = "st,m41t0";
 92		reg = <0x68>;
 93	};
 94};
 95
 96&lcdif {
 97	status = "okay";
 98
 99	port {
100		lcdif_out: endpoint {
101			remote-endpoint = <&panel_in>;
102		};
103	};
104};
105
106/* PWM <A> */
107&pwm4 {
108	status = "okay";
109};
110
111/* PWM <B> */
112&pwm5 {
113	status = "okay";
114};
115
116/* PWM <C> */
117&pwm6 {
118	status = "okay";
119};
120
121/* PWM <D> */
122&pwm7 {
123	status = "okay";
124};
125
126&uart1 {
127	status = "okay";
128};
129
130&uart2 {
131	status = "okay";
132};
133
134&uart5 {
135	status = "okay";
136};
137
138&usbotg1 {
 
139	status = "okay";
140};
141
142&usbotg2 {
143	vbus-supply = <&reg_usbh_vbus>;
144	status = "okay";
145};
146
147&usdhc1 {
148	pinctrl-names = "default";
149	pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_snvs_usdhc1_cd>;
150	no-1-8-v;
151	cd-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
152	disable-wp;
153	wakeup-source;
154	keep-power-in-suspend;
155	vmmc-supply = <&reg_3v3>;
156	status = "okay";
157};
v6.2
  1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2/*
  3 * Copyright 2017-2022 Toradex
  4 */
  5
  6/ {
  7	chosen {
  8		stdout-path = "serial0:115200n8";
  9	};
 10
 11	/* fixed crystal dedicated to mcp2515 */
 12	clk16m: clk16m {
 13		compatible = "fixed-clock";
 14		#clock-cells = <0>;
 15		clock-frequency = <16000000>;
 16	};
 17
 
 
 
 
 
 
 
 
 
 
 
 
 18	reg_3v3: regulator-3v3 {
 19		compatible = "regulator-fixed";
 20		regulator-name = "3.3V";
 21		regulator-min-microvolt = <3300000>;
 22		regulator-max-microvolt = <3300000>;
 23	};
 24
 25	reg_5v0: regulator-5v0 {
 26		compatible = "regulator-fixed";
 27		regulator-name = "5V";
 28		regulator-min-microvolt = <5000000>;
 29		regulator-max-microvolt = <5000000>;
 30	};
 31
 32	reg_usbh_vbus: regulator-usbh-vbus {
 33		compatible = "regulator-fixed";
 34		pinctrl-names = "default";
 35		pinctrl-0 = <&pinctrl_usbh_reg>;
 36		regulator-name = "VCC_USB[1-4]";
 37		regulator-min-microvolt = <5000000>;
 38		regulator-max-microvolt = <5000000>;
 39		gpio = <&gpio1 2 GPIO_ACTIVE_LOW>;
 40		vin-supply = <&reg_5v0>;
 41	};
 42};
 43
 44&adc1 {
 45	status = "okay";
 46};
 47
 
 
 
 
 
 
 
 
 48&ecspi1 {
 49	status = "okay";
 50
 51	mcp2515: can@0 {
 52		compatible = "microchip,mcp2515";
 53		pinctrl-names = "default";
 54		pinctrl-0 = <&pinctrl_can_int>;
 55		reg = <0>;
 56		clocks = <&clk16m>;
 57		interrupt-parent = <&gpio2>;
 58		interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
 59		spi-max-frequency = <10000000>;
 60		vdd-supply = <&reg_3v3>;
 61		xceiver-supply = <&reg_5v0>;
 62		status = "okay";
 63	};
 64};
 65
 66&i2c1 {
 67	status = "okay";
 68
 69	/* M41T0M6 real time clock on carrier board */
 70	m41t0m6: rtc@68 {
 71		compatible = "st,m41t0";
 72		reg = <0x68>;
 73	};
 74};
 75
 
 
 
 
 
 
 
 
 
 
 76/* PWM <A> */
 77&pwm4 {
 78	status = "okay";
 79};
 80
 81/* PWM <B> */
 82&pwm5 {
 83	status = "okay";
 84};
 85
 86/* PWM <C> */
 87&pwm6 {
 88	status = "okay";
 89};
 90
 91/* PWM <D> */
 92&pwm7 {
 93	status = "okay";
 94};
 95
 96&uart1 {
 97	status = "okay";
 98};
 99
100&uart2 {
101	status = "okay";
102};
103
104&uart5 {
105	status = "okay";
106};
107
108&usbotg1 {
109	vbus-supply = <&reg_usbh_vbus>;
110	status = "okay";
111};
112
113&usbotg2 {
114	vbus-supply = <&reg_usbh_vbus>;
115	status = "okay";
116};
117
118&usdhc1 {
 
 
 
 
 
 
 
119	vmmc-supply = <&reg_3v3>;
120	status = "okay";
121};