0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Device Tree Source for the Stout board
0004 *
0005 * Copyright (C) 2018 Marek Vasut <marek.vasut@gmail.com>
0006 */
0007
0008 /dts-v1/;
0009 #include "r8a7790.dtsi"
0010 #include <dt-bindings/gpio/gpio.h>
0011 #include <dt-bindings/input/input.h>
0012
0013 / {
0014 model = "Stout";
0015 compatible = "renesas,stout", "renesas,r8a7790";
0016
0017 aliases {
0018 serial0 = &scifa0;
0019 };
0020
0021 chosen {
0022 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
0023 stdout-path = "serial0:115200n8";
0024 };
0025
0026 memory@40000000 {
0027 device_type = "memory";
0028 reg = <0 0x40000000 0 0x40000000>;
0029 };
0030
0031 leds {
0032 compatible = "gpio-leds";
0033 led1 {
0034 gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
0035 };
0036 led2 {
0037 gpios = <&gpio4 23 GPIO_ACTIVE_LOW>;
0038 };
0039 led3 {
0040 gpios = <&gpio5 17 GPIO_ACTIVE_LOW>;
0041 };
0042 led5 {
0043 gpios = <&gpio4 24 GPIO_ACTIVE_LOW>;
0044 };
0045 };
0046
0047 fixedregulator3v3: regulator-3v3 {
0048 compatible = "regulator-fixed";
0049 regulator-name = "fixed-3.3V";
0050 regulator-min-microvolt = <3300000>;
0051 regulator-max-microvolt = <3300000>;
0052 regulator-boot-on;
0053 regulator-always-on;
0054 };
0055
0056 vcc_sdhi0: regulator-vcc-sdhi0 {
0057 compatible = "regulator-fixed";
0058
0059 regulator-name = "SDHI0 Vcc";
0060 regulator-min-microvolt = <3300000>;
0061 regulator-max-microvolt = <3300000>;
0062
0063 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
0064 enable-active-high;
0065 };
0066
0067 hdmi-out {
0068 compatible = "hdmi-connector";
0069 type = "a";
0070
0071 port {
0072 hdmi_con_out: endpoint {
0073 remote-endpoint = <&adv7511_out>;
0074 };
0075 };
0076 };
0077
0078 osc1_clk: osc1-clock {
0079 compatible = "fixed-clock";
0080 #clock-cells = <0>;
0081 clock-frequency = <148500000>;
0082 };
0083
0084 osc4_clk: osc4-clock {
0085 compatible = "fixed-clock";
0086 #clock-cells = <0>;
0087 clock-frequency = <12000000>;
0088 };
0089 };
0090
0091 &du {
0092 pinctrl-0 = <&du_pins>;
0093 pinctrl-names = "default";
0094 status = "okay";
0095
0096 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>,
0097 <&osc1_clk>;
0098 clock-names = "du.0", "du.1", "du.2", "dclkin.0";
0099
0100 ports {
0101 port@0 {
0102 endpoint {
0103 remote-endpoint = <&adv7511_in>;
0104 };
0105 };
0106 };
0107 };
0108
0109 &lvds0 {
0110 ports {
0111 port@1 {
0112 lvds_connector0: endpoint {
0113 };
0114 };
0115 };
0116 };
0117
0118 &lvds1 {
0119 ports {
0120 port@1 {
0121 lvds_connector1: endpoint {
0122 };
0123 };
0124 };
0125 };
0126
0127 &extal_clk {
0128 clock-frequency = <20000000>;
0129 };
0130
0131 &pfc {
0132
0133 pinctrl-0 = <&scif_clk_pins>;
0134 pinctrl-names = "default";
0135
0136 du_pins: du {
0137 groups = "du_rgb888", "du_sync_1", "du_clk_out_0";
0138 function = "du";
0139 };
0140
0141 scifa0_pins: scifa0 {
0142 groups = "scifa0_data_b";
0143 function = "scifa0";
0144 };
0145
0146 scif_clk_pins: scif_clk {
0147 groups = "scif_clk";
0148 function = "scif_clk";
0149 };
0150
0151 ether_pins: ether {
0152 groups = "eth_link", "eth_mdio", "eth_rmii";
0153 function = "eth";
0154 };
0155
0156 phy1_pins: phy1 {
0157 groups = "intc_irq1";
0158 function = "intc";
0159 };
0160
0161 sdhi0_pins: sd0 {
0162 groups = "sdhi0_data4", "sdhi0_ctrl";
0163 function = "sdhi0";
0164 power-source = <3300>;
0165 };
0166
0167 qspi_pins: qspi {
0168 groups = "qspi_ctrl", "qspi_data4";
0169 function = "qspi";
0170 };
0171
0172 iic2_pins: iic2 {
0173 groups = "iic2_b";
0174 function = "iic2";
0175 };
0176
0177 iic3_pins: iic3 {
0178 groups = "iic3";
0179 function = "iic3";
0180 };
0181
0182 pmic_irq_pins: pmicirq {
0183 groups = "intc_irq2";
0184 function = "intc";
0185 };
0186
0187 usb0_pins: usb0 {
0188 groups = "usb0";
0189 function = "usb0";
0190 };
0191 };
0192
0193 ðer {
0194 pinctrl-0 = <ðer_pins>, <&phy1_pins>;
0195 pinctrl-names = "default";
0196
0197 phy-handle = <&phy1>;
0198 renesas,ether-link-active-low;
0199 status = "okay";
0200
0201 phy1: ethernet-phy@1 {
0202 compatible = "ethernet-phy-id0022.1537",
0203 "ethernet-phy-ieee802.3-c22";
0204 reg = <1>;
0205 interrupt-parent = <&irqc0>;
0206 interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
0207 micrel,led-mode = <1>;
0208 reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;
0209 };
0210 };
0211
0212 &cmt0 {
0213 status = "okay";
0214 };
0215
0216 &qspi {
0217 pinctrl-0 = <&qspi_pins>;
0218 pinctrl-names = "default";
0219
0220 status = "okay";
0221
0222 flash: flash@0 {
0223 compatible = "spansion,s25fl512s", "jedec,spi-nor";
0224 reg = <0>;
0225 spi-max-frequency = <30000000>;
0226 spi-tx-bus-width = <4>;
0227 spi-rx-bus-width = <4>;
0228 spi-cpha;
0229 spi-cpol;
0230 m25p,fast-read;
0231
0232 partitions {
0233 compatible = "fixed-partitions";
0234 #address-cells = <1>;
0235 #size-cells = <1>;
0236
0237 partition@0 {
0238 label = "loader";
0239 reg = <0x00000000 0x00080000>;
0240 read-only;
0241 };
0242 partition@80000 {
0243 label = "uboot";
0244 reg = <0x00080000 0x00040000>;
0245 read-only;
0246 };
0247 partition@c0000 {
0248 label = "uboot-env";
0249 reg = <0x000c0000 0x00040000>;
0250 read-only;
0251 };
0252 partition@100000 {
0253 label = "flash";
0254 reg = <0x00100000 0x03f00000>;
0255 };
0256 };
0257 };
0258 };
0259
0260 &scifa0 {
0261 pinctrl-0 = <&scifa0_pins>;
0262 pinctrl-names = "default";
0263
0264 status = "okay";
0265 };
0266
0267 &scif_clk {
0268 clock-frequency = <14745600>;
0269 };
0270
0271 &sdhi0 {
0272 pinctrl-0 = <&sdhi0_pins>;
0273 pinctrl-names = "default";
0274
0275 vmmc-supply = <&vcc_sdhi0>;
0276 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
0277 status = "okay";
0278 };
0279
0280 &cpu0 {
0281 cpu0-supply = <&vdd_dvfs>;
0282 };
0283
0284 &iic2 {
0285 status = "okay";
0286 pinctrl-0 = <&iic2_pins>;
0287 pinctrl-names = "default";
0288
0289 clock-frequency = <100000>;
0290
0291 hdmi@39 {
0292 compatible = "adi,adv7511w";
0293 reg = <0x39>;
0294 interrupt-parent = <&gpio1>;
0295 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
0296 clocks = <&osc4_clk>;
0297 clock-names = "cec";
0298
0299 adi,input-depth = <8>;
0300 adi,input-colorspace = "rgb";
0301 adi,input-clock = "1x";
0302
0303 ports {
0304 #address-cells = <1>;
0305 #size-cells = <0>;
0306
0307 port@0 {
0308 reg = <0>;
0309 adv7511_in: endpoint {
0310 remote-endpoint = <&du_out_rgb>;
0311 };
0312 };
0313
0314 port@1 {
0315 reg = <1>;
0316 adv7511_out: endpoint {
0317 remote-endpoint = <&hdmi_con_out>;
0318 };
0319 };
0320 };
0321 };
0322 };
0323
0324 &iic3 {
0325 pinctrl-names = "default";
0326 pinctrl-0 = <&iic3_pins>, <&pmic_irq_pins>;
0327 status = "okay";
0328
0329 pmic@58 {
0330 compatible = "dlg,da9063";
0331 reg = <0x58>;
0332 interrupt-parent = <&irqc0>;
0333 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
0334 interrupt-controller;
0335
0336 onkey {
0337 compatible = "dlg,da9063-onkey";
0338 };
0339
0340 rtc {
0341 compatible = "dlg,da9063-rtc";
0342 };
0343
0344 watchdog {
0345 compatible = "dlg,da9063-watchdog";
0346 };
0347 };
0348
0349 vdd_dvfs: regulator@68 {
0350 compatible = "dlg,da9210";
0351 reg = <0x68>;
0352 interrupt-parent = <&irqc0>;
0353 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
0354
0355 regulator-min-microvolt = <1000000>;
0356 regulator-max-microvolt = <1000000>;
0357 regulator-boot-on;
0358 regulator-always-on;
0359 };
0360
0361 vdd: regulator@70 {
0362 compatible = "dlg,da9210";
0363 reg = <0x70>;
0364 interrupt-parent = <&irqc0>;
0365 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
0366
0367 regulator-min-microvolt = <1000000>;
0368 regulator-max-microvolt = <1000000>;
0369 regulator-boot-on;
0370 regulator-always-on;
0371 };
0372 };
0373
0374 &pci0 {
0375 status = "okay";
0376 pinctrl-0 = <&usb0_pins>;
0377 pinctrl-names = "default";
0378 };
0379
0380 &usbphy {
0381 status = "okay";
0382 };