~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/arm64/ti/k3-am642-phyboard-electra-pcie-usb2.dtso

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /scripts/dtc/include-prefixes/arm64/ti/k3-am642-phyboard-electra-pcie-usb2.dtso (Architecture i386) and /scripts/dtc/include-prefixes/arm64/ti/k3-am642-phyboard-electra-pcie-usb2.dtso (Architecture alpha)


  1 // SPDX-License-Identifier: GPL-2.0-only OR MI      1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
  2 /*                                                  2 /*
  3  * DT overlay for PCIe support (limits USB to       3  * DT overlay for PCIe support (limits USB to 2.0/high-speed)
  4  *                                                  4  *
  5  * Copyright (C) 2021 PHYTEC America, LLC - ht      5  * Copyright (C) 2021 PHYTEC America, LLC - https://www.phytec.com
  6  * Author: Matt McKee <mmckee@phytec.com>            6  * Author: Matt McKee <mmckee@phytec.com>
  7  *                                                  7  *
  8  * Copyright (C) 2024 PHYTEC America, LLC - ht      8  * Copyright (C) 2024 PHYTEC America, LLC - https://www.phytec.com
  9  * Author: Nathan Morrisson <nmorrisson@phytec.      9  * Author: Nathan Morrisson <nmorrisson@phytec.com>
 10  */                                                10  */
 11                                                    11 
 12 /dts-v1/;                                          12 /dts-v1/;
 13 /plugin/;                                          13 /plugin/;
 14                                                    14 
 15 #include <dt-bindings/gpio/gpio.h>                 15 #include <dt-bindings/gpio/gpio.h>
 16 #include <dt-bindings/phy/phy.h>                   16 #include <dt-bindings/phy/phy.h>
 17 #include <dt-bindings/phy/phy-cadence.h>           17 #include <dt-bindings/phy/phy-cadence.h>
 18                                                    18 
 19 #include "k3-pinctrl.h"                            19 #include "k3-pinctrl.h"
 20 #include "k3-serdes.h"                             20 #include "k3-serdes.h"
 21                                                    21 
 22 &{/} {                                             22 &{/} {
 23         pcie_refclk0: pcie-refclk0 {               23         pcie_refclk0: pcie-refclk0 {
 24                 compatible = "gpio-gate-clock"     24                 compatible = "gpio-gate-clock";
 25                 pinctrl-names = "default";         25                 pinctrl-names = "default";
 26                 pinctrl-0 = <&pcie_usb_sel_pin     26                 pinctrl-0 = <&pcie_usb_sel_pins_default>;
 27                 clocks = <&serdes_refclk>;         27                 clocks = <&serdes_refclk>;
 28                 #clock-cells = <0>;                28                 #clock-cells = <0>;
 29                 enable-gpios = <&main_gpio1 7      29                 enable-gpios = <&main_gpio1 7 GPIO_ACTIVE_HIGH>;
 30         };                                         30         };
 31 };                                                 31 };
 32                                                    32 
 33 &main_pmx0 {                                       33 &main_pmx0 {
 34         pcie_usb_sel_pins_default: pcie-usb-se     34         pcie_usb_sel_pins_default: pcie-usb-sel-default-pins {
 35                 pinctrl-single,pins = <            35                 pinctrl-single,pins = <
 36                         AM64X_IOPAD(0x017c, PI     36                         AM64X_IOPAD(0x017c, PIN_OUTPUT, 7)      /* (T1) PRG0_PRU0_GPO7.GPIO1_7 */
 37                 >;                                 37                 >;
 38         };                                         38         };
 39                                                    39 
 40         pcie_pins_default: pcie-default-pins {     40         pcie_pins_default: pcie-default-pins {
 41                 pinctrl-single,pins = <            41                 pinctrl-single,pins = <
 42                         AM64X_IOPAD(0x0098, PI     42                         AM64X_IOPAD(0x0098, PIN_OUTPUT, 7)      /* (W19) GPMC0_WAIT0.GPIO0_37 */
 43                 >;                                 43                 >;
 44         };                                         44         };
 45 };                                                 45 };
 46                                                    46 
 47 &pcie0_rc {                                        47 &pcie0_rc {
 48         pinctrl-names = "default";                 48         pinctrl-names = "default";
 49         pinctrl-0 = <&pcie_pins_default>;          49         pinctrl-0 = <&pcie_pins_default>;
 50         reset-gpios = <&main_gpio0 37 GPIO_ACT     50         reset-gpios = <&main_gpio0 37 GPIO_ACTIVE_HIGH>;
 51         phys = <&serdes0_pcie_usb_link>;           51         phys = <&serdes0_pcie_usb_link>;
 52         phy-names = "pcie-phy";                    52         phy-names = "pcie-phy";
 53         num-lanes = <1>;                           53         num-lanes = <1>;
 54         status = "okay";                           54         status = "okay";
 55 };                                                 55 };
 56                                                    56 
 57 &serdes0_pcie_usb_link {                           57 &serdes0_pcie_usb_link {
 58         cdns,phy-type = <PHY_TYPE_PCIE>;           58         cdns,phy-type = <PHY_TYPE_PCIE>;
 59 };                                                 59 };
 60                                                    60 
 61 &serdes_ln_ctrl {                                  61 &serdes_ln_ctrl {
 62         idle-states = <AM64_SERDES0_LANE0_PCIE     62         idle-states = <AM64_SERDES0_LANE0_PCIE0>;
 63 };                                                 63 };
 64                                                    64 
 65 &serdes0 {                                         65 &serdes0 {
 66         assigned-clock-parents = <&pcie_refclk     66         assigned-clock-parents = <&pcie_refclk0>, <&pcie_refclk0>, <&pcie_refclk0>;
 67 };                                                 67 };
 68                                                    68 
 69 &serdes_refclk {                                   69 &serdes_refclk {
 70         clock-frequency = <100000000>;             70         clock-frequency = <100000000>;
 71 };                                                 71 };
 72                                                    72 
 73 /*                                                 73 /*
 74  * Assign pcie_refclk0 to serdes_wiz0 as ext_r     74  * Assign pcie_refclk0 to serdes_wiz0 as ext_ref_clk.
 75  * This makes sure that the clock generator ge     75  * This makes sure that the clock generator gets enabled at the right time.
 76  */                                                76  */
 77 &serdes_wiz0 {                                     77 &serdes_wiz0 {
 78         clocks = <&k3_clks 162 0>, <&k3_clks 1     78         clocks = <&k3_clks 162 0>, <&k3_clks 162 1>, <&pcie_refclk0>;
 79 };                                                 79 };
 80                                                    80 
 81 &usbss0 {                                          81 &usbss0 {
 82         ti,usb2-only;                              82         ti,usb2-only;
 83 };                                                 83 };
 84                                                    84 
 85 &usb0 {                                            85 &usb0 {
 86         maximum-speed = "high-speed";              86         maximum-speed = "high-speed";
 87 };                                                 87 };
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php