Message ID | 20181004111451.9539-2-faiz_abbas@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add Support for MMC/SD in TI's AM65x SOCs | expand |
On 10/04/2018 06:14 AM, Faiz Abbas wrote: > Add information to document bindings for the MMC PHY > on TI's AM654 devices. > > Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> > Signed-off-by: Sekhar Nori <nsekhar@ti.com> > --- > .../devicetree/bindings/phy/am654-mmc-phy.txt | 42 +++++++++++++++++++ > 1 file changed, 42 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/am654-mmc-phy.txt > > diff --git a/Documentation/devicetree/bindings/phy/am654-mmc-phy.txt b/Documentation/devicetree/bindings/phy/am654-mmc-phy.txt > new file mode 100644 > index 000000000000..766921612758 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/am654-mmc-phy.txt Name ti,am654-mmc-phy.txt might be more consistent name. > @@ -0,0 +1,42 @@ > +TI AM654 MMC PHY > +------------------- > + > +Required properties: > + - compatible: ti,am654-emmc-phy > + - #phy-cells: must be 0 > + - reg: PHY registers address offset and size > + - clocks: must be phandle of the clock provider which is the host > + controller > + - clock-names: must be "mmcclk" > + - ti,otap-del-sel: Output Tap Delay select. > + - ti,trm-icp: DLL trim select. > + - ti,driver-strength-ohm: driver strength in ohms. > + Valid values are 33, 40, 50, 66, and 100 ohms. > + > +Example: > + mmc_phy1: mmc_phy@10100 { > + compatible = "ti,am654-mmc-phy"; > + reg = <0x10100 0x34>; > + clocks = <&sdhci1>; > + clock-names = "mmcclk"; > + #phy-cells = <0>; > + ti,otap-del-sel = <0x2>; > + ti,trm-icp = <0x8>; > + status = "disabled"; No need for disabled in the example case. Also not sure the host controller example below needs to be here, there are already examples for that binding in mmc/arasan,sdhci.txt. Andrew > + }; > + > +Host controller node: > + > + sdhci1: sdhci@0 { > + compatible = "ti,am654-sdhci-5.1"; > + reg = <0x0 0x1000>; > + power-domains = <&k3_pds 48>; > + clocks = <&k3_clks 48 0>, <&k3_clks 48 1>; > + clock-names = "clk_ahb", "clk_xin"; > + interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>; > + clock-output-names = "mmc_cardclck"; > + #clock-cells = <0>; > + phys=<&mmc_phy1>; > + phy-names = "phy_arasan"; > + status = "disabled"; > + }; >
[...] > +Host controller node: > + > + sdhci1: sdhci@0 { > + compatible = "ti,am654-sdhci-5.1"; > + reg = <0x0 0x1000>; > + power-domains = <&k3_pds 48>; > + clocks = <&k3_clks 48 0>, <&k3_clks 48 1>; > + clock-names = "clk_ahb", "clk_xin"; > + interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>; > + clock-output-names = "mmc_cardclck"; mmc_cardclk > + #clock-cells = <0>; > + phys=<&mmc_phy1>; > + phy-names = "phy_arasan"; > + status = "disabled"; > + }; > -- > 2.18.0 > Besides the nitpick and the comments from Andrew, this looks good to me. Kind regards Uffe
Hi Andrew, On Friday 05 October 2018 09:28 PM, Andrew F. Davis wrote: > On 10/04/2018 06:14 AM, Faiz Abbas wrote: >> Add information to document bindings for the MMC PHY >> on TI's AM654 devices. >> >> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> >> Signed-off-by: Sekhar Nori <nsekhar@ti.com> >> --- >> .../devicetree/bindings/phy/am654-mmc-phy.txt | 42 +++++++++++++++++++ >> 1 file changed, 42 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/phy/am654-mmc-phy.txt >> >> diff --git a/Documentation/devicetree/bindings/phy/am654-mmc-phy.txt b/Documentation/devicetree/bindings/phy/am654-mmc-phy.txt >> new file mode 100644 >> index 000000000000..766921612758 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/phy/am654-mmc-phy.txt > > > Name ti,am654-mmc-phy.txt might be more consistent name. Ok. > > >> @@ -0,0 +1,42 @@ >> +TI AM654 MMC PHY >> +------------------- >> + >> +Required properties: >> + - compatible: ti,am654-emmc-phy >> + - #phy-cells: must be 0 >> + - reg: PHY registers address offset and size >> + - clocks: must be phandle of the clock provider which is the host >> + controller >> + - clock-names: must be "mmcclk" >> + - ti,otap-del-sel: Output Tap Delay select. >> + - ti,trm-icp: DLL trim select. >> + - ti,driver-strength-ohm: driver strength in ohms. >> + Valid values are 33, 40, 50, 66, and 100 ohms. >> + >> +Example: >> + mmc_phy1: mmc_phy@10100 { >> + compatible = "ti,am654-mmc-phy"; >> + reg = <0x10100 0x34>; >> + clocks = <&sdhci1>; >> + clock-names = "mmcclk"; >> + #phy-cells = <0>; >> + ti,otap-del-sel = <0x2>; >> + ti,trm-icp = <0x8>; >> + status = "disabled"; > > > No need for disabled in the example case. Ok. > Also not sure the host > controller example below needs to be here, there are already examples > for that binding in mmc/arasan,sdhci.txt. > I had added it because it is a clock source in clocks=<&sdhci1> so it should have #clock-cells and clock-output-names. I suppose I can just reference it here. Thanks, Faiz
diff --git a/Documentation/devicetree/bindings/phy/am654-mmc-phy.txt b/Documentation/devicetree/bindings/phy/am654-mmc-phy.txt new file mode 100644 index 000000000000..766921612758 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/am654-mmc-phy.txt @@ -0,0 +1,42 @@ +TI AM654 MMC PHY +------------------- + +Required properties: + - compatible: ti,am654-emmc-phy + - #phy-cells: must be 0 + - reg: PHY registers address offset and size + - clocks: must be phandle of the clock provider which is the host + controller + - clock-names: must be "mmcclk" + - ti,otap-del-sel: Output Tap Delay select. + - ti,trm-icp: DLL trim select. + - ti,driver-strength-ohm: driver strength in ohms. + Valid values are 33, 40, 50, 66, and 100 ohms. + +Example: + mmc_phy1: mmc_phy@10100 { + compatible = "ti,am654-mmc-phy"; + reg = <0x10100 0x34>; + clocks = <&sdhci1>; + clock-names = "mmcclk"; + #phy-cells = <0>; + ti,otap-del-sel = <0x2>; + ti,trm-icp = <0x8>; + status = "disabled"; + }; + +Host controller node: + + sdhci1: sdhci@0 { + compatible = "ti,am654-sdhci-5.1"; + reg = <0x0 0x1000>; + power-domains = <&k3_pds 48>; + clocks = <&k3_clks 48 0>, <&k3_clks 48 1>; + clock-names = "clk_ahb", "clk_xin"; + interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>; + clock-output-names = "mmc_cardclck"; + #clock-cells = <0>; + phys=<&mmc_phy1>; + phy-names = "phy_arasan"; + status = "disabled"; + };