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