Skip to contentSkip to conversation

arm64: dts: meson: add Libretech aml-s805x-ac support

PATCH Superseded Jerome Brunet 3 participants 6 messages Nov 14, 2018 – Nov 15, 2018

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jerome Brunet

author reviewer
#0 lore raw

cover arm64: dts: meson: add Libretech aml-s805x-ac support

This patchset adds support for the libretech aml-s805x-ac, aka 'La Frite'

Jerome Brunet (1):
dt-bindings: arm: amlogic: add libretech aml-s805x-ac bindings

Neil Armstrong (1):
arm64: dts: meson: add libretech aml-s805x-ac board

 .../devicetree/bindings/arm/amlogic.txt       |   1 +
 arch/arm64/boot/dts/amlogic/Makefile          |   1 +
 .../amlogic/meson-gxl-s805x-libretech-ac.dts  | 249 ++++++++++++++++++
 3 files changed, 251 insertions(+)
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts
Signature · 1 line
2.19.1
author reviewer
#1 lore raw

PATCH 1/2 dt-bindings: arm: amlogic: add libretech aml-s805x-ac bindings

Add bindings for the Libretech aml-s805x-ac board, aka 'La Frite'.

---
 Documentation/devicetree/bindings/arm/amlogic.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/amlogic.txt +1 -0
index 4498292b833d..203d38e5e271 100644
@@ -93,6 +93,7 @@ Board compatible values (alphabetically, grouped by SoC):
   - "amlogic,p231" (Meson gxl s905d)
 
   - "amlogic,p241" (Meson gxl s805x)
+  - "libretech,aml-s805x-ac" (Meson gxl s805x)
 
   - "amlogic,p281" (Meson gxl s905w)
   - "oranth,tx3-mini" (Meson gxl s905w)
Signature · 1 line
2.19.1
author reviewer
#2 lore raw

PATCH 2/2 arm64: dts: meson: add libretech aml-s805x-ac board

In reply to Jerome Brunet

From: Neil Armstrong <[email protected]>

Add Libretech aml-s805x-ac board (aka 'La Frite') support

---
 arch/arm64/boot/dts/amlogic/Makefile          |   1 +
 .../amlogic/meson-gxl-s805x-libretech-ac.dts  | 249 ++++++++++++++++++
 2 files changed, 250 insertions(+)
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts
arch/arm64/boot/dts/amlogic/Makefile +1 -0
index c31f29d660de..bc41629c5df4 100644
@@ -11,6 +11,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-vega-s95-meta.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-vega-s95-telos.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-wetek-hub.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-wetek-play2.dtb
+dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s805x-libretech-ac.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-hwacom-amazetv.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-khadas-vim.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc.dtb
arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts new file +249 -0

249 lines not on this page · raw message

Signature · 1 line
2.19.1
author reviewer
#3 lore raw

PATCH RESEND 2/2 arm64: dts: meson: add libretech aml-s805x-ac board

From: Neil Armstrong <[email protected]>

Add Libretech aml-s805x-ac board (aka 'La Frite') support

---

Hi Kevin,

Sorry for this resend, I forgot to align to align Neil's recent patch regarding lines names [0]

This is fixed here.

Cheers
Jerome

[0]: https://lkml.kernel.org/r/1541587550-17842-1-git-send-email-narmstrong at baylibre.com

 arch/arm64/boot/dts/amlogic/Makefile          |   1 +
 .../amlogic/meson-gxl-s805x-libretech-ac.dts  | 248 ++++++++++++++++++
 2 files changed, 249 insertions(+)
 create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts
arch/arm64/boot/dts/amlogic/Makefile +1 -0
index c31f29d660de..bc41629c5df4 100644
@@ -11,6 +11,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-vega-s95-meta.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-vega-s95-telos.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-wetek-hub.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-wetek-play2.dtb
+dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s805x-libretech-ac.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-hwacom-amazetv.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-khadas-vim.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc.dtb
arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts new file +248 -0

