mirror of
https://xff.cz/git/u-boot/
synced 2025-09-27 21:41:16 +02:00
sunxi: dts: R40: Update Bananapi M2 Berry .dts
Update the .dts file from the kernel, which carries much more nodes, some of them we need to enable USB and Ethernet support for the board. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
This commit is contained in:
committed by
Jagan Teki
parent
b5fe523bbc
commit
69d06935de
@@ -50,6 +50,7 @@
|
|||||||
compatible = "sinovoip,bpi-m2-berry", "allwinner,sun8i-r40";
|
compatible = "sinovoip,bpi-m2-berry", "allwinner,sun8i-r40";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
|
ethernet0 = &gmac;
|
||||||
serial0 = &uart0;
|
serial0 = &uart0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -57,6 +58,17 @@
|
|||||||
stdout-path = "serial0:115200n8";
|
stdout-path = "serial0:115200n8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
connector {
|
||||||
|
compatible = "hdmi-connector";
|
||||||
|
type = "a";
|
||||||
|
|
||||||
|
port {
|
||||||
|
hdmi_con_in: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_out_con>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
@@ -84,12 +96,18 @@
|
|||||||
wifi_pwrseq: wifi_pwrseq {
|
wifi_pwrseq: wifi_pwrseq {
|
||||||
compatible = "mmc-pwrseq-simple";
|
compatible = "mmc-pwrseq-simple";
|
||||||
reset-gpios = <&pio 6 10 GPIO_ACTIVE_LOW>; /* PG10 WIFI_EN */
|
reset-gpios = <&pio 6 10 GPIO_ACTIVE_LOW>; /* PG10 WIFI_EN */
|
||||||
|
clocks = <&ccu CLK_OUTA>;
|
||||||
|
clock-names = "ext_clock";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&ahci {
|
&ahci {
|
||||||
phy-supply = <®_eldo3>; /* VDD12-SATA */
|
ahci-supply = <®_dldo4>;
|
||||||
ahci-supply = <®_dldo4>; /* VDD25-SATA */
|
phy-supply = <®_eldo3>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&de {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -98,6 +116,32 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&gmac_rgmii_pins>;
|
||||||
|
phy-handle = <&phy1>;
|
||||||
|
phy-mode = "rgmii";
|
||||||
|
phy-supply = <®_dc1sw>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&gmac_mdio {
|
||||||
|
phy1: ethernet-phy@1 {
|
||||||
|
compatible = "ethernet-phy-ieee802.3-c22";
|
||||||
|
reg = <1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&hdmi_out {
|
||||||
|
hdmi_out_con: endpoint {
|
||||||
|
remote-endpoint = <&hdmi_con_in>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&i2c0 {
|
&i2c0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
@@ -111,6 +155,41 @@
|
|||||||
|
|
||||||
#include "axp22x.dtsi"
|
#include "axp22x.dtsi"
|
||||||
|
|
||||||
|
&mmc0 {
|
||||||
|
vmmc-supply = <®_dcdc1>;
|
||||||
|
bus-width = <4>;
|
||||||
|
cd-gpios = <&pio 7 13 GPIO_ACTIVE_LOW>; /* PH13 */
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&mmc1 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&mmc1_pg_pins>;
|
||||||
|
vmmc-supply = <®_dldo2>;
|
||||||
|
vqmmc-supply = <®_dldo1>;
|
||||||
|
mmc-pwrseq = <&wifi_pwrseq>;
|
||||||
|
bus-width = <4>;
|
||||||
|
non-removable;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&pio {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&clk_out_a_pin>;
|
||||||
|
vcc-pa-supply = <®_aldo2>;
|
||||||
|
vcc-pc-supply = <®_dcdc1>;
|
||||||
|
vcc-pd-supply = <®_dcdc1>;
|
||||||
|
vcc-pe-supply = <®_eldo1>;
|
||||||
|
vcc-pf-supply = <®_dcdc1>;
|
||||||
|
vcc-pg-supply = <®_dldo1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
®_aldo2 {
|
||||||
|
regulator-min-microvolt = <2500000>;
|
||||||
|
regulator-max-microvolt = <2500000>;
|
||||||
|
regulator-name = "vcc-pa";
|
||||||
|
};
|
||||||
|
|
||||||
®_aldo3 {
|
®_aldo3 {
|
||||||
regulator-always-on;
|
regulator-always-on;
|
||||||
regulator-min-microvolt = <2700000>;
|
regulator-min-microvolt = <2700000>;
|
||||||
@@ -118,6 +197,12 @@
|
|||||||
regulator-name = "avcc";
|
regulator-name = "avcc";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
®_dc1sw {
|
||||||
|
regulator-min-microvolt = <3000000>;
|
||||||
|
regulator-max-microvolt = <3000000>;
|
||||||
|
regulator-name = "vcc-gmac-phy";
|
||||||
|
};
|
||||||
|
|
||||||
®_dcdc1 {
|
®_dcdc1 {
|
||||||
regulator-always-on;
|
regulator-always-on;
|
||||||
regulator-min-microvolt = <3000000>;
|
regulator-min-microvolt = <3000000>;
|
||||||
@@ -152,12 +237,27 @@
|
|||||||
regulator-name = "vcc-wifi-io";
|
regulator-name = "vcc-wifi-io";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Our WiFi chip needs both DLDO2 and DLDO3 to be powered at the same
|
||||||
|
* time, with the two being in sync, to be able to meet maximum power
|
||||||
|
* consumption during transmits. Since this is not really supported
|
||||||
|
* right now, just use the two as always on, and we will fix it later.
|
||||||
|
*/
|
||||||
|
|
||||||
®_dldo2 {
|
®_dldo2 {
|
||||||
|
regulator-always-on;
|
||||||
regulator-min-microvolt = <3300000>;
|
regulator-min-microvolt = <3300000>;
|
||||||
regulator-max-microvolt = <3300000>;
|
regulator-max-microvolt = <3300000>;
|
||||||
regulator-name = "vcc-wifi";
|
regulator-name = "vcc-wifi";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
®_dldo3 {
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
regulator-name = "vcc-wifi-2";
|
||||||
|
};
|
||||||
|
|
||||||
®_dldo4 {
|
®_dldo4 {
|
||||||
regulator-min-microvolt = <2500000>;
|
regulator-min-microvolt = <2500000>;
|
||||||
regulator-max-microvolt = <2500000>;
|
regulator-max-microvolt = <2500000>;
|
||||||
@@ -170,21 +270,7 @@
|
|||||||
regulator-name = "vdd1v2-sata";
|
regulator-name = "vdd1v2-sata";
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc0 {
|
&tcon_tv0 {
|
||||||
vmmc-supply = <®_dcdc1>;
|
|
||||||
bus-width = <4>;
|
|
||||||
cd-gpios = <&pio 7 13 GPIO_ACTIVE_LOW>; /* PH13 */
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&mmc1 {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&mmc1_pg_pins>;
|
|
||||||
vmmc-supply = <®_dldo2>;
|
|
||||||
vqmmc-supply = <®_dldo1>;
|
|
||||||
mmc-pwrseq = <&wifi_pwrseq>;
|
|
||||||
bus-width = <4>;
|
|
||||||
non-removable;
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -194,6 +280,25 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&uart3 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart3_pg_pins>, <&uart3_rts_cts_pg_pins>;
|
||||||
|
uart-has-rtscts;
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
bluetooth {
|
||||||
|
compatible = "brcm,bcm43438-bt";
|
||||||
|
clocks = <&ccu CLK_OUTA>;
|
||||||
|
clock-names = "lpo";
|
||||||
|
vbat-supply = <®_dldo2>;
|
||||||
|
vddio-supply = <®_dldo1>;
|
||||||
|
device-wakeup-gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */
|
||||||
|
/* TODO host wake line connected to PMIC GPIO pins */
|
||||||
|
shutdown-gpios = <&pio 7 12 GPIO_ACTIVE_HIGH>; /* PH12 */
|
||||||
|
max-speed = <1500000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&usbphy {
|
&usbphy {
|
||||||
usb1_vbus-supply = <®_vcc5v0>;
|
usb1_vbus-supply = <®_vcc5v0>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
Reference in New Issue
Block a user