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