Message ID | 20181207084233.13700-2-faiz_abbas@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add DT Support for MMCSD in Am65x-evm | expand |
On 07/12/18 2:12 PM, Faiz Abbas wrote: > There are two MMC host controller instances present on the TI's > Am654 SOCs. Add device tree nodes for the same. > > Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> > --- > arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 28 ++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi > index 916434839603..d07212f16a81 100644 > --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi > @@ -129,4 +129,32 @@ > clocks = <&k3_clks 113 1>; > power-domains = <&k3_pds 113>; > }; > + > + sdhci0: sdhci@4f80000 { > + compatible = "ti,am654-sdhci-5.1"; > + reg = <0x0 0x4f80000 0x0 0x260>, <0x0 0x4f90000 0x0 0x134>; > + power-domains = <&k3_pds 47>; > + clocks = <&k3_clks 47 0>, <&k3_clks 47 1>; > + clock-names = "clk_ahb", "clk_xin"; > + interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>; > + sdhci-caps-mask = <0x80000007 0x0>; > + mmc-ddr-1_8v; > + ti,otap-del-sel = <0x2>; > + ti,trm-icp = <0x8>; > + status = "disabled"; > + }; Please drop "status=disabled" from dtsi. Can be disabled as required in the board dts. > + > + sdhci1: sdhci@4fa0000 { > + compatible = "ti,am654-sdhci-5.1"; > + reg = <0x0 0x4fa0000 0x0 0x260>, <0x0 0x4fb0000 0x0 0x134>; > + 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>; > + sdhci-caps-mask = <0x80000007 0x0>; > + mmc-ddr-1_8v; > + ti,otap-del-sel = <0x2>; > + ti,trm-icp = <0x8>; > + status = "disabled"; > + }; > }; >
On 10:56-20181208, Vignesh R wrote: > > > On 07/12/18 2:12 PM, Faiz Abbas wrote: > > There are two MMC host controller instances present on the TI's > > Am654 SOCs. Add device tree nodes for the same. > > > > Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> > > --- > > arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 28 ++++++++++++++++++++++++ > > 1 file changed, 28 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi > > index 916434839603..d07212f16a81 100644 > > --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi > > +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi > > @@ -129,4 +129,32 @@ > > clocks = <&k3_clks 113 1>; > > power-domains = <&k3_pds 113>; > > }; > > + > > + sdhci0: sdhci@4f80000 { > > + compatible = "ti,am654-sdhci-5.1"; > > + reg = <0x0 0x4f80000 0x0 0x260>, <0x0 0x4f90000 0x0 0x134>; > > + power-domains = <&k3_pds 47>; > > + clocks = <&k3_clks 47 0>, <&k3_clks 47 1>; > > + clock-names = "clk_ahb", "clk_xin"; > > + interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>; > > + sdhci-caps-mask = <0x80000007 0x0>; > > + mmc-ddr-1_8v; > > + ti,otap-del-sel = <0x2>; > > + ti,trm-icp = <0x8>; > > + status = "disabled"; > > + }; > > Please drop "status=disabled" from dtsi. Can be disabled as required in > the board dts. yes - the standard in k3 is to disable the nodes that are'nt needed in board.dtsi. This is different from "disabled by default" approach in DRA7 or OMAP4 for example.
Hi Nishanth, On 08/12/18 9:15 PM, Nishanth Menon wrote: > On 10:56-20181208, Vignesh R wrote: >> >> >> On 07/12/18 2:12 PM, Faiz Abbas wrote: >>> There are two MMC host controller instances present on the TI's >>> Am654 SOCs. Add device tree nodes for the same. >>> >>> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> >>> --- >>> arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 28 ++++++++++++++++++++++++ >>> 1 file changed, 28 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi >>> index 916434839603..d07212f16a81 100644 >>> --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi >>> +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi >>> @@ -129,4 +129,32 @@ >>> clocks = <&k3_clks 113 1>; >>> power-domains = <&k3_pds 113>; >>> }; >>> + >>> + sdhci0: sdhci@4f80000 { >>> + compatible = "ti,am654-sdhci-5.1"; >>> + reg = <0x0 0x4f80000 0x0 0x260>, <0x0 0x4f90000 0x0 0x134>; >>> + power-domains = <&k3_pds 47>; >>> + clocks = <&k3_clks 47 0>, <&k3_clks 47 1>; >>> + clock-names = "clk_ahb", "clk_xin"; >>> + interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>; >>> + sdhci-caps-mask = <0x80000007 0x0>; >>> + mmc-ddr-1_8v; >>> + ti,otap-del-sel = <0x2>; >>> + ti,trm-icp = <0x8>; >>> + status = "disabled"; >>> + }; >> >> Please drop "status=disabled" from dtsi. Can be disabled as required in >> the board dts. > > > yes - the standard in k3 is to disable the nodes that are'nt needed in > board.dtsi. > > This is different from "disabled by default" approach in DRA7 or OMAP4 > for example. > Ok. Will fix in v2. Thanks, Faiz
diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi index 916434839603..d07212f16a81 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi @@ -129,4 +129,32 @@ clocks = <&k3_clks 113 1>; power-domains = <&k3_pds 113>; }; + + sdhci0: sdhci@4f80000 { + compatible = "ti,am654-sdhci-5.1"; + reg = <0x0 0x4f80000 0x0 0x260>, <0x0 0x4f90000 0x0 0x134>; + power-domains = <&k3_pds 47>; + clocks = <&k3_clks 47 0>, <&k3_clks 47 1>; + clock-names = "clk_ahb", "clk_xin"; + interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>; + sdhci-caps-mask = <0x80000007 0x0>; + mmc-ddr-1_8v; + ti,otap-del-sel = <0x2>; + ti,trm-icp = <0x8>; + status = "disabled"; + }; + + sdhci1: sdhci@4fa0000 { + compatible = "ti,am654-sdhci-5.1"; + reg = <0x0 0x4fa0000 0x0 0x260>, <0x0 0x4fb0000 0x0 0x134>; + 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>; + sdhci-caps-mask = <0x80000007 0x0>; + mmc-ddr-1_8v; + ti,otap-del-sel = <0x2>; + ti,trm-icp = <0x8>; + status = "disabled"; + }; };
There are two MMC host controller instances present on the TI's Am654 SOCs. Add device tree nodes for the same. Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> --- arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+)