Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Device Tree Source for the RZ/A1H RSK board
0004  *
0005  * Copyright (C) 2016 Renesas Electronics
0006  */
0007 
0008 /dts-v1/;
0009 #include "r7s72100.dtsi"
0010 #include <dt-bindings/gpio/gpio.h>
0011 #include <dt-bindings/input/input.h>
0012 #include <dt-bindings/pinctrl/r7s72100-pinctrl.h>
0013 
0014 / {
0015         model = "RSKRZA1";
0016         compatible = "renesas,rskrza1", "renesas,r7s72100";
0017 
0018         aliases {
0019                 serial0 = &scif2;
0020         };
0021 
0022         chosen {
0023                 bootargs = "ignore_loglevel";
0024                 stdout-path = "serial0:115200n8";
0025         };
0026 
0027         memory@8000000 {
0028                 device_type = "memory";
0029                 reg = <0x08000000 0x02000000>;
0030         };
0031 
0032         keyboard {
0033                 compatible = "gpio-keys";
0034 
0035                 pinctrl-names = "default";
0036                 pinctrl-0 = <&keyboard_pins>;
0037 
0038                 key-1 {
0039                         interrupt-parent = <&irqc>;
0040                         interrupts = <3 IRQ_TYPE_EDGE_BOTH>;
0041                         linux,code = <KEY_1>;
0042                         label = "SW1";
0043                         wakeup-source;
0044                 };
0045 
0046                 key-2 {
0047                         interrupt-parent = <&irqc>;
0048                         interrupts = <2 IRQ_TYPE_EDGE_BOTH>;
0049                         linux,code = <KEY_2>;
0050                         label = "SW2";
0051                         wakeup-source;
0052                 };
0053 
0054                 key-3 {
0055                         interrupt-parent = <&irqc>;
0056                         interrupts = <5 IRQ_TYPE_EDGE_BOTH>;
0057                         linux,code = <KEY_3>;
0058                         label = "SW3";
0059                         wakeup-source;
0060                 };
0061         };
0062 
0063         lbsc {
0064                 #address-cells = <1>;
0065                 #size-cells = <1>;
0066         };
0067 
0068         leds {
0069                 compatible = "gpio-leds";
0070 
0071                 led0 {
0072                         gpios = <&port7 1 GPIO_ACTIVE_LOW>;
0073                 };
0074 
0075                 led1 {
0076                         gpios = <&io_expander1 0 GPIO_ACTIVE_LOW>;
0077                 };
0078 
0079                 led2 {
0080                         gpios = <&io_expander1 1 GPIO_ACTIVE_LOW>;
0081                 };
0082 
0083                 led3 {
0084                         gpios = <&io_expander1 2 GPIO_ACTIVE_LOW>;
0085                 };
0086         };
0087 };
0088 
0089 &extal_clk {
0090         clock-frequency = <13330000>;
0091 };
0092 
0093 &i2c3 {
0094         pinctrl-names = "default";
0095         pinctrl-0 = <&i2c3_pins>;
0096         status = "okay";
0097 
0098         clock-frequency = <400000>;
0099 
0100         io_expander1: gpio@20 {
0101                 compatible = "onnn,cat9554";
0102                 reg = <0x20>;
0103                 gpio-controller;
0104                 #gpio-cells = <2>;
0105         };
0106 
0107         io_expander2: gpio@21 {
0108                 compatible = "onnn,cat9554";
0109                 reg = <0x21>;
0110                 gpio-controller;
0111                 #gpio-cells = <2>;
0112         };
0113 
0114         eeprom@50 {
0115                 compatible = "renesas,r1ex24016", "atmel,24c16";
0116                 reg = <0x50>;
0117                 pagesize = <16>;
0118         };
0119 };
0120 
0121 &usb_x1_clk {
0122         clock-frequency = <48000000>;
0123 };
0124 
0125 &rtc_x1_clk {
0126         clock-frequency = <32768>;
0127 };
0128 
0129 &pinctrl {
0130         /* RIIC ch3 (Port Expander, EEPROM (MAC Addr), Audio Codec) */
0131         i2c3_pins: i2c3 {
0132                 pinmux = <RZA1_PINMUX(1, 6, 1)>,        /* RIIC3SCL */
0133                          <RZA1_PINMUX(1, 7, 1)>;        /* RIIC3SDA */
0134         };
0135 
0136         keyboard_pins: keyboard {
0137                 pinmux = <RZA1_PINMUX(1, 9, 3)>,        /* IRQ3 */
0138                          <RZA1_PINMUX(1, 8, 3)>,        /* IRQ2 */
0139                          <RZA1_PINMUX(1, 11, 3)>;       /* IRQ5 */
0140         };
0141 
0142         /* Serial Console */
0143         scif2_pins: serial2 {
0144                 pinmux = <RZA1_PINMUX(3, 0, 6)>,        /* TxD2 */
0145                          <RZA1_PINMUX(3, 2, 4)>;        /* RxD2 */
0146         };
0147 
0148         /* Ethernet */
0149         ether_pins: ether {
0150                 /* Ethernet on Ports 1,2,3,5 */
0151                 pinmux = <RZA1_PINMUX(1, 14, 4)>,       /* ET_COL   */
0152                          <RZA1_PINMUX(5, 9, 2)>,        /* ET_MDC   */
0153                          <RZA1_PINMUX(3, 3, 2)>,        /* ET_MDIO  */
0154                          <RZA1_PINMUX(3, 4, 2)>,        /* ET_RXCLK */
0155                          <RZA1_PINMUX(3, 5, 2)>,        /* ET_RXER  */
0156                          <RZA1_PINMUX(3, 6, 2)>,        /* ET_RXDV  */
0157                          <RZA1_PINMUX(2, 0, 2)>,        /* ET_TXCLK */
0158                          <RZA1_PINMUX(2, 1, 2)>,        /* ET_TXER  */
0159                          <RZA1_PINMUX(2, 2, 2)>,        /* ET_TXEN  */
0160                          <RZA1_PINMUX(2, 3, 2)>,        /* ET_CRS   */
0161                          <RZA1_PINMUX(2, 4, 2)>,        /* ET_TXD0  */
0162                          <RZA1_PINMUX(2, 5, 2)>,        /* ET_TXD1  */
0163                          <RZA1_PINMUX(2, 6, 2)>,        /* ET_TXD2  */
0164                          <RZA1_PINMUX(2, 7, 2)>,        /* ET_TXD3  */
0165                          <RZA1_PINMUX(2, 8, 2)>,        /* ET_RXD0  */
0166                          <RZA1_PINMUX(2, 9, 2)>,        /* ET_RXD1  */
0167                          <RZA1_PINMUX(2, 10, 2)>,       /* ET_RXD2  */
0168                          <RZA1_PINMUX(2, 11, 2)>;       /* ET_RXD3  */
0169         };
0170 
0171         /* SDHI ch1 on CN1 */
0172         sdhi1_pins: sdhi1 {
0173                 pinmux = <RZA1_PINMUX(3, 8, 7)>,        /* SD_CD_1 */
0174                          <RZA1_PINMUX(3, 9, 7)>,        /* SD_WP_1 */
0175                          <RZA1_PINMUX(3, 10, 7)>,       /* SD_D1_1 */
0176                          <RZA1_PINMUX(3, 11, 7)>,       /* SD_D0_1 */
0177                          <RZA1_PINMUX(3, 12, 7)>,       /* SD_CLK_1 */
0178                          <RZA1_PINMUX(3, 13, 7)>,       /* SD_CMD_1 */
0179                          <RZA1_PINMUX(3, 14, 7)>,       /* SD_D3_1 */
0180                          <RZA1_PINMUX(3, 15, 7)>;       /* SD_D2_1 */
0181         };
0182 };
0183 
0184 &mtu2 {
0185         status = "okay";
0186 };
0187 
0188 &ether {
0189         pinctrl-names = "default";
0190         pinctrl-0 = <&ether_pins>;
0191         status = "okay";
0192         renesas,no-ether-link;
0193         phy-handle = <&phy0>;
0194         phy0: ethernet-phy@0 {
0195                 compatible = "ethernet-phy-idb824.2814",
0196                              "ethernet-phy-ieee802.3-c22";
0197                 reg = <0>;
0198         };
0199 };
0200 
0201 &sdhi1 {
0202         pinctrl-names = "default";
0203         pinctrl-0 = <&sdhi1_pins>;
0204         bus-width = <4>;
0205         status = "okay";
0206 };
0207 
0208 &ostm0 {
0209         status = "okay";
0210 };
0211 
0212 &ostm1 {
0213         status = "okay";
0214 };
0215 
0216 &rtc {
0217         status = "okay";
0218 };
0219 
0220 &scif2 {
0221         pinctrl-names = "default";
0222         pinctrl-0 = <&scif2_pins>;
0223         status = "okay";
0224 };