Skip to content

ARM: dts: meson8m2: mxiii: Support Minix X8-H Plus #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/arm/amlogic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ properties:
- description: Boards with the Amlogic Meson8m2 SoC
items:
- enum:
- minix,x8-h-plus
- tronsmart,mxiii
- tronsmart,mxiii-plus
- const: amlogic,meson8m2
Expand Down
1 change: 1 addition & 0 deletions arch/arm/boot/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ dtb-$(CONFIG_MACH_MESON8) += \
meson8b-odroidc1.dtb \
meson8m2-mxiii.dtb \
meson8m2-mxiii-plus.dtb \
meson8m2-minix-neo-x8-h-plus.dts \
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in the extension, should be dtb

meson8m2-m8s.dtb
dtb-$(CONFIG_ARCH_MMP) += \
pxa168-aspenite.dtb \
Expand Down
100 changes: 100 additions & 0 deletions arch/arm/boot/dts/meson8m2-minix-neo-x8-h-plus.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2020 Arnaud Mondit <a.mondit@gmail.com>
* Based on meson8m2-mxiii-plus.dts:
* - Copyright (c) 2018
* Author: Oleg Ivanov <balbes-150@yandex.ru>
* - Copyright (c) 2018
* Author: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
*/

/dts-v1/;

#include "meson8m2-mxiii.dtsi"

/ {
model = "Minix X8-H Plus";
compatible = "minix,x8-h-plus", "amlogic,meson8m2";
};

&ethmac {
status = "okay";

pinctrl-0 = <&eth_rgmii_pins>;
pinctrl-names = "default";

phy-handle = <&eth_phy0>;
phy-mode = "rgmii-id";

mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>;
#size-cells = <0>;

eth_phy0: ethernet-phy@0 {
/* Realtek RTL8211F (0x001cc916) */
reg = <0>;

reset-assert-us = <10000>;
reset-deassert-us = <30000>;
reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
};
};
};

&sdhc {
status = "okay";

pinctrl-0 = <&sdxc_b_pins>;
pinctrl-names = "default";

bus-width = <4>;
max-frequency = <50000000>;

no-mmc;
no-sdio;
cap-sd-highspeed;
disable-wp;

cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;

vmmc-supply = <&vcc_3v3>;
vqmmc-supply = <&vcc_3v3>;
};

&sdio {
status = "okay";

pinctrl-0 = <&sd_a_pins>;
pinctrl-names = "default";

sdio_wireless_slot: slot@0 {
compatible = "mmc-slot";
reg = <0>;

bus-width = <4>;
cap-mmc-highspeed;
cap-sd-highspeed;
non-removable;
disable-wp;

mmc-pwrseq = <&sdio_pwrseq>;

vmmc-supply = <&vcc_3v3>;
};
};

&uart_A {
status = "okay";
pinctrl-0 = <&uart_a1_pins>, <&uart_a1_cts_rts_pins>;
pinctrl-names = "default";
uart-has-rtscts;

bluetooth {
compatible = "brcm,bcm43438-bt";
max-speed = <3000000>;
vbat-supply = <&vcc_3v3>;
vddio-supply = <&vcc_3v3>;
shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>;
};
};