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&hdmi0 { 35 status = "okay"; 36 37 ports { 38 port@1 { 39 reg = <1>; 40 rcar_dw_hdmi0_out: endpoint { 41 remote-endpoint = <&hdmi0_con>; 42 }; 43 }; 44 port@2 { 45 reg = <2>; 46 dw_hdmi0_snd_in: endpoint { 47 remote-endpoint = <&rsnd_endpoint1>; 48 }; 49 }; 50 }; 51}; 52 53&hdmi0_con { 54 remote-endpoint = <&rcar_dw_hdmi0_out>; 55}; 56 57&pca9654 { 58 pcie_sata_switch { 59 gpio-hog; 60 gpios = <7 GPIO_ACTIVE_HIGH>; 61 output-low; /* enable SATA by default */ 62 line-name = "PCIE/SATA switch"; 63 }; 64}; 65 66&rcar_sound { 67 ports { 68 rsnd_port1: port@1 { 69 reg = <1>; 70 rsnd_endpoint1: endpoint { 71 remote-endpoint = <&dw_hdmi0_snd_in>; 72 73 dai-format = "i2s"; 74 bitclock-master = <&rsnd_endpoint1>; 75 frame-master = <&rsnd_endpoint1>; 76 77 playback = <&ssi2>; 78 }; 79 }; 80 }; 81}; 82 83/* SW12-7 must be set 'Off' (MD12 set to 1) which is not the default! */ 84&sata { 85 status = "okay"; 86}; 87 88&sound_card { 89 dais = <&rsnd_port0 /* ak4613 */ 90 &rsnd_port1>; /* HDMI0 */ 91}; 92