Skip to contentSkip to conversation

Add DTS for BPI-R3

PATCH In review Frank Wunderlich 4 participants 7 messages Apr 11, 2023 – May 3, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover Add DTS for BPI-R3

From: Frank Wunderlich <[email protected]>

Add board specific devicetree for BananaPi R3.

It is taken from openwrt
https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/boot/uboot-mediatek/patches/430-add-bpi-r3.patch;hb=HEAD
only enabled the factory button which was disabled because a HW-bug in rev 1.0 of r3.

v2: changed label for wps-button (used as reset in openwrt)

Daniel Golle (1):
board: mediatek: add Bananapi-R3 devicetree

Frank Wunderlich (1):
configs: change bpi-r3 to board specific dts and change prompt

 arch/arm/dts/Makefile                |   2 +
 arch/arm/dts/mt7986a-bpi-r3-emmc.dts |  32 ++++
 arch/arm/dts/mt7986a-bpi-r3-sd.dts   | 268 +++++++++++++++++++++++++++
 configs/mt7986a_bpir3_emmc_defconfig |   6 +-
 configs/mt7986a_bpir3_sd_defconfig   |   6 +-
 5 files changed, 308 insertions(+), 6 deletions(-)
 create mode 100644 arch/arm/dts/mt7986a-bpi-r3-emmc.dts
 create mode 100644 arch/arm/dts/mt7986a-bpi-r3-sd.dts
Signature · 1 line
2.34.1
#3 lore raw

PATCH v2 2/2 configs: change bpi-r3 to board specific dts and change prompt

From: Frank Wunderlich <[email protected]>

Use own devicetree for the board and change the prompt.

---
 configs/mt7986a_bpir3_emmc_defconfig | 6 +++---
 configs/mt7986a_bpir3_sd_defconfig   | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
configs/mt7986a_bpir3_emmc_defconfig +3 -3
index 2d4876f299f4..5b76512a46f6 100644
@@ -7,15 +7,15 @@ CONFIG_SYS_MALLOC_F_LEN=0x4000
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_ENV_SIZE=0x80000
 CONFIG_ENV_OFFSET=0x300000
-CONFIG_DEFAULT_DEVICE_TREE="mt7986a-emmc-rfb"
-CONFIG_SYS_PROMPT="MT7986> "
+CONFIG_DEFAULT_DEVICE_TREE="mt7986a-bpi-r3-emmc"
+CONFIG_SYS_PROMPT="BPI-R3> "
 CONFIG_TARGET_MT7986=y
 CONFIG_DEBUG_UART_BASE=0x11002000
 CONFIG_DEBUG_UART_CLOCK=40000000
 CONFIG_SYS_LOAD_ADDR=0x46000000
 CONFIG_DEBUG_UART=y
 # CONFIG_AUTOBOOT is not set
-CONFIG_DEFAULT_FDT_FILE="mt7986a-emmc-rfb"
+CONFIG_DEFAULT_FDT_FILE="mt7986a-bpi-r3-emmc"
 CONFIG_LOGLEVEL=7
 CONFIG_LOG=y
 CONFIG_SYS_CBSIZE=512
configs/mt7986a_bpir3_sd_defconfig +3 -3
index 08edfe7ac409..36547db91423 100644
@@ -7,15 +7,15 @@ CONFIG_SYS_MALLOC_F_LEN=0x4000
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_ENV_SIZE=0x80000
 CONFIG_ENV_OFFSET=0x300000
-CONFIG_DEFAULT_DEVICE_TREE="mt7986a-sd-rfb"
-CONFIG_SYS_PROMPT="MT7986> "
+CONFIG_DEFAULT_DEVICE_TREE="mt7986a-bpi-r3-sd"
+CONFIG_SYS_PROMPT="BPI-R3> "
 CONFIG_TARGET_MT7986=y
 CONFIG_DEBUG_UART_BASE=0x11002000
 CONFIG_DEBUG_UART_CLOCK=40000000
 CONFIG_SYS_LOAD_ADDR=0x46000000
 CONFIG_DEBUG_UART=y
 # CONFIG_AUTOBOOT is not set
-CONFIG_DEFAULT_FDT_FILE="mt7986a-sd-rfb"
+CONFIG_DEFAULT_FDT_FILE="mt7986a-bpi-r3-sd"
 CONFIG_LOGLEVEL=7
 CONFIG_LOG=y
 CONFIG_SYS_CBSIZE=512
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/2 board: mediatek: add Bananapi-R3 devicetree

In reply to Frank Wunderlich

From: Daniel Golle <[email protected]>

Add board specific devicetree for Bananapi R3 SBC.

---
taken from openwrt
https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/boot/uboot-mediatek/patches/430-add-bpi-r3.patch;hb=HEAD
only enabled the factory button which was disabled because a HW-bug in rev 1.0 of r3.

v2:
- change label for wps-button

---
 arch/arm/dts/Makefile                |   2 +
 arch/arm/dts/mt7986a-bpi-r3-emmc.dts |  32 ++++
 arch/arm/dts/mt7986a-bpi-r3-sd.dts   | 268 +++++++++++++++++++++++++++
 3 files changed, 302 insertions(+)
 create mode 100644 arch/arm/dts/mt7986a-bpi-r3-emmc.dts
 create mode 100644 arch/arm/dts/mt7986a-bpi-r3-sd.dts
