sun50i-a64-pinebook.dts revision 1.5
11.5Sjmcneill/* $NetBSD: sun50i-a64-pinebook.dts,v 1.5 2018/05/04 23:04:09 jmcneill Exp $ */ 21.1Sjmcneill 31.1Sjmcneill/*- 41.1Sjmcneill * Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca> 51.1Sjmcneill * All rights reserved. 61.1Sjmcneill * 71.1Sjmcneill * Redistribution and use in source and binary forms, with or without 81.1Sjmcneill * modification, are permitted provided that the following conditions 91.1Sjmcneill * are met: 101.1Sjmcneill * 1. Redistributions of source code must retain the above copyright 111.1Sjmcneill * notice, this list of conditions and the following disclaimer. 121.1Sjmcneill * 2. Redistributions in binary form must reproduce the above copyright 131.1Sjmcneill * notice, this list of conditions and the following disclaimer in the 141.1Sjmcneill * documentation and/or other materials provided with the distribution. 151.1Sjmcneill * 161.1Sjmcneill * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 171.1Sjmcneill * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 181.1Sjmcneill * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 191.1Sjmcneill * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 201.1Sjmcneill * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 211.1Sjmcneill * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 221.1Sjmcneill * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 231.1Sjmcneill * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 241.1Sjmcneill * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 251.1Sjmcneill * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 261.1Sjmcneill * SUCH DAMAGE. 271.1Sjmcneill */ 281.1Sjmcneill 291.5Sjmcneill/dts-v1/; 301.5Sjmcneill 311.5Sjmcneill#include "../../../external/gpl2/dts/dist/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi" 321.1Sjmcneill#include "sun50i-a64.dtsi" 331.1Sjmcneill 341.5Sjmcneill#include <dt-bindings/gpio/gpio.h> 351.4Sjmcneill#include <dt-bindings/input/linux-event-codes.h> 361.5Sjmcneill#include <dt-bindings/interrupt-controller/irq.h> 371.4Sjmcneill 381.2Sjmcneill/ { 391.2Sjmcneill model = "Pine64 Pinebook"; 401.2Sjmcneill compatible = "pine64,pinebook", "allwinner,sun50i-a64"; 411.3Sjmcneill 421.5Sjmcneill aliases { 431.5Sjmcneill serial0 = &uart0; 441.5Sjmcneill }; 451.5Sjmcneill 461.3Sjmcneill chosen { 471.5Sjmcneill stdout-path = "serial0:115200n8"; 481.5Sjmcneill 491.3Sjmcneill framebuffer@0 { 501.3Sjmcneill allwinner,pipeline = "mixer0-lcd0"; 511.3Sjmcneill }; 521.3Sjmcneill }; 531.2Sjmcneill 541.4Sjmcneill gpio_keys { 551.4Sjmcneill compatible = "gpio-keys"; 561.4Sjmcneill 571.4Sjmcneill lid_switch { 581.4Sjmcneill label = "Lid Switch"; 591.4Sjmcneill gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */ 601.4Sjmcneill linux,input-type = <EV_SW>; 611.4Sjmcneill linux,code = <SW_LID>; 621.4Sjmcneill linux,can-disable; 631.4Sjmcneill }; 641.4Sjmcneill }; 651.5Sjmcneill 661.5Sjmcneill reg_vcc3v3: vcc3v3 { 671.5Sjmcneill regulator-fixed; 681.5Sjmcneill regulator-name = "vcc3v3"; 691.5Sjmcneill regulator-min-microvolt = <3300000>; 701.5Sjmcneill regulator-max-microvolt = <3300000>; 711.5Sjmcneill }; 721.5Sjmcneill}; 731.5Sjmcneill 741.5Sjmcneill&ehci1 { 751.5Sjmcneill status = "okay"; 761.5Sjmcneill}; 771.5Sjmcneill 781.5Sjmcneill&ohci1 { 791.5Sjmcneill status = "okay"; 801.5Sjmcneill}; 811.5Sjmcneill 821.5Sjmcneill&usb_otg { 831.5Sjmcneill dr_mode = "host"; 841.5Sjmcneill status = "okay"; 851.5Sjmcneill 861.5Sjmcneill}; 871.5Sjmcneill 881.5Sjmcneill&usbphy { 891.5Sjmcneill status = "okay"; 901.5Sjmcneill}; 911.5Sjmcneill 921.5Sjmcneill&mmc0 { 931.5Sjmcneill pinctrl-names = "default"; 941.5Sjmcneill pinctrl-0 = <&mmc0_pins>; 951.5Sjmcneill vmmc-supply = <®_vcc3v3>; 961.5Sjmcneill cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; 971.5Sjmcneill disable-wp; 981.5Sjmcneill bus-width = <4>; 991.5Sjmcneill status = "okay"; 1001.1Sjmcneill}; 1011.1Sjmcneill 1021.4Sjmcneill&mmc2 { 1031.4Sjmcneill pinctrl-names = "default"; 1041.4Sjmcneill pinctrl-0 = <&mmc2_pins>; 1051.4Sjmcneill vmmc-supply = <®_dcdc1>; 1061.4Sjmcneill bus-width = <8>; 1071.4Sjmcneill non-removable; 1081.4Sjmcneill cap-mmc-hw-reset; 1091.1Sjmcneill status = "okay"; 1101.1Sjmcneill}; 1111.5Sjmcneill 1121.5Sjmcneill&uart0 { 1131.5Sjmcneill pinctrl-names = "default"; 1141.5Sjmcneill pinctrl-0 = <&uart0_pins_a>; 1151.5Sjmcneill status = "okay"; 1161.5Sjmcneill}; 1171.5Sjmcneill 1181.5Sjmcneill&r_rsb { 1191.5Sjmcneill status = "okay"; 1201.5Sjmcneill 1211.5Sjmcneill axp803: pmic@3a3 { 1221.5Sjmcneill compatible = "x-powers,axp803"; 1231.5Sjmcneill reg = <0x3a3>; 1241.5Sjmcneill interrupt-parent = <&r_intc>; 1251.5Sjmcneill interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 1261.5Sjmcneill }; 1271.5Sjmcneill}; 1281.5Sjmcneill 1291.5Sjmcneill#include "axp803.dtsi" 130