Meson8b: add support for the Endless Mini EC-100
Subsystems (3)
Martin Blumenstingl
reviewercover Meson8b: add support for the Endless Mini EC-100
This series adds support for the "Endless Mini" grapefruit-sized mini PC from Endless Mobile, Inc. The internal name of this device is EC-100 (this can be found for example in the GPL kernel tree which is based on Amlogic's 3.10 kernel: [0]).
The board is using a Meson8b (S805) SoC with various peripherals. The biggest difference compared to boards which are based on Amlogic's reference designs is that this board comes with an embedded micro- controller called "EC" which makes the system LED pulse during boot and allows powering off the board. It also comes with a 10/100 Mbit/s Ethernet port and one USB host port.
There are two variants:
- 2GB RAM, 32GB storage, 802.11bgn and Bluetooth 4.0
- 1GB RAM, 24GB storage, neither wifi nor Bluetooth
This series contains support for the new board as well as supporting patches for the new vendor prefix and the pin definitions in meson8b.dtsi so various peripherals can be enabled.
Martin Blumenstingl (5):
dt-bindings: add vendor prefix for "Endless Mobile, Inc."
dt-bindings: arm: amlogic: Add the Endless Mobile Endless Mini
(EC-100)
ARM: dts: meson8b: add the I2C_A, PWM_C and UART_B pins
ARM: dts: meson8b: add the RMII pins
ARM: dts: meson8b: Add support for the Endless Mini (EC-100)
.../devicetree/bindings/arm/amlogic.txt | 1 + .../devicetree/bindings/vendor-prefixes.txt | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/meson8b-ec100.dts | 248 ++++++++++++++++++ arch/arm/boot/dts/meson8b.dtsi | 45 ++++ 5 files changed, 296 insertions(+) create mode 100644 arch/arm/boot/dts/meson8b-ec100.dts
Signature · 1 line
2.19.0
Martin Blumenstingl
reviewerPATCH 1/5 dt-bindings: add vendor prefix for "Endless Mobile, Inc."
Endless Mobile, Inc. started selling (small) computers in 2015.
--- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
@@ -114,6 +114,7 @@ elan Elan Microelectronic Corp. embest Shenzhen Embest Technology Co., Ltd. emmicro EM Microelectronic emtrion emtrion GmbH +endless Endless Mobile, Inc. energymicro Silicon Laboratories (formerly Energy Micro AS) engicam Engicam S.r.l. epcos EPCOS AG
Signature · 1 line
2.19.0
Rob Herring
maintainerPATCH 1/5 dt-bindings: add vendor prefix for "Endless Mobile, Inc."
Quoted 7 lines · Martin Blumenstingl
Endless Mobile, Inc. started selling (small) computers in 2015.
Signed-off-by Martin Blumenstingl <[email protected]>--- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+)
Martin Blumenstingl
reviewerPATCH 2/5 dt-bindings: arm: amlogic: Add the Endless Mobile Endless Mini (EC-100)
In reply to Martin BlumenstinglAdd bindings documentation for the Endless Mini (EC-100) from Endless Mobile.
--- Documentation/devicetree/bindings/arm/amlogic.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/amlogic.txt +1 -0
@@ -63,6 +63,7 @@ Board compatible values (alphabetically, grouped by SoC): - "minix,neo-x8" (Meson8) + - "endless,ec-100" (Meson8b) - "hardkernel,odroid-c1" (Meson8b) - "tronfy,mxq" (Meson8b)
Signature · 1 line
2.19.0
Rob Herring
maintainerPATCH 2/5 dt-bindings: arm: amlogic: Add the Endless Mobile Endless Mini (EC-100)
Quoted 8 lines · Martin Blumenstingl
Add bindings documentation for the Endless Mini (EC-100) from Endless Mobile.
Signed-off-by Martin Blumenstingl <[email protected]>--- Documentation/devicetree/bindings/arm/amlogic.txt | 1 + 1 file changed, 1 insertion(+)
Martin Blumenstingl
reviewerPATCH 3/5 ARM: dts: meson8b: add the I2C_A, PWM_C and UART_B pins
In reply to Martin BlumenstinglThese are used for example on the Endless Mini (EC-100):
- I2C_A is connected to the Realtek RT5640 audio codec
- PWM_C (GPIODV_9) is connected to a PWM regulator which is used for VCCK (CPU voltage supply)
- UART_B is connected to the Bluetooth module (of the RTL8723BS SDIO wifi and Bluetooth combo chip)
--- arch/arm/boot/dts/meson8b.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)
arch/arm/boot/dts/meson8b.dtsi +30 -0
@@ -223,6 +223,13 @@ }; }; + i2c_a_pins: i2c-a { + mux { + groups = "i2c_sda_a", "i2c_sck_a"; + function = "i2c_a"; + }; + }; + sd_b_pins: sd-b { mux { groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
@@ -230,6 +237,29 @@ function = "sd_b"; }; }; + + pwm_c1_pins: pwm-c1 { + mux { + groups = "pwm_c1"; + function = "pwm_c"; + }; + }; + + uart_b0_pins: uart-b0 { + mux { + groups = "uart_tx_b0", + "uart_rx_b0"; + function = "uart_b"; + }; + }; + + uart_b0_cts_rts_pins: uart-b0-cts-rts { + mux { + groups = "uart_cts_b0", + "uart_rts_b0"; + function = "uart_b"; + }; + }; }; };
Signature · 1 line
2.19.0
Martin Blumenstingl
reviewerPATCH 4/5 ARM: dts: meson8b: add the RMII pins
In reply to Martin BlumenstinglSome boards use an RMII Ethernet PHY which requires fewer pins than the RGMII PHYs. Add a separate eth_rmii_pins node which does not include the pins which are only required for RGMII (but not for RMII) PHYs.
--- arch/arm/boot/dts/meson8b.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
arch/arm/boot/dts/meson8b.dtsi +15 -0
@@ -223,6 +223,21 @@ }; }; + eth_rmii_pins: eth-rmii { + mux { + groups = "eth_tx_en", + "eth_txd1_0", + "eth_txd0_0", + "eth_rx_clk", + "eth_rx_dv", + "eth_rxd1", + "eth_rxd0", + "eth_mdio_en", + "eth_mdc"; + function = "ethernet"; + }; + }; + i2c_a_pins: i2c-a { mux { groups = "i2c_sda_a", "i2c_sck_a";
Signature · 1 line
2.19.0
Martin Blumenstingl
reviewerPATCH 5/5 ARM: dts: meson8b: Add support for the Endless Mini (EC-100)
In reply to Martin BlumenstinglThe Endless Mini (EC-100) is a grapefruit-sized computer based on the Amlogic Meson8b (S805) SoC which comes in two variants.
Both variants have in common:
- Amlogic Meson8b (S805) SoC
- two USB 2.0 ports on the rear, one one the front (connected to the SoC through an internal hub)
- 3.5mm Stereo out and MIC combo port
- HDMI and CVBS output
- 5V power supply (rated at 3A / 15W)
- an internal embedded micro-controller (called "EC") which implements a "breathing" effect for the LED and allows shutting down (powering off) the whole device
- 10/100 Mbit/s Ethernet using an IC Plus IP101A/G PHY (note: the website incorrectly lists a Gigabit Ethernet port)
- the CPU voltage is regulated using a PWM regulator. The GPL sources of the EC-100 are using a PWM value of 0x1c0000 for 0.86V and a PWM value of 0x00001c for 1.14V. When using the XTAL (24MHz) as input this translates into a PWM period of 1148ns with 0.86V using a duty cycle of 100% and 1.14V using a duty cycle of 0%.
The main differences are:
- the main indicator for the variant is the RAM size: the "cheaper" variant has 1 GB of RAM, while the more expensive one comes with 2GB
- the storage size differs: 24 GB vs 32 GB
- the "1 GB RAM" variant has Ethernet connectivity only, while the "2 GB" variant has a Realtek RTL8723BS SDIO chip which adds 802.11b/g/n wifi and Bluetooth 4.0 support
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/meson8b-ec100.dts | 248 ++++++++++++++++++++++++++++ 2 files changed, 249 insertions(+) create mode 100644 arch/arm/boot/dts/meson8b-ec100.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -321,6 +321,7 @@ dtb-$(CONFIG_MACH_MESON6) += \ meson6-atv1200.dtb dtb-$(CONFIG_MACH_MESON8) += \ meson8-minix-neo-x8.dtb \ + meson8b-ec100.dtb \ meson8b-mxq.dtb \ meson8b-odroidc1.dtb \ meson8m2-mxiii-plus.dtb
arch/arm/boot/dts/meson8b-ec100.dts new file +248 -0
248 lines not on this page · raw message
Signature · 1 line
2.19.0
PATCH 5/5 ARM: dts: meson8b: Add support for the Endless Mini (EC-100)
Hi Martin,
Quoted 2 lines · Martin Blumenstingl
The Endless Mini (EC-100) is a grapefruit-sized computer based on the Amlogic Meson8b (S805) SoC which comes in two variants.
Thanks for your work here, really happy to see this go by!
Would it be possible to adjust the compatible string to "endless,ec100" without the hyphen to match what we've already been shipping?
Just curious, is there now working USB and HDMI support in mainline on this platform?
Thanks!
Daniel
Martin Blumenstingl
reviewerPATCH 5/5 ARM: dts: meson8b: Add support for the Endless Mini (EC-100)
Hi Daniel,
Quoted 9 lines · Daniel Drake
Hi Martin,
Quoted 2 lines · Martin Blumenstingl
The Endless Mini (EC-100) is a grapefruit-sized computer based on the Amlogic Meson8b (S805) SoC which comes in two variants.
Thanks for your work here, really happy to see this go by!
you're welcome - actually having a EC-100 helped a lot! :)
Quoted 3 lines
Would it be possible to adjust the compatible string to "endless,ec100" without the hyphen to match what we've already been shipping?
sure, I'll wait a few days if more questions come up then I'll send a v2
Quoted 2 lines
Just curious, is there now working USB and HDMI support in mainline on this platform?
USB is working fine - you just need d9707490077bee "usb: dwc2: Fix call location of dwc2_check_core_endianness" (which hit mainline today) or test this against linux-next
HDMI is not supported
other topics I'm working on:
- CPU frequency scaling
- temperature sensor support in the SAR ADC driver
- ...whatever attracts my attention / interest ;)
Regards
Martin