1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the Salvator-X 2nd version board with R-Car M3-N
4 *
5 * Copyright (C) 2017 Renesas Electronics Corp.
6 */
7
8/dts-v1/;
9#include "r8a77965.dtsi"
10#include "salvator-xs.dtsi"
11
12/ {
13	model = "Renesas Salvator-X 2nd version board based on r8a77965";
14	compatible = "renesas,salvator-xs", "renesas,r8a77965";
15
16	memory@48000000 {
17		device_type = "memory";
18		/* first 128MB is reserved for secure area. */
19		reg = <0x0 0x48000000 0x0 0x78000000>;
20	};
21};
22
23&du {
24	clocks = <&cpg CPG_MOD 724>,
25		 <&cpg CPG_MOD 723>,
26		 <&cpg CPG_MOD 721>,
27		 <&versaclock6 1>,
28		 <&x21_clk>,
29		 <&versaclock6 2>;
30	clock-names = "du.0", "du.1", "du.3",
31		      "dclkin.0", "dclkin.1", "dclkin.3";
32};
33
34&pca9654 {
35	pcie-sata-switch-hog {
36		gpio-hog;
37		gpios = <7 GPIO_ACTIVE_HIGH>;
38		output-low; /* enable SATA by default */
39		line-name = "PCIE/SATA switch";
40	};
41};
42
43/* SW12-7 must be set 'Off' (MD12 set to 1) which is not the default! */
44&sata {
45	status = "okay";
46};
47