Skip to content

Commit

Permalink
Merge branch '2021-03-20-mediatek-updates' into next
Browse files Browse the repository at this point in the history
- A number of MediaTek platform updates
  • Loading branch information
trini committed Mar 20, 2021
2 parents f879f26 + cfd48ec commit 874dced
Show file tree
Hide file tree
Showing 30 changed files with 798 additions and 98 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1728,6 +1728,9 @@ u-boot-elf.lds: arch/u-boot-elf.lds prepare FORCE

ifeq ($(CONFIG_SPL),y)
spl/u-boot-spl-mtk.bin: spl/u-boot-spl

u-boot-mtk.bin: u-boot-with-spl.bin
$(call if_changed,copy)
else
MKIMAGEFLAGS_u-boot-mtk.bin = -T mtk_image \
-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) \
Expand Down
1 change: 1 addition & 0 deletions arch/arm/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
mt7622-bananapi-bpi-r64.dtb \
mt7623n-bananapi-bpi-r2.dtb \
mt7629-rfb.dtb \
mt8183-pumpkin.dtb \
mt8512-bm1-emmc.dtb \
mt8516-pumpkin.dtb \
mt8518-ap1-emmc.dtb
Expand Down
18 changes: 0 additions & 18 deletions arch/arm/dts/mt7629-rfb-u-boot.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,6 @@
* Author: Weijie Gao <[email protected]>
*/

#include <config.h>
/ {
binman {
filename = "u-boot-mtk.bin";
pad-byte = <0xff>;

#ifdef CONFIG_SPL
blob {
filename = "spl/u-boot-spl-mtk.bin";
size = <CONFIG_SPL_PAD_TO>;
};

u-boot-img {
};
#endif
};
};

&infracfg {
u-boot,dm-pre-reloc;
};
Expand Down
10 changes: 10 additions & 0 deletions arch/arm/dts/mt7629-rfb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@
};

&pinctrl {
state_default: pinmux_conf {
u-boot,dm-pre-reloc;

mux {
function = "jtag";
groups = "ephy_leds_jtag";
u-boot,dm-pre-reloc;
};
};

snfi_pins: snfi-pins {
mux {
function = "flash";
Expand Down
6 changes: 6 additions & 0 deletions arch/arm/dts/mt7629.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@
compatible = "mediatek,mt7629-pinctrl";
reg = <0x10217000 0x8000>;

pinctrl-names = "default";
pinctrl-0 = <&state_default>;

state_default: pinmux_conf {
};

gpio: gpio-controller {
gpio-controller;
#gpio-cells = <2>;
Expand Down
99 changes: 99 additions & 0 deletions arch/arm/dts/mt8183-pumpkin.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
// SPDX-License-Identifier: GPL-2.0 OR MIT
/*
* Copyright (C) 2021 BayLibre SAS.
* Author: Fabien Parent <[email protected]>
*/

/dts-v1/;

#include <config.h>
#include "mt8183.dtsi"

/ {
model = "MediaTek MT8183 pumpkin board";
compatible = "mediatek,mt8183-pumpkin", "mediatek,mt8183";

memory@40000000 {
device_type = "memory";
reg = <0 0x40000000 0 0x80000000>;
};

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

/* 192 KiB reserved for ARM Trusted Firmware (BL31) */
bl31_secmon_reserved: secmon@54600000 {
no-map;
reg = <0 0x54600000 0x0 0x30000>;
};

/* 12 MiB reserved for OP-TEE (BL32)
* +-----------------------+ 0x43e0_0000
* | SHMEM 2MiB |
* +-----------------------+ 0x43c0_0000
* | | TA_RAM 8MiB |
* + TZDRAM +--------------+ 0x4340_0000
* | | TEE_RAM 2MiB |
* +-----------------------+ 0x4320_0000
*/
optee_reserved: optee@43200000 {
no-map;
reg = <0 0x43200000 0 0x00c00000>;
};
};

chosen {
stdout-path = &uart0;
};

reg_1p8v: regulator-1p8v {
compatible = "regulator-fixed";
regulator-name = "fixed-1.8V";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-boot-on;
regulator-always-on;
};

reg_3p3v: regulator-3p3v {
compatible = "regulator-fixed";
regulator-name = "fixed-3.3V";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
};
};

&watchdog {
status = "okay";
};

&uart0 {
status = "okay";
};

&mmc0 {
bus-width = <4>;
max-frequency = <200000000>;
cap-mmc-highspeed;
mmc-hs200-1_8v;
cap-mmc-hw-reset;
vmmc-supply = <&reg_3p3v>;
vqmmc-supply = <&reg_1p8v>;
non-removable;
status = "okay";
};

&usb {
status = "okay";
};

&ssusb {
mediatek,force-vbus;
maximum-speed = "high-speed";
dr_mode = "peripheral";
status = "okay";
};
Loading

0 comments on commit 874dced

Please sign in to comment.