0001 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
0002 /*
0003 * Copyright (C) 2014 Antoine Ténart <antoine.tenart@free-electrons.com>
0004 */
0005
0006 /dts-v1/;
0007
0008 #include <dt-bindings/gpio/gpio.h>
0009 #include "berlin2q.dtsi"
0010
0011 / {
0012 model = "Marvell BG2-Q DMP";
0013 compatible = "marvell,berlin2q-dmp", "marvell,berlin2q", "marvell,berlin";
0014
0015 memory@0 {
0016 device_type = "memory";
0017 reg = <0x00000000 0x80000000>;
0018 };
0019
0020 chosen {
0021 bootargs = "earlyprintk";
0022 stdout-path = "serial0:115200n8";
0023 };
0024
0025 regulators {
0026 compatible = "simple-bus";
0027 #address-cells = <1>;
0028 #size-cells = <0>;
0029
0030 reg_usb0_vbus: regulator_usb0 {
0031 compatible = "regulator-fixed";
0032 regulator-name = "usb0_vbus";
0033 regulator-min-microvolt = <5000000>;
0034 regulator-max-microvolt = <5000000>;
0035 gpio = <&portb 8 GPIO_ACTIVE_HIGH>;
0036 enable-active-high;
0037 };
0038
0039 reg_usb1_vbus: regulator_usb1 {
0040 compatible = "regulator-fixed";
0041 regulator-name = "usb1_vbus";
0042 regulator-min-microvolt = <5000000>;
0043 regulator-max-microvolt = <5000000>;
0044 gpio = <&portb 10 GPIO_ACTIVE_HIGH>;
0045 enable-active-high;
0046 };
0047
0048 reg_usb2_vbus: regulator_usb2 {
0049 compatible = "regulator-fixed";
0050 regulator-name = "usb2_vbus";
0051 regulator-min-microvolt = <5000000>;
0052 regulator-max-microvolt = <5000000>;
0053 gpio = <&portb 12 GPIO_ACTIVE_HIGH>;
0054 enable-active-high;
0055 };
0056
0057 reg_sdio1_vmmc: regulator_sdio1_vmmc {
0058 compatible = "regulator-fixed";
0059 regulator-min-microvolt = <3300000>;
0060 regulator-max-microvolt = <3300000>;
0061 regulator-name = "sdio1_vmmc";
0062 enable-active-high;
0063 regulator-boot-on;
0064 gpio = <&portb 21 GPIO_ACTIVE_HIGH>;
0065 };
0066
0067 reg_sdio1_vqmmc: regulator_sido1_vqmmc {
0068 compatible = "regulator-gpio";
0069 regulator-min-microvolt = <1800000>;
0070 regulator-max-microvolt = <3300000>;
0071 regulator-name = "sdio1_vqmmc";
0072 regulator-type = "voltage";
0073 enable-active-high;
0074 gpios = <&portb 16 GPIO_ACTIVE_HIGH>;
0075 states = <3300000 0x1
0076 1800000 0x0>;
0077 };
0078 };
0079 };
0080
0081 &soc_pinctrl {
0082 sd1gpio_pmux: sd1pwr-pmux {
0083 groups = "G23", "G32";
0084 function = "gpio";
0085 };
0086 };
0087
0088 &sdhci1 {
0089 vmmc-supply = <®_sdio1_vmmc>;
0090 vqmmc-supply = <®_sdio1_vqmmc>;
0091 cd-gpios = <&portc 30 GPIO_ACTIVE_LOW>;
0092 wp-gpios = <&portd 0 GPIO_ACTIVE_HIGH>;
0093 pinctrl-0 = <&sd1gpio_pmux>, <&sd1_pmux>;
0094 pinctrl-names = "default";
0095 status = "okay";
0096 };
0097
0098 &sdhci2 {
0099 bus-width = <8>;
0100 non-removable;
0101 status = "okay";
0102 };
0103
0104 &i2c0 {
0105 status = "okay";
0106 };
0107
0108 &i2c2 {
0109 status = "okay";
0110 };
0111
0112 &uart0 {
0113 status = "okay";
0114 };
0115
0116 &usb_phy0 {
0117 status = "okay";
0118 };
0119
0120 &usb_phy2 {
0121 status = "okay";
0122 };
0123
0124 &usb0 {
0125 vbus-supply = <®_usb0_vbus>;
0126 status = "okay";
0127 };
0128
0129 &usb2 {
0130 vbus-supply = <®_usb2_vbus>;
0131 status = "okay";
0132 };
0133
0134 ð0 {
0135 status = "okay";
0136 };
0137
0138 &sata0 {
0139 status = "okay";
0140 };
0141
0142 &sata_phy {
0143 status = "okay";
0144 };