Shawn Lin | 7ed0c96 | 2016-01-05 09:07:14 +0800 | [diff] [blame] | 1 | Rockchip EMMC PHY |
| 2 | ----------------------- |
| 3 | |
| 4 | Required properties: |
| 5 | - compatible: rockchip,rk3399-emmc-phy |
Shawn Lin | 7ed0c96 | 2016-01-05 09:07:14 +0800 | [diff] [blame] | 6 | - #phy-cells: must be 0 |
Heiko Stuebner | 5128de85 | 2016-03-24 22:29:03 +0100 | [diff] [blame] | 7 | - reg: PHY register address offset and length in "general |
Shawn Lin | 7ed0c96 | 2016-01-05 09:07:14 +0800 | [diff] [blame] | 8 | register files" |
| 9 | |
Christoph Muellner | 2c1a4b0 | 2019-03-22 12:34:51 +0100 | [diff] [blame] | 10 | Optional properties: |
Douglas Anderson | 1107545 | 2016-06-20 10:56:51 -0700 | [diff] [blame] | 11 | - clock-names: Should contain "emmcclk". Although this is listed as optional |
| 12 | (because most boards can get basic functionality without having |
| 13 | access to it), it is strongly suggested. |
Christoph Muellner | 2c1a4b0 | 2019-03-22 12:34:51 +0100 | [diff] [blame] | 14 | See ../clock/clock-bindings.txt for details. |
Douglas Anderson | 1107545 | 2016-06-20 10:56:51 -0700 | [diff] [blame] | 15 | - clocks: Should have a phandle to the card clock exported by the SDHCI driver. |
Christoph Muellner | 2c1a4b0 | 2019-03-22 12:34:51 +0100 | [diff] [blame] | 16 | - drive-impedance-ohm: Specifies the drive impedance in Ohm. |
| 17 | Possible values are 33, 40, 50, 66 and 100. |
| 18 | If not set, the default value of 50 will be applied. |
Chris Ruehl | 88d9f40 | 2020-12-15 09:44:07 +0800 | [diff] [blame] | 19 | - rockchip,enable-strobe-pulldown: Enable internal pull-down for the strobe |
| 20 | line. If not set, pull-down is not used. |
| 21 | - rockchip,output-tapdelay-select: Specifies the phyctrl_otapdlysec register. |
| 22 | If not set, the register defaults to 0x4. |
| 23 | Maximum value 0xf. |
Douglas Anderson | 1107545 | 2016-06-20 10:56:51 -0700 | [diff] [blame] | 24 | |
Shawn Lin | 7ed0c96 | 2016-01-05 09:07:14 +0800 | [diff] [blame] | 25 | Example: |
| 26 | |
Heiko Stuebner | 332184a | 2016-03-24 22:29:02 +0100 | [diff] [blame] | 27 | |
| 28 | grf: syscon@ff770000 { |
| 29 | compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd"; |
Heiko Stuebner | 5128de85 | 2016-03-24 22:29:03 +0100 | [diff] [blame] | 30 | #address-cells = <1>; |
| 31 | #size-cells = <1>; |
Heiko Stuebner | 332184a | 2016-03-24 22:29:02 +0100 | [diff] [blame] | 32 | |
| 33 | ... |
| 34 | |
| 35 | emmcphy: phy@f780 { |
| 36 | compatible = "rockchip,rk3399-emmc-phy"; |
Heiko Stuebner | 5128de85 | 2016-03-24 22:29:03 +0100 | [diff] [blame] | 37 | reg = <0xf780 0x20>; |
Douglas Anderson | 1107545 | 2016-06-20 10:56:51 -0700 | [diff] [blame] | 38 | clocks = <&sdhci>; |
| 39 | clock-names = "emmcclk"; |
Christoph Muellner | 2c1a4b0 | 2019-03-22 12:34:51 +0100 | [diff] [blame] | 40 | drive-impedance-ohm = <50>; |
Heiko Stuebner | 332184a | 2016-03-24 22:29:02 +0100 | [diff] [blame] | 41 | #phy-cells = <0>; |
| 42 | }; |
Shawn Lin | 7ed0c96 | 2016-01-05 09:07:14 +0800 | [diff] [blame] | 43 | }; |