1*4882a593Smuzhiyun/* 2*4882a593Smuzhiyun * Copyright (C) 2013-2016 Marek Vasut <marek.vasut@gmail.com> 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * This file is dual-licensed: you can use it either under the terms 5*4882a593Smuzhiyun * of the GPL or the X11 license, at your option. Note that this dual 6*4882a593Smuzhiyun * licensing only applies to this file, and not this project as a 7*4882a593Smuzhiyun * whole. 8*4882a593Smuzhiyun * 9*4882a593Smuzhiyun * a) This file is free software; you can redistribute it and/or 10*4882a593Smuzhiyun * modify it under the terms of the GNU General Public License as 11*4882a593Smuzhiyun * published by the Free Software Foundation; either version 2 of 12*4882a593Smuzhiyun * the License, or (at your option) any later version. 13*4882a593Smuzhiyun * 14*4882a593Smuzhiyun * This file is distributed in the hope that it will be useful, 15*4882a593Smuzhiyun * but WITHOUT ANY WARRANTY; without even the implied warranty of 16*4882a593Smuzhiyun * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17*4882a593Smuzhiyun * GNU General Public License for more details. 18*4882a593Smuzhiyun * 19*4882a593Smuzhiyun * Or, alternatively, 20*4882a593Smuzhiyun * 21*4882a593Smuzhiyun * b) Permission is hereby granted, free of charge, to any person 22*4882a593Smuzhiyun * obtaining a copy of this software and associated documentation 23*4882a593Smuzhiyun * files (the "Software"), to deal in the Software without 24*4882a593Smuzhiyun * restriction, including without limitation the rights to use, 25*4882a593Smuzhiyun * copy, modify, merge, publish, distribute, sublicense, and/or 26*4882a593Smuzhiyun * sell copies of the Software, and to permit persons to whom the 27*4882a593Smuzhiyun * Software is furnished to do so, subject to the following 28*4882a593Smuzhiyun * conditions: 29*4882a593Smuzhiyun * 30*4882a593Smuzhiyun * The above copyright notice and this permission notice shall be 31*4882a593Smuzhiyun * included in all copies or substantial portions of the Software. 32*4882a593Smuzhiyun * 33*4882a593Smuzhiyun * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34*4882a593Smuzhiyun * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35*4882a593Smuzhiyun * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36*4882a593Smuzhiyun * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37*4882a593Smuzhiyun * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 38*4882a593Smuzhiyun * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39*4882a593Smuzhiyun * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40*4882a593Smuzhiyun * OTHER DEALINGS IN THE SOFTWARE. 41*4882a593Smuzhiyun * 42*4882a593Smuzhiyun */ 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun/dts-v1/; 45*4882a593Smuzhiyun#include <dt-bindings/gpio/gpio.h> 46*4882a593Smuzhiyun#include "imx23.dtsi" 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun/ { 49*4882a593Smuzhiyun model = "SanDisk Sansa Fuze+"; 50*4882a593Smuzhiyun compatible = "sandisk,sansa_fuze_plus", "fsl,imx23"; 51*4882a593Smuzhiyun 52*4882a593Smuzhiyun memory@40000000 { 53*4882a593Smuzhiyun device_type = "memory"; 54*4882a593Smuzhiyun reg = <0x40000000 0x04000000>; 55*4882a593Smuzhiyun }; 56*4882a593Smuzhiyun 57*4882a593Smuzhiyun apb@80000000 { 58*4882a593Smuzhiyun apbh@80000000 { 59*4882a593Smuzhiyun ssp0: spi@80010000 { 60*4882a593Smuzhiyun compatible = "fsl,imx23-mmc"; 61*4882a593Smuzhiyun pinctrl-names = "default"; 62*4882a593Smuzhiyun pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_pins_fixup>; 63*4882a593Smuzhiyun bus-width = <4>; 64*4882a593Smuzhiyun vmmc-supply = <®_vddio_sd0>; 65*4882a593Smuzhiyun cd-inverted; 66*4882a593Smuzhiyun status = "okay"; 67*4882a593Smuzhiyun }; 68*4882a593Smuzhiyun 69*4882a593Smuzhiyun ssp1: spi@80034000 { 70*4882a593Smuzhiyun compatible = "fsl,imx23-mmc"; 71*4882a593Smuzhiyun pinctrl-names = "default"; 72*4882a593Smuzhiyun pinctrl-0 = <&mmc1_8bit_pins_a>; 73*4882a593Smuzhiyun bus-width = <8>; 74*4882a593Smuzhiyun vmmc-supply = <®_vddio_sd1>; 75*4882a593Smuzhiyun non-removable; 76*4882a593Smuzhiyun status = "okay"; 77*4882a593Smuzhiyun }; 78*4882a593Smuzhiyun 79*4882a593Smuzhiyun pinctrl@80018000 { 80*4882a593Smuzhiyun pinctrl-names = "default"; 81*4882a593Smuzhiyun pinctrl-0 = <&hog_pins_a>; 82*4882a593Smuzhiyun 83*4882a593Smuzhiyun hog_pins_a: hog@0 { 84*4882a593Smuzhiyun reg = <0>; 85*4882a593Smuzhiyun fsl,pinmux-ids = < 86*4882a593Smuzhiyun MX23_PAD_GPMI_D08__GPIO_0_8 87*4882a593Smuzhiyun MX23_PAD_PWM3__GPIO_1_29 88*4882a593Smuzhiyun MX23_PAD_AUART1_RTS__GPIO_0_27 89*4882a593Smuzhiyun MX23_PAD_AUART1_CTS__GPIO_0_26 90*4882a593Smuzhiyun MX23_PAD_I2C_SCL__I2C_SCL 91*4882a593Smuzhiyun MX23_PAD_I2C_SDA__I2C_SDA 92*4882a593Smuzhiyun MX23_PAD_LCD_DOTCK__GPIO_1_22 93*4882a593Smuzhiyun MX23_PAD_LCD_HSYNC__GPIO_1_24 94*4882a593Smuzhiyun MX23_PAD_PWM3__GPIO_1_29 95*4882a593Smuzhiyun >; 96*4882a593Smuzhiyun fsl,drive-strength = <0>; 97*4882a593Smuzhiyun fsl,voltage = <1>; 98*4882a593Smuzhiyun fsl,pull-up = <0>; 99*4882a593Smuzhiyun }; 100*4882a593Smuzhiyun }; 101*4882a593Smuzhiyun }; 102*4882a593Smuzhiyun 103*4882a593Smuzhiyun apbx@80040000 { 104*4882a593Smuzhiyun pwm: pwm@80064000 { 105*4882a593Smuzhiyun pinctrl-names = "default"; 106*4882a593Smuzhiyun pinctrl-0 = <&pwm2_pins_a>; 107*4882a593Smuzhiyun status = "okay"; 108*4882a593Smuzhiyun }; 109*4882a593Smuzhiyun 110*4882a593Smuzhiyun duart: serial@80070000 { 111*4882a593Smuzhiyun pinctrl-names = "default"; 112*4882a593Smuzhiyun pinctrl-0 = <&duart_pins_a>; 113*4882a593Smuzhiyun status = "okay"; 114*4882a593Smuzhiyun }; 115*4882a593Smuzhiyun 116*4882a593Smuzhiyun usbphy0: usbphy@8007c000 { 117*4882a593Smuzhiyun status = "okay"; 118*4882a593Smuzhiyun }; 119*4882a593Smuzhiyun 120*4882a593Smuzhiyun lradc@80050000 { 121*4882a593Smuzhiyun status = "okay"; 122*4882a593Smuzhiyun }; 123*4882a593Smuzhiyun }; 124*4882a593Smuzhiyun }; 125*4882a593Smuzhiyun 126*4882a593Smuzhiyun ahb@80080000 { 127*4882a593Smuzhiyun usb0: usb@80080000 { 128*4882a593Smuzhiyun dr_mode = "peripheral"; 129*4882a593Smuzhiyun status = "okay"; 130*4882a593Smuzhiyun }; 131*4882a593Smuzhiyun }; 132*4882a593Smuzhiyun 133*4882a593Smuzhiyun reg_vddio_sd0: regulator-vddio-sd0 { 134*4882a593Smuzhiyun compatible = "regulator-fixed"; 135*4882a593Smuzhiyun regulator-name = "vddio-sd0"; 136*4882a593Smuzhiyun regulator-min-microvolt = <3300000>; 137*4882a593Smuzhiyun regulator-max-microvolt = <3300000>; 138*4882a593Smuzhiyun gpio = <&gpio0 8 0>; 139*4882a593Smuzhiyun }; 140*4882a593Smuzhiyun 141*4882a593Smuzhiyun reg_vddio_sd1: regulator-vddio-sd1 { 142*4882a593Smuzhiyun compatible = "regulator-fixed"; 143*4882a593Smuzhiyun regulator-name = "vddio-sd1"; 144*4882a593Smuzhiyun regulator-min-microvolt = <3300000>; 145*4882a593Smuzhiyun regulator-max-microvolt = <3300000>; 146*4882a593Smuzhiyun gpio = <&gpio1 29 0>; 147*4882a593Smuzhiyun }; 148*4882a593Smuzhiyun 149*4882a593Smuzhiyun reg_vdd_touchpad: regulator-vdd-touchpad0 { 150*4882a593Smuzhiyun compatible = "regulator-fixed"; 151*4882a593Smuzhiyun regulator-name = "vdd-touchpad0"; 152*4882a593Smuzhiyun regulator-min-microvolt = <3300000>; 153*4882a593Smuzhiyun regulator-max-microvolt = <3300000>; 154*4882a593Smuzhiyun gpio = <&gpio0 26 GPIO_ACTIVE_LOW>; 155*4882a593Smuzhiyun regulator-always-on; 156*4882a593Smuzhiyun }; 157*4882a593Smuzhiyun 158*4882a593Smuzhiyun reg_vdd_tuner: regulator-vdd-tuner0 { 159*4882a593Smuzhiyun compatible = "regulator-fixed"; 160*4882a593Smuzhiyun regulator-name = "vdd-tuner0"; 161*4882a593Smuzhiyun regulator-min-microvolt = <3300000>; 162*4882a593Smuzhiyun regulator-max-microvolt = <3300000>; 163*4882a593Smuzhiyun gpio = <&gpio0 29 GPIO_ACTIVE_LOW>; 164*4882a593Smuzhiyun regulator-always-on; 165*4882a593Smuzhiyun }; 166*4882a593Smuzhiyun 167*4882a593Smuzhiyun backlight { 168*4882a593Smuzhiyun compatible = "pwm-backlight"; 169*4882a593Smuzhiyun pwms = <&pwm 2 5000000>; 170*4882a593Smuzhiyun brightness-levels = <0 4 8 16 32 64 128 255>; 171*4882a593Smuzhiyun default-brightness-level = <6>; 172*4882a593Smuzhiyun }; 173*4882a593Smuzhiyun 174*4882a593Smuzhiyun i2c-0 { 175*4882a593Smuzhiyun #address-cells = <1>; 176*4882a593Smuzhiyun #size-cells = <0>; 177*4882a593Smuzhiyun compatible = "i2c-gpio"; 178*4882a593Smuzhiyun gpios = < 179*4882a593Smuzhiyun &gpio1 24 0 /* SDA */ 180*4882a593Smuzhiyun &gpio1 22 0 /* SCL */ 181*4882a593Smuzhiyun >; 182*4882a593Smuzhiyun i2c-gpio,delay-us = <2>; /* ~100 kHz */ 183*4882a593Smuzhiyun }; 184*4882a593Smuzhiyun 185*4882a593Smuzhiyun i2c-1 { 186*4882a593Smuzhiyun #address-cells = <1>; 187*4882a593Smuzhiyun #size-cells = <0>; 188*4882a593Smuzhiyun compatible = "i2c-gpio"; 189*4882a593Smuzhiyun gpios = < 190*4882a593Smuzhiyun &gpio0 31 0 /* SDA */ 191*4882a593Smuzhiyun &gpio0 30 0 /* SCL */ 192*4882a593Smuzhiyun >; 193*4882a593Smuzhiyun i2c-gpio,delay-us = <2>; /* ~100 kHz */ 194*4882a593Smuzhiyun 195*4882a593Smuzhiyun touch: touch@20 { 196*4882a593Smuzhiyun compatible = "synaptics,synaptics_i2c"; 197*4882a593Smuzhiyun reg = <0x20>; 198*4882a593Smuzhiyun }; 199*4882a593Smuzhiyun 200*4882a593Smuzhiyun eeprom: eeprom@50 { 201*4882a593Smuzhiyun compatible = "atmel,24c64"; 202*4882a593Smuzhiyun reg = <0x50>; 203*4882a593Smuzhiyun pagesize = <32>; 204*4882a593Smuzhiyun }; 205*4882a593Smuzhiyun }; 206*4882a593Smuzhiyun 207*4882a593Smuzhiyun}; 208