Skip to contentSkip to conversation

dt-bindings: arm: amlogic: add amediatech x96-max bindings

PATCH Superseded Kevin Hilman 4 participants 9 messages Dec 19, 2018 – Jan 17, 2019 2 messages not in the archive

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Kevin Hilman

author maintainer
#0 lore raw

PATCH 1/2 dt-bindings: arm: amlogic: add amediatech x96-max bindings

Add new vendor for amediatech, and initial board: x96-max

---
 Documentation/devicetree/bindings/arm/amlogic.txt     | 1 +
 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 2 files changed, 2 insertions(+)
Documentation/devicetree/bindings/arm/amlogic.txt +1 -0
index 8dbc259081e4..c50b084b6c59 100644
@@ -99,6 +99,7 @@ Board compatible values (alphabetically, grouped by SoC):
   - "amlogic,p281" (Meson gxl s905w)
   - "oranth,tx3-mini" (Meson gxl s905w)
 
+  - "amediatech,x96-max" (Meson gxm s912)
   - "amlogic,q200" (Meson gxm s912)
   - "amlogic,q201" (Meson gxm s912)
   - "khadas,vim2" (Meson gxm s912)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 8c413d8cc2a5..c1bb0c220429 100644
@@ -24,6 +24,7 @@ amarula	Amarula Solutions
 amazon	Amazon.com, Inc.
 amcc	Applied Micro Circuits Corporation (APM, formally AMCC)
 amd	Advanced Micro Devices (AMD), Inc.
+amediatech	Shenzhen Amediatech Technology Co., Ltd
 amlogic	Amlogic, Inc.
 ampire	Ampire Co., Ltd.
 ams	AMS AG
Signature · 1 line
2.19.2
author maintainer
#1 lore raw

PATCH 2/2 arm64: dts: meson: add g12a x96 max board

Add the G12a (S905X2) based X96 Max board[1].

There is no branding for the manufacturer anywhere on the product, so it took some digging to find the manufacturer. But since there's nothing about the maker on the product I've left it out of the DT name because
1) nobody will no that name and 2) keeps the DT filename shorter.

[1] https://www.cnx-software.com/2018/09/25/x96-max-amlogic-s905x2-tv-box/

Cc Martin Blumenstingl <[email protected]>

---
Special thanks to Martin Blumenstingl for extra digging for the manufacturer

 .../boot/dts/amlogic/meson-g12a-x96-max.dts   | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts
arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts new file +28 -0
new file mode 100644
index 000000000000..fe94765b671e
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2018 Amlogic, Inc. All rights reserved.
+ */
+
+/dts-v1/;
+
+#include "meson-g12a.dtsi"
+
+/ {
+	compatible = "amediatech,x96-max", "amlogic,u200", "amlogic,g12a";
+	model = "Shenzhen Amediatech Technology Co., Ltd X96 Max";
+
+	aliases {
+		serial0 = &uart_AO;
+	};
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+	memory@0 {
+		device_type = "memory";
+		reg = <0x0 0x0 0x0 0x40000000>;
+	};
+};
+
+&uart_AO {
+	status = "okay";
+};
Signature · 1 line
2.19.2
#2 lore raw

Re: [PATCH 2/2] arm64: dts: meson: add g12a x96 max board

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Kevin" == Kevin Hilman <[email protected]> writes:

Add the G12a (S905X2) based X96 Max board[1].
There is no branding for the manufacturer anywhere on the product, so it took some digging to find the manufacturer. But since there's nothing about the maker on the product I've left it out of the DT name because
1) nobody will no that name and 2) keeps the DT filename shorter.

s/no/know/

Quoted 18 lines

[1] https://www.cnx-software.com/2018/09/25/x96-max-amlogic-s905x2-tv-box/

Cc Martin Blumenstingl <[email protected]>

---
Special thanks to Martin Blumenstingl for extra digging for the manufacturer

 .../boot/dts/amlogic/meson-g12a-x96-max.dts   | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts
arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts new file +0 -0
new file mode 100644
index 000000000000..fe94765b671e

arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts line 3

Quoted 3 lines
arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts new file +3 -0
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2018 Amlogic, Inc. All rights reserved.

Amlogic? Shouldn't that be Baylibre?

