Wolfram Sang | cdbfaf6 | 2018-06-11 23:49:36 +0900 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Magnus Damm | a4ed412 | 2013-09-19 05:11:29 +0900 | [diff] [blame] | 2 | /* |
| 3 | * Device Tree Source for the Genmai board |
| 4 | * |
Wolfram Sang | 2606f47 | 2014-05-16 14:10:14 +0200 | [diff] [blame] | 5 | * Copyright (C) 2013-14 Renesas Solutions Corp. |
| 6 | * Copyright (C) 2014 Wolfram Sang, Sang Engineering <wsa@sang-engineering.com> |
Magnus Damm | a4ed412 | 2013-09-19 05:11:29 +0900 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
Laurent Pinchart | 31c46cb | 2013-11-09 13:23:53 +0100 | [diff] [blame] | 10 | #include "r7s72100.dtsi" |
Jacopo Mondi | 55ec655 | 2017-06-22 16:54:35 +0200 | [diff] [blame] | 11 | #include <dt-bindings/gpio/gpio.h> |
Jacopo Mondi | 177f874 | 2017-06-22 16:54:33 +0200 | [diff] [blame] | 12 | #include <dt-bindings/pinctrl/r7s72100-pinctrl.h> |
Magnus Damm | a4ed412 | 2013-09-19 05:11:29 +0900 | [diff] [blame] | 13 | |
| 14 | / { |
| 15 | model = "Genmai"; |
| 16 | compatible = "renesas,genmai", "renesas,r7s72100"; |
| 17 | |
Wolfram Sang | 2606f47 | 2014-05-16 14:10:14 +0200 | [diff] [blame] | 18 | aliases { |
Geert Uytterhoeven | be6beba | 2016-06-14 16:15:21 +0200 | [diff] [blame] | 19 | serial0 = &scif2; |
Wolfram Sang | 2606f47 | 2014-05-16 14:10:14 +0200 | [diff] [blame] | 20 | }; |
| 21 | |
Magnus Damm | a4ed412 | 2013-09-19 05:11:29 +0900 | [diff] [blame] | 22 | chosen { |
Magnus Damm | 07d2bf9 | 2019-05-18 19:03:57 +0900 | [diff] [blame] | 23 | bootargs = "ignore_loglevel rw root=/dev/nfs ip=on"; |
Geert Uytterhoeven | be6beba | 2016-06-14 16:15:21 +0200 | [diff] [blame] | 24 | stdout-path = "serial0:115200n8"; |
Magnus Damm | a4ed412 | 2013-09-19 05:11:29 +0900 | [diff] [blame] | 25 | }; |
| 26 | |
Geert Uytterhoeven | 4f4942b | 2016-05-20 09:10:04 +0200 | [diff] [blame] | 27 | memory@8000000 { |
Magnus Damm | a4ed412 | 2013-09-19 05:11:29 +0900 | [diff] [blame] | 28 | device_type = "memory"; |
| 29 | reg = <0x08000000 0x08000000>; |
| 30 | }; |
| 31 | |
| 32 | lbsc { |
| 33 | #address-cells = <1>; |
| 34 | #size-cells = <1>; |
| 35 | }; |
Jacopo Mondi | 55ec655 | 2017-06-22 16:54:35 +0200 | [diff] [blame] | 36 | |
| 37 | leds { |
| 38 | status = "okay"; |
| 39 | compatible = "gpio-leds"; |
| 40 | |
| 41 | led1 { |
| 42 | gpios = <&port4 10 GPIO_ACTIVE_LOW>; |
| 43 | }; |
| 44 | |
| 45 | led2 { |
| 46 | gpios = <&port4 11 GPIO_ACTIVE_LOW>; |
| 47 | }; |
| 48 | }; |
Magnus Damm | a4ed412 | 2013-09-19 05:11:29 +0900 | [diff] [blame] | 49 | }; |
Wolfram Sang | 2606f47 | 2014-05-16 14:10:14 +0200 | [diff] [blame] | 50 | |
Jacopo Mondi | 177f874 | 2017-06-22 16:54:33 +0200 | [diff] [blame] | 51 | &pinctrl { |
| 52 | |
| 53 | scif2_pins: serial2 { |
| 54 | /* P3_0 as TxD2; P3_2 as RxD2 */ |
| 55 | pinmux = <RZA1_PINMUX(3, 0, 6)>, <RZA1_PINMUX(3, 2, 4)>; |
| 56 | }; |
Jacopo Mondi | 2d164e6 | 2017-06-22 16:54:34 +0200 | [diff] [blame] | 57 | |
| 58 | i2c2_pins: i2c2 { |
| 59 | /* RIIC2: P1_4 as SCL, P1_5 as SDA */ |
| 60 | pinmux = <RZA1_PINMUX(1, 4, 1)>, <RZA1_PINMUX(1, 5, 1)>; |
| 61 | }; |
Jacopo Mondi | 6f9a972 | 2017-06-22 16:54:36 +0200 | [diff] [blame] | 62 | |
| 63 | ether_pins: ether { |
| 64 | /* Ethernet on Ports 1,2,3,5 */ |
| 65 | pinmux = <RZA1_PINMUX(1, 14, 4)>,/* P1_14 = ET_COL */ |
| 66 | <RZA1_PINMUX(5, 9, 2)>, /* P5_9 = ET_MDC */ |
| 67 | <RZA1_PINMUX(3, 3, 2)>, /* P3_3 = ET_MDIO */ |
| 68 | <RZA1_PINMUX(3, 4, 2)>, /* P3_4 = ET_RXCLK */ |
| 69 | <RZA1_PINMUX(3, 5, 2)>, /* P3_5 = ET_RXER */ |
| 70 | <RZA1_PINMUX(3, 6, 2)>, /* P3_6 = ET_RXDV */ |
| 71 | <RZA1_PINMUX(2, 0, 2)>, /* P2_0 = ET_TXCLK */ |
| 72 | <RZA1_PINMUX(2, 1, 2)>, /* P2_1 = ET_TXER */ |
| 73 | <RZA1_PINMUX(2, 2, 2)>, /* P2_2 = ET_TXEN */ |
| 74 | <RZA1_PINMUX(2, 3, 2)>, /* P2_3 = ET_CRS */ |
| 75 | <RZA1_PINMUX(2, 4, 2)>, /* P2_4 = ET_TXD0 */ |
| 76 | <RZA1_PINMUX(2, 5, 2)>, /* P2_5 = ET_TXD1 */ |
| 77 | <RZA1_PINMUX(2, 6, 2)>, /* P2_6 = ET_TXD2 */ |
| 78 | <RZA1_PINMUX(2, 7, 2)>, /* P2_7 = ET_TXD3 */ |
| 79 | <RZA1_PINMUX(2, 8, 2)>, /* P2_8 = ET_RXD0 */ |
| 80 | <RZA1_PINMUX(2, 9, 2)>, /* P2_9 = ET_RXD1 */ |
| 81 | <RZA1_PINMUX(2, 10, 2)>,/* P2_10 = ET_RXD2 */ |
| 82 | <RZA1_PINMUX(2, 11, 2)>;/* P2_11 = ET_RXD3 */ |
| 83 | }; |
Jacopo Mondi | 177f874 | 2017-06-22 16:54:33 +0200 | [diff] [blame] | 84 | }; |
| 85 | |
Wolfram Sang | 2606f47 | 2014-05-16 14:10:14 +0200 | [diff] [blame] | 86 | &extal_clk { |
| 87 | clock-frequency = <13330000>; |
| 88 | }; |
| 89 | |
| 90 | &usb_x1_clk { |
| 91 | clock-frequency = <48000000>; |
| 92 | }; |
| 93 | |
Jacopo Mondi | e533a45 | 2017-04-03 18:03:18 +0200 | [diff] [blame] | 94 | &rtc_x1_clk { |
| 95 | clock-frequency = <32768>; |
| 96 | }; |
| 97 | |
Laurent Pinchart | 9dddfcf | 2014-07-09 15:12:44 +0200 | [diff] [blame] | 98 | &mtu2 { |
Geert Uytterhoeven | 5f61ffb | 2014-12-09 12:24:59 +0100 | [diff] [blame] | 99 | status = "okay"; |
Laurent Pinchart | 9dddfcf | 2014-07-09 15:12:44 +0200 | [diff] [blame] | 100 | }; |
| 101 | |
Jacopo Mondi | 6f9a972 | 2017-06-22 16:54:36 +0200 | [diff] [blame] | 102 | ðer { |
| 103 | pinctrl-names = "default"; |
| 104 | pinctrl-0 = <ðer_pins>; |
| 105 | |
| 106 | status = "okay"; |
| 107 | |
| 108 | renesas,no-ether-link; |
| 109 | phy-handle = <&phy0>; |
| 110 | phy0: ethernet-phy@0 { |
| 111 | reg = <0>; |
| 112 | }; |
| 113 | }; |
| 114 | |
Wolfram Sang | 2606f47 | 2014-05-16 14:10:14 +0200 | [diff] [blame] | 115 | &i2c2 { |
| 116 | status = "okay"; |
| 117 | clock-frequency = <400000>; |
| 118 | |
Jacopo Mondi | 2d164e6 | 2017-06-22 16:54:34 +0200 | [diff] [blame] | 119 | pinctrl-names = "default"; |
| 120 | pinctrl-0 = <&i2c2_pins>; |
| 121 | |
Wolfram Sang | 2606f47 | 2014-05-16 14:10:14 +0200 | [diff] [blame] | 122 | eeprom@50 { |
Geert Uytterhoeven | 8edeee3 | 2017-11-16 14:51:36 +0100 | [diff] [blame] | 123 | compatible = "renesas,r1ex24128", "atmel,24c128"; |
Wolfram Sang | 2606f47 | 2014-05-16 14:10:14 +0200 | [diff] [blame] | 124 | reg = <0x50>; |
| 125 | pagesize = <64>; |
| 126 | }; |
| 127 | }; |
| 128 | |
Jacopo Mondi | e533a45 | 2017-04-03 18:03:18 +0200 | [diff] [blame] | 129 | &rtc { |
| 130 | status = "okay"; |
| 131 | }; |
| 132 | |
Wolfram Sang | 2606f47 | 2014-05-16 14:10:14 +0200 | [diff] [blame] | 133 | &scif2 { |
Jacopo Mondi | 177f874 | 2017-06-22 16:54:33 +0200 | [diff] [blame] | 134 | pinctrl-names = "default"; |
| 135 | pinctrl-0 = <&scif2_pins>; |
| 136 | |
Wolfram Sang | 2606f47 | 2014-05-16 14:10:14 +0200 | [diff] [blame] | 137 | status = "okay"; |
| 138 | }; |
Geert Uytterhoeven | ae6b618 | 2014-07-03 14:02:45 +0200 | [diff] [blame] | 139 | |
| 140 | &spi4 { |
| 141 | status = "okay"; |
| 142 | |
| 143 | codec: codec@0 { |
| 144 | compatible = "wlf,wm8978"; |
| 145 | reg = <0>; |
| 146 | spi-max-frequency = <5000000>; |
| 147 | }; |
| 148 | }; |