sun50i-a64-pinebook.dts revision 1.5
1/* $NetBSD: sun50i-a64-pinebook.dts,v 1.5 2018/05/04 23:04:09 jmcneill Exp $ */ 2 3/*- 4 * Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 21 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 23 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29/dts-v1/; 30 31#include "../../../external/gpl2/dts/dist/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi" 32#include "sun50i-a64.dtsi" 33 34#include <dt-bindings/gpio/gpio.h> 35#include <dt-bindings/input/linux-event-codes.h> 36#include <dt-bindings/interrupt-controller/irq.h> 37 38/ { 39 model = "Pine64 Pinebook"; 40 compatible = "pine64,pinebook", "allwinner,sun50i-a64"; 41 42 aliases { 43 serial0 = &uart0; 44 }; 45 46 chosen { 47 stdout-path = "serial0:115200n8"; 48 49 framebuffer@0 { 50 allwinner,pipeline = "mixer0-lcd0"; 51 }; 52 }; 53 54 gpio_keys { 55 compatible = "gpio-keys"; 56 57 lid_switch { 58 label = "Lid Switch"; 59 gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */ 60 linux,input-type = <EV_SW>; 61 linux,code = <SW_LID>; 62 linux,can-disable; 63 }; 64 }; 65 66 reg_vcc3v3: vcc3v3 { 67 regulator-fixed; 68 regulator-name = "vcc3v3"; 69 regulator-min-microvolt = <3300000>; 70 regulator-max-microvolt = <3300000>; 71 }; 72}; 73 74&ehci1 { 75 status = "okay"; 76}; 77 78&ohci1 { 79 status = "okay"; 80}; 81 82&usb_otg { 83 dr_mode = "host"; 84 status = "okay"; 85 86}; 87 88&usbphy { 89 status = "okay"; 90}; 91 92&mmc0 { 93 pinctrl-names = "default"; 94 pinctrl-0 = <&mmc0_pins>; 95 vmmc-supply = <®_vcc3v3>; 96 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; 97 disable-wp; 98 bus-width = <4>; 99 status = "okay"; 100}; 101 102&mmc2 { 103 pinctrl-names = "default"; 104 pinctrl-0 = <&mmc2_pins>; 105 vmmc-supply = <®_dcdc1>; 106 bus-width = <8>; 107 non-removable; 108 cap-mmc-hw-reset; 109 status = "okay"; 110}; 111 112&uart0 { 113 pinctrl-names = "default"; 114 pinctrl-0 = <&uart0_pins_a>; 115 status = "okay"; 116}; 117 118&r_rsb { 119 status = "okay"; 120 121 axp803: pmic@3a3 { 122 compatible = "x-powers,axp803"; 123 reg = <0x3a3>; 124 interrupt-parent = <&r_intc>; 125 interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 126 }; 127}; 128 129#include "axp803.dtsi" 130