Hai Pham | df57857 | 2024-01-28 16:52:08 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | /* |
| 3 | * Device Tree Source for the Gray Hawk CPU board |
| 4 | * |
| 5 | * Copyright (C) 2023 Renesas Electronics Corp. |
| 6 | */ |
| 7 | |
| 8 | #include <dt-bindings/gpio/gpio.h> |
| 9 | #include <dt-bindings/input/input.h> |
| 10 | |
| 11 | #include "r8a779h0.dtsi" |
| 12 | |
| 13 | / { |
| 14 | model = "Renesas Gray Hawk CPU board"; |
| 15 | compatible = "renesas,grayhawk-cpu", "renesas,r8a779h0"; |
| 16 | |
| 17 | aliases { |
| 18 | ethernet0 = &avb0; |
| 19 | serial0 = &hscif0; |
| 20 | }; |
| 21 | |
| 22 | chosen { |
| 23 | bootargs = "ignore_loglevel"; |
| 24 | stdout-path = "serial0:921600n8"; |
| 25 | }; |
| 26 | |
| 27 | memory@48000000 { |
| 28 | device_type = "memory"; |
| 29 | /* first 128MB is reserved for secure area. */ |
| 30 | reg = <0x0 0x48000000 0x0 0x78000000>; |
| 31 | }; |
| 32 | |
| 33 | memory@480000000 { |
| 34 | device_type = "memory"; |
| 35 | reg = <0x4 0x80000000 0x1 0x80000000>; |
| 36 | }; |
| 37 | |
| 38 | reg_1p8v: regulator-1p8v { |
| 39 | compatible = "regulator-fixed"; |
| 40 | regulator-name = "fixed-1.8V"; |
| 41 | regulator-min-microvolt = <1800000>; |
| 42 | regulator-max-microvolt = <1800000>; |
| 43 | regulator-boot-on; |
| 44 | regulator-always-on; |
| 45 | }; |
| 46 | |
| 47 | reg_3p3v: regulator-3p3v { |
| 48 | compatible = "regulator-fixed"; |
| 49 | regulator-name = "fixed-3.3V"; |
| 50 | regulator-min-microvolt = <3300000>; |
| 51 | regulator-max-microvolt = <3300000>; |
| 52 | regulator-boot-on; |
| 53 | regulator-always-on; |
| 54 | }; |
| 55 | }; |
| 56 | |
| 57 | &avb0 { |
| 58 | pinctrl-0 = <&avb0_pins>; |
| 59 | pinctrl-names = "default"; |
| 60 | phy-handle = <&phy0>; |
| 61 | tx-internal-delay-ps = <2000>; |
| 62 | status = "okay"; |
| 63 | |
| 64 | phy0: ethernet-phy@0 { |
| 65 | compatible = "ethernet-phy-id0022.1622", |
| 66 | "ethernet-phy-ieee802.3-c22"; |
| 67 | rxc-skew-ps = <1500>; |
| 68 | reg = <0>; |
| 69 | interrupt-parent = <&gpio7>; |
| 70 | interrupts = <5 IRQ_TYPE_LEVEL_LOW>; |
| 71 | reset-gpios = <&gpio7 10 GPIO_ACTIVE_LOW>; |
| 72 | }; |
| 73 | }; |
| 74 | |
| 75 | &extal_clk { |
| 76 | clock-frequency = <16666666>; |
| 77 | }; |
| 78 | |
| 79 | &extalr_clk { |
| 80 | clock-frequency = <32768>; |
| 81 | }; |
| 82 | |
| 83 | &hscif0 { |
| 84 | uart-has-rtscts; |
| 85 | status = "okay"; |
| 86 | }; |
| 87 | |
| 88 | &i2c0 { |
| 89 | pinctrl-0 = <&i2c0_pins>; |
| 90 | pinctrl-names = "default"; |
| 91 | |
| 92 | status = "okay"; |
| 93 | clock-frequency = <400000>; |
| 94 | |
| 95 | eeprom@50 { |
| 96 | compatible = "rohm,br24g01", "atmel,24c01"; |
| 97 | label = "cpu-board"; |
| 98 | reg = <0x50>; |
| 99 | pagesize = <8>; |
| 100 | }; |
| 101 | }; |
| 102 | |
| 103 | &mmc0 { |
| 104 | pinctrl-0 = <&mmc_pins>; |
| 105 | pinctrl-1 = <&mmc_pins>; |
| 106 | pinctrl-names = "default", "state_uhs"; |
| 107 | |
| 108 | vmmc-supply = <®_3p3v>; |
| 109 | vqmmc-supply = <®_1p8v>; |
| 110 | mmc-hs200-1_8v; |
| 111 | mmc-hs400-1_8v; |
| 112 | bus-width = <8>; |
| 113 | no-sd; |
| 114 | no-sdio; |
| 115 | non-removable; |
| 116 | full-pwr-cycle-in-suspend; |
| 117 | status = "okay"; |
| 118 | }; |
| 119 | |
| 120 | &pfc { |
| 121 | pinctrl-0 = <&scif_clk_pins>; |
| 122 | pinctrl-names = "default"; |
| 123 | |
| 124 | avb0_pins: avb0 { |
| 125 | mux { |
| 126 | groups = "avb0_link", "avb0_mdio", "avb0_rgmii", |
| 127 | "avb0_txcrefclk"; |
| 128 | function = "avb0"; |
| 129 | }; |
| 130 | |
| 131 | pins_mdio { |
| 132 | groups = "avb0_mdio"; |
| 133 | drive-strength = <21>; |
| 134 | }; |
| 135 | |
| 136 | pins_mii { |
| 137 | groups = "avb0_rgmii"; |
| 138 | drive-strength = <21>; |
| 139 | }; |
| 140 | }; |
| 141 | |
| 142 | hscif0_pins: hscif0 { |
| 143 | groups = "hscif0_data", "hscif0_ctrl"; |
| 144 | function = "hscif0"; |
| 145 | }; |
| 146 | |
| 147 | i2c0_pins: i2c0 { |
| 148 | groups = "i2c0"; |
| 149 | function = "i2c0"; |
| 150 | }; |
| 151 | |
| 152 | mmc_pins: mmc { |
| 153 | groups = "mmc_data8", "mmc_ctrl", "mmc_ds"; |
| 154 | function = "mmc"; |
| 155 | power-source = <1800>; |
| 156 | }; |
| 157 | |
| 158 | scif_clk_pins: scif_clk { |
| 159 | groups = "scif_clk"; |
| 160 | function = "scif_clk"; |
| 161 | }; |
| 162 | }; |
| 163 | |
| 164 | &scif_clk { |
| 165 | clock-frequency = <24000000>; |
| 166 | }; |