Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Device Tree Source for the iWave-RZG1E-G22M SODIMM SOM
0004  *
0005  * Copyright (C) 2017 Renesas Electronics Corp.
0006  */
0007 
0008 #include "r8a7745.dtsi"
0009 #include <dt-bindings/gpio/gpio.h>
0010 
0011 / {
0012         compatible = "iwave,g22m", "renesas,r8a7745";
0013 
0014         memory@40000000 {
0015                 device_type = "memory";
0016                 reg = <0 0x40000000 0 0x20000000>;
0017         };
0018 
0019         reg_3p3v: 3p3v {
0020                 compatible = "regulator-fixed";
0021                 regulator-name = "3P3V";
0022                 regulator-min-microvolt = <3300000>;
0023                 regulator-max-microvolt = <3300000>;
0024                 regulator-always-on;
0025                 regulator-boot-on;
0026         };
0027 };
0028 
0029 &cmt0 {
0030         status = "okay";
0031 };
0032 
0033 &extal_clk {
0034         clock-frequency = <20000000>;
0035 };
0036 
0037 &pfc {
0038         mmcif0_pins: mmc {
0039                 groups = "mmc_data8", "mmc_ctrl";
0040                 function = "mmc";
0041         };
0042 
0043         qspi_pins: qspi {
0044                 groups = "qspi_ctrl", "qspi_data2";
0045                 function = "qspi";
0046         };
0047 
0048         sdhi1_pins: sd1 {
0049                 groups = "sdhi1_data4", "sdhi1_ctrl";
0050                 function = "sdhi1";
0051                 power-source = <3300>;
0052         };
0053 
0054         i2c3_pins: i2c3 {
0055                 groups = "i2c3_b";
0056                 function = "i2c3";
0057         };
0058 };
0059 
0060 &mmcif0 {
0061         pinctrl-0 = <&mmcif0_pins>;
0062         pinctrl-names = "default";
0063 
0064         vmmc-supply = <&reg_3p3v>;
0065         bus-width = <8>;
0066         non-removable;
0067         status = "okay";
0068 };
0069 
0070 &qspi {
0071         pinctrl-0 = <&qspi_pins>;
0072         pinctrl-names = "default";
0073 
0074         status = "okay";
0075 
0076         /* WARNING - This device contains the bootloader. Handle with care. */
0077         flash: flash@0 {
0078                 #address-cells = <1>;
0079                 #size-cells = <1>;
0080                 compatible = "sst,sst25vf016b", "jedec,spi-nor";
0081                 reg = <0>;
0082                 spi-max-frequency = <50000000>;
0083                 spi-tx-bus-width = <1>;
0084                 spi-rx-bus-width = <1>;
0085                 m25p,fast-read;
0086                 spi-cpol;
0087                 spi-cpha;
0088         };
0089 };
0090 
0091 &rwdt {
0092         timeout-sec = <60>;
0093         status = "okay";
0094 };
0095 
0096 &sdhi1 {
0097         pinctrl-0 = <&sdhi1_pins>;
0098         pinctrl-names = "default";
0099 
0100         vmmc-supply = <&reg_3p3v>;
0101         vqmmc-supply = <&reg_3p3v>;
0102         cd-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;
0103         status = "okay";
0104 };
0105 
0106 &i2c3 {
0107         pinctrl-0 = <&i2c3_pins>;
0108         pinctrl-names = "default";
0109 
0110         status = "okay";
0111         clock-frequency = <400000>;
0112 
0113         rtc@68 {
0114                 compatible = "ti,bq32000";
0115                 reg = <0x68>;
0116         };
0117 };