sun50i-a64-pinebook.dts revision 1.7
1/* $NetBSD: sun50i-a64-pinebook.dts,v 1.7 2018/05/05 11:16:30 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&ehci0 { 75 status = "okay"; 76}; 77 78&ehci1 { 79 status = "okay"; 80}; 81 82&ohci0 { 83 status = "okay"; 84}; 85 86&ohci1 { 87 status = "okay"; 88}; 89 90&usb_otg { 91 dr_mode = "host"; 92 status = "okay"; 93}; 94 95&usbphy { 96 status = "okay"; 97}; 98 99&mmc0 { 100 pinctrl-names = "default"; 101 pinctrl-0 = <&mmc0_pins>; 102 vmmc-supply = <®_vcc3v3>; 103 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; 104 disable-wp; 105 bus-width = <4>; 106 status = "okay"; 107}; 108 109&mmc1 { 110 pinctrl-names = "default"; 111 pinctrl-0 = <&mmc1_pins>; 112 vmmc-supply = <®_dldo4>; 113 vqmmc-supply = <®_eldo1>; 114 bus-width = <4>; 115 non-removable; 116 status = "okay"; 117 118 rtl8723cs: wifi@1 { 119 reg = <1>; 120 }; 121}; 122 123&mmc2 { 124 pinctrl-names = "default"; 125 pinctrl-0 = <&mmc2_pins>; 126 vmmc-supply = <®_dcdc1>; 127 bus-width = <8>; 128 non-removable; 129 cap-mmc-hw-reset; 130 status = "okay"; 131}; 132 133&uart0 { 134 pinctrl-names = "default"; 135 pinctrl-0 = <&uart0_pins_a>; 136 status = "okay"; 137}; 138 139&r_rsb { 140 status = "okay"; 141 142 axp803: pmic@3a3 { 143 compatible = "x-powers,axp803"; 144 reg = <0x3a3>; 145 interrupt-parent = <&r_intc>; 146 interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 147 }; 148}; 149 150#include "axp803.dtsi" 151