0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003 * Copyright 2018-2022 Toradex
0004 */
0005
0006 / {
0007 chosen {
0008 stdout-path = "serial0:115200n8";
0009 };
0010
0011 gpio-keys {
0012 compatible = "gpio-keys";
0013 pinctrl-names = "default";
0014 pinctrl-0 = <&pinctrl_snvs_gpiokeys>;
0015
0016 power {
0017 label = "Wake-Up";
0018 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
0019 linux,code = <KEY_WAKEUP>;
0020 debounce-interval = <10>;
0021 wakeup-source;
0022 };
0023 };
0024
0025 reg_3v3: regulator-3v3 {
0026 compatible = "regulator-fixed";
0027 regulator-name = "3.3V";
0028 regulator-min-microvolt = <3300000>;
0029 regulator-max-microvolt = <3300000>;
0030 };
0031
0032 reg_5v0: regulator-5v0 {
0033 compatible = "regulator-fixed";
0034 regulator-name = "5V";
0035 regulator-min-microvolt = <5000000>;
0036 regulator-max-microvolt = <5000000>;
0037 };
0038
0039 reg_usbh_vbus: regulator-usbh-vbus {
0040 compatible = "regulator-fixed";
0041 pinctrl-names = "default";
0042 pinctrl-0 = <&pinctrl_usbh_reg>;
0043 regulator-name = "VCC_USB[1-4]";
0044 regulator-min-microvolt = <5000000>;
0045 regulator-max-microvolt = <5000000>;
0046 gpio = <&gpio1 2 GPIO_ACTIVE_LOW>;
0047 vin-supply = <®_5v0>;
0048 };
0049 };
0050
0051 &adc1 {
0052 status = "okay";
0053 };
0054
0055 &gpio1 {
0056 /*
0057 * uart25_tx_on turns the UART transceiver on. If one wants to turn the
0058 * transceiver off, that property has to be deleted and the gpio handled
0059 * in userspace.
0060 * The same applies to uart1_tx_on.
0061 */
0062 uart25_tx_on {
0063 gpio-hog;
0064 gpios = <15 0>;
0065 output-high;
0066 };
0067 };
0068
0069 &gpio2 {
0070 uart1_tx_on {
0071 gpio-hog;
0072 gpios = <7 0>;
0073 output-high;
0074 };
0075 };
0076
0077 &i2c1 {
0078 status = "okay";
0079
0080 /* M41T0M6 real time clock on carrier board */
0081 m41t0m6: rtc@68 {
0082 compatible = "st,m41t0";
0083 reg = <0x68>;
0084 };
0085 };
0086
0087 /* PWM <A> */
0088 &pwm4 {
0089 status = "okay";
0090 };
0091
0092 /* PWM <B> */
0093 &pwm5 {
0094 status = "okay";
0095 };
0096
0097 /* PWM <C> */
0098 &pwm6 {
0099 status = "okay";
0100 };
0101
0102 /* PWM <D> */
0103 &pwm7 {
0104 status = "okay";
0105 };
0106
0107 &uart1 {
0108 status = "okay";
0109 };
0110
0111 &uart2 {
0112 status = "okay";
0113 };
0114
0115 &uart5 {
0116 status = "okay";
0117 };
0118
0119 &usbotg1 {
0120 vbus-supply = <®_usbh_vbus>;
0121 status = "okay";
0122 };
0123
0124 &usbotg2 {
0125 vbus-supply = <®_usbh_vbus>;
0126 status = "okay";
0127 };
0128
0129 &usdhc1 {
0130 vmmc-supply = <®_3v3>;
0131 status = "okay";
0132 };