blob: 1b316d79df88ca50f18b4deace7d4e6f718a4271 [file] [log] [blame]
Wolfram Sangcba59c22018-06-11 23:49:35 +09001// SPDX-License-Identifier: GPL-2.0
Vladimir Barinov52cb6602017-10-06 20:55:56 +03002/*
3 * Device Tree Source for the Kingfisher (ULCB extension) board
4 *
5 * Copyright (C) 2017 Renesas Electronics Corp.
6 * Copyright (C) 2017 Cogent Embedded, Inc.
Vladimir Barinov52cb6602017-10-06 20:55:56 +03007 */
8
9/ {
10 aliases {
11 serial1 = &hscif0;
Vladimir Barinovc6c816e2017-10-06 05:43:51 +030012 serial2 = &scif1;
Vladimir Barinov52cb6602017-10-06 20:55:56 +030013 };
14};
15
Vladimir Barinovba915c12017-09-14 17:19:13 +030016&can0 {
17 pinctrl-0 = <&can0_pins>;
18 pinctrl-names = "default";
19 status = "okay";
20};
21
22&can1 {
23 pinctrl-0 = <&can1_pins>;
24 pinctrl-names = "default";
25 status = "okay";
26};
27
Vladimir Barinov36bd8e32017-09-07 01:36:32 +030028&ehci0 {
Vladimir Barinov499468c2017-11-08 16:09:00 +030029 dr_mode = "otg";
Vladimir Barinov36bd8e32017-09-07 01:36:32 +030030 status = "okay";
31};
32
Vladimir Barinov52cb6602017-10-06 20:55:56 +030033&hscif0 {
34 pinctrl-0 = <&hscif0_pins>;
35 pinctrl-names = "default";
36 uart-has-rtscts;
37
38 status = "okay";
39};
40
Vladimir Barinovda9c3622017-09-07 01:36:25 +030041&hsusb {
Vladimir Barinov499468c2017-11-08 16:09:00 +030042 dr_mode = "otg";
Vladimir Barinovda9c3622017-09-07 01:36:25 +030043 status = "okay";
44};
45
Vladimir Barinov1189d1d2017-10-06 05:44:05 +030046&i2c2 {
47 gpio_exp_74: gpio@74 {
48 compatible = "ti,tca9539";
49 reg = <0x74>;
50 gpio-controller;
51 #gpio-cells = <2>;
52 interrupt-controller;
53 interrupt-parent = <&gpio6>;
54 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
Vladimir Barinov43393062017-09-07 01:37:24 +030055
56 hub_pwen {
57 gpio-hog;
58 gpios = <6 GPIO_ACTIVE_HIGH>;
59 output-high;
60 line-name = "HUB pwen";
61 };
62
63 hub_rst {
64 gpio-hog;
65 gpios = <7 GPIO_ACTIVE_HIGH>;
66 output-high;
67 line-name = "HUB rst";
68 };
Vladimir Barinov80785022017-11-08 15:21:38 +030069
70 otg_offvbusn {
71 gpio-hog;
72 gpios = <8 GPIO_ACTIVE_HIGH>;
73 output-low;
74 line-name = "OTG OFFVBUSn";
75 };
76
77 otg_extlpn {
78 gpio-hog;
79 gpios = <9 GPIO_ACTIVE_HIGH>;
80 output-high;
81 line-name = "OTG EXTLPn";
82 };
Vladimir Barinov1189d1d2017-10-06 05:44:05 +030083 };
84
85 gpio_exp_75: gpio@75 {
86 compatible = "ti,tca9539";
87 reg = <0x75>;
88 gpio-controller;
89 #gpio-cells = <2>;
90 interrupt-controller;
91 interrupt-parent = <&gpio6>;
92 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
93 };
Vladimir Barinovc6f9cbe2017-09-14 17:19:34 +030094
95 i2cswitch2: i2c-switch@71 {
96 compatible = "nxp,pca9548";
97 #address-cells = <1>;
98 #size-cells = <0>;
99 reg = <0x71>;
100 reset-gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
101 };
Vladimir Barinov1189d1d2017-10-06 05:44:05 +0300102};
103
Vladimir Barinov0f9c47b2017-10-06 05:44:11 +0300104&i2c4 {
105 gpio_exp_76: gpio@76 {
106 compatible = "ti,tca9539";
107 reg = <0x76>;
108 gpio-controller;
109 #gpio-cells = <2>;
110 interrupt-controller;
111 interrupt-parent = <&gpio7>;
112 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
113 };
114
115 gpio_exp_77: gpio@77 {
116 compatible = "ti,tca9539";
117 reg = <0x77>;
118 gpio-controller;
119 #gpio-cells = <2>;
120 interrupt-controller;
121 interrupt-parent = <&gpio5>;
122 interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
123 };
Vladimir Barinov6d5fcdd2017-09-14 17:19:48 +0300124
125 i2cswitch4: i2c-switch@71 {
126 compatible = "nxp,pca9548";
127 #address-cells = <1>;
128 #size-cells = <0>;
129 reg = <0x71>;
Geert Uytterhoevenfced3a92018-08-28 16:10:59 +0200130 reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
Vladimir Barinov6d5fcdd2017-09-14 17:19:48 +0300131 };
Vladimir Barinov0f9c47b2017-10-06 05:44:11 +0300132};
133
Vladimir Barinov36bd8e32017-09-07 01:36:32 +0300134&ohci0 {
Vladimir Barinov499468c2017-11-08 16:09:00 +0300135 dr_mode = "otg";
Vladimir Barinov36bd8e32017-09-07 01:36:32 +0300136 status = "okay";
137};
138
Vladimir Barinove0304a32017-10-06 05:43:59 +0300139&pcie_bus_clk {
140 clock-frequency = <100000000>;
141};
142
143&pciec0 {
144 status = "okay";
145};
146
147&pciec1 {
148 status = "okay";
149};
150
Vladimir Barinov52cb6602017-10-06 20:55:56 +0300151&pfc {
Vladimir Barinovba915c12017-09-14 17:19:13 +0300152 can0_pins: can0 {
153 groups = "can0_data_a";
154 function = "can0";
155 };
156
157 can1_pins: can1 {
158 groups = "can1_data";
159 function = "can1";
160 };
161
Vladimir Barinov52cb6602017-10-06 20:55:56 +0300162 hscif0_pins: hscif0 {
163 groups = "hscif0_data", "hscif0_ctrl";
164 function = "hscif0";
165 };
Vladimir Barinovc6c816e2017-10-06 05:43:51 +0300166
167 scif1_pins: scif1 {
168 groups = "scif1_data_b", "scif1_ctrl";
169 function = "scif1";
170 };
Vladimir Barinov80785022017-11-08 15:21:38 +0300171
172 usb0_pins: usb0 {
173 groups = "usb0";
174 function = "usb0";
175 };
Vladimir Barinovc6c816e2017-10-06 05:43:51 +0300176};
177
178&scif1 {
179 pinctrl-0 = <&scif1_pins>;
180 pinctrl-names = "default";
181 uart-has-rtscts;
182
183 status = "okay";
Vladimir Barinov52cb6602017-10-06 20:55:56 +0300184};
Vladimir Barinovaf758112017-09-07 01:36:48 +0300185
Vladimir Barinov80785022017-11-08 15:21:38 +0300186&usb2_phy0 {
187 pinctrl-0 = <&usb0_pins>;
188 pinctrl-names = "default";
189
190 status = "okay";
191};
192
Vladimir Barinovaf758112017-09-07 01:36:48 +0300193&xhci0 {
194 status = "okay";
195};