1/*- 2 * Copyright (c) 2016 Jared McNeill <jmcneill@invisible.ca> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * $FreeBSD$ 27 */ 28 29#include "sun8i-a83t-sinovoip-bpi-m3.dts" 30#include "a83t.dtsi" 31 32&ehci0 { 33 status = "okay"; 34}; 35 36&ehci1 { 37 status = "okay"; 38}; 39 40®_ahci_5v { 41 gpio = <&pio 3 25 GPIO_ACTIVE_HIGH>; /* PD25 */ 42 status = "okay"; 43}; 44 45&ahci_pwr_pin_a { 46 allwinner,pins = "PD25"; 47}; 48 49®_usb1_vbus { 50 gpio = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ 51 status = "okay"; 52}; 53 54&usb1_vbus_pin_a { 55 allwinner,pins = "PD24"; 56}; 57 58&usbphy { 59 usb1_vbus-supply = <®_usb1_vbus>; 60 status = "okay"; 61}; 62 63&mmc2 { 64 pinctrl-names = "default"; 65 pinctrl-0 = <&mmc2_8bit_pins>; 66 vmmc-supply = <®_vcc3v3>; 67 bus-width = <8>; 68 non-removable; 69 status = "okay"; 70}; 71 72&emac { 73 pinctrl-names = "default"; 74 pinctrl-0 = <&emac_pins_rgmii_a>; 75 phy = <&phy1>; 76 phy-mode = "rgmii"; 77 status = "okay"; 78 79 phy1: ethernet-phy@1 { 80 reg = <1>; 81 }; 82}; 83 84&emac_tx_clk { 85 /* EMAC transmit/receive clock delay chain values for BPI-M3 */ 86 tx-delay = <0x7>; 87 rx-delay = <0x7>; 88}; 89 90&i2c0 { 91 pinctrl-names = "default"; 92 pinctrl-0 = <&i2c0_pins_a>; 93 status = "okay"; 94}; 95 96&i2c1 { 97 pinctrl-names = "default"; 98 pinctrl-0 = <&i2c1_pins_a>; 99 status = "okay"; 100}; 101 102&i2c2 { 103 pinctrl-names = "default"; 104 pinctrl-0 = <&i2c2_pins_a>; 105 status = "okay"; 106}; 107 108&r_rsb { 109 status = "okay"; 110 111 axp81x: pmic@3a3 { 112 compatible = "x-powers,axp813"; 113 reg = <0x3a3>; 114 interrupt-parent = <&nmi_intc>; 115 interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 116 gpio-controller; 117 #gpio-cells = <1>; 118 }; 119}; 120 121/ { 122 leds { 123 compatible = "gpio-leds"; 124 125 green_led { 126 gpios = <&axp81x 0>; /* AXP PMIC GPIO0 */ 127 label = "green_led"; 128 }; 129 130 blue_led { 131 gpios = <&axp81x 1>; /* AXP PMIC GPIO1 */ 132 label = "blue_led"; 133 }; 134 }; 135}; 136