Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Device Tree Source for the APE6EVM board
0004  *
0005  * Copyright (C) 2013 Renesas Solutions Corp.
0006  */
0007 
0008 /dts-v1/;
0009 #include "r8a73a4.dtsi"
0010 #include <dt-bindings/gpio/gpio.h>
0011 #include <dt-bindings/input/input.h>
0012 
0013 / {
0014         model = "APE6EVM";
0015         compatible = "renesas,ape6evm", "renesas,r8a73a4";
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         memory@200000000 {
0032                 device_type = "memory";
0033                 reg = <2 0x00000000 0 0x40000000>;
0034         };
0035 
0036         vcc_mmc0: regulator-mmc0 {
0037                 compatible = "regulator-fixed";
0038                 regulator-name = "MMC0 Vcc";
0039                 regulator-min-microvolt = <2800000>;
0040                 regulator-max-microvolt = <2800000>;
0041                 regulator-always-on;
0042         };
0043 
0044         vcc_sdhi0: regulator-sdhi0 {
0045                 compatible = "regulator-fixed";
0046 
0047                 regulator-name = "SDHI0 Vcc";
0048                 regulator-min-microvolt = <3300000>;
0049                 regulator-max-microvolt = <3300000>;
0050 
0051                 gpio = <&pfc 76 GPIO_ACTIVE_HIGH>;
0052                 enable-active-high;
0053         };
0054 
0055         /* Common 1.8V and 3.3V rails, used by several devices on APE6EVM */
0056         ape6evm_fixed_1v8: regulator-1v8 {
0057                 compatible = "regulator-fixed";
0058                 regulator-name = "1V8";
0059                 regulator-min-microvolt = <1800000>;
0060                 regulator-max-microvolt = <1800000>;
0061                 regulator-always-on;
0062         };
0063 
0064         ape6evm_fixed_3v3: regulator-3v3 {
0065                 compatible = "regulator-fixed";
0066                 regulator-name = "3V3";
0067                 regulator-min-microvolt = <3300000>;
0068                 regulator-max-microvolt = <3300000>;
0069                 regulator-always-on;
0070         };
0071 
0072         leds {
0073                 compatible = "gpio-leds";
0074                 led1 {
0075                         gpios = <&pfc 28 GPIO_ACTIVE_HIGH>;
0076                         label = "GNSS_EN";
0077                 };
0078                 led2 {
0079                         gpios = <&pfc 126 GPIO_ACTIVE_HIGH>;
0080                         label = "NFC_NRST";
0081                 };
0082                 led3 {
0083                         gpios = <&pfc 132 GPIO_ACTIVE_HIGH>;
0084                         label = "GNSS_NRST";
0085                 };
0086                 led4 {
0087                         gpios = <&pfc 232 GPIO_ACTIVE_HIGH>;
0088                         label = "BT_WAKEUP";
0089                 };
0090                 led5 {
0091                         gpios = <&pfc 250 GPIO_ACTIVE_HIGH>;
0092                         label = "STROBE";
0093                 };
0094                 led6 {
0095                         gpios = <&pfc 288 GPIO_ACTIVE_HIGH>;
0096                         label = "BBRESETOUT";
0097                 };
0098         };
0099 
0100         keyboard {
0101                 compatible = "gpio-keys";
0102 
0103                 pinctrl-names = "default";
0104                 pinctrl-0 = <&keyboard_pins>;
0105 
0106                 zero-key {
0107                         gpios = <&pfc 324 GPIO_ACTIVE_LOW>;
0108                         linux,code = <KEY_0>;
0109                         label = "S16";
0110                         wakeup-source;
0111                 };
0112 
0113                 menu-key {
0114                         gpios = <&pfc 325 GPIO_ACTIVE_LOW>;
0115                         linux,code = <KEY_MENU>;
0116                         label = "S17";
0117                 };
0118 
0119                 home-key {
0120                         gpios = <&pfc 326 GPIO_ACTIVE_LOW>;
0121                         linux,code = <KEY_HOME>;
0122                         label = "S18";
0123                 };
0124 
0125                 back-key {
0126                         gpios = <&pfc 327 GPIO_ACTIVE_LOW>;
0127                         linux,code = <KEY_BACK>;
0128                         label = "S19";
0129                 };
0130 
0131                 volup-key {
0132                         gpios = <&pfc 328 GPIO_ACTIVE_LOW>;
0133                         linux,code = <KEY_VOLUMEUP>;
0134                         label = "S20";
0135                 };
0136 
0137                 voldown-key {
0138                         gpios = <&pfc 329 GPIO_ACTIVE_LOW>;
0139                         linux,code = <KEY_VOLUMEDOWN>;
0140                         label = "S21";
0141                 };
0142         };
0143 };
0144 
0145 &i2c5 {
0146         status = "okay";
0147         vdd_dvfs: regulator@1b {
0148                 compatible = "maxim,max8973";
0149                 reg = <0x1b>;
0150 
0151                 regulator-min-microvolt = <935000>;
0152                 regulator-max-microvolt = <1200000>;
0153                 regulator-boot-on;
0154                 regulator-always-on;
0155         };
0156 };
0157 
0158 &cpu0 {
0159         cpu0-supply = <&vdd_dvfs>;
0160         operating-points = <1950000 1115000>,   /* kHz  uV */
0161                            <1462500  995000>;
0162         voltage-tolerance = <1>; /* 1% */
0163 };
0164 
0165 &bsc {
0166         flash@0 {
0167                 compatible = "cfi-flash", "mtd-rom";
0168                 reg = <0x0 0x08000000>;
0169                 bank-width = <2>;
0170 
0171                 partitions {
0172                         compatible = "fixed-partitions";
0173                         #address-cells = <1>;
0174                         #size-cells = <1>;
0175 
0176                         partition@0 {
0177                                 label = "uboot";
0178                                 reg = <0x00000000 0x00040000>;
0179                                 read-only;
0180                         };
0181                         partition@40000 {
0182                                 label = "uboot-env";
0183                                 reg = <0x00040000 0x00040000>;
0184                                 read-only;
0185                         };
0186                         partition@80000 {
0187                                 label = "flash";
0188                                 reg = <0x00080000 0x07f80000>;
0189                         };
0190                 };
0191         };
0192 
0193         ethernet@8000000 {
0194                 compatible = "smsc,lan9220", "smsc,lan9115";
0195                 reg = <0x08000000 0x1000>;
0196                 interrupt-parent = <&irqc1>;
0197                 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
0198                 phy-mode = "mii";
0199                 reg-io-width = <4>;
0200                 smsc,irq-active-high;
0201                 smsc,irq-push-pull;
0202                 reset-gpios = <&pfc 270 GPIO_ACTIVE_LOW>;
0203                 vdd33a-supply = <&ape6evm_fixed_3v3>;
0204                 vddvario-supply = <&ape6evm_fixed_1v8>;
0205         };
0206 };
0207 
0208 &cmt1 {
0209         status = "okay";
0210 };
0211 
0212 &pfc {
0213         scifa0_pins: scifa0 {
0214                 groups = "scifa0_data";
0215                 function = "scifa0";
0216         };
0217 
0218         mmc0_pins: mmc0 {
0219                 groups = "mmc0_data8", "mmc0_ctrl";
0220                 function = "mmc0";
0221         };
0222 
0223         sdhi0_pins: sd0 {
0224                 groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd";
0225                 function = "sdhi0";
0226         };
0227 
0228         sdhi1_pins: sd1 {
0229                 groups = "sdhi1_data4", "sdhi1_ctrl";
0230                 function = "sdhi1";
0231         };
0232 
0233         keyboard_pins: keyboard {
0234                 pins = "PORT324", "PORT325", "PORT326", "PORT327", "PORT328",
0235                        "PORT329";
0236                 bias-pull-up;
0237         };
0238 };
0239 
0240 &mmcif0 {
0241         vmmc-supply = <&vcc_mmc0>;
0242         bus-width = <8>;
0243         non-removable;
0244         pinctrl-names = "default";
0245         pinctrl-0 = <&mmc0_pins>;
0246         status = "okay";
0247 };
0248 
0249 &scifa0 {
0250         pinctrl-0 = <&scifa0_pins>;
0251         pinctrl-names = "default";
0252 
0253         status = "okay";
0254 };
0255 
0256 &sdhi0 {
0257         vmmc-supply = <&vcc_sdhi0>;
0258         bus-width = <4>;
0259         disable-wp;
0260         pinctrl-names = "default";
0261         pinctrl-0 = <&sdhi0_pins>;
0262         status = "okay";
0263 };
0264 
0265 &sdhi1 {
0266         vmmc-supply = <&ape6evm_fixed_3v3>;
0267         bus-width = <4>;
0268         broken-cd;
0269         disable-wp;
0270         pinctrl-names = "default";
0271         pinctrl-0 = <&sdhi1_pins>;
0272         status = "okay";
0273 };