Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
0002 /*
0003  * Copyright (C) 2020 Marcin Sloniewski <marcin.sloniewski@gmail.com>.
0004  */
0005 
0006 /dts-v1/;
0007 
0008 #include "stm32mp157c-odyssey-som.dtsi"
0009 
0010 / {
0011         model = "Seeed Studio Odyssey-STM32MP157C Board";
0012         compatible = "seeed,stm32mp157c-odyssey",
0013                      "seeed,stm32mp157c-odyssey-som", "st,stm32mp157";
0014 
0015         aliases {
0016                 ethernet0 = &ethernet0;
0017                 serial0 = &uart4;
0018         };
0019 
0020         chosen {
0021                 stdout-path = "serial0:115200n8";
0022         };
0023 };
0024 
0025 &dcmi {
0026         pinctrl-names = "default", "sleep";
0027         pinctrl-0 = <&dcmi_pins_b>;
0028         pinctrl-1 = <&dcmi_sleep_pins_b>;
0029 };
0030 
0031 &ethernet0 {
0032         status = "okay";
0033         pinctrl-0 = <&ethernet0_rgmii_pins_a>;
0034         pinctrl-1 = <&ethernet0_rgmii_sleep_pins_a>;
0035         pinctrl-names = "default", "sleep";
0036         phy-mode = "rgmii-id";
0037         max-speed = <1000>;
0038         phy-handle = <&phy0>;
0039         assigned-clocks = <&rcc ETHCK_K>, <&rcc PLL4_P>;
0040         assigned-clock-parents = <&rcc PLL4_P>;
0041         assigned-clock-rates = <125000000>; /* Clock PLL4 to 750Mhz in ATF/U-Boot */
0042         st,eth-clk-sel;
0043 
0044         mdio0 {
0045                 #address-cells = <1>;
0046                 #size-cells = <0>;
0047                 compatible = "snps,dwmac-mdio";
0048                 phy0: ethernet-phy@7 { /* KSZ9031RN */
0049                         reg = <7>;
0050                         reset-gpios = <&gpiog 0 GPIO_ACTIVE_LOW>; /* ETH_RST# */
0051                         reset-assert-us = <10000>;
0052                         reset-deassert-us = <300>;
0053                 };
0054         };
0055 };
0056 
0057 &i2c1 {
0058         pinctrl-names = "default", "sleep";
0059         pinctrl-0 = <&i2c1_pins_a>;
0060         pinctrl-1 = <&i2c1_sleep_pins_a>;
0061         i2c-scl-rising-time-ns = <100>;
0062         i2c-scl-falling-time-ns = <7>;
0063         status = "okay";
0064         /delete-property/dmas;
0065         /delete-property/dma-names;
0066 };
0067 
0068 &sdmmc1 {
0069         pinctrl-names = "default", "opendrain", "sleep";
0070         pinctrl-0 = <&sdmmc1_b4_pins_a>;
0071         pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
0072         pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
0073         cd-gpios = <&gpioi 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
0074         disable-wp;
0075         st,neg-edge;
0076         bus-width = <4>;
0077         vmmc-supply = <&v3v3>;
0078         status = "okay";
0079 };
0080 
0081 &uart4 {
0082         pinctrl-names = "default";
0083         pinctrl-0 = <&uart4_pins_a>;
0084         /delete-property/dmas;
0085         /delete-property/dma-names;
0086         status = "okay";
0087 };
0088