18c2ecf20Sopenharmony_ciCadence Sierra PHY
28c2ecf20Sopenharmony_ci-----------------------
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciRequired properties:
58c2ecf20Sopenharmony_ci- compatible:	Must be "cdns,sierra-phy-t0" for Sierra in Cadence platform
68c2ecf20Sopenharmony_ci		Must be "ti,sierra-phy-t0" for Sierra in TI's J721E SoC.
78c2ecf20Sopenharmony_ci- resets:	Must contain an entry for each in reset-names.
88c2ecf20Sopenharmony_ci		See ../reset/reset.txt for details.
98c2ecf20Sopenharmony_ci- reset-names:	Must include "sierra_reset" and "sierra_apb".
108c2ecf20Sopenharmony_ci		"sierra_reset" must control the reset line to the PHY.
118c2ecf20Sopenharmony_ci		"sierra_apb" must control the reset line to the APB PHY
128c2ecf20Sopenharmony_ci		interface ("sierra_apb" is optional).
138c2ecf20Sopenharmony_ci- reg:		register range for the PHY.
148c2ecf20Sopenharmony_ci- #address-cells: Must be 1
158c2ecf20Sopenharmony_ci- #size-cells:	Must be 0
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciOptional properties:
188c2ecf20Sopenharmony_ci- clocks:		Must contain an entry in clock-names.
198c2ecf20Sopenharmony_ci			See ../clocks/clock-bindings.txt for details.
208c2ecf20Sopenharmony_ci- clock-names:		Must contain "cmn_refclk_dig_div" and
218c2ecf20Sopenharmony_ci			"cmn_refclk1_dig_div" for configuring the frequency of
228c2ecf20Sopenharmony_ci			the clock to the lanes. "phy_clk" is deprecated.
238c2ecf20Sopenharmony_ci- cdns,autoconf:	A boolean property whose presence indicates that the
248c2ecf20Sopenharmony_ci			PHY registers will be configured by hardware. If not
258c2ecf20Sopenharmony_ci			present, all sub-node optional properties must be
268c2ecf20Sopenharmony_ci			provided.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciSub-nodes:
298c2ecf20Sopenharmony_ci  Each group of PHY lanes with a single master lane should be represented as
308c2ecf20Sopenharmony_ci  a sub-node. Note that the actual configuration of each lane is determined by
318c2ecf20Sopenharmony_ci  hardware strapping, and must match the configuration specified here.
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ciSub-node required properties:
348c2ecf20Sopenharmony_ci- #phy-cells:	Generic PHY binding; must be 0.
358c2ecf20Sopenharmony_ci- reg:		The master lane number.  This is the lowest numbered lane
368c2ecf20Sopenharmony_ci		in the lane group.
378c2ecf20Sopenharmony_ci- resets:	Must contain one entry which controls the reset line for the
388c2ecf20Sopenharmony_ci		master lane of the sub-node.
398c2ecf20Sopenharmony_ci		See ../reset/reset.txt for details.
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ciSub-node optional properties:
428c2ecf20Sopenharmony_ci- cdns,num-lanes:	Number of lanes in this group.  From 1 to 4.  The
438c2ecf20Sopenharmony_ci			group is made up of consecutive lanes.
448c2ecf20Sopenharmony_ci- cdns,phy-type:	Can be PHY_TYPE_PCIE or PHY_TYPE_USB3, depending on
458c2ecf20Sopenharmony_ci			configuration of lanes.
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ciExample:
488c2ecf20Sopenharmony_ci	pcie_phy4: pcie-phy@fd240000 {
498c2ecf20Sopenharmony_ci		compatible = "cdns,sierra-phy-t0";
508c2ecf20Sopenharmony_ci		reg = <0x0 0xfd240000 0x0 0x40000>;
518c2ecf20Sopenharmony_ci		resets = <&phyrst 0>, <&phyrst 1>;
528c2ecf20Sopenharmony_ci		reset-names = "sierra_reset", "sierra_apb";
538c2ecf20Sopenharmony_ci		clocks = <&phyclock>;
548c2ecf20Sopenharmony_ci		clock-names = "phy_clk";
558c2ecf20Sopenharmony_ci		#address-cells = <1>;
568c2ecf20Sopenharmony_ci		#size-cells = <0>;
578c2ecf20Sopenharmony_ci		pcie0_phy0: pcie-phy@0 {
588c2ecf20Sopenharmony_ci				reg = <0>;
598c2ecf20Sopenharmony_ci				resets = <&phyrst 2>;
608c2ecf20Sopenharmony_ci				cdns,num-lanes = <2>;
618c2ecf20Sopenharmony_ci				#phy-cells = <0>;
628c2ecf20Sopenharmony_ci				cdns,phy-type = <PHY_TYPE_PCIE>;
638c2ecf20Sopenharmony_ci		};
648c2ecf20Sopenharmony_ci		pcie0_phy1: pcie-phy@2 {
658c2ecf20Sopenharmony_ci				reg = <2>;
668c2ecf20Sopenharmony_ci				resets = <&phyrst 4>;
678c2ecf20Sopenharmony_ci				cdns,num-lanes = <1>;
688c2ecf20Sopenharmony_ci				#phy-cells = <0>;
698c2ecf20Sopenharmony_ci				cdns,phy-type = <PHY_TYPE_PCIE>;
708c2ecf20Sopenharmony_ci		};
71