Signature · 1 line
Bye, Peter Korsgaard
author maintainer
#3 lore raw

Re: [PATCH 2/2] arm64: dts: meson: add g12a x96 max board

Quoted 9 lines · Peter Korsgaard
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Kevin" == Kevin Hilman <[email protected]> writes:

Add the G12a (S905X2) based X96 Max board[1].
There is no branding for the manufacturer anywhere on the product, so it took some digging to find the manufacturer. But since there's nothing about the maker on the product I've left it out of the DT name because
1) nobody will no that name and 2) keeps the DT filename shorter.

s/no/know/

Thanks.

Quoted 11 lines
Quoted 10 lines

[1] https://www.cnx-software.com/2018/09/25/x96-max-amlogic-s905x2-tv-box/

Cc Martin Blumenstingl <[email protected]>

---
Special thanks to Martin Blumenstingl for extra digging for the manufacturer

 .../boot/dts/amlogic/meson-g12a-x96-max.dts   | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts
Quoted 12 lines

arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts line 3

Quoted 10 lines
arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts new file +3 -0
new file mode 100644
index 000000000000..fe94765b671e
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2018 Amlogic, Inc. All rights reserved.

Amlogic? Shouldn't that be Baylibre?

Yes.

Thanks for the review,

Kevin

#10 lore raw
In reply to Kevin Hilman

Hi,

Le 19/12/2018 à 01:26, Kevin Hilman a écrit :

Quoted 13 lines

Add new vendor for amediatech, and initial board: x96-max

---
  Documentation/devicetree/bindings/arm/amlogic.txt     | 1 +
  Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
  2 files changed, 2 insertions(+)
Documentation/devicetree/bindings/arm/amlogic.txt +0 -0
index 8dbc259081e4..c50b084b6c59 100644

Documentation/devicetree/bindings/arm/amlogic.txt Board compatible values (alphabetically, grouped by SoC): · line 103

Quoted 5 lines
Documentation/devicetree/bindings/arm/amlogic.txt +1 -0
@@ -99,6 +99,7 @@ Board compatible values (alphabetically, grouped by SoC):
    - "amlogic,p281" (Meson gxl s905w)
    - "oranth,tx3-mini" (Meson gxl s905w)
 
+  - "amediatech,x96-max" (Meson gxm s912)
 

Shouldn't that be Meson g12a s905x2 ?

Cheers,
Chris

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

reviewer Tested-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] arm64: dts: meson: add g12a x96 max board

In reply to Kevin Hilman

Hi Kevin,

Quoted 7 lines · Kevin Hilman

Add the G12a (S905X2) based X96 Max board[1].

There is no branding for the manufacturer anywhere on the product, so it took some digging to find the manufacturer. But since there's nothing about the maker on the product I've left it out of the DT name because
1) nobody will no that name and 2) keeps the DT filename shorter.

based on the cnx-soft article and my own board I would add the following section:
-----
There are three variants of this device:
- 2GB LPDDR4, 16GB flash, 2.4G WiFi, 100M Ethernet
- 4GB LPDDR4, 32GB flash, dual band AC WiFi, Bluetooth 4.x, Gigabit Ethernet
- 4GB LPDDR4, 64GB flash, dual band AC WiFi, Bluetooth 4.x, Gigabit Ethernet

Presumably the 4GB variants are identical except for the eMMC chip.

This patch is tested on the 4GB LPDDR4 32GB eMMC variant.
The WiFi / Bluetooth chip is an AP6356S. The Ethernet PHY is a Realtek RTL8211F.
-----

While writing this a question came up:
should we rename the board if there's a variant using the internal 100M PHY? for example: "meson-g12a-x96-max-gbit"
this will allow us to add a "meson-g12a-x96-max-100m" (or any better name) later on

Quoted 4 lines

[1] https://www.cnx-software.com/2018/09/25/x96-max-amlogic-s905x2-tv-box/

Cc Martin Blumenstingl <[email protected]>

(with the Makefile adjustments, see below)

Quoted 5 lines

---
Special thanks to Martin Blumenstingl for extra digging for the manufacturer

 .../boot/dts/amlogic/meson-g12a-x96-max.dts   | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)

