Valentine Barshak | 5f4e269 | 2019-04-23 23:44:57 +0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Device Tree Source extras for U-Boot for the V3MSK board |
| 4 | * |
| 5 | * Copyright (C) 2019 Cogent Embedded, Inc. |
| 6 | */ |
| 7 | |
| 8 | #include "r8a77970-v3msk.dts" |
| 9 | #include "r8a77970-u-boot.dtsi" |
| 10 | #include <dt-bindings/gpio/gpio.h> |
| 11 | |
| 12 | / { |
| 13 | aliases { |
| 14 | spi0 = &rpc; |
| 15 | }; |
| 16 | |
| 17 | cpld { |
| 18 | compatible = "renesas,v3msk-cpld"; |
| 19 | status = "okay"; |
| 20 | gpio-mdc = <&gpio1 21 0>; |
| 21 | gpio-mosi = <&gpio1 22 0>; |
| 22 | gpio-miso = <&gpio1 23 0>; |
| 23 | gpio-enablez = <&gpio1 19 0>; |
| 24 | /* Disable V3MSK Videobox Mini CANFD PHY */ |
| 25 | gpios = <&gpio0 12 0>, <&gpio0 14 0>; |
| 26 | }; |
| 27 | }; |
| 28 | |
| 29 | &avb { |
| 30 | pinctrl-0 = <&avb0_pins>; |
| 31 | pinctrl-names = "default"; |
| 32 | |
| 33 | }; |
| 34 | |
| 35 | &phy0 { |
| 36 | reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; |
| 37 | }; |
| 38 | |
| 39 | &pfc { |
| 40 | avb0_pins: avb { |
| 41 | mux { |
| 42 | groups = "avb0_link", "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk"; |
| 43 | function = "avb0"; |
| 44 | }; |
| 45 | }; |
| 46 | }; |
| 47 | |
| 48 | &rpc { |
| 49 | num-cs = <1>; |
| 50 | status = "okay"; |
| 51 | spi-max-frequency = <50000000>; |
| 52 | #address-cells = <1>; |
| 53 | #size-cells = <0>; |
| 54 | |
| 55 | flash0: spi-flash@0 { |
| 56 | #address-cells = <1>; |
| 57 | #size-cells = <1>; |
| 58 | compatible = "s25fs512s", "spi-flash", "jedec,spi-nor"; |
| 59 | spi-max-frequency = <50000000>; |
| 60 | spi-tx-bus-width = <1>; |
| 61 | spi-rx-bus-width = <1>; |
| 62 | reg = <0>; |
| 63 | status = "okay"; |
| 64 | }; |
| 65 | }; |