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 "imx23.dtsi"
0046 
0047 / {
0048         model = "Creative ZEN X-Fi3";
0049         compatible = "creative,x-fi3", "fsl,imx23";
0050 
0051         memory@40000000 {
0052                 device_type = "memory";
0053                 reg = <0x40000000 0x04000000>;
0054         };
0055 
0056         apb@80000000 {
0057                 apbh@80000000 {
0058                         ssp0: spi@80010000 {
0059                                 compatible = "fsl,imx23-mmc";
0060                                 pinctrl-names = "default";
0061                                 pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_pins_fixup>;
0062                                 bus-width = <4>;
0063                                 vmmc-supply = <&reg_vddio_sd0>;
0064                                 cd-inverted;
0065                                 status = "okay";
0066                         };
0067 
0068                         ssp1: spi@80034000 {
0069                                 compatible = "fsl,imx23-mmc";
0070                                 pinctrl-names = "default";
0071                                 pinctrl-0 = <&mmc1_4bit_pins_a>;
0072                                 bus-width = <4>;
0073                                 non-removable;
0074                                 status = "okay";
0075                         };
0076 
0077                         pinctrl@80018000 {
0078                                 pinctrl-names = "default";
0079                                 pinctrl-0 = <&hog_pins_a>;
0080 
0081                                 hog_pins_a: hog@0 {
0082                                         reg = <0>;
0083                                         fsl,pinmux-ids = <
0084                                                 MX23_PAD_GPMI_D07__GPIO_0_7
0085                                         >;
0086                                         fsl,drive-strength = <0>;
0087                                         fsl,voltage = <1>;
0088                                         fsl,pull-up = <0>;
0089                                 };
0090 
0091                                 key_pins_a: keys@0 {
0092                                         reg = <0>;
0093                                         fsl,pinmux-ids = <
0094                                                 MX23_PAD_ROTARYA__GPIO_2_7
0095                                                 MX23_PAD_ROTARYB__GPIO_2_8
0096                                         >;
0097                                         fsl,drive-strength = <0>;
0098                                         fsl,voltage = <1>;
0099                                         fsl,pull-up = <1>;
0100                                 };
0101                         };
0102                 };
0103 
0104                 apbx@80040000 {
0105                         i2c: i2c@80058000 {
0106                                 pinctrl-names = "default";
0107                                 pinctrl-0 = <&i2c_pins_a>;
0108                                 status = "okay";
0109                         };
0110 
0111                         pwm: pwm@80064000 {
0112                                 pinctrl-names = "default";
0113                                 pinctrl-0 = <&pwm2_pins_a>;
0114                                 status = "okay";
0115                         };
0116 
0117                         duart: serial@80070000 {
0118                                 pinctrl-names = "default";
0119                                 pinctrl-0 = <&duart_pins_a>;
0120                                 status = "okay";
0121                         };
0122 
0123                         auart1: serial@8006e000 {
0124                                 pinctrl-names = "default";
0125                                 pinctrl-0 = <&auart1_2pins_a>;
0126                                 status = "okay";
0127                         };
0128 
0129                         usbphy0: usbphy@8007c000 {
0130                                 status = "okay";
0131                         };
0132 
0133                         lradc@80050000 {
0134                                 status = "okay";
0135                         };
0136                 };
0137         };
0138 
0139         ahb@80080000 {
0140                 usb0: usb@80080000 {
0141                         dr_mode = "peripheral";
0142                         status = "okay";
0143                 };
0144         };
0145 
0146         reg_vddio_sd0: regulator-vddio-sd0 {
0147                 compatible = "regulator-fixed";
0148                 regulator-name = "vddio-sd0";
0149                 regulator-min-microvolt = <3300000>;
0150                 regulator-max-microvolt = <3300000>;
0151                 gpio = <&gpio0 7 0>;
0152         };
0153 
0154         backlight {
0155                 compatible = "pwm-backlight";
0156                 pwms = <&pwm 2 5000000>;
0157                 brightness-levels = <0 4 8 16 32 64 128 255>;
0158                 default-brightness-level = <6>;
0159         };
0160 
0161         gpio_keys {
0162                 compatible = "gpio-keys";
0163                 pinctrl-names = "default";
0164                 pinctrl-0 = <&key_pins_a>;
0165 
0166                 voldown {
0167                         label = "volume-down";
0168                         linux,code = <114>;
0169                         gpios = <&gpio2 7 0>;
0170                         debounce-interval = <20>;
0171                 };
0172 
0173                 volup {
0174                         label = "volume-up";
0175                         linux,code = <115>;
0176                         gpios = <&gpio2 8 0>;
0177                         debounce-interval = <20>;
0178                 };
0179         };
0180 };