it doesn't build the .dtb for me without adding the board to arch/arm64/boot/dts/amlogic/Makefile

Quoted 9 lines
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts
arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts new file +1 -0
new file mode 100644
index 000000000000..fe94765b671e
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)

arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts line 11

Quoted 10 lines
arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts new file +10 -0
+/*
+ * Copyright (c) 2018 Amlogic, Inc. All rights reserved.
+ */
+
+/dts-v1/;
+
+#include "meson-g12a.dtsi"
+
+/ {
+       compatible = "amediatech,x96-max", "amlogic,u200", "amlogic,g12a";

did you leave the u200 compatible in there on purpose?

arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts line 22

Quoted 11 lines
arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts new file +11 -0
+       model = "Shenzhen Amediatech Technology Co., Ltd X96 Max";
+
+       aliases {
+               serial0 = &uart_AO;
+       };
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x0 0x0 0x40000000>;

according to that cnx-soft report the smalles RAM size is 2GiB however the bootloader will update it anyways so I believe this is fine

Regards
Martin

#5 lore raw

Re: [PATCH 2/2] arm64: dts: meson: add g12a x96 max board

Hi Kevin,

Quoted 7 lines · Martin Blumenstingl

Hi Kevin,

Quoted 3 lines · Kevin Hilman

Add the G12a (S905X2) based X96 Max board[1].

Quoted 8 lines
Quoted 4 lines

There is no branding for the manufacturer anywhere on the product, so it took some digging to find the manufacturer. But since there's nothing about the maker on the product I've left it out of the DT name because
1) nobody will no that name and 2) keeps the DT filename shorter.

based on the cnx-soft article and my own board I would add the following section:
-----
There are three variants of this device:

I had a chat with Chris Moore (who replied on the dt-bindings patch).

Quoted 2 lines

- 2GB LPDDR4, 16GB flash, 2.4G WiFi, 100M Ethernet
- 4GB LPDDR4, 32GB flash, dual band AC WiFi, Bluetooth 4.x, Gigabit Ethernet

I have the 4GB LPDDR4, 32G flash variant which uses:
RAM: SpecTek LPDDR4 (chip markings: PS082-062 BT / on the side it says R5JH)
eMMC: Micron (chip markings: 8FAI8 SJJML / on the side it says JXML -> this might be "MTFC32GAKAECN-AIT")
WiFi: Ampak AP6356S

Quoted 1 line

- 4GB LPDDR4, 64GB flash, dual band AC WiFi, Bluetooth 4.x, Gigabit Ethernet

Chris has the 4GB LPDDR4, 64GB flash variant.
RAM: same as on mine
eMMC: Samsung KLMCG4JENB-B041
WiFi: same as on mine

Regards
Martin

#7 lore raw

Re: [PATCH 2/2] arm64: dts: meson: add g12a x96 max board

In reply to a message not in the archive

Hi,

Quoted 2 lines · Da Xue

I would be careful about adding TV boxes from unknown manufacturers in China. The manufacturer can and will change part numbers willy nilly and cause a ton of confusion. They are assembled with the cheapest part at the time so the DDR, WiFi module, eMMC, and even PCB will change without warning.

this is why I sent an update with the actual hardware which was available for testing at the time this patch written / tested.

do you have any suggestion how to add support for this device while being prepare for future changes?

Regards
Martin

#9 lore raw

Re: [PATCH 2/2] arm64: dts: meson: add g12a x96 max board

In reply to a message not in the archive
Quoted 4 lines · Da Xue

Hi,

To be on the safe side, I would add the PCB revision number and WiFi module name.

my PCB states: Q5X2 V3.0 18393

Quoted 1 line

Most of the WiFi modules are from Fn link so simply denoting the AP6356S may be sufficient to distinguish future PCB revisions and wireless modules.

our .dtbs mostly don't care about the WiFi chip (because it can be auto-detected using the SDIO ID).
however, Bluetooth support on these modules is different because a different WiFi / Bluetooth combo chip manufacturer also means different dt-bindings

regarding the .dts name so far we have:
- meson-g12a-x96-max.dts
and your suggestions:
- meson-g12a-x96-max-ap6356s.dts
- meson-g12a-x96-max-3.0-ap6356s.dts

Regards
Martin