Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * USB armory MkI device tree file
0003  * https://inversepath.com/usbarmory
0004  *
0005  * Copyright (C) 2015, Inverse Path
0006  * Andrej Rosano <andrej@inversepath.com>
0007  *
0008  * This file is dual-licensed: you can use it either under the terms
0009  * of the GPL or the X11 license, at your option. Note that this dual
0010  * licensing only applies to this file, and not this project as a
0011  * whole.
0012  *
0013  *  a) This file is free software; you can redistribute it and/or
0014  *     modify it under the terms of the GNU General Public License as
0015  *     published by the Free Software Foundation; either version 2 of the
0016  *     License, or (at your option) any later version.
0017  *
0018  *     This file is distributed in the hope that it will be useful,
0019  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
0020  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0021  *     GNU General Public License for more details.
0022  *
0023  * Or, alternatively,
0024  *
0025  *  b) Permission is hereby granted, free of charge, to any person
0026  *     obtaining a copy of this software and associated documentation
0027  *     files (the "Software"), to deal in the Software without
0028  *     restriction, including without limitation the rights to use,
0029  *     copy, modify, merge, publish, distribute, sublicense, and/or
0030  *     sell copies of the Software, and to permit persons to whom the
0031  *     Software is furnished to do so, subject to the following
0032  *     conditions:
0033  *
0034  *     The above copyright notice and this permission notice shall be
0035  *     included in all copies or substantial portions of the Software.
0036  *
0037  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0038  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0039  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0040  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0041  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0042  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0043  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0044  *     OTHER DEALINGS IN THE SOFTWARE.
0045  */
0046 
0047 /dts-v1/;
0048 #include "imx53.dtsi"
0049 
0050 / {
0051         model = "Inverse Path USB armory";
0052         compatible = "inversepath,imx53-usbarmory", "fsl,imx53";
0053 };
0054 
0055 / {
0056         chosen {
0057                 stdout-path = &uart1;
0058         };
0059 
0060         memory@70000000 {
0061                 device_type = "memory";
0062                 reg = <0x70000000 0x20000000>;
0063         };
0064 
0065         leds {
0066                 compatible = "gpio-leds";
0067                 pinctrl-names = "default";
0068                 pinctrl-0 = <&pinctrl_led>;
0069 
0070                 user {
0071                         label = "LED";
0072                         gpios = <&gpio4 27 GPIO_ACTIVE_LOW>;
0073                         linux,default-trigger = "heartbeat";
0074                 };
0075         };
0076 };
0077 
0078 /*
0079  * Not every i.MX53 P/N supports clock > 800MHz.
0080  * As USB armory does not mount a specific P/N set a safe clock upper limit.
0081  */
0082 &cpu0 {
0083         operating-points = <
0084                 /* kHz */
0085                 166666  850000
0086                 400000  900000
0087                 800000 1050000
0088         >;
0089 };
0090 
0091 &esdhc1 {
0092         pinctrl-names = "default";
0093         pinctrl-0 = <&pinctrl_esdhc1>;
0094         status = "okay";
0095 };
0096 
0097 &iomuxc {
0098         pinctrl_esdhc1: esdhc1grp {
0099                 fsl,pins = <
0100                         MX53_PAD_SD1_DATA0__ESDHC1_DAT0         0x1d5
0101                         MX53_PAD_SD1_DATA1__ESDHC1_DAT1         0x1d5
0102                         MX53_PAD_SD1_DATA2__ESDHC1_DAT2         0x1d5
0103                         MX53_PAD_SD1_DATA3__ESDHC1_DAT3         0x1d5
0104                         MX53_PAD_SD1_CMD__ESDHC1_CMD            0x1d5
0105                         MX53_PAD_SD1_CLK__ESDHC1_CLK            0x1d5
0106                 >;
0107         };
0108 
0109         pinctrl_i2c1_pmic: i2c1grp {
0110                 fsl,pins = <
0111                         MX53_PAD_EIM_D21__I2C1_SCL      0x80
0112                         MX53_PAD_EIM_D28__I2C1_SDA      0x80
0113                 >;
0114         };
0115 
0116         pinctrl_led: ledgrp {
0117                 fsl,pins = <
0118                         MX53_PAD_DISP0_DAT6__GPIO4_27 0x1e4
0119                 >;
0120         };
0121 
0122         /*
0123          * UART mode pin header configuration
0124          * 3 - GPIO5[26], pull-down 100K
0125          * 4 - GPIO5[27], pull-down 100K
0126          * 5 - TX, pull-up 100K
0127          * 6 - RX, pull-up 100K
0128          * 7 - GPIO5[30], pull-down 100K
0129          */
0130         pinctrl_uart1: uart1grp {
0131                 fsl,pins = <
0132                         MX53_PAD_CSI0_DAT8__GPIO5_26            0xc0
0133                         MX53_PAD_CSI0_DAT9__GPIO5_27            0xc0
0134                         MX53_PAD_CSI0_DAT10__UART1_TXD_MUX      0x1e4
0135                         MX53_PAD_CSI0_DAT11__UART1_RXD_MUX      0x1e4
0136                         MX53_PAD_CSI0_DAT12__GPIO5_30           0xc0
0137                 >;
0138         };
0139 };
0140 
0141 &i2c1 {
0142         pinctrl-0 = <&pinctrl_i2c1_pmic>;
0143         status = "okay";
0144 
0145         ltc3589: pmic@34 {
0146                 compatible = "lltc,ltc3589-2";
0147                 reg = <0x34>;
0148 
0149                 regulators {
0150                         sw1_reg: sw1 {
0151                                 regulator-min-microvolt = <591930>;
0152                                 regulator-max-microvolt = <1224671>;
0153                                 lltc,fb-voltage-divider = <100000 158000>;
0154                                 regulator-ramp-delay = <7000>;
0155                                 regulator-boot-on;
0156                                 regulator-always-on;
0157                         };
0158 
0159                         sw2_reg: sw2 {
0160                                 regulator-min-microvolt = <704123>;
0161                                 regulator-max-microvolt = <1456803>;
0162                                 lltc,fb-voltage-divider = <180000 191000>;
0163                                 regulator-ramp-delay = <7000>;
0164                                 regulator-boot-on;
0165                                 regulator-always-on;
0166                         };
0167 
0168                         sw3_reg: sw3 {
0169                                 regulator-min-microvolt = <1341250>;
0170                                 regulator-max-microvolt = <2775000>;
0171                                 lltc,fb-voltage-divider = <270000 100000>;
0172                                 regulator-ramp-delay = <7000>;
0173                                 regulator-boot-on;
0174                                 regulator-always-on;
0175                         };
0176 
0177                         bb_out_reg: bb-out {
0178                                 regulator-min-microvolt = <3387341>;
0179                                 regulator-max-microvolt = <3387341>;
0180                                 lltc,fb-voltage-divider = <511000 158000>;
0181                                 regulator-boot-on;
0182                                 regulator-always-on;
0183                         };
0184 
0185                         ldo1_reg: ldo1 {
0186                                 regulator-min-microvolt = <1306329>;
0187                                 regulator-max-microvolt = <1306329>;
0188                                 lltc,fb-voltage-divider = <100000 158000>;
0189                                 regulator-boot-on;
0190                                 regulator-always-on;
0191                         };
0192 
0193                         ldo2_reg: ldo2 {
0194                                 regulator-min-microvolt = <704123>;
0195                                 regulator-max-microvolt = <1456806>;
0196                                 lltc,fb-voltage-divider = <180000 191000>;
0197                                 regulator-ramp-delay = <7000>;
0198                                 regulator-boot-on;
0199                                 regulator-always-on;
0200                         };
0201 
0202                         ldo3_reg: ldo3 {
0203                                 regulator-min-microvolt = <2800000>;
0204                                 regulator-max-microvolt = <2800000>;
0205                                 regulator-boot-on;
0206                         };
0207 
0208                         ldo4_reg: ldo4 {
0209                                 regulator-min-microvolt = <1200000>;
0210                                 regulator-max-microvolt = <3200000>;
0211                         };
0212                 };
0213         };
0214 };
0215 
0216 &uart1 {
0217         pinctrl-names = "default";
0218         pinctrl-0 = <&pinctrl_uart1>;
0219         status = "okay";
0220 };
0221 
0222 &usbotg {
0223         dr_mode = "peripheral";
0224         status = "okay";
0225 };