Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v4.11 269 lines 5.7 kB view raw
1/* 2 * Copyright 2015 Chen-Yu Tsai 3 * 4 * Chen-Yu Tsai <wens@csie.org> 5 * 6 * This file is dual-licensed: you can use it either under the terms 7 * of the GPL or the X11 license, at your option. Note that this dual 8 * licensing only applies to this file, and not this project as a 9 * whole. 10 * 11 * a) This file is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU General Public License as 13 * published by the Free Software Foundation; either version 2 of the 14 * License, or (at your option) any later version. 15 * 16 * This file is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * Or, alternatively, 22 * 23 * b) Permission is hereby granted, free of charge, to any person 24 * obtaining a copy of this software and associated documentation 25 * files (the "Software"), to deal in the Software without 26 * restriction, including without limitation the rights to use, 27 * copy, modify, merge, publish, distribute, sublicense, and/or 28 * sell copies of the Software, and to permit persons to whom the 29 * Software is furnished to do so, subject to the following 30 * conditions: 31 * 32 * The above copyright notice and this permission notice shall be 33 * included in all copies or substantial portions of the Software. 34 * 35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 42 * OTHER DEALINGS IN THE SOFTWARE. 43 */ 44 45/dts-v1/; 46#include "sun8i-a33.dtsi" 47#include "sunxi-common-regulators.dtsi" 48 49#include <dt-bindings/gpio/gpio.h> 50#include <dt-bindings/input/input.h> 51#include <dt-bindings/pinctrl/sun4i-a10.h> 52 53/ { 54 model = "Sinlinx SinA33"; 55 compatible = "sinlinx,sina33", "allwinner,sun8i-a33"; 56 57 aliases { 58 serial0 = &uart0; 59 }; 60 61 chosen { 62 stdout-path = "serial0:115200n8"; 63 }; 64 65 panel { 66 compatible = "netron-dy,e231732"; 67 #address-cells = <1>; 68 #size-cells = <0>; 69 70 port@0 { 71 reg = <0>; 72 #address-cells = <1>; 73 #size-cells = <0>; 74 75 panel_input: endpoint@0 { 76 reg = <0>; 77 remote-endpoint = <&tcon0_out_panel>; 78 }; 79 }; 80 }; 81}; 82 83&codec { 84 status = "okay"; 85}; 86 87&de { 88 status = "okay"; 89}; 90 91&dai { 92 status = "okay"; 93}; 94 95&ehci0 { 96 status = "okay"; 97}; 98 99&lradc { 100 vref-supply = <&reg_dcdc1>; 101 status = "okay"; 102 103 button@200 { 104 label = "Volume Up"; 105 linux,code = <KEY_VOLUMEUP>; 106 channel = <0>; 107 voltage = <191011>; 108 }; 109 110 button@400 { 111 label = "Volume Down"; 112 linux,code = <KEY_VOLUMEDOWN>; 113 channel = <0>; 114 voltage = <391304>; 115 }; 116 117 button@600 { 118 label = "Home"; 119 linux,code = <KEY_HOME>; 120 channel = <0>; 121 voltage = <600000>; 122 }; 123}; 124 125&mmc0 { 126 pinctrl-names = "default"; 127 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_sina33>; 128 vmmc-supply = <&reg_dcdc1>; 129 bus-width = <4>; 130 cd-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */ 131 cd-inverted; 132 status = "okay"; 133}; 134 135&mmc2 { 136 pinctrl-names = "default"; 137 pinctrl-0 = <&mmc2_8bit_pins>; 138 vmmc-supply = <&reg_dcdc1>; 139 bus-width = <8>; 140 non-removable; 141 cap-mmc-hw-reset; 142 status = "okay"; 143}; 144 145&mmc2_8bit_pins { 146 /* Increase drive strength for DDR modes */ 147 drive-strength = <40>; 148 /* eMMC is missing pull-ups */ 149 bias-pull-up; 150}; 151 152&ohci0 { 153 status = "okay"; 154}; 155 156&pio { 157 mmc0_cd_pin_sina33: mmc0_cd_pin@0 { 158 pins = "PB4"; 159 function = "gpio_in"; 160 bias-pull-up; 161 }; 162}; 163 164&r_rsb { 165 status = "okay"; 166 167 axp22x: pmic@3a3 { 168 compatible = "x-powers,axp223"; 169 reg = <0x3a3>; 170 interrupt-parent = <&nmi_intc>; 171 interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 172 eldoin-supply = <&reg_dcdc1>; 173 }; 174}; 175 176#include "axp223.dtsi" 177 178&reg_aldo1 { 179 regulator-always-on; 180 regulator-min-microvolt = <3000000>; 181 regulator-max-microvolt = <3000000>; 182 regulator-name = "vcc-io"; 183}; 184 185&reg_aldo2 { 186 regulator-always-on; 187 regulator-min-microvolt = <2350000>; 188 regulator-max-microvolt = <2650000>; 189 regulator-name = "vdd-dll"; 190}; 191 192&reg_aldo3 { 193 regulator-always-on; 194 regulator-min-microvolt = <2700000>; 195 regulator-max-microvolt = <3300000>; 196 regulator-name = "vcc-pll-avcc"; 197}; 198 199&reg_dc5ldo { 200 regulator-always-on; 201 regulator-min-microvolt = <900000>; 202 regulator-max-microvolt = <1400000>; 203 regulator-name = "vdd-cpus"; 204}; 205 206&reg_dcdc1 { 207 regulator-always-on; 208 regulator-min-microvolt = <3000000>; 209 regulator-max-microvolt = <3000000>; 210 regulator-name = "vcc-3v0"; 211}; 212 213&reg_dcdc2 { 214 regulator-always-on; 215 regulator-min-microvolt = <900000>; 216 regulator-max-microvolt = <1400000>; 217 regulator-name = "vdd-sys"; 218}; 219 220&reg_dcdc3 { 221 regulator-always-on; 222 regulator-min-microvolt = <900000>; 223 regulator-max-microvolt = <1400000>; 224 regulator-name = "vdd-cpu"; 225}; 226 227&reg_dcdc5 { 228 regulator-always-on; 229 regulator-min-microvolt = <1500000>; 230 regulator-max-microvolt = <1500000>; 231 regulator-name = "vcc-dram"; 232}; 233 234&reg_rtc_ldo { 235 regulator-name = "vcc-rtc"; 236}; 237 238&sound { 239 status = "okay"; 240}; 241 242&tcon0 { 243 pinctrl-names = "default"; 244 pinctrl-0 = <&lcd_rgb666_pins>; 245 status = "okay"; 246}; 247 248&tcon0_out { 249 tcon0_out_panel: endpoint@0 { 250 reg = <0>; 251 remote-endpoint = <&panel_input>; 252 }; 253}; 254 255&uart0 { 256 pinctrl-names = "default"; 257 pinctrl-0 = <&uart0_pins_b>; 258 status = "okay"; 259}; 260 261&usb_otg { 262 dr_mode = "peripheral"; 263 status = "okay"; 264}; 265 266&usbphy { 267 status = "okay"; 268 usb1_vbus-supply = <&reg_vcc5v0>; /* USB1 VBUS is always on */ 269};