0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Reference Device Tree Source for the R-Car M1A (R8A77781) Bock-W board
0004 *
0005 * Copyright (C) 2013 Renesas Solutions Corp.
0006 * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
0007 *
0008 * based on r8a7779
0009 *
0010 * Copyright (C) 2013 Renesas Solutions Corp.
0011 * Copyright (C) 2013 Simon Horman
0012 */
0013
0014 /dts-v1/;
0015 #include "r8a7778.dtsi"
0016 #include <dt-bindings/interrupt-controller/irq.h>
0017 #include <dt-bindings/gpio/gpio.h>
0018
0019 / {
0020 model = "bockw";
0021 compatible = "renesas,bockw", "renesas,r8a7778";
0022
0023 aliases {
0024 serial0 = &scif0;
0025 };
0026
0027 chosen {
0028 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
0029 stdout-path = "serial0:115200n8";
0030 };
0031
0032 memory@60000000 {
0033 device_type = "memory";
0034 reg = <0x60000000 0x10000000>;
0035 };
0036
0037 fixedregulator3v3: regulator-3v3 {
0038 compatible = "regulator-fixed";
0039 regulator-name = "fixed-3.3V";
0040 regulator-min-microvolt = <3300000>;
0041 regulator-max-microvolt = <3300000>;
0042 regulator-boot-on;
0043 regulator-always-on;
0044 };
0045
0046 sound {
0047 compatible = "simple-audio-card";
0048
0049 simple-audio-card,format = "left_j";
0050 simple-audio-card,bitclock-master = <&sndcodec>;
0051 simple-audio-card,frame-master = <&sndcodec>;
0052
0053 sndcpu: simple-audio-card,cpu {
0054 sound-dai = <&rcar_sound>;
0055 };
0056
0057 sndcodec: simple-audio-card,codec {
0058 sound-dai = <&ak4643>;
0059 system-clock-frequency = <11289600>;
0060 };
0061 };
0062 };
0063
0064 &bsc {
0065 ethernet@18300000 {
0066 compatible = "smsc,lan89218", "smsc,lan9115";
0067 reg = <0x18300000 0x1000>;
0068
0069 phy-mode = "mii";
0070 interrupt-parent = <&irqpin>;
0071 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
0072 reg-io-width = <4>;
0073 vddvario-supply = <&fixedregulator3v3>;
0074 vdd33a-supply = <&fixedregulator3v3>;
0075 };
0076 };
0077
0078 &extal_clk {
0079 clock-frequency = <33333333>;
0080 };
0081
0082 &i2c0 {
0083 status = "okay";
0084
0085 ak4643: codec@12 {
0086 compatible = "asahi-kasei,ak4643";
0087 #sound-dai-cells = <0>;
0088 reg = <0x12>;
0089 };
0090
0091 camera@41 {
0092 compatible = "oki,ml86v7667";
0093 reg = <0x41>;
0094 };
0095
0096 camera@43 {
0097 compatible = "oki,ml86v7667";
0098 reg = <0x43>;
0099 };
0100
0101 rx8581: rtc@51 {
0102 compatible = "epson,rx8581";
0103 reg = <0x51>;
0104 };
0105 };
0106
0107 &mmcif {
0108 pinctrl-0 = <&mmc_pins>;
0109 pinctrl-names = "default";
0110
0111 vmmc-supply = <&fixedregulator3v3>;
0112 bus-width = <8>;
0113 broken-cd;
0114 status = "okay";
0115 };
0116
0117 &irqpin {
0118 status = "okay";
0119 };
0120
0121 &tmu0 {
0122 status = "okay";
0123 };
0124
0125 &pfc {
0126 pinctrl-0 = <&scif_clk_pins>;
0127 pinctrl-names = "default";
0128
0129 scif0_pins: scif0 {
0130 groups = "scif0_data_a", "scif0_ctrl";
0131 function = "scif0";
0132 };
0133
0134 scif_clk_pins: scif_clk {
0135 groups = "scif_clk";
0136 function = "scif_clk";
0137 };
0138
0139 mmc_pins: mmc {
0140 groups = "mmc_data8", "mmc_ctrl";
0141 function = "mmc";
0142 };
0143
0144 sdhi0_pins: sd0 {
0145 groups = "sdhi0_data4", "sdhi0_ctrl";
0146 function = "sdhi0";
0147 };
0148 sdhi0_pup_pins: sd0_pup {
0149 groups = "sdhi0_cd", "sdhi0_wp";
0150 function = "sdhi0";
0151 bias-pull-up;
0152 };
0153
0154 hspi0_pins: hspi0 {
0155 groups = "hspi0_a";
0156 function = "hspi0";
0157 };
0158
0159 usb0_pins: usb0 {
0160 groups = "usb0";
0161 function = "usb0";
0162 };
0163
0164 usb1_pins: usb1 {
0165 groups = "usb1";
0166 function = "usb1";
0167 };
0168
0169 vin0_pins: vin0 {
0170 groups = "vin0_data8", "vin0_clk";
0171 function = "vin0";
0172 };
0173
0174 vin1_pins: vin1 {
0175 groups = "vin1_data8", "vin1_clk";
0176 function = "vin1";
0177 };
0178 };
0179
0180 &rcar_sound {
0181 /* Single DAI */
0182 #sound-dai-cells = <0>;
0183 };
0184
0185 &sdhi0 {
0186 pinctrl-0 = <&sdhi0_pins>, <&sdhi0_pup_pins>;
0187 pinctrl-names = "default";
0188
0189 vmmc-supply = <&fixedregulator3v3>;
0190 bus-width = <4>;
0191 status = "okay";
0192 wp-gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>;
0193 };
0194
0195 &hspi0 {
0196 pinctrl-0 = <&hspi0_pins>;
0197 pinctrl-names = "default";
0198 status = "okay";
0199
0200 flash: flash@0 {
0201 compatible = "spansion,s25fl008k", "jedec,spi-nor";
0202 reg = <0>;
0203 spi-max-frequency = <104000000>;
0204 m25p,fast-read;
0205
0206 partitions {
0207 compatible = "fixed-partitions";
0208 #address-cells = <1>;
0209 #size-cells = <1>;
0210
0211 partition@0 {
0212 label = "data(spi)";
0213 reg = <0x00000000 0x00100000>;
0214 };
0215 };
0216 };
0217 };
0218
0219 &scif0 {
0220 pinctrl-0 = <&scif0_pins>;
0221 pinctrl-names = "default";
0222
0223 uart-has-rtscts;
0224 status = "okay";
0225 };
0226
0227 &scif_clk {
0228 clock-frequency = <14745600>;
0229 };