1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Copyright (C) 2014 Antoine Ténart <antoine.tenart@free-electrons.com> 4*724ba675SRob Herring */ 5*724ba675SRob Herring 6*724ba675SRob Herring/dts-v1/; 7*724ba675SRob Herring 8*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 9*724ba675SRob Herring#include "berlin2q.dtsi" 10*724ba675SRob Herring 11*724ba675SRob Herring/ { 12*724ba675SRob Herring model = "Marvell BG2-Q DMP"; 13*724ba675SRob Herring compatible = "marvell,berlin2q-dmp", "marvell,berlin2q", "marvell,berlin"; 14*724ba675SRob Herring 15*724ba675SRob Herring memory@0 { 16*724ba675SRob Herring device_type = "memory"; 17*724ba675SRob Herring reg = <0x00000000 0x80000000>; 18*724ba675SRob Herring }; 19*724ba675SRob Herring 20*724ba675SRob Herring chosen { 21*724ba675SRob Herring bootargs = "earlyprintk"; 22*724ba675SRob Herring stdout-path = "serial0:115200n8"; 23*724ba675SRob Herring }; 24*724ba675SRob Herring 25*724ba675SRob Herring regulators { 26*724ba675SRob Herring compatible = "simple-bus"; 27*724ba675SRob Herring #address-cells = <1>; 28*724ba675SRob Herring #size-cells = <0>; 29*724ba675SRob Herring 30*724ba675SRob Herring reg_usb0_vbus: regulator_usb0 { 31*724ba675SRob Herring compatible = "regulator-fixed"; 32*724ba675SRob Herring regulator-name = "usb0_vbus"; 33*724ba675SRob Herring regulator-min-microvolt = <5000000>; 34*724ba675SRob Herring regulator-max-microvolt = <5000000>; 35*724ba675SRob Herring gpio = <&portb 8 GPIO_ACTIVE_HIGH>; 36*724ba675SRob Herring enable-active-high; 37*724ba675SRob Herring }; 38*724ba675SRob Herring 39*724ba675SRob Herring reg_usb1_vbus: regulator_usb1 { 40*724ba675SRob Herring compatible = "regulator-fixed"; 41*724ba675SRob Herring regulator-name = "usb1_vbus"; 42*724ba675SRob Herring regulator-min-microvolt = <5000000>; 43*724ba675SRob Herring regulator-max-microvolt = <5000000>; 44*724ba675SRob Herring gpio = <&portb 10 GPIO_ACTIVE_HIGH>; 45*724ba675SRob Herring enable-active-high; 46*724ba675SRob Herring }; 47*724ba675SRob Herring 48*724ba675SRob Herring reg_usb2_vbus: regulator_usb2 { 49*724ba675SRob Herring compatible = "regulator-fixed"; 50*724ba675SRob Herring regulator-name = "usb2_vbus"; 51*724ba675SRob Herring regulator-min-microvolt = <5000000>; 52*724ba675SRob Herring regulator-max-microvolt = <5000000>; 53*724ba675SRob Herring gpio = <&portb 12 GPIO_ACTIVE_HIGH>; 54*724ba675SRob Herring enable-active-high; 55*724ba675SRob Herring }; 56*724ba675SRob Herring 57*724ba675SRob Herring reg_sdio1_vmmc: regulator_sdio1_vmmc { 58*724ba675SRob Herring compatible = "regulator-fixed"; 59*724ba675SRob Herring regulator-min-microvolt = <3300000>; 60*724ba675SRob Herring regulator-max-microvolt = <3300000>; 61*724ba675SRob Herring regulator-name = "sdio1_vmmc"; 62*724ba675SRob Herring enable-active-high; 63*724ba675SRob Herring regulator-boot-on; 64*724ba675SRob Herring gpio = <&portb 21 GPIO_ACTIVE_HIGH>; 65*724ba675SRob Herring }; 66*724ba675SRob Herring 67*724ba675SRob Herring reg_sdio1_vqmmc: regulator_sido1_vqmmc { 68*724ba675SRob Herring compatible = "regulator-gpio"; 69*724ba675SRob Herring regulator-min-microvolt = <1800000>; 70*724ba675SRob Herring regulator-max-microvolt = <3300000>; 71*724ba675SRob Herring regulator-name = "sdio1_vqmmc"; 72*724ba675SRob Herring regulator-type = "voltage"; 73*724ba675SRob Herring enable-active-high; 74*724ba675SRob Herring gpios = <&portb 16 GPIO_ACTIVE_HIGH>; 75*724ba675SRob Herring states = <3300000 0x1 76*724ba675SRob Herring 1800000 0x0>; 77*724ba675SRob Herring }; 78*724ba675SRob Herring }; 79*724ba675SRob Herring}; 80*724ba675SRob Herring 81*724ba675SRob Herring&soc_pinctrl { 82*724ba675SRob Herring sd1gpio_pmux: sd1pwr-pmux { 83*724ba675SRob Herring groups = "G23", "G32"; 84*724ba675SRob Herring function = "gpio"; 85*724ba675SRob Herring }; 86*724ba675SRob Herring}; 87*724ba675SRob Herring 88*724ba675SRob Herring&sdhci1 { 89*724ba675SRob Herring vmmc-supply = <®_sdio1_vmmc>; 90*724ba675SRob Herring vqmmc-supply = <®_sdio1_vqmmc>; 91*724ba675SRob Herring cd-gpios = <&portc 30 GPIO_ACTIVE_LOW>; 92*724ba675SRob Herring wp-gpios = <&portd 0 GPIO_ACTIVE_HIGH>; 93*724ba675SRob Herring pinctrl-0 = <&sd1gpio_pmux>, <&sd1_pmux>; 94*724ba675SRob Herring pinctrl-names = "default"; 95*724ba675SRob Herring status = "okay"; 96*724ba675SRob Herring}; 97*724ba675SRob Herring 98*724ba675SRob Herring&sdhci2 { 99*724ba675SRob Herring bus-width = <8>; 100*724ba675SRob Herring non-removable; 101*724ba675SRob Herring status = "okay"; 102*724ba675SRob Herring}; 103*724ba675SRob Herring 104*724ba675SRob Herring&i2c0 { 105*724ba675SRob Herring status = "okay"; 106*724ba675SRob Herring}; 107*724ba675SRob Herring 108*724ba675SRob Herring&i2c2 { 109*724ba675SRob Herring status = "okay"; 110*724ba675SRob Herring}; 111*724ba675SRob Herring 112*724ba675SRob Herring&uart0 { 113*724ba675SRob Herring status = "okay"; 114*724ba675SRob Herring}; 115*724ba675SRob Herring 116*724ba675SRob Herring&usb_phy0 { 117*724ba675SRob Herring status = "okay"; 118*724ba675SRob Herring}; 119*724ba675SRob Herring 120*724ba675SRob Herring&usb_phy2 { 121*724ba675SRob Herring status = "okay"; 122*724ba675SRob Herring}; 123*724ba675SRob Herring 124*724ba675SRob Herring&usb0 { 125*724ba675SRob Herring vbus-supply = <®_usb0_vbus>; 126*724ba675SRob Herring status = "okay"; 127*724ba675SRob Herring}; 128*724ba675SRob Herring 129*724ba675SRob Herring&usb2 { 130*724ba675SRob Herring vbus-supply = <®_usb2_vbus>; 131*724ba675SRob Herring status = "okay"; 132*724ba675SRob Herring}; 133*724ba675SRob Herring 134*724ba675SRob Herringð0 { 135*724ba675SRob Herring status = "okay"; 136*724ba675SRob Herring}; 137*724ba675SRob Herring 138*724ba675SRob Herring&sata0 { 139*724ba675SRob Herring status = "okay"; 140*724ba675SRob Herring}; 141*724ba675SRob Herring 142*724ba675SRob Herring&sata_phy { 143*724ba675SRob Herring status = "okay"; 144*724ba675SRob Herring}; 145