2018-05-15 17:55:07 +08:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
2014-03-18 22:32:47 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Antoine Ténart <antoine.tenart@free-electrons.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2014-11-17 21:35:45 +08:00
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2014-03-18 22:32:47 +08:00
|
|
|
#include "berlin2q.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Marvell BG2-Q DMP";
|
|
|
|
compatible = "marvell,berlin2q-dmp", "marvell,berlin2q", "marvell,berlin";
|
|
|
|
|
2016-09-06 16:40:10 +08:00
|
|
|
memory@0 {
|
2014-03-18 22:32:47 +08:00
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x00000000 0x80000000>;
|
|
|
|
};
|
|
|
|
|
2016-10-20 08:52:11 +08:00
|
|
|
chosen {
|
2015-09-14 14:42:13 +08:00
|
|
|
bootargs = "earlyprintk";
|
|
|
|
stdout-path = "serial0:115200n8";
|
2014-03-18 22:32:47 +08:00
|
|
|
};
|
2014-11-17 21:35:45 +08:00
|
|
|
|
|
|
|
regulators {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2016-09-06 15:37:39 +08:00
|
|
|
reg_usb0_vbus: regulator_usb0 {
|
2014-11-17 21:35:45 +08:00
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "usb0_vbus";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
gpio = <&portb 8 GPIO_ACTIVE_HIGH>;
|
|
|
|
enable-active-high;
|
|
|
|
};
|
|
|
|
|
2016-09-06 15:37:39 +08:00
|
|
|
reg_usb1_vbus: regulator_usb1 {
|
2014-11-17 21:35:45 +08:00
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "usb1_vbus";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
gpio = <&portb 10 GPIO_ACTIVE_HIGH>;
|
|
|
|
enable-active-high;
|
|
|
|
};
|
|
|
|
|
2016-09-06 15:37:39 +08:00
|
|
|
reg_usb2_vbus: regulator_usb2 {
|
2014-11-17 21:35:45 +08:00
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "usb2_vbus";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
gpio = <&portb 12 GPIO_ACTIVE_HIGH>;
|
|
|
|
enable-active-high;
|
|
|
|
};
|
2015-11-30 21:54:39 +08:00
|
|
|
|
2016-09-06 15:37:39 +08:00
|
|
|
reg_sdio1_vmmc: regulator_sdio1_vmmc {
|
2015-11-30 21:54:39 +08:00
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
regulator-name = "sdio1_vmmc";
|
|
|
|
enable-active-high;
|
|
|
|
regulator-boot-on;
|
|
|
|
gpio = <&portb 21 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2016-09-06 15:37:39 +08:00
|
|
|
reg_sdio1_vqmmc: regulator_sido1_vqmmc {
|
2015-11-30 21:54:39 +08:00
|
|
|
compatible = "regulator-gpio";
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
regulator-name = "sdio1_vqmmc";
|
|
|
|
regulator-type = "voltage";
|
|
|
|
enable-active-high;
|
|
|
|
gpios = <&portb 16 GPIO_ACTIVE_HIGH>;
|
|
|
|
states = <3300000 0x1
|
|
|
|
1800000 0x0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&soc_pinctrl {
|
|
|
|
sd1gpio_pmux: sd1pwr-pmux {
|
|
|
|
groups = "G23", "G32";
|
|
|
|
function = "gpio";
|
2014-11-17 21:35:45 +08:00
|
|
|
};
|
2014-03-18 22:32:47 +08:00
|
|
|
};
|
|
|
|
|
2014-05-20 04:04:33 +08:00
|
|
|
&sdhci1 {
|
2015-11-30 21:54:39 +08:00
|
|
|
vmmc-supply = <®_sdio1_vmmc>;
|
|
|
|
vqmmc-supply = <®_sdio1_vqmmc>;
|
|
|
|
cd-gpios = <&portc 30 GPIO_ACTIVE_LOW>;
|
|
|
|
wp-gpios = <&portd 0 GPIO_ACTIVE_HIGH>;
|
|
|
|
pinctrl-0 = <&sd1gpio_pmux>, <&sd1_pmux>;
|
|
|
|
pinctrl-names = "default";
|
2014-05-20 04:04:33 +08:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&sdhci2 {
|
2014-12-31 16:57:51 +08:00
|
|
|
bus-width = <8>;
|
2014-05-20 04:04:33 +08:00
|
|
|
non-removable;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2014-06-03 15:33:10 +08:00
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2014-03-18 22:32:47 +08:00
|
|
|
&uart0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-09-30 22:28:16 +08:00
|
|
|
|
2014-11-17 21:35:45 +08:00
|
|
|
&usb_phy0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_phy2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb0 {
|
|
|
|
vbus-supply = <®_usb0_vbus>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb2 {
|
|
|
|
vbus-supply = <®_usb2_vbus>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2014-09-30 22:28:16 +08:00
|
|
|
ð0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-07-31 02:14:01 +08:00
|
|
|
|
|
|
|
&sata0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&sata_phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|