2018-05-15 16:55:07 +07:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
2014-03-18 21:32:47 +07:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Antoine Ténart <antoine.tenart@free-electrons.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2014-11-17 20:35:45 +07:00
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2014-03-18 21:32:47 +07:00
|
|
|
#include "berlin2q.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Marvell BG2-Q DMP";
|
|
|
|
compatible = "marvell,berlin2q-dmp", "marvell,berlin2q", "marvell,berlin";
|
|
|
|
|
2016-09-06 15:40:10 +07:00
|
|
|
memory@0 {
|
2014-03-18 21:32:47 +07:00
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x00000000 0x80000000>;
|
|
|
|
};
|
|
|
|
|
2016-10-20 07:52:11 +07:00
|
|
|
chosen {
|
2015-09-14 13:42:13 +07:00
|
|
|
bootargs = "earlyprintk";
|
|
|
|
stdout-path = "serial0:115200n8";
|
2014-03-18 21:32:47 +07:00
|
|
|
};
|
2014-11-17 20:35:45 +07:00
|
|
|
|
|
|
|
regulators {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2016-09-06 14:37:39 +07:00
|
|
|
reg_usb0_vbus: regulator_usb0 {
|
2014-11-17 20:35:45 +07: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 14:37:39 +07:00
|
|
|
reg_usb1_vbus: regulator_usb1 {
|
2014-11-17 20:35:45 +07: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 14:37:39 +07:00
|
|
|
reg_usb2_vbus: regulator_usb2 {
|
2014-11-17 20:35:45 +07: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 20:54:39 +07:00
|
|
|
|
2016-09-06 14:37:39 +07:00
|
|
|
reg_sdio1_vmmc: regulator_sdio1_vmmc {
|
2015-11-30 20:54:39 +07: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 14:37:39 +07:00
|
|
|
reg_sdio1_vqmmc: regulator_sido1_vqmmc {
|
2015-11-30 20:54:39 +07: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 20:35:45 +07:00
|
|
|
};
|
2014-03-18 21:32:47 +07:00
|
|
|
};
|
|
|
|
|
2014-05-20 03:04:33 +07:00
|
|
|
&sdhci1 {
|
2015-11-30 20:54:39 +07: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 03:04:33 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&sdhci2 {
|
2014-12-31 15:57:51 +07:00
|
|
|
bus-width = <8>;
|
2014-05-20 03:04:33 +07:00
|
|
|
non-removable;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2014-06-03 14:33:10 +07:00
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2014-03-18 21:32:47 +07:00
|
|
|
&uart0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-09-30 21:28:16 +07:00
|
|
|
|
2014-11-17 20:35:45 +07: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 21:28:16 +07:00
|
|
|
ð0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-07-31 01:14:01 +07:00
|
|
|
|
|
|
|
&sata0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&sata_phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|