Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 //
0003 // Copyright (C) 2016-2018 Vladimir Zapolskiy <vz@mleia.com>
0004 
0005 /dts-v1/;
0006 
0007 #include "imx31.dtsi"
0008 
0009 #include <dt-bindings/gpio/gpio.h>
0010 #include <dt-bindings/interrupt-controller/irq.h>
0011 
0012 / {
0013         model = "LogicPD i.MX31 Lite";
0014         compatible = "logicpd,imx31-lite", "fsl,imx31";
0015 
0016         chosen {
0017                 stdout-path = &uart1;
0018         };
0019 
0020         memory@80000000 {
0021                 device_type = "memory";
0022                 reg = <0x80000000 0x8000000>;
0023         };
0024 
0025         leds {
0026                 compatible = "gpio-leds";
0027 
0028                 led0 {
0029                         gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
0030                 };
0031 
0032                 led1 {
0033                         gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
0034                 };
0035         };
0036 };
0037 
0038 &ata {
0039         status = "okay";
0040 };
0041 
0042 &nfc {
0043         nand-bus-width = <8>;
0044         nand-ecc-mode = "hw";
0045         nand-on-flash-bbt;
0046         status = "okay";
0047 };
0048 
0049 &sdhci1 {
0050         bus-width = <4>;
0051         cd-gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
0052         wp-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
0053         status = "okay";
0054 };
0055 
0056 &spi2 {
0057         status = "okay";
0058 
0059         pmic@0 {
0060                 compatible = "fsl,mc13783";
0061                 reg = <0>;
0062                 spi-cs-high;
0063                 spi-max-frequency = <1000000>;
0064                 interrupt-parent = <&gpio1>;
0065                 interrupts = <3 IRQ_TYPE_EDGE_RISING>;
0066 
0067                 fsl,mc13xxx-uses-adc;
0068                 fsl,mc13xxx-uses-rtc;
0069 
0070                 regulators {
0071                         sw1a {          /* QVCC */
0072                                 regulator-min-microvolt = <1200000>;
0073                                 regulator-max-microvolt = <1500000>;
0074                                 regulator-always-on;
0075                                 regulator-boot-on;
0076                         };
0077 
0078                         sw1b {          /* QVCC */
0079                                 regulator-min-microvolt = <1200000>;
0080                                 regulator-max-microvolt = <1500000>;
0081                                 regulator-always-on;
0082                                 regulator-boot-on;
0083                         };
0084 
0085                         sw2a {          /* 1.8V_DDR, NVCC2, NVCC21 and NVCC22 */
0086                                 regulator-min-microvolt = <1800000>;
0087                                 regulator-max-microvolt = <1800000>;
0088                                 regulator-always-on;
0089                                 regulator-boot-on;
0090                         };
0091 
0092                         sw2b {          /* NVCC10 */
0093                                 regulator-min-microvolt = <1800000>;
0094                                 regulator-max-microvolt = <1800000>;
0095                                 regulator-always-on;
0096                                 regulator-boot-on;
0097                         };
0098 
0099                         violo {         /* NVCC1 and NVCC7 */
0100                                 regulator-min-microvolt = <1800000>;
0101                                 regulator-max-microvolt = <1800000>;
0102                                 regulator-always-on;
0103                                 regulator-boot-on;
0104                         };
0105 
0106                         viohi {         /* VIOHI */
0107                                 regulator-min-microvolt = <2775000>;
0108                                 regulator-max-microvolt = <2775000>;
0109                                 regulator-always-on;
0110                                 regulator-boot-on;
0111                         };
0112 
0113                         vaudio {        /* VAUDIO */
0114                                 regulator-min-microvolt = <2775000>;
0115                                 regulator-max-microvolt = <2775000>;
0116                         };
0117 
0118                         vcam {          /* NVCC4 */
0119                                 regulator-min-microvolt = <2800000>;
0120                                 regulator-max-microvolt = <2800000>;
0121                         };
0122 
0123                         vgen {          /* NVCC5 / NVCC8 and NVCC6 / NVCC9 */
0124                                 regulator-min-microvolt = <2775000>;
0125                                 regulator-max-microvolt = <2775000>;
0126                                 regulator-always-on;
0127                                 regulator-boot-on;
0128                         };
0129 
0130                         vmmc2 {         /* NVCC3 */
0131                                 regulator-min-microvolt = <1600000>;
0132                                 regulator-max-microvolt = <3000000>;
0133                                 regulator-always-on;
0134                                 regulator-boot-on;
0135                         };
0136                 };
0137         };
0138 };
0139 
0140 &uart1 {
0141         uart-has-rtscts;
0142         status = "okay";
0143 };
0144 
0145 /* Routed to the extension board */
0146 &uart2 {
0147         uart-has-rtscts;
0148         status = "okay";
0149 };
0150 
0151 /* Routed to the extension board */
0152 &uart3 {
0153         uart-has-rtscts;
0154         status = "okay";
0155 };
0156 
0157 &weim {
0158         status = "okay";
0159 
0160         nor@0,0 {
0161                 compatible = "cfi-flash";
0162                 reg = <0 0x0 0x200000>;
0163                 bank-width = <2>;
0164                 linux,mtd-name = "physmap-flash.0";
0165                 fsl,weim-cs-timing = <0x0000cf03 0xa0330d01 0x00220800>;
0166         };
0167 
0168         ethernet@4,0 {
0169                 compatible = "smsc,lan9117", "smsc,lan9115";
0170                 reg = <4 0x0 0x100>;
0171                 interrupt-parent = <&gpio1>;
0172                 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
0173                 phy-mode = "mii";
0174                 reg-io-width = <2>;
0175                 smsc,irq-push-pull;
0176                 fsl,weim-cs-timing = <0x00008701 0x04000541 0x00010000>;
0177         };
0178 };