1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (c) 2017 Martin Blumenstingl <martin.blumenstingl@googlemail.com>.
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot#include "meson8.dtsi"
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot/ {
9*f126890aSEmmanuel Vadot	model = "Amlogic Meson8m2 SoC";
10*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8m2";
11*f126890aSEmmanuel Vadot}; /* end of / */
12*f126890aSEmmanuel Vadot
13*f126890aSEmmanuel Vadot&clkc {
14*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8m2-clkc", "amlogic,meson8-clkc";
15*f126890aSEmmanuel Vadot};
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot&dmcbus {
18*f126890aSEmmanuel Vadot	/* the offset of the canvas registers has changed compared to Meson8 */
19*f126890aSEmmanuel Vadot	/delete-node/ video-lut@20;
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadot	canvas: video-lut@48 {
22*f126890aSEmmanuel Vadot		compatible = "amlogic,meson8m2-canvas", "amlogic,canvas";
23*f126890aSEmmanuel Vadot		reg = <0x48 0x14>;
24*f126890aSEmmanuel Vadot	};
25*f126890aSEmmanuel Vadot};
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot&ethmac {
28*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8m2-dwmac", "snps,dwmac";
29*f126890aSEmmanuel Vadot	reg = <0xc9410000 0x10000
30*f126890aSEmmanuel Vadot		0xc1108140 0x8>;
31*f126890aSEmmanuel Vadot	clocks = <&clkc CLKID_ETH>,
32*f126890aSEmmanuel Vadot		 <&clkc CLKID_MPLL2>,
33*f126890aSEmmanuel Vadot		 <&clkc CLKID_MPLL2>,
34*f126890aSEmmanuel Vadot		 <&clkc CLKID_FCLK_DIV2>;
35*f126890aSEmmanuel Vadot	clock-names = "stmmaceth", "clkin0", "clkin1", "timing-adjustment";
36*f126890aSEmmanuel Vadot	resets = <&reset RESET_ETHERNET>;
37*f126890aSEmmanuel Vadot	reset-names = "stmmaceth";
38*f126890aSEmmanuel Vadot};
39*f126890aSEmmanuel Vadot
40*f126890aSEmmanuel Vadot&pinctrl_aobus {
41*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8m2-aobus-pinctrl",
42*f126890aSEmmanuel Vadot		     "amlogic,meson8-aobus-pinctrl";
43*f126890aSEmmanuel Vadot};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot&pinctrl_cbus {
46*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8m2-cbus-pinctrl",
47*f126890aSEmmanuel Vadot		     "amlogic,meson8-cbus-pinctrl";
48*f126890aSEmmanuel Vadot
49*f126890aSEmmanuel Vadot	eth_rgmii_pins: ethernet {
50*f126890aSEmmanuel Vadot		mux {
51*f126890aSEmmanuel Vadot			groups = "eth_tx_clk_50m", "eth_tx_en",
52*f126890aSEmmanuel Vadot				 "eth_txd3", "eth_txd2",
53*f126890aSEmmanuel Vadot				 "eth_txd1", "eth_txd0",
54*f126890aSEmmanuel Vadot				 "eth_rx_clk_in", "eth_rx_dv",
55*f126890aSEmmanuel Vadot				 "eth_rxd3", "eth_rxd2",
56*f126890aSEmmanuel Vadot				 "eth_rxd1", "eth_rxd0",
57*f126890aSEmmanuel Vadot				 "eth_mdio", "eth_mdc";
58*f126890aSEmmanuel Vadot			function = "ethernet";
59*f126890aSEmmanuel Vadot			bias-disable;
60*f126890aSEmmanuel Vadot		};
61*f126890aSEmmanuel Vadot	};
62*f126890aSEmmanuel Vadot};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot&pwrc {
65*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8m2-pwrc";
66*f126890aSEmmanuel Vadot	resets = <&reset RESET_DBLK>,
67*f126890aSEmmanuel Vadot		 <&reset RESET_PIC_DC>,
68*f126890aSEmmanuel Vadot		 <&reset RESET_HDMI_APB>,
69*f126890aSEmmanuel Vadot		 <&reset RESET_HDMI_SYSTEM_RESET>,
70*f126890aSEmmanuel Vadot		 <&reset RESET_VENCI>,
71*f126890aSEmmanuel Vadot		 <&reset RESET_VENCP>,
72*f126890aSEmmanuel Vadot		 <&reset RESET_VDAC_4>,
73*f126890aSEmmanuel Vadot		 <&reset RESET_VENCL>,
74*f126890aSEmmanuel Vadot		 <&reset RESET_VIU>,
75*f126890aSEmmanuel Vadot		 <&reset RESET_VENC>,
76*f126890aSEmmanuel Vadot		 <&reset RESET_RDMA>;
77*f126890aSEmmanuel Vadot	reset-names = "dblk", "pic_dc", "hdmi_apb", "hdmi_system", "venci",
78*f126890aSEmmanuel Vadot		      "vencp", "vdac", "vencl", "viu", "venc", "rdma";
79*f126890aSEmmanuel Vadot	assigned-clocks = <&clkc CLKID_VPU>;
80*f126890aSEmmanuel Vadot	assigned-clock-rates = <364000000>;
81*f126890aSEmmanuel Vadot};
82*f126890aSEmmanuel Vadot
83*f126890aSEmmanuel Vadot&saradc {
84*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8m2-saradc", "amlogic,meson-saradc";
85*f126890aSEmmanuel Vadot};
86*f126890aSEmmanuel Vadot
87*f126890aSEmmanuel Vadot&sdhc {
88*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8m2-sdhc", "amlogic,meson-mx-sdhc";
89*f126890aSEmmanuel Vadot};
90*f126890aSEmmanuel Vadot
91*f126890aSEmmanuel Vadot&usb0_phy {
92*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8m2-usb2-phy", "amlogic,meson-mx-usb2-phy";
93*f126890aSEmmanuel Vadot};
94*f126890aSEmmanuel Vadot
95*f126890aSEmmanuel Vadot&usb1_phy {
96*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8m2-usb2-phy", "amlogic,meson-mx-usb2-phy";
97*f126890aSEmmanuel Vadot};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot&wdt {
100*f126890aSEmmanuel Vadot	compatible = "amlogic,meson8m2-wdt", "amlogic,meson8b-wdt";
101*f126890aSEmmanuel Vadot};
102