248 lines not on this page · raw message

Signature · 1 line
2.19.1
#4 lore raw

Re: [PATCH RESEND 2/2] arm64: dts: meson: add libretech aml-s805x-ac board

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Jerome" == Jerome Brunet <[email protected]> writes:

From: Neil Armstrong <[email protected]> Add Libretech aml-s805x-ac board (aka 'La Frite') support

---

..

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts line 17

Quoted 6 lines
arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts new file +6 -0
+#include "meson-gxl-s905x.dtsi"
+
+/ {
+	compatible = "libretech,aml-s805x-ac", "amlogic,s805x",
+		     "amlogic,meson-gxl";
+	model = "Libre Computer Board AML-S805X-AC";

No mention of 'La Frite'?

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts line 71

Quoted 4 lines
arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts new file +4 -0
+	memory at 0 {
+		device_type = "memory";
+		reg = <0x0 0x0 0x0 0x20000000>;
+	};

Maybe add a comment that there's 1GB variants as well?

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts line 82

Quoted 11 lines
arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts new file +11 -0
+
+	vcck: regulator-vcck {
+		compatible = "regulator-fixed";
+		regulator-name = "VCCK";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		vin-supply = <&dc_5v>;
+
+		/*
+		 * This is controlled by GPIOAO_9 we reserve this but
+		 * claiming it as done bellow reset the board anyway

s/bellow/below/

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts line 236

Quoted 11 lines

+&spifc {

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts new file +10 -0
+	status = "okay";
+	pinctrl-0 = <&nor_pins>;
+	pinctrl-names = "default";
+
+	w25q32: spi-flash at 0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";
+		reg = <0>;
+		spi-max-frequency = <3000000>;

Is this 3MHz a limitation of the flash, board layout or SPI controller?

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw

Re: [PATCH RESEND 2/2] arm64: dts: meson: add libretech aml-s805x-ac board

Quoted 11 lines · Peter Korsgaard
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Jerome" == Jerome Brunet <[email protected]> writes:

From: Neil Armstrong <[email protected]> Add Libretech aml-s805x-ac board (aka 'La Frite') support

---

..

Quoted 8 lines

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts line 17

Quoted 6 lines
arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts new file +6 -0
+#include "meson-gxl-s905x.dtsi"
+
+/ {
+	compatible = "libretech,aml-s805x-ac", "amlogic,s805x",
+		     "amlogic,meson-gxl";
+	model = "Libre Computer Board AML-S805X-AC";

No mention of 'La Frite'?

It's a codename, the actual product name is AML-S805X-AC

Quoted 7 lines

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts line 71

Quoted 5 lines
arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts new file +4 -0
+	memory at 0 {
+		device_type = "memory";
+		reg = <0x0 0x0 0x0 0x20000000>;
+	};

Maybe add a comment that there's 1GB variants as well?

Like other board, we set the minimal encountered memory size in DT, the bootloader will update it to the actual memory size.

Quoted 14 lines

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts line 82

Quoted 12 lines
arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts new file +11 -0
+
+	vcck: regulator-vcck {
+		compatible = "regulator-fixed";
+		regulator-name = "VCCK";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		vin-supply = <&dc_5v>;
+
+		/*
+		 * This is controlled by GPIOAO_9 we reserve this but
+		 * claiming it as done bellow reset the board anyway

s/bellow/below/

Good catch !

Quoted 15 lines

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts line 236

Quoted 12 lines

+&spifc {

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts new file +10 -0
+	status = "okay";
+	pinctrl-0 = <&nor_pins>;
+	pinctrl-names = "default";
+
+	w25q32: spi-flash at 0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";
+		reg = <0>;
+		spi-max-frequency = <3000000>;

Is this 3MHz a limitation of the flash, board layout or SPI controller?

It's the stable clock frequency used by amlogic to access to SPI flash, we prefer using a safe freq, because we don't need fast access here.

Neil