Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (C) 2013-2016 Marek Vasut <marek.vasut@gmail.com>
0003  *
0004  * This file is dual-licensed: you can use it either under the terms
0005  * of the GPL or the X11 license, at your option. Note that this dual
0006  * licensing only applies to this file, and not this project as a
0007  * whole.
0008  *
0009  *  a) This file is free software; you can redistribute it and/or
0010  *     modify it under the terms of the GNU General Public License as
0011  *     published by the Free Software Foundation; either version 2 of
0012  *     the License, or (at your option) any later version.
0013  *
0014  *     This file is distributed in the hope that it will be useful,
0015  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017  *     GNU General Public License for more details.
0018  *
0019  * Or, alternatively,
0020  *
0021  *  b) Permission is hereby granted, free of charge, to any person
0022  *     obtaining a copy of this software and associated documentation
0023  *     files (the "Software"), to deal in the Software without
0024  *     restriction, including without limitation the rights to use,
0025  *     copy, modify, merge, publish, distribute, sublicense, and/or
0026  *     sell copies of the Software, and to permit persons to whom the
0027  *     Software is furnished to do so, subject to the following
0028  *     conditions:
0029  *
0030  *     The above copyright notice and this permission notice shall be
0031  *     included in all copies or substantial portions of the Software.
0032  *
0033  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0034  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0035  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0036  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0037  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0038  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0039  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0040  *     OTHER DEALINGS IN THE SOFTWARE.
0041  *
0042  */
0043 
0044 /dts-v1/;
0045 #include <dt-bindings/gpio/gpio.h>
0046 #include "imx23.dtsi"
0047 
0048 / {
0049         model = "SanDisk Sansa Fuze+";
0050         compatible = "sandisk,sansa_fuze_plus", "fsl,imx23";
0051 
0052         memory@40000000 {
0053                 device_type = "memory";
0054                 reg = <0x40000000 0x04000000>;
0055         };
0056 
0057         apb@80000000 {
0058                 apbh@80000000 {
0059                         ssp0: spi@80010000 {
0060                                 compatible = "fsl,imx23-mmc";
0061                                 pinctrl-names = "default";
0062                                 pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_pins_fixup>;
0063                                 bus-width = <4>;
0064                                 vmmc-supply = <&reg_vddio_sd0>;
0065                                 cd-inverted;
0066                                 status = "okay";
0067                         };
0068 
0069                         ssp1: spi@80034000 {
0070                                 compatible = "fsl,imx23-mmc";
0071                                 pinctrl-names = "default";
0072                                 pinctrl-0 = <&mmc1_8bit_pins_a>;
0073                                 bus-width = <8>;
0074                                 vmmc-supply = <&reg_vddio_sd1>;
0075                                 non-removable;
0076                                 status = "okay";
0077                         };
0078 
0079                         pinctrl@80018000 {
0080                                 pinctrl-names = "default";
0081                                 pinctrl-0 = <&hog_pins_a>;
0082 
0083                                 hog_pins_a: hog@0 {
0084                                         reg = <0>;
0085                                         fsl,pinmux-ids = <
0086                                                 MX23_PAD_GPMI_D08__GPIO_0_8
0087                                                 MX23_PAD_PWM3__GPIO_1_29
0088                                                 MX23_PAD_AUART1_RTS__GPIO_0_27
0089                                                 MX23_PAD_AUART1_CTS__GPIO_0_26
0090                                                 MX23_PAD_I2C_SCL__I2C_SCL
0091                                                 MX23_PAD_I2C_SDA__I2C_SDA
0092                                                 MX23_PAD_LCD_DOTCK__GPIO_1_22
0093                                                 MX23_PAD_LCD_HSYNC__GPIO_1_24
0094                                                 MX23_PAD_PWM3__GPIO_1_29
0095                                         >;
0096                                         fsl,drive-strength = <0>;
0097                                         fsl,voltage = <1>;
0098                                         fsl,pull-up = <0>;
0099                                 };
0100                         };
0101                 };
0102 
0103                 apbx@80040000 {
0104                         pwm: pwm@80064000 {
0105                                 pinctrl-names = "default";
0106                                 pinctrl-0 = <&pwm2_pins_a>;
0107                                 status = "okay";
0108                         };
0109 
0110                         duart: serial@80070000 {
0111                                 pinctrl-names = "default";
0112                                 pinctrl-0 = <&duart_pins_a>;
0113                                 status = "okay";
0114                         };
0115 
0116                         usbphy0: usbphy@8007c000 {
0117                                 status = "okay";
0118                         };
0119 
0120                         lradc@80050000 {
0121                                 status = "okay";
0122                         };
0123                 };
0124         };
0125 
0126         ahb@80080000 {
0127                 usb0: usb@80080000 {
0128                         dr_mode = "peripheral";
0129                         status = "okay";
0130                 };
0131         };
0132 
0133         reg_vddio_sd0: regulator-vddio-sd0 {
0134                 compatible = "regulator-fixed";
0135                 regulator-name = "vddio-sd0";
0136                 regulator-min-microvolt = <3300000>;
0137                 regulator-max-microvolt = <3300000>;
0138                 gpio = <&gpio0 8 0>;
0139         };
0140 
0141         reg_vddio_sd1: regulator-vddio-sd1 {
0142                 compatible = "regulator-fixed";
0143                 regulator-name = "vddio-sd1";
0144                 regulator-min-microvolt = <3300000>;
0145                 regulator-max-microvolt = <3300000>;
0146                 gpio = <&gpio1 29 0>;
0147         };
0148 
0149         reg_vdd_touchpad: regulator-vdd-touchpad0 {
0150                 compatible = "regulator-fixed";
0151                 regulator-name = "vdd-touchpad0";
0152                 regulator-min-microvolt = <3300000>;
0153                 regulator-max-microvolt = <3300000>;
0154                 gpio = <&gpio0 26 GPIO_ACTIVE_LOW>;
0155                 regulator-always-on;
0156         };
0157 
0158         reg_vdd_tuner: regulator-vdd-tuner0 {
0159                 compatible = "regulator-fixed";
0160                 regulator-name = "vdd-tuner0";
0161                 regulator-min-microvolt = <3300000>;
0162                 regulator-max-microvolt = <3300000>;
0163                 gpio = <&gpio0 29 GPIO_ACTIVE_LOW>;
0164                 regulator-always-on;
0165         };
0166 
0167         backlight {
0168                 compatible = "pwm-backlight";
0169                 pwms = <&pwm 2 5000000>;
0170                 brightness-levels = <0 4 8 16 32 64 128 255>;
0171                 default-brightness-level = <6>;
0172         };
0173 
0174         i2c-0 {
0175                 #address-cells = <1>;
0176                 #size-cells = <0>;
0177                 compatible = "i2c-gpio";
0178                 gpios = <
0179                         &gpio1 24 0             /* SDA */
0180                         &gpio1 22 0             /* SCL */
0181                 >;
0182                 i2c-gpio,delay-us = <2>;        /* ~100 kHz */
0183         };
0184 
0185         i2c-1 {
0186                 #address-cells = <1>;
0187                 #size-cells = <0>;
0188                 compatible = "i2c-gpio";
0189                 gpios = <
0190                         &gpio0 31 0             /* SDA */
0191                         &gpio0 30 0             /* SCL */
0192                 >;
0193                 i2c-gpio,delay-us = <2>;        /* ~100 kHz */
0194 
0195                 touch: touch@20 {
0196                         compatible = "synaptics,synaptics_i2c";
0197                         reg = <0x20>;
0198                 };
0199 
0200                 eeprom: eeprom@50 {
0201                         compatible = "atmel,24c64";
0202                         reg = <0x50>;
0203                         pagesize = <32>;
0204                 };
0205         };
0206 
0207 };