Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Device Tree file for VInCo platform
0004  *
0005  *  Copyright (C) 2014 Atmel,
0006  *                2014 Nicolas Ferre <nicolas.ferre@atmel.com>
0007  *   2015 Gregory CLEMENT <gregory.clement@free-electrons.com>
0008  */
0009 /dts-v1/;
0010 #include "sama5d4.dtsi"
0011 
0012 / {
0013         model = "L+G VInCo platform";
0014         compatible = "l+g,vinco", "atmel,sama5d4", "atmel,sama5";
0015 
0016         chosen {
0017                 stdout-path = "serial0:115200n8";
0018         };
0019 
0020         memory@20000000 {
0021                 reg = <0x20000000 0x4000000>;
0022         };
0023 
0024         clocks {
0025                 slow_xtal {
0026                         clock-frequency = <32768>;
0027                 };
0028 
0029                 main_xtal {
0030                         clock-frequency = <12000000>;
0031                 };
0032         };
0033 
0034         ahb {
0035                 apb {
0036 
0037                         adc0: adc@fc034000 {
0038                                 status = "okay"; /* Enable ADC IIO support */
0039                         };
0040 
0041                         mmc0: mmc@f8000000 {
0042                                 pinctrl-names = "default";
0043                                 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0
0044                                              &pinctrl_mmc0_dat1_3
0045                                              &pinctrl_mmc0_dat4_7>;
0046                                 vqmmc-supply = <&vcc_3v3_reg>;
0047                                 vmmc-supply = <&vcc_3v3_reg>;
0048                                 no-1-8-v;
0049                                 status = "okay";
0050                                 slot@0 {
0051                                         reg = <0>;
0052                                         bus-width = <8>;
0053                                         non-removable;
0054                                         broken-cd;
0055                                         status = "okay";
0056                                 };
0057                         };
0058 
0059                         spi0: spi@f8010000 {
0060                                 cs-gpios = <&pioC 3 0>, <0>, <0>, <0>;
0061                                 status = "okay";
0062                                 flash@0 {
0063                                         compatible = "n25q32b", "jedec,spi-nor";
0064                                         spi-max-frequency = <50000000>;
0065                                         reg = <0>;
0066                                 };
0067                         };
0068 
0069                         i2c0: i2c@f8014000 {
0070                                 status = "okay";
0071                         };
0072 
0073                         i2c1: i2c@f8018000 {
0074                                 status = "okay";
0075                                 /* kerkey security module */
0076                         };
0077 
0078                         macb0: ethernet@f8020000 {
0079                                 phy-mode = "rmii";
0080                                 status = "okay";
0081 
0082                                 ethernet-phy@1 {
0083                                         reg = <0x1>;
0084                                         reset-gpios = <&pioE 8 GPIO_ACTIVE_LOW>;
0085                                         interrupt-parent = <&pioB>;
0086                                         interrupts = <15 IRQ_TYPE_EDGE_FALLING>;
0087                                 };
0088 
0089                         };
0090 
0091                         i2c2: i2c@f8024000 {
0092                                 status = "okay";
0093 
0094                                 rtc1: rtc@32 {
0095                                         compatible = "epson,rx8900";
0096                                         reg = <0x32>;
0097                                 };
0098                         };
0099 
0100                         usart2: serial@fc008000 {
0101                                 /* MBUS */
0102                                 status = "okay";
0103                         };
0104 
0105                         usart3: serial@fc00c000 {
0106                                 /* debug */
0107                                 status = "okay";
0108                         };
0109 
0110                         usart4: serial@fc010000 {
0111                                 /* LMN */
0112                                 pinctrl-0 = <&pinctrl_usart4 &pinctrl_usart4_rts>;
0113                                 linux,rs485-enabled-at-boot-time;
0114                                 status = "okay";
0115                         };
0116 
0117                         tcb2: timer@fc024000 {
0118                                 timer@0 {
0119                                         compatible = "atmel,tcb-timer";
0120                                         reg = <0>;
0121                                 };
0122 
0123                                 timer@1 {
0124                                         compatible = "atmel,tcb-timer";
0125                                         reg = <1>;
0126                                 };
0127                         };
0128 
0129                         macb1: ethernet@fc028000 {
0130                                 phy-mode = "rmii";
0131                                 status = "okay";
0132                                 #address-cells = <1>;
0133                                 #size-cells = <0>;
0134                                 status = "okay";
0135 
0136                                 ethernet-phy@1 {
0137                                         reg = <0x1>;
0138                                         interrupt-parent = <&pioB>;
0139                                         interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
0140                                         reset-gpios = <&pioE 6 GPIO_ACTIVE_LOW>;
0141                                 };
0142                         };
0143 
0144                         watchdog@fc068640 {
0145                                 status = "okay";
0146                         };
0147 
0148                         pinctrl@fc06a000 {
0149                                 board {
0150                                         pinctrl_usba_vbus: usba_vbus {
0151                                                 atmel,pins =
0152                                                 <AT91_PIOE 31 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;
0153                                         };
0154                                 };
0155                         };
0156                 };
0157 
0158                 usb0: gadget@400000 {
0159                         atmel,vbus-gpio = <&pioE 31 GPIO_ACTIVE_HIGH>;
0160                         pinctrl-names = "default";
0161                         pinctrl-0 = <&pinctrl_usba_vbus>;
0162                         status = "disable";
0163                 };
0164 
0165                 usb1: ohci@500000 {
0166                         num-ports = <3>;
0167                         atmel,vbus-gpio = <0
0168                                            &pioE 11 GPIO_ACTIVE_LOW
0169                                            &pioE 12 GPIO_ACTIVE_LOW
0170                                           >;
0171                         status = "disable";
0172                 };
0173 
0174                 usb2: ehci@600000 {
0175                         /* 4G Modem */
0176                         status = "okay";
0177                 };
0178 
0179         };
0180 
0181         leds {
0182                 compatible = "gpio-leds";
0183                 status = "okay";
0184 
0185                 led_err {
0186                         label = "err";
0187                         gpios = <&pioA 7 GPIO_ACTIVE_LOW>;
0188                         default-state = "off";
0189                 };
0190 
0191                 led_rssi {
0192                         label = "rssi";
0193                         gpios = <&pioA 9 GPIO_ACTIVE_LOW>;
0194                         default-state = "off";
0195                 };
0196 
0197                 led_tls {
0198                         label = "tls";
0199                         gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
0200                         default-state = "off";
0201                 };
0202 
0203                 led_lmc {
0204                         label = "lmc";
0205                         gpios = <&pioA 25 GPIO_ACTIVE_LOW>;
0206                         default-state = "off";
0207                 };
0208 
0209                 led_wmt {
0210                         label = "wmt";
0211                         gpios = <&pioA 29 GPIO_ACTIVE_LOW>;
0212                         default-state = "off";
0213                 };
0214 
0215                 led_pwr {
0216                         label = "pwr";
0217                         gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
0218                         default-state = "on";
0219                 };
0220 
0221         };
0222 
0223         vcc_3v3_reg: fixedregulator_3v3 {
0224                 compatible = "regulator-fixed";
0225                 regulator-name = "VCC 3V3";
0226                 regulator-min-microvolt = <3300000>;
0227                 regulator-max-microvolt = <3300000>;
0228                 regulator-boot-on;
0229                 regulator-always-on;
0230         };
0231 };