Skip to contentSkip to conversation

arm64: dts: rockchip: add Banana Pi BPI-P2 Pro board

PATCH Superseded Dmitry Yashin 4 participants 7 messages Oct 28, 2024 – Oct 29, 2024

Subsystems (5)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover arm64: dts: rockchip: add Banana Pi BPI-P2 Pro board

This series add support for Banana Pi BPI-P2 Pro based on Rockchip RK3308 (RK3308B-S variant) made by Shenzhen SINOVOIP.

Patch 1 fixes rk3308-codec DTB warning.
Patch 2-3 adds binding and dts for the board.

Dmitry Yashin (3):
ASoC: dt-bindings: rockchip,rk3308-codec: add port property
dt-bindings: arm: rockchip: add Banana Pi BPI-P2 Pro board
arm64: dts: rockchip: add Banana Pi BPI-P2 Pro board

 .../devicetree/bindings/arm/rockchip.yaml     |   5 +
 .../bindings/sound/rockchip,rk3308-codec.yaml |   4 +
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../boot/dts/rockchip/rk3308-bpi-p2-pro.dts   | 362 ++++++++++++++++++
 4 files changed, 372 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3308-bpi-p2-pro.dts

base-commit: 9220a541da2bc49ac79e0475843048ba29e4d076

Signature · 1 line
2.39.5
#1 lore raw

PATCH 1/3 ASoC: dt-bindings: rockchip,rk3308-codec: add port property

Fix DTB warnings when rk3308-codec used with audio-graph-card by documenting port property:

codec@ff560000: 'port' does not match any of the regexes: 'pinctrl-[0-9]+'

---
 .../devicetree/bindings/sound/rockchip,rk3308-codec.yaml      | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/sound/rockchip,rk3308-codec.yaml +4 -0
index ecf3d7d968c8..2cf229a076f0 100644
@@ -48,6 +48,10 @@ properties:
       - const: mclk_rx
       - const: hclk
 
+  port:
+    $ref: audio-graph-port.yaml#
+    unevaluatedProperties: false
+
   resets:
     maxItems: 1
 
Signature · 1 line
2.39.5
maintainer Reviewed-by on v1 1/3
#2 lore raw

Re: [PATCH 1/3] ASoC: dt-bindings: rockchip,rk3308-codec: add port property

Hello Dmitry,

Quoted 15 lines · On Tue, 29 Oct 2024 02:33:12 +0500 Dmitry Yashin <[email protected]> wrote:

Fix DTB warnings when rk3308-codec used with audio-graph-card by documenting port property:

codec@ff560000: 'port' does not match any of the regexes: 'pinctrl-[0-9]+'

---
 .../devicetree/bindings/sound/rockchip,rk3308-codec.yaml      | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/sound/rockchip,rk3308-codec.yaml +0 -0
index ecf3d7d968c8..2cf229a076f0 100644

Documentation/devicetree/bindings/sound/rockchip,rk3308-codec.yaml properties: · line 53

Quoted 6 lines
Documentation/devicetree/bindings/sound/rockchip,rk3308-codec.yaml +3 -0
@@ -48,6 +48,10 @@ properties:
       - const: mclk_rx
       - const: hclk
 
+  port:
+    $ref: audio-graph-port.yaml#
+    unevaluatedProperties: false

Also, why not adding a 'port' node to the example below? Can be done in v2 in case you send one.

Luca

Signature · 3 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH 2/3 dt-bindings: arm: rockchip: add Banana Pi BPI-P2 Pro board

In reply to Dmitry Yashin

Banana Pi BPI-P2 Pro is the SBC made by Shenzhen SINOVOIP based on Rockchip RK3308.

Banana Pi BPI-P2 Pro features:
- Rockchip RK3308B-S
- DDR3 512 MB
- eMMC 8 GB
- 100M lan + onboard PoE
- 40 pin and 12 pin headers
- AP6256 BT + WIFI
- TF card slot
- 2x USB 2.0 (Type-C OTG and Type-A)
- Headphone jack

Add devicetree binding for Banana Pi BPI-P2 Pro.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +5 -0
index 1e3eceb266b7..0c85c15d5c04 100644
@@ -1104,6 +1104,11 @@ properties:
           - const: rockchip,rk3568-evb1-v10
           - const: rockchip,rk3568
 
+      - description: Sinovoip RK3308 Banana Pi BPI-P2 Pro
+        items:
+          - const: sinovoip,rk3308-bpi-p2pro
+          - const: rockchip,rk3308
+
       - description: Sinovoip RK3568 Banana Pi R2 Pro
         items:
           - const: sinovoip,rk3568-bpi-r2pro
Signature · 1 line
2.39.5
maintainer
#4 lore raw

Re: [PATCH 2/3] dt-bindings: arm: rockchip: add Banana Pi BPI-P2 Pro board

Am Montag, 28. Oktober 2024, 22:33:13 CET schrieb Dmitry Yashin:

Quoted 26 lines

Banana Pi BPI-P2 Pro is the SBC made by Shenzhen SINOVOIP based on Rockchip RK3308.

Banana Pi BPI-P2 Pro features:
- Rockchip RK3308B-S
- DDR3 512 MB
- eMMC 8 GB
- 100M lan + onboard PoE
- 40 pin and 12 pin headers
- AP6256 BT + WIFI
- TF card slot
- 2x USB 2.0 (Type-C OTG and Type-A)
- Headphone jack

Add devicetree binding for Banana Pi BPI-P2 Pro.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0
index 1e3eceb266b7..0c85c15d5c04 100644

Documentation/devicetree/bindings/arm/rockchip.yaml properties: · line 1107

Quoted 4 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +1 -0
@@ -1104,6 +1104,11 @@ properties:
           - const: rockchip,rk3568-evb1-v10
           - const: rockchip,rk3568
 
+      - description: Sinovoip RK3308 Banana Pi BPI-P2 Pro

isn't BPI the short form of Banana Pi?
So the naming is sort of double and I'd expect it to be
Sinovoip RK3308 BanaPi P2 Pro
similar to how the R2 below does is?

Heiko

Quoted 8 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +4 -0
+        items:
+          - const: sinovoip,rk3308-bpi-p2pro
+          - const: rockchip,rk3308
+
       - description: Sinovoip RK3568 Banana Pi R2 Pro
         items:
           - const: sinovoip,rk3568-bpi-r2pro
#5 lore raw

PATCH 3/3 arm64: dts: rockchip: add Banana Pi BPI-P2 Pro board

In reply to Dmitry Yashin

Banana Pi BPI-P2 Pro is the SBC made by Shenzhen SINOVOIP based on Rockchip RK3308.

Banana Pi BPI-P2 Pro features:
- Rockchip RK3308B-S
- DDR3 512 MB
- eMMC 8 GB
- 100M lan + onboard PoE
- 40 pin and 12 pin headers
- AP6256 BT + WIFI
- TF card slot
- 2x USB 2.0 (Type-C OTG and Type-A)
- Headphone jack

Add support for Banana Pi BPI-P2 Pro.

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../boot/dts/rockchip/rk3308-bpi-p2-pro.dts   | 362 ++++++++++++++++++
 2 files changed, 363 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3308-bpi-p2-pro.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 2e485553ce8b..4c1fd113bdef 100644
@@ -5,6 +5,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-ctouch2-of10.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-edimm2.2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-firefly-jd4-core-mb.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-ringneck-haikou.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-bpi-p2-pro.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-evb.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-roc-cc.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-rock-pi-s.dtb
arch/arm64/boot/dts/rockchip/rk3308-bpi-p2-pro.dts new file +362 -0

362 lines not on this page · raw message

Signature · 1 line
2.39.5
maintainer
#6 lore raw

Re: (subset) [PATCH 0/3] arm64: dts: rockchip: add Banana Pi BPI-P2 Pro board

In reply to Dmitry Yashin
Quoted 6 lines · Dmitry Yashin

This series add support for Banana Pi BPI-P2 Pro based on Rockchip RK3308 (RK3308B-S variant) made by Shenzhen SINOVOIP.

Patch 1 fixes rk3308-codec DTB warning.
Patch 2-3 adds binding and dts for the board.

Quoted 6 lines

Dmitry Yashin (3):
ASoC: dt-bindings: rockchip,rk3308-codec: add port property
dt-bindings: arm: rockchip: add Banana Pi BPI-P2 Pro board
arm64: dts: rockchip: add Banana Pi BPI-P2 Pro board

[...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/3] ASoC: dt-bindings: rockchip,rk3308-codec: add port property

      commit: cc8475a07cf34891bf11a63025659d3537b638ef

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark