1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Device Tree Source for the Salvator-X 2nd version board with R-Car H3 ES2.0+ 4 * 5 * Copyright (C) 2015-2017 Renesas Electronics Corp. 6 */ 7 8/dts-v1/; 9#include "r8a77951.dtsi" 10#include "salvator-xs.dtsi" 11 12/ { 13 model = "Renesas Salvator-X 2nd version board based on r8a77951"; 14 compatible = "renesas,salvator-xs", "renesas,r8a7795"; 15 16 memory@48000000 { 17 device_type = "memory"; 18 /* first 128MB is reserved for secure area. */ 19 reg = <0x0 0x48000000 0x0 0x38000000>; 20 }; 21 22 memory@500000000 { 23 device_type = "memory"; 24 reg = <0x5 0x00000000 0x0 0x40000000>; 25 }; 26 27 memory@600000000 { 28 device_type = "memory"; 29 reg = <0x6 0x00000000 0x0 0x40000000>; 30 }; 31 32 memory@700000000 { 33 device_type = "memory"; 34 reg = <0x7 0x00000000 0x0 0x40000000>; 35 }; 36}; 37 38&du { 39 clocks = <&cpg CPG_MOD 724>, 40 <&cpg CPG_MOD 723>, 41 <&cpg CPG_MOD 722>, 42 <&cpg CPG_MOD 721>, 43 <&versaclock6 1>, 44 <&x21_clk>, 45 <&x22_clk>, 46 <&versaclock6 2>; 47 clock-names = "du.0", "du.1", "du.2", "du.3", 48 "dclkin.0", "dclkin.1", "dclkin.2", "dclkin.3"; 49}; 50 51&ehci3 { 52 dr_mode = "otg"; 53 status = "okay"; 54}; 55 56&hsusb3 { 57 dr_mode = "otg"; 58 status = "okay"; 59}; 60 61&ohci3 { 62 dr_mode = "otg"; 63 status = "okay"; 64}; 65 66&pfc { 67 /* 68 * - On Salvator-X[S], GP6_3[01] are connected to ADV7482 as irq pins 69 * (when SW31 is the default setting on Salvator-XS). 70 * - If SW31 is the default setting, you cannot use USB2.0 ch3 on 71 * r8a77951 with Salvator-XS. 72 * Hence the SW31 setting must be changed like 2) below. 73 * 1) Default setting of SW31: ON-ON-OFF-OFF-OFF-OFF: 74 * - Connect GP6_3[01] to ADV7842. 75 * 2) Changed setting of SW31: OFF-OFF-ON-ON-ON-ON: 76 * - Connect GP6_3[01] to BD082065 (USB2.0 ch3's host power). 77 * - Connect GP6_{04,21} to ADV7842. 78 */ 79 usb2_ch3_pins: usb2_ch3 { 80 groups = "usb2_ch3"; 81 function = "usb2_ch3"; 82 }; 83}; 84 85&usb2_phy3 { 86 pinctrl-0 = <&usb2_ch3_pins>; 87 pinctrl-names = "default"; 88 89 status = "okay"; 90}; 91