arch/arm/dts/Makefile +2 -0
index 0a9b1f7749d5..de0c0e35b8c3 100644
@@ -1296,6 +1296,8 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
 	mt7981-rfb.dtb \
 	mt7981-emmc-rfb.dtb \
 	mt7981-sd-rfb.dtb \
+	mt7986a-bpi-r3-sd.dtb \
+	mt7986a-bpi-r3-emmc.dtb \
 	mt7986a-rfb.dtb \
 	mt7986b-rfb.dtb \
 	mt7986a-sd-rfb.dtb \
arch/arm/dts/mt7986a-bpi-r3-emmc.dts new file +32 -0
new file mode 100644
index 000000000000..4e2e5262f536
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (c) 2021 MediaTek Inc.
+ * Author: Sam Shih <[email protected]>
+ */
+
+/dts-v1/;
+#include "mt7986a-bpi-r3-sd.dts"
+#include <dt-bindings/gpio/gpio.h>
+/ {
+	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;
+	};
+};
+
+&mmc0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc0_pins_default>;
+	bus-width = <8>;
+	max-frequency = <200000000>;
+	cap-mmc-highspeed;
+	cap-mmc-hw-reset;
+	vmmc-supply = <&reg_3p3v>;
+	vqmmc-supply = <&reg_1p8v>;
+	non-removable;
+	status = "okay";
+};
arch/arm/dts/mt7986a-bpi-r3-sd.dts new file +268 -0

268 lines not on this page · raw message

Signature · 1 line
2.34.1
#5 lore raw
In reply to Frank Wunderlich

How many times I have to repeat to not send me mediatek changes for which I'm not maintainer???

Quoted 29 lines · On Tuesday 11 April 2023 17:19:45 Frank Wunderlich wrote:

From: Frank Wunderlich <[email protected]>

Add board specific devicetree for BananaPi R3.

It is taken from openwrt
https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/boot/uboot-mediatek/patches/430-add-bpi-r3.patch;hb=HEAD
only enabled the factory button which was disabled because a HW-bug in rev 1.0 of r3.

v2: changed label for wps-button (used as reset in openwrt)

Daniel Golle (1):
board: mediatek: add Bananapi-R3 devicetree

Frank Wunderlich (1):
configs: change bpi-r3 to board specific dts and change prompt

 arch/arm/dts/Makefile                |   2 +
 arch/arm/dts/mt7986a-bpi-r3-emmc.dts |  32 ++++
 arch/arm/dts/mt7986a-bpi-r3-sd.dts   | 268 +++++++++++++++++++++++++++
 configs/mt7986a_bpir3_emmc_defconfig |   6 +-
 configs/mt7986a_bpir3_sd_defconfig   |   6 +-
 5 files changed, 308 insertions(+), 6 deletions(-)
 create mode 100644 arch/arm/dts/mt7986a-bpi-r3-emmc.dts
 create mode 100644 arch/arm/dts/mt7986a-bpi-r3-sd.dts
Signature · 1 line
2.34.1
#6 lore raw
In reply to Frank Wunderlich

Hi,

Is it possible to take this series in upcoming release?

regards Frank

Quoted 35 lines

Gesendet: Dienstag, den 11.04.2023 um 17:19 Uhr
Von: "Frank Wunderlich" <[email protected]>
An: [email protected]
Cc: "Frank Wunderlich" <[email protected]>, "Sam Shih" <[email protected]>, "William Zhang" <[email protected]>, "Philippe Reynes" <[email protected]>, "Marek Vasut" <[email protected]>, "Fabio Estevam" <[email protected]>, "Marcel Ziswiler" <[email protected]>, "Samuel Holland" <[email protected]>, "Pali Rohár" <[email protected]>, "Daniel Golle" <[email protected]>, "Simon Glass" <[email protected]>, "Weijie Gao" <[email protected]>
Betreff: [PATCH v2 0/2] Add DTS for BPI-R3

From: Frank Wunderlich <[email protected]>

Add board specific devicetree for BananaPi R3.

It is taken from openwrt
https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/boot/uboot-mediatek/patches/430-add-bpi-r3.patch;hb=HEAD
only enabled the factory button which was disabled because a HW-bug in rev 1.0 of r3.

v2: changed label for wps-button (used as reset in openwrt)

Daniel Golle (1):
board: mediatek: add Bananapi-R3 devicetree

Frank Wunderlich (1):
configs: change bpi-r3 to board specific dts and change prompt

 arch/arm/dts/Makefile                |   2 +
 arch/arm/dts/mt7986a-bpi-r3-emmc.dts |  32 ++++
 arch/arm/dts/mt7986a-bpi-r3-sd.dts   | 268 +++++++++++++++++++++++++++
 configs/mt7986a_bpir3_emmc_defconfig |   6 +-
 configs/mt7986a_bpir3_sd_defconfig   |   6 +-
 5 files changed, 308 insertions(+), 6 deletions(-)
 create mode 100644 arch/arm/dts/mt7986a-bpi-r3-emmc.dts
 create mode 100644 arch/arm/dts/mt7986a-bpi-r3-sd.dts
Signature · 1 line
2.34.1