forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm64: dts: meson: add initial device-tree for H96-Max
The Haochuangyi H96-Max is based on the Amlogic S905X3 reference design with the following specs: - 4GB DDR4 RAM - 32/64/128GB eMMC - HDMI 2.1 video - S/PDIF optical output - AV output - 10/100/1000 Base-T Ethernet - AP6356S Wireless (802.11 a/b/g/n/ac, BT 4.1) - 1x USB 2.0 OTG port - 1x USB 3.0 port - IR receiver - 1x micro SD card slot (internal) - 1x Reset/Update button (in AV jack) - 7-segment VFD Signed-off-by: Christian Hewitt <[email protected]> Tested-by: Benoit Masson <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/[email protected]
- Loading branch information
1 parent
2ca889b
commit ac7b443
Showing
2 changed files
with
146 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
/* | ||
* Copyright (c) 2019 BayLibre SAS. All rights reserved. | ||
* Copyright (c) 2020 Christian Hewitt <[email protected]> | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
#include "meson-sm1-ac2xx.dtsi" | ||
#include <dt-bindings/sound/meson-g12a-tohdmitx.h> | ||
|
||
/ { | ||
compatible = "haochuangyi,h96-max", "amlogic,sm1"; | ||
model = "Shenzhen Haochuangyi Technology Co., Ltd H96 Max"; | ||
|
||
sound { | ||
compatible = "amlogic,axg-sound-card"; | ||
model = "H96-MAX"; | ||
audio-aux-devs = <&tdmout_b>; | ||
audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", | ||
"TDMOUT_B IN 1", "FRDDR_B OUT 1", | ||
"TDMOUT_B IN 2", "FRDDR_C OUT 1", | ||
"TDM_B Playback", "TDMOUT_B OUT"; | ||
|
||
assigned-clocks = <&clkc CLKID_MPLL2>, | ||
<&clkc CLKID_MPLL0>, | ||
<&clkc CLKID_MPLL1>; | ||
assigned-clock-parents = <0>, <0>, <0>; | ||
assigned-clock-rates = <294912000>, | ||
<270950400>, | ||
<393216000>; | ||
status = "okay"; | ||
|
||
dai-link-0 { | ||
sound-dai = <&frddr_a>; | ||
}; | ||
|
||
dai-link-1 { | ||
sound-dai = <&frddr_b>; | ||
}; | ||
|
||
dai-link-2 { | ||
sound-dai = <&frddr_c>; | ||
}; | ||
|
||
/* 8ch hdmi interface */ | ||
dai-link-3 { | ||
sound-dai = <&tdmif_b>; | ||
dai-format = "i2s"; | ||
dai-tdm-slot-tx-mask-0 = <1 1>; | ||
dai-tdm-slot-tx-mask-1 = <1 1>; | ||
dai-tdm-slot-tx-mask-2 = <1 1>; | ||
dai-tdm-slot-tx-mask-3 = <1 1>; | ||
mclk-fs = <256>; | ||
|
||
codec { | ||
sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; | ||
}; | ||
}; | ||
|
||
/* hdmi glue */ | ||
dai-link-4 { | ||
sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; | ||
|
||
codec { | ||
sound-dai = <&hdmi_tx>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&arb { | ||
status = "okay"; | ||
}; | ||
|
||
&clkc_audio { | ||
status = "okay"; | ||
}; | ||
|
||
ðmac { | ||
status = "okay"; | ||
|
||
pinctrl-0 = <ð_pins>, <ð_rgmii_pins>; | ||
pinctrl-names = "default"; | ||
phy-mode = "rgmii-txid"; | ||
phy-handle = <&external_phy>; | ||
|
||
rx-internal-delay-ps = <800>; | ||
}; | ||
|
||
&ext_mdio { | ||
external_phy: ethernet-phy@0 { | ||
/* Realtek RTL8211F (0x001cc916) */ | ||
reg = <0>; | ||
max-speed = <1000>; | ||
|
||
reset-assert-us = <10000>; | ||
reset-deassert-us = <80000>; | ||
reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; | ||
|
||
interrupt-parent = <&gpio_intc>; | ||
/* MAC_INTR on GPIOZ_14 */ | ||
interrupts = <26 IRQ_TYPE_LEVEL_LOW>; | ||
}; | ||
}; | ||
|
||
&frddr_a { | ||
status = "okay"; | ||
}; | ||
|
||
&frddr_b { | ||
status = "okay"; | ||
}; | ||
|
||
&frddr_c { | ||
status = "okay"; | ||
}; | ||
|
||
&tdmif_b { | ||
status = "okay"; | ||
}; | ||
|
||
&tdmout_b { | ||
status = "okay"; | ||
}; | ||
|
||
&tohdmitx { | ||
status = "okay"; | ||
}; | ||
|
||
&uart_A { | ||
status = "okay"; | ||
|
||
pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; | ||
pinctrl-names = "default"; | ||
uart-has-rtscts; | ||
|
||
bluetooth { | ||
compatible = "brcm,bcm43438-bt"; | ||
shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; | ||
max-speed = <2000000>; | ||
clocks = <&wifi32k>; | ||
clock-names = "lpo"; | ||
}; | ||
}; |