1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2724ba675SRob Herring/* 3724ba675SRob Herring * DTSI for Emlid Neutis SoMs. 4724ba675SRob Herring * 5724ba675SRob Herring * Copyright (C) 2019 Georgii Staroselskii <georgii.staroselskii@emlid.com> 6724ba675SRob Herring */ 7724ba675SRob Herring 8724ba675SRob Herring#include "sunxi-common-regulators.dtsi" 9724ba675SRob Herring 10724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 11724ba675SRob Herring 12724ba675SRob Herring/ { 13724ba675SRob Herring aliases { 14724ba675SRob Herring serial0 = &uart0; 15724ba675SRob Herring }; 16724ba675SRob Herring 17724ba675SRob Herring chosen { 18724ba675SRob Herring stdout-path = "serial0:115200n8"; 19724ba675SRob Herring }; 20724ba675SRob Herring 21*0f47ef3fSKrzysztof Kozlowski wifi_pwrseq: pwrseq { 22724ba675SRob Herring compatible = "mmc-pwrseq-simple"; 23724ba675SRob Herring reset-gpios = <&pio 2 7 GPIO_ACTIVE_LOW>; /* PC7 */ 24724ba675SRob Herring post-power-on-delay-ms = <200>; 25724ba675SRob Herring clocks = <&rtc CLK_OSC32K_FANOUT>; 26724ba675SRob Herring clock-names = "ext_clock"; 27724ba675SRob Herring }; 28724ba675SRob Herring}; 29724ba675SRob Herring 30724ba675SRob Herring&cpu0 { 31724ba675SRob Herring cpu-supply = <&vdd_cpux>; 32724ba675SRob Herring}; 33724ba675SRob Herring 34724ba675SRob Herring®_usb0_vbus { 35724ba675SRob Herring gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; /* PL9 */ 36724ba675SRob Herring status = "okay"; 37724ba675SRob Herring}; 38724ba675SRob Herring 39724ba675SRob Herring 40724ba675SRob Herring&de { 41724ba675SRob Herring status = "okay"; 42724ba675SRob Herring}; 43724ba675SRob Herring 44724ba675SRob Herring&ohci0 { 45724ba675SRob Herring status = "okay"; 46724ba675SRob Herring}; 47724ba675SRob Herring 48724ba675SRob Herring&ohci1 { 49724ba675SRob Herring status = "okay"; 50724ba675SRob Herring}; 51724ba675SRob Herring 52724ba675SRob Herring&ohci2 { 53724ba675SRob Herring status = "okay"; 54724ba675SRob Herring}; 55724ba675SRob Herring 56724ba675SRob Herring&ohci3 { 57724ba675SRob Herring status = "okay"; 58724ba675SRob Herring}; 59724ba675SRob Herring 60724ba675SRob Herring 61724ba675SRob Herring&ehci0 { 62724ba675SRob Herring status = "okay"; 63724ba675SRob Herring}; 64724ba675SRob Herring 65724ba675SRob Herring&ehci1 { 66724ba675SRob Herring status = "okay"; 67724ba675SRob Herring}; 68724ba675SRob Herring 69724ba675SRob Herring&ehci2 { 70724ba675SRob Herring status = "okay"; 71724ba675SRob Herring}; 72724ba675SRob Herring 73724ba675SRob Herring&ehci3 { 74724ba675SRob Herring status = "okay"; 75724ba675SRob Herring}; 76724ba675SRob Herring 77724ba675SRob Herring&mmc0 { 78724ba675SRob Herring vmmc-supply = <®_vcc3v3>; 79724ba675SRob Herring bus-width = <4>; 80724ba675SRob Herring cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ 81724ba675SRob Herring status = "okay"; 82724ba675SRob Herring}; 83724ba675SRob Herring 84724ba675SRob Herring 85724ba675SRob Herring&mmc1 { 86724ba675SRob Herring vmmc-supply = <®_vcc3v3>; 87724ba675SRob Herring vqmmc-supply = <®_vcc3v3>; 88724ba675SRob Herring mmc-pwrseq = <&wifi_pwrseq>; 89724ba675SRob Herring bus-width = <4>; 90724ba675SRob Herring non-removable; 91724ba675SRob Herring status = "okay"; 92724ba675SRob Herring 93724ba675SRob Herring brcmf: wifi@1 { 94724ba675SRob Herring reg = <1>; 95724ba675SRob Herring compatible = "brcm,bcm4329-fmac"; 96724ba675SRob Herring interrupt-parent = <&r_pio>; 97724ba675SRob Herring interrupts = <0 5 IRQ_TYPE_LEVEL_LOW>; /* PL5 */ 98724ba675SRob Herring interrupt-names = "host-wake"; 99724ba675SRob Herring }; 100724ba675SRob Herring}; 101724ba675SRob Herring 102724ba675SRob Herring&mmc2 { 103724ba675SRob Herring pinctrl-names = "default"; 104724ba675SRob Herring pinctrl-0 = <&mmc2_8bit_pins>; 105724ba675SRob Herring vmmc-supply = <®_vcc3v3>; 106724ba675SRob Herring bus-width = <8>; 107724ba675SRob Herring non-removable; 108724ba675SRob Herring cap-mmc-hw-reset; 109724ba675SRob Herring status = "okay"; 110724ba675SRob Herring}; 111724ba675SRob Herring 112724ba675SRob Herring&uart0 { 113724ba675SRob Herring pinctrl-names = "default"; 114724ba675SRob Herring pinctrl-0 = <&uart0_pa_pins>; 115724ba675SRob Herring status = "okay"; 116724ba675SRob Herring}; 117724ba675SRob Herring 118724ba675SRob Herring 119724ba675SRob Herring&uart1 { 120724ba675SRob Herring pinctrl-names = "default"; 121724ba675SRob Herring pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; 122724ba675SRob Herring uart-has-rtscts; 123724ba675SRob Herring status = "okay"; 124724ba675SRob Herring 125724ba675SRob Herring bluetooth { 126724ba675SRob Herring compatible = "brcm,bcm43438-bt"; 127724ba675SRob Herring clocks = <&rtc CLK_OSC32K_FANOUT>; 128724ba675SRob Herring clock-names = "lpo"; 129724ba675SRob Herring vbat-supply = <®_vcc3v3>; 130724ba675SRob Herring vddio-supply = <®_vcc3v3>; 131724ba675SRob Herring shutdown-gpios = <&pio 2 4 GPIO_ACTIVE_HIGH>; /* PC4 */ 132724ba675SRob Herring device-wakeup-gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */ 133724ba675SRob Herring }; 134724ba675SRob Herring}; 135724ba675SRob Herring 136724ba675SRob Herring&uart2 { 137724ba675SRob Herring pinctrl-names = "default"; 138724ba675SRob Herring pinctrl-0 = <&uart2_pins>; 139724ba675SRob Herring status = "okay"; 140724ba675SRob Herring}; 141724ba675SRob Herring 142724ba675SRob Herring&uart3 { 143724ba675SRob Herring pinctrl-names = "default"; 144724ba675SRob Herring pinctrl-0 = <&uart3_pins>; 145724ba675SRob Herring status = "okay"; 146724ba675SRob Herring}; 147724ba675SRob Herring 148724ba675SRob Herring&usbphy { 149724ba675SRob Herring usb0_id_det-gpios = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */ 150724ba675SRob Herring usb0_vbus-supply = <®_usb0_vbus>; 151724ba675SRob Herring status = "okay"; 152724ba675SRob Herring}; 153724ba675SRob Herring 154724ba675SRob Herring&usb_otg { 155724ba675SRob Herring dr_mode = "otg"; 156724ba675SRob Herring status = "okay"; 157724ba675SRob Herring}; 158724ba675SRob Herring 159724ba675SRob Herring&codec { 160724ba675SRob Herring allwinner,audio-routing = 161724ba675SRob Herring "Line Out", "LINEOUT", 162724ba675SRob Herring "LINEIN", "Line In", 163724ba675SRob Herring "MIC1", "Mic", 164724ba675SRob Herring "MIC2", "Mic", 165724ba675SRob Herring "Mic", "MBIAS"; 166724ba675SRob Herring}; 167724ba675SRob Herring 168724ba675SRob Herring&i2c0 { 169724ba675SRob Herring status = "okay"; 170724ba675SRob Herring}; 171