1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org> 4*724ba675SRob Herring */ 5*724ba675SRob Herring 6*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 7*724ba675SRob Herring#include <dt-bindings/input/input.h> 8*724ba675SRob Herring 9*724ba675SRob Herring/ { 10*724ba675SRob Herring aliases { 11*724ba675SRob Herring ethernet0 = &emac; 12*724ba675SRob Herring serial0 = &uart0; 13*724ba675SRob Herring }; 14*724ba675SRob Herring 15*724ba675SRob Herring chosen { 16*724ba675SRob Herring stdout-path = "serial0:115200n8"; 17*724ba675SRob Herring }; 18*724ba675SRob Herring 19*724ba675SRob Herring connector { 20*724ba675SRob Herring compatible = "hdmi-connector"; 21*724ba675SRob Herring type = "a"; 22*724ba675SRob Herring 23*724ba675SRob Herring port { 24*724ba675SRob Herring hdmi_con_in: endpoint { 25*724ba675SRob Herring remote-endpoint = <&hdmi_out_con>; 26*724ba675SRob Herring }; 27*724ba675SRob Herring }; 28*724ba675SRob Herring }; 29*724ba675SRob Herring 30*724ba675SRob Herring leds { 31*724ba675SRob Herring compatible = "gpio-leds"; 32*724ba675SRob Herring 33*724ba675SRob Herring pwr_led { 34*724ba675SRob Herring label = "librecomputer:green:pwr"; 35*724ba675SRob Herring gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */ 36*724ba675SRob Herring default-state = "on"; 37*724ba675SRob Herring }; 38*724ba675SRob Herring 39*724ba675SRob Herring status_led { 40*724ba675SRob Herring label = "librecomputer:blue:status"; 41*724ba675SRob Herring gpios = <&pio 0 7 GPIO_ACTIVE_HIGH>; /* PA7 */ 42*724ba675SRob Herring }; 43*724ba675SRob Herring }; 44*724ba675SRob Herring 45*724ba675SRob Herring gpio-keys { 46*724ba675SRob Herring compatible = "gpio-keys"; 47*724ba675SRob Herring 48*724ba675SRob Herring key-power { 49*724ba675SRob Herring label = "power"; 50*724ba675SRob Herring linux,code = <KEY_POWER>; 51*724ba675SRob Herring gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ 52*724ba675SRob Herring wakeup-source; 53*724ba675SRob Herring }; 54*724ba675SRob Herring }; 55*724ba675SRob Herring 56*724ba675SRob Herring reg_vcc1v2: vcc1v2 { 57*724ba675SRob Herring compatible = "regulator-fixed"; 58*724ba675SRob Herring regulator-name = "vcc1v2"; 59*724ba675SRob Herring regulator-min-microvolt = <1200000>; 60*724ba675SRob Herring regulator-max-microvolt = <1200000>; 61*724ba675SRob Herring regulator-always-on; 62*724ba675SRob Herring regulator-boot-on; 63*724ba675SRob Herring vin-supply = <®_vcc5v0>; 64*724ba675SRob Herring gpio = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */ 65*724ba675SRob Herring enable-active-high; 66*724ba675SRob Herring }; 67*724ba675SRob Herring 68*724ba675SRob Herring reg_vcc3v3: vcc3v3 { 69*724ba675SRob Herring compatible = "regulator-fixed"; 70*724ba675SRob Herring regulator-name = "vcc3v3"; 71*724ba675SRob Herring regulator-min-microvolt = <3300000>; 72*724ba675SRob Herring regulator-max-microvolt = <3300000>; 73*724ba675SRob Herring vin-supply = <®_vcc5v0>; 74*724ba675SRob Herring }; 75*724ba675SRob Herring 76*724ba675SRob Herring /* This represents the board's 5V input */ 77*724ba675SRob Herring reg_vcc5v0: vcc5v0 { 78*724ba675SRob Herring compatible = "regulator-fixed"; 79*724ba675SRob Herring regulator-name = "vcc5v0"; 80*724ba675SRob Herring regulator-min-microvolt = <5000000>; 81*724ba675SRob Herring regulator-max-microvolt = <5000000>; 82*724ba675SRob Herring }; 83*724ba675SRob Herring 84*724ba675SRob Herring reg_vcc_dram: vcc-dram { 85*724ba675SRob Herring compatible = "regulator-fixed"; 86*724ba675SRob Herring regulator-name = "vcc-dram"; 87*724ba675SRob Herring regulator-min-microvolt = <1500000>; 88*724ba675SRob Herring regulator-max-microvolt = <1500000>; 89*724ba675SRob Herring regulator-always-on; 90*724ba675SRob Herring regulator-boot-on; 91*724ba675SRob Herring vin-supply = <®_vcc5v0>; 92*724ba675SRob Herring gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; /* PL9 */ 93*724ba675SRob Herring enable-active-high; 94*724ba675SRob Herring }; 95*724ba675SRob Herring 96*724ba675SRob Herring reg_vcc_io: vcc-io { 97*724ba675SRob Herring compatible = "regulator-fixed"; 98*724ba675SRob Herring regulator-name = "vcc-io"; 99*724ba675SRob Herring regulator-min-microvolt = <3300000>; 100*724ba675SRob Herring regulator-max-microvolt = <3300000>; 101*724ba675SRob Herring regulator-always-on; 102*724ba675SRob Herring regulator-boot-on; 103*724ba675SRob Herring vin-supply = <®_vcc3v3>; 104*724ba675SRob Herring gpio = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL5 */ 105*724ba675SRob Herring }; 106*724ba675SRob Herring 107*724ba675SRob Herring reg_vdd_cpux: vdd-cpux { 108*724ba675SRob Herring compatible = "regulator-fixed"; 109*724ba675SRob Herring regulator-name = "vdd-cpux"; 110*724ba675SRob Herring regulator-min-microvolt = <1200000>; 111*724ba675SRob Herring regulator-max-microvolt = <1200000>; 112*724ba675SRob Herring regulator-always-on; 113*724ba675SRob Herring regulator-boot-on; 114*724ba675SRob Herring vin-supply = <®_vcc5v0>; 115*724ba675SRob Herring gpio = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */ 116*724ba675SRob Herring enable-active-high; 117*724ba675SRob Herring }; 118*724ba675SRob Herring}; 119*724ba675SRob Herring 120*724ba675SRob Herring&codec { 121*724ba675SRob Herring allwinner,audio-routing = 122*724ba675SRob Herring "Line Out", "LINEOUT", 123*724ba675SRob Herring "MIC1", "Mic", 124*724ba675SRob Herring "Mic", "MBIAS"; 125*724ba675SRob Herring status = "okay"; 126*724ba675SRob Herring}; 127*724ba675SRob Herring 128*724ba675SRob Herring&cpu0 { 129*724ba675SRob Herring cpu-supply = <®_vdd_cpux>; 130*724ba675SRob Herring}; 131*724ba675SRob Herring 132*724ba675SRob Herring&cpu1 { 133*724ba675SRob Herring cpu-supply = <®_vdd_cpux>; 134*724ba675SRob Herring}; 135*724ba675SRob Herring 136*724ba675SRob Herring&cpu2 { 137*724ba675SRob Herring cpu-supply = <®_vdd_cpux>; 138*724ba675SRob Herring}; 139*724ba675SRob Herring 140*724ba675SRob Herring&cpu3 { 141*724ba675SRob Herring cpu-supply = <®_vdd_cpux>; 142*724ba675SRob Herring}; 143*724ba675SRob Herring 144*724ba675SRob Herring&de { 145*724ba675SRob Herring status = "okay"; 146*724ba675SRob Herring}; 147*724ba675SRob Herring 148*724ba675SRob Herring&ehci0 { 149*724ba675SRob Herring status = "okay"; 150*724ba675SRob Herring}; 151*724ba675SRob Herring 152*724ba675SRob Herring&ehci1 { 153*724ba675SRob Herring status = "okay"; 154*724ba675SRob Herring}; 155*724ba675SRob Herring 156*724ba675SRob Herring&ehci2 { 157*724ba675SRob Herring status = "okay"; 158*724ba675SRob Herring}; 159*724ba675SRob Herring 160*724ba675SRob Herring&ehci3 { 161*724ba675SRob Herring status = "okay"; 162*724ba675SRob Herring}; 163*724ba675SRob Herring 164*724ba675SRob Herring&emac { 165*724ba675SRob Herring phy-handle = <&int_mii_phy>; 166*724ba675SRob Herring phy-mode = "mii"; 167*724ba675SRob Herring allwinner,leds-active-low; 168*724ba675SRob Herring status = "okay"; 169*724ba675SRob Herring}; 170*724ba675SRob Herring 171*724ba675SRob Herring&hdmi { 172*724ba675SRob Herring status = "okay"; 173*724ba675SRob Herring}; 174*724ba675SRob Herring 175*724ba675SRob Herring&hdmi_out { 176*724ba675SRob Herring hdmi_out_con: endpoint { 177*724ba675SRob Herring remote-endpoint = <&hdmi_con_in>; 178*724ba675SRob Herring }; 179*724ba675SRob Herring}; 180*724ba675SRob Herring 181*724ba675SRob Herring&ir { 182*724ba675SRob Herring pinctrl-names = "default"; 183*724ba675SRob Herring pinctrl-0 = <&r_ir_rx_pin>; 184*724ba675SRob Herring status = "okay"; 185*724ba675SRob Herring}; 186*724ba675SRob Herring 187*724ba675SRob Herring&mmc0 { 188*724ba675SRob Herring vmmc-supply = <®_vcc_io>; 189*724ba675SRob Herring bus-width = <4>; 190*724ba675SRob Herring cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ 191*724ba675SRob Herring status = "okay"; 192*724ba675SRob Herring}; 193*724ba675SRob Herring 194*724ba675SRob Herring&mmc2 { 195*724ba675SRob Herring pinctrl-names = "default"; 196*724ba675SRob Herring pinctrl-0 = <&mmc2_8bit_pins>; 197*724ba675SRob Herring vmmc-supply = <®_vcc_io>; 198*724ba675SRob Herring bus-width = <8>; 199*724ba675SRob Herring non-removable; 200*724ba675SRob Herring status = "okay"; 201*724ba675SRob Herring}; 202*724ba675SRob Herring 203*724ba675SRob Herring&ohci0 { 204*724ba675SRob Herring status = "okay"; 205*724ba675SRob Herring}; 206*724ba675SRob Herring 207*724ba675SRob Herring&ohci1 { 208*724ba675SRob Herring status = "okay"; 209*724ba675SRob Herring}; 210*724ba675SRob Herring 211*724ba675SRob Herring&ohci2 { 212*724ba675SRob Herring status = "okay"; 213*724ba675SRob Herring}; 214*724ba675SRob Herring 215*724ba675SRob Herring&ohci3 { 216*724ba675SRob Herring status = "okay"; 217*724ba675SRob Herring}; 218*724ba675SRob Herring 219*724ba675SRob Herring&uart0 { 220*724ba675SRob Herring pinctrl-names = "default"; 221*724ba675SRob Herring pinctrl-0 = <&uart0_pa_pins>; 222*724ba675SRob Herring status = "okay"; 223*724ba675SRob Herring}; 224*724ba675SRob Herring 225*724ba675SRob Herring&usb_otg { 226*724ba675SRob Herring dr_mode = "host"; 227*724ba675SRob Herring status = "okay"; 228*724ba675SRob Herring}; 229*724ba675SRob Herring 230*724ba675SRob Herring&usbphy { 231*724ba675SRob Herring /* VBUS on USB ports are always on */ 232*724ba675SRob Herring usb0_vbus-supply = <®_vcc5v0>; 233*724ba675SRob Herring usb1_vbus-supply = <®_vcc5v0>; 234*724ba675SRob Herring usb2_vbus-supply = <®_vcc5v0>; 235*724ba675SRob Herring usb3_vbus-supply = <®_vcc5v0>; 236*724ba675SRob Herring status = "okay"; 237*724ba675SRob Herring}; 238