Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003  * Copyright 2017-2022 Toradex
0004  */
0005 
0006 / {
0007         chosen {
0008                 stdout-path = "serial0:115200n8";
0009         };
0010 
0011         /* fixed crystal dedicated to mcp2515 */
0012         clk16m: clk16m {
0013                 compatible = "fixed-clock";
0014                 #clock-cells = <0>;
0015                 clock-frequency = <16000000>;
0016         };
0017 
0018         reg_3v3: regulator-3v3 {
0019                 compatible = "regulator-fixed";
0020                 regulator-name = "3.3V";
0021                 regulator-min-microvolt = <3300000>;
0022                 regulator-max-microvolt = <3300000>;
0023         };
0024 
0025         reg_5v0: regulator-5v0 {
0026                 compatible = "regulator-fixed";
0027                 regulator-name = "5V";
0028                 regulator-min-microvolt = <5000000>;
0029                 regulator-max-microvolt = <5000000>;
0030         };
0031 
0032         reg_usbh_vbus: regulator-usbh-vbus {
0033                 compatible = "regulator-fixed";
0034                 pinctrl-names = "default";
0035                 pinctrl-0 = <&pinctrl_usbh_reg>;
0036                 regulator-name = "VCC_USB[1-4]";
0037                 regulator-min-microvolt = <5000000>;
0038                 regulator-max-microvolt = <5000000>;
0039                 gpio = <&gpio1 2 GPIO_ACTIVE_LOW>;
0040                 vin-supply = <&reg_5v0>;
0041         };
0042 };
0043 
0044 &adc1 {
0045         status = "okay";
0046 };
0047 
0048 &ecspi1 {
0049         status = "okay";
0050 
0051         mcp2515: can@0 {
0052                 compatible = "microchip,mcp2515";
0053                 pinctrl-names = "default";
0054                 pinctrl-0 = <&pinctrl_can_int>;
0055                 reg = <0>;
0056                 clocks = <&clk16m>;
0057                 interrupt-parent = <&gpio2>;
0058                 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
0059                 spi-max-frequency = <10000000>;
0060                 vdd-supply = <&reg_3v3>;
0061                 xceiver-supply = <&reg_5v0>;
0062                 status = "okay";
0063         };
0064 };
0065 
0066 &i2c1 {
0067         status = "okay";
0068 
0069         /* M41T0M6 real time clock on carrier board */
0070         m41t0m6: rtc@68 {
0071                 compatible = "st,m41t0";
0072                 reg = <0x68>;
0073         };
0074 };
0075 
0076 /* PWM <A> */
0077 &pwm4 {
0078         status = "okay";
0079 };
0080 
0081 /* PWM <B> */
0082 &pwm5 {
0083         status = "okay";
0084 };
0085 
0086 /* PWM <C> */
0087 &pwm6 {
0088         status = "okay";
0089 };
0090 
0091 /* PWM <D> */
0092 &pwm7 {
0093         status = "okay";
0094 };
0095 
0096 &uart1 {
0097         status = "okay";
0098 };
0099 
0100 &uart2 {
0101         status = "okay";
0102 };
0103 
0104 &uart5 {
0105         status = "okay";
0106 };
0107 
0108 &usbotg1 {
0109         vbus-supply = <&reg_usbh_vbus>;
0110         status = "okay";
0111 };
0112 
0113 &usbotg2 {
0114         vbus-supply = <&reg_usbh_vbus>;
0115         status = "okay";
0116 };
0117 
0118 &usdhc1 {
0119         vmmc-supply = <&reg_3v3>;
0120         status = "okay";
0121 };