Skip to contentSkip to conversation

ARM64: Add Vega S96 board support

PATCH In review Neil Armstrong 3 participants 6 messages Oct 3, 2017 – Oct 6, 2017

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

v2 cover ARM64: Add Vega S96 board support

This patchset adds support for the Tronsmart Vega S96 TV Box based on the Q200 Amlogic Reference design.

Changes since v1 at [1] :
- Add acks
- Cleanup external_phy node

[1] https://lkml.kernel.org/r/1505822748-23431-1-git-send-email-narmstrong at baylibre.com

Neil Armstrong (2):
ARM64: dts: meson-gxm: Add Vega S96 board
dt-bindings: arm: amlogic: Add Tronsmart Vega S96 binding

 Documentation/devicetree/bindings/arm/amlogic.txt  |  1 +
 arch/arm64/boot/dts/amlogic/Makefile               |  1 +
 arch/arm64/boot/dts/amlogic/meson-gxm-vega-s96.dts | 38 ++++++++++++++++++++++
 3 files changed, 40 insertions(+)
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxm-vega-s96.dts
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/2 ARM64: dts: meson-gxm: Add Vega S96 board

The Tronsmart Vega S96 is a TV box derived from Amlogic q200 reference design.

---
 arch/arm64/boot/dts/amlogic/Makefile               |  1 +
 arch/arm64/boot/dts/amlogic/meson-gxm-vega-s96.dts | 38 ++++++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxm-vega-s96.dts
arch/arm64/boot/dts/amlogic/Makefile +1 -0
index 7a9f48c..a6c4a06 100644
@@ -19,6 +19,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxm-nexbox-a1.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxm-q200.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxm-q201.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxm-rbox-pro.dtb
+dtb-$(CONFIG_ARCH_MESON) += meson-gxm-vega-s96.dtb
 
 always		:= $(dtb-y)
 subdir-y	:= $(dts-dirs)
arch/arm64/boot/dts/amlogic/meson-gxm-vega-s96.dts new file +38 -0
new file mode 100644
index 0000000..dc37eec
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2017 BayLibre, SAS.
+ * Author: Neil Armstrong <[email protected]>
+ * Copyright (c) 2017 Oleg <[email protected]>
+ *
+ * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+ */
+
+/dts-v1/;
+
+#include "meson-gxm.dtsi"
+#include "meson-gx-p23x-q20x.dtsi"
+
+/ {
+	compatible = "tronsmart,vega-s96", "amlogic,s912", "amlogic,meson-gxm";
+	model = "Tronsmart Vega S96";
+
+};
+
+&ethmac {
+	pinctrl-0 = <&eth_pins>;
+	pinctrl-names = "default";
+
+	/* Select external PHY by default */
+	phy-handle = <&external_phy>;
+
+	amlogic,tx-delay-ns = <2>;
+
+	/* External PHY is in RGMII */
+	phy-mode = "rgmii";
+};
+
+&external_mdio {
+	external_phy: ethernet-phy at 0 {
+		/* Realtek RTL8211F (0x001cc916) */
+		reg = <0>;
+	};
+};
Signature · 1 line
2.7.4
#2 lore raw

PATCH v2 2/2 dt-bindings: arm: amlogic: Add Tronsmart Vega S96 binding

In reply to Neil Armstrong
---
 Documentation/devicetree/bindings/arm/amlogic.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/amlogic.txt +1 -0
index 4e4bc0b..d6163ac 100644
@@ -73,6 +73,7 @@ Board compatible values (alphabetically, grouped by SoC):
   - "amlogic,q201" (Meson gxm s912)
   - "kingnovel,r-box-pro" (Meson gxm S912)
   - "nexbox,a1" (Meson gxm s912)
+  - "tronsmart,vega-s96" (Meson gxm s912)
 
 Amlogic Meson Firmware registers Interface
 ------------------------------------------
Signature · 1 line
2.7.4
#4 lore raw

Re: [PATCH v2 2/2] dt-bindings: arm: amlogic: Add Tronsmart Vega S96 binding

Quoted 11 lines · Rob Herring
Quoted 7 lines · Neil Armstrong
---
 Documentation/devicetree/bindings/arm/amlogic.txt | 1 +
 1 file changed, 1 insertion(+)

I acked v1. Please add acks when posting new versions.

Sorry, I misses it.

Kevin, can you add the missing ack when applying ?

Neil

maintainer
#5 lore raw
In reply to Neil Armstrong
Quoted 6 lines · Neil Armstrong

This patchset adds support for the Tronsmart Vega S96 TV Box based on the Q200 Amlogic Reference design.

Changes since v1 at [1] :
- Add acks
- Cleanup external_phy node

Appled to v4.15/dt64 (and added back Rob's ack on PATCH 2/2)

Kevin