Move sdhci0 from common & update sdhci0
Subsystems (2)
cover Move sdhci0 from common & update sdhci0
Since eMMC HS400 has been descoped for j722s due to errata i2478 [0] and is supported for am62p SR1.2 device, remove sdhci0 node from common-main.dtsi and include instead in each device's main.dtsi appropriately.
Also, update the tap settings and STRB for am62p eMMC sdhci0 node.
Tested on am62p SK board.
Judith Mendez (2):
arm64: dts: ti: k3-am62p/j722s: Move sdhci0 from common
arm64: dts: ti: k3-am62p: Update eMMC tap setting & STRB
.../dts/ti/k3-am62p-j722s-common-main.dtsi | 25 ------------------- arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 25 +++++++++++++++++++ arch/arm64/boot/dts/ti/k3-j722s-main.dtsi | 22 ++++++++++++++++ 3 files changed, 47 insertions(+), 25 deletions(-)
Signature · 1 line
2.51.0
PATCH 1/2 arm64: dts: ti: k3-am62p/j722s: Move sdhci0 from common
Since eMMC HS400 has been descoped for j722s due to errata i2478 [0] and is supported for am62p SR1.2 device, remove sdhci0 node from common-main.dtsi and include instead in each device's main.dtsi appropriately.
[0] https://www.ti.com/lit/pdf/sprz575
--- .../dts/ti/k3-am62p-j722s-common-main.dtsi | 25 ------------------- arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 25 +++++++++++++++++++ arch/arm64/boot/dts/ti/k3-j722s-main.dtsi | 22 ++++++++++++++++ 3 files changed, 47 insertions(+), 25 deletions(-)
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi +0 -25
@@ -566,31 +566,6 @@ main_gpio1: gpio@601000 { clock-names = "gpio"; }; - sdhci0: mmc@fa10000 { - compatible = "ti,am64-sdhci-8bit"; - reg = <0x00 0x0fa10000 0x00 0x1000>, <0x00 0x0fa18000 0x00 0x400>; - interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>; - power-domains = <&k3_pds 57 TI_SCI_PD_EXCLUSIVE>; - clocks = <&k3_clks 57 1>, <&k3_clks 57 2>; - clock-names = "clk_ahb", "clk_xin"; - bus-width = <8>; - mmc-ddr-1_8v; - mmc-hs200-1_8v; - mmc-hs400-1_8v; - ti,clkbuf-sel = <0x7>; - ti,strobe-sel = <0x77>; - ti,trm-icp = <0x8>; - ti,otap-del-sel-legacy = <0x1>; - ti,otap-del-sel-mmc-hs = <0x1>; - ti,otap-del-sel-ddr52 = <0x6>; - ti,otap-del-sel-hs200 = <0x8>; - ti,otap-del-sel-hs400 = <0x5>; - ti,itap-del-sel-legacy = <0x10>; - ti,itap-del-sel-mmc-hs = <0xa>; - ti,itap-del-sel-ddr52 = <0x3>; - status = "disabled"; - }; - sdhci1: mmc@fa00000 { compatible = "ti,am62-sdhci"; reg = <0x00 0x0fa00000 0x00 0x1000>, <0x00 0x0fa08000 0x00 0x400>;
arch/arm64/boot/dts/ti/k3-am62p-main.dtsi +25 -0
@@ -31,6 +31,31 @@ usb1: usb@31100000 { snps,usb2-lpm-disable; }; }; + + sdhci0: mmc@fa10000 { + compatible = "ti,am64-sdhci-8bit"; + reg = <0x00 0x0fa10000 0x00 0x1000>, <0x00 0x0fa18000 0x00 0x400>; + interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&k3_pds 57 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 57 1>, <&k3_clks 57 2>; + clock-names = "clk_ahb", "clk_xin"; + bus-width = <8>; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + ti,clkbuf-sel = <0x7>; + ti,strobe-sel = <0x77>; + ti,trm-icp = <0x8>; + ti,otap-del-sel-legacy = <0x1>; + ti,otap-del-sel-mmc-hs = <0x1>; + ti,otap-del-sel-ddr52 = <0x6>; + ti,otap-del-sel-hs200 = <0x8>; + ti,otap-del-sel-hs400 = <0x5>; + ti,itap-del-sel-legacy = <0x10>; + ti,itap-del-sel-mmc-hs = <0xa>; + ti,itap-del-sel-ddr52 = <0x3>; + status = "disabled"; + }; }; &oc_sram {
arch/arm64/boot/dts/ti/k3-j722s-main.dtsi +22 -0
@@ -404,6 +404,28 @@ e5010: jpeg-encoder@fd20000 { power-domains = <&k3_pds 201 TI_SCI_PD_EXCLUSIVE>; interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; }; + + sdhci0: mmc@fa10000 { + compatible = "ti,am64-sdhci-8bit"; + reg = <0x00 0x0fa10000 0x00 0x1000>, <0x00 0x0fa18000 0x00 0x400>; + interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&k3_pds 57 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 57 1>, <&k3_clks 57 2>; + clock-names = "clk_ahb", "clk_xin"; + bus-width = <8>; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + ti,clkbuf-sel = <0x7>; + ti,trm-icp = <0x8>; + ti,otap-del-sel-legacy = <0x1>; + ti,otap-del-sel-mmc-hs = <0x1>; + ti,otap-del-sel-ddr52 = <0x6>; + ti,otap-del-sel-hs200 = <0x8>; + ti,itap-del-sel-legacy = <0x10>; + ti,itap-del-sel-mmc-hs = <0xa>; + ti,itap-del-sel-ddr52 = <0x3>; + status = "disabled"; + }; }; &main_bcdma_csi {
Signature · 1 line
2.51.0
PATCH 2/2 arm64: dts: ti: k3-am62p: Update sdhci0 tap setting & STRB
In reply to Judith MendezTap setting for eMMC have been updated in device datasheet [0], so update for am62p in k3-am62p-main.
[0] https://www.ti.com/lit/gpn/am62p
--- arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/ti/k3-am62p-main.dtsi +3 -3
@@ -44,10 +44,10 @@ sdhci0: mmc@fa10000 { mmc-hs200-1_8v; mmc-hs400-1_8v; ti,clkbuf-sel = <0x7>; - ti,strobe-sel = <0x77>; + ti,strobe-sel = <0x66>; ti,trm-icp = <0x8>; - ti,otap-del-sel-legacy = <0x1>; - ti,otap-del-sel-mmc-hs = <0x1>; + ti,otap-del-sel-legacy = <0x0>; + ti,otap-del-sel-mmc-hs = <0x0>; ti,otap-del-sel-ddr52 = <0x6>; ti,otap-del-sel-hs200 = <0x8>; ti,otap-del-sel-hs400 = <0x5>;
Signature · 1 line
2.51.0
Nishanth Menon
maintainerRe: [PATCH 1/2] arm64: dts: ti: k3-am62p/j722s: Move sdhci0 from common
In reply to Judith MendezQuoted 30 lines · Judith Mendez
Since eMMC HS400 has been descoped for j722s due to errata i2478 [0] and is supported for am62p SR1.2 device, remove sdhci0 node from
common-main.dtsiand include instead in each device'smain.dtsiappropriately.[0] https://www.ti.com/lit/pdf/sprz575
Signed-off-by Judith Mendez <[email protected]>--- .../dts/ti/k3-am62p-j722s-common-main.dtsi | 25 ------------------- arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 25 +++++++++++++++++++ arch/arm64/boot/dts/ti/k3-j722s-main.dtsi | 22 ++++++++++++++++ 3 files changed, 47 insertions(+), 25 deletions(-)arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi +0
-9@@ -566,31 +566,6 @@ main_gpio1: gpio@601000 { clock-names = "gpio"; }; - sdhci0: mmc@fa10000 { - compatible = "ti,am64-sdhci-8bit"; - reg = <0x00 0x0fa10000 0x00 0x1000>, <0x00 0x0fa18000 0x00 0x400>; - interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>; - power-domains = <&k3_pds 57 TI_SCI_PD_EXCLUSIVE>; - clocks = <&k3_clks 57 1>, <&k3_clks 57 2>; - clock-names = "clk_ahb", "clk_xin"; - bus-width = <8>; - mmc-ddr-1_8v;
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi main_gpio1: gpio@601000 { · line 587
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi +0
-10- mmc-hs200-1_8v; - mmc-hs400-1_8v; - ti,clkbuf-sel = <0x7>; - ti,strobe-sel = <0x77>; - ti,trm-icp = <0x8>; - ti,otap-del-sel-legacy = <0x1>; - ti,otap-del-sel-mmc-hs = <0x1>; - ti,otap-del-sel-ddr52 = <0x6>; - ti,otap-del-sel-hs200 = <0x8>; - ti,otap-del-sel-hs400 = <0x5>;
would'nt it be sufficient to provide this in am62p and keep the common stuff here?
Additionally handling of SR1.2 should be documented in am62p
Quoted 81 lines
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi +0
-6- ti,itap-del-sel-legacy = <0x10>; - ti,itap-del-sel-mmc-hs = <0xa>; - ti,itap-del-sel-ddr52 = <0x3>; - status = "disabled"; - }; - sdhci1: mmc@fa00000 { compatible = "ti,am62-sdhci"; reg = <0x00 0x0fa00000 0x00 0x1000>, <0x00 0x0fa08000 0x00 0x400>;arch/arm64/boot/dts/ti/k3-am62p-main.dtsi +25
-0@@ -31,6 +31,31 @@ usb1: usb@31100000 { snps,usb2-lpm-disable; }; }; + + sdhci0: mmc@fa10000 { + compatible = "ti,am64-sdhci-8bit"; + reg = <0x00 0x0fa10000 0x00 0x1000>, <0x00 0x0fa18000 0x00 0x400>; + interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&k3_pds 57 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 57 1>, <&k3_clks 57 2>; + clock-names = "clk_ahb", "clk_xin"; + bus-width = <8>; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + ti,clkbuf-sel = <0x7>; + ti,strobe-sel = <0x77>; + ti,trm-icp = <0x8>; + ti,otap-del-sel-legacy = <0x1>; + ti,otap-del-sel-mmc-hs = <0x1>; + ti,otap-del-sel-ddr52 = <0x6>; + ti,otap-del-sel-hs200 = <0x8>; + ti,otap-del-sel-hs400 = <0x5>; + ti,itap-del-sel-legacy = <0x10>; + ti,itap-del-sel-mmc-hs = <0xa>; + ti,itap-del-sel-ddr52 = <0x3>; + status = "disabled"; + }; }; &oc_sram {arch/arm64/boot/dts/ti/k3-j722s-main.dtsi +22
-0@@ -404,6 +404,28 @@ e5010: jpeg-encoder@fd20000 { power-domains = <&k3_pds 201 TI_SCI_PD_EXCLUSIVE>; interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; }; + + sdhci0: mmc@fa10000 { + compatible = "ti,am64-sdhci-8bit"; + reg = <0x00 0x0fa10000 0x00 0x1000>, <0x00 0x0fa18000 0x00 0x400>; + interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&k3_pds 57 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 57 1>, <&k3_clks 57 2>; + clock-names = "clk_ahb", "clk_xin"; + bus-width = <8>; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + ti,clkbuf-sel = <0x7>; + ti,trm-icp = <0x8>; + ti,otap-del-sel-legacy = <0x1>; + ti,otap-del-sel-mmc-hs = <0x1>; + ti,otap-del-sel-ddr52 = <0x6>; + ti,otap-del-sel-hs200 = <0x8>; + ti,itap-del-sel-legacy = <0x10>; + ti,itap-del-sel-mmc-hs = <0xa>; + ti,itap-del-sel-ddr52 = <0x3>; + status = "disabled"; + }; }; &main_bcdma_csi {Signature · 1 line
2.51.0
Signature · 4 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D https://ti.com/opensource
Re: [PATCH 1/2] arm64: dts: ti: k3-am62p/j722s: Move sdhci0 from common
Hi Nishanth,
Quoted 36 lines · Nishanth Menon
Quoted 35 lines · Judith Mendez
Since eMMC HS400 has been descoped for j722s due to errata i2478 [0] and is supported for am62p SR1.2 device, remove sdhci0 node from
common-main.dtsiand include instead in each device'smain.dtsiappropriately.[0] https://www.ti.com/lit/pdf/sprz575
Signed-off-by Judith Mendez <[email protected]>--- .../dts/ti/k3-am62p-j722s-common-main.dtsi | 25 ------------------- arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 25 +++++++++++++++++++ arch/arm64/boot/dts/ti/k3-j722s-main.dtsi | 22 ++++++++++++++++ 3 files changed, 47 insertions(+), 25 deletions(-)arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi +0
-14@@ -566,31 +566,6 @@ main_gpio1: gpio@601000 { clock-names = "gpio"; }; - sdhci0: mmc@fa10000 { - compatible = "ti,am64-sdhci-8bit"; - reg = <0x00 0x0fa10000 0x00 0x1000>, <0x00 0x0fa18000 0x00 0x400>; - interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>; - power-domains = <&k3_pds 57 TI_SCI_PD_EXCLUSIVE>; - clocks = <&k3_clks 57 1>, <&k3_clks 57 2>; - clock-names = "clk_ahb", "clk_xin"; - bus-width = <8>; - mmc-ddr-1_8v; - mmc-hs200-1_8v; - mmc-hs400-1_8v; - ti,clkbuf-sel = <0x7>; - ti,strobe-sel = <0x77>; - ti,trm-icp = <0x8>;
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi main_gpio1: gpio@601000 { · line 587
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi +0
-5- ti,otap-del-sel-legacy = <0x1>; - ti,otap-del-sel-mmc-hs = <0x1>; - ti,otap-del-sel-ddr52 = <0x6>; - ti,otap-del-sel-hs200 = <0x8>; - ti,otap-del-sel-hs400 = <0x5>;would'nt it be sufficient to provide this in am62p and keep the common stuff here?
Either way works, I can keep a common no problem.
Quoted 2 lines
Additionally handling of SR1.2 should be documented in am62p
WYM? Why document anything on SR1.2? For am62p, we support HS400 mode which is the default, all other silicon revision will automatically be reduced to HS200, that logic is abstracted away in the driver.
There is nothing to document here IMO.
~ Judith
Quoted 83 lines
Quoted 82 lines
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi +0
-6- ti,itap-del-sel-legacy = <0x10>; - ti,itap-del-sel-mmc-hs = <0xa>; - ti,itap-del-sel-ddr52 = <0x3>; - status = "disabled"; - }; - sdhci1: mmc@fa00000 { compatible = "ti,am62-sdhci"; reg = <0x00 0x0fa00000 0x00 0x1000>, <0x00 0x0fa08000 0x00 0x400>;arch/arm64/boot/dts/ti/k3-am62p-main.dtsi +25
-0@@ -31,6 +31,31 @@ usb1: usb@31100000 { snps,usb2-lpm-disable; }; }; + + sdhci0: mmc@fa10000 { + compatible = "ti,am64-sdhci-8bit"; + reg = <0x00 0x0fa10000 0x00 0x1000>, <0x00 0x0fa18000 0x00 0x400>; + interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&k3_pds 57 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 57 1>, <&k3_clks 57 2>; + clock-names = "clk_ahb", "clk_xin"; + bus-width = <8>; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + ti,clkbuf-sel = <0x7>; + ti,strobe-sel = <0x77>; + ti,trm-icp = <0x8>; + ti,otap-del-sel-legacy = <0x1>; + ti,otap-del-sel-mmc-hs = <0x1>; + ti,otap-del-sel-ddr52 = <0x6>; + ti,otap-del-sel-hs200 = <0x8>; + ti,otap-del-sel-hs400 = <0x5>; + ti,itap-del-sel-legacy = <0x10>; + ti,itap-del-sel-mmc-hs = <0xa>; + ti,itap-del-sel-ddr52 = <0x3>; + status = "disabled"; + }; }; &oc_sram {arch/arm64/boot/dts/ti/k3-j722s-main.dtsi +22
-0@@ -404,6 +404,28 @@ e5010: jpeg-encoder@fd20000 { power-domains = <&k3_pds 201 TI_SCI_PD_EXCLUSIVE>; interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; }; + + sdhci0: mmc@fa10000 { + compatible = "ti,am64-sdhci-8bit"; + reg = <0x00 0x0fa10000 0x00 0x1000>, <0x00 0x0fa18000 0x00 0x400>; + interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&k3_pds 57 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 57 1>, <&k3_clks 57 2>; + clock-names = "clk_ahb", "clk_xin"; + bus-width = <8>; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + ti,clkbuf-sel = <0x7>; + ti,trm-icp = <0x8>; + ti,otap-del-sel-legacy = <0x1>; + ti,otap-del-sel-mmc-hs = <0x1>; + ti,otap-del-sel-ddr52 = <0x6>; + ti,otap-del-sel-hs200 = <0x8>; + ti,itap-del-sel-legacy = <0x10>; + ti,itap-del-sel-mmc-hs = <0xa>; + ti,itap-del-sel-ddr52 = <0x3>; + status = "disabled"; + }; }; &main_bcdma_csi {Signature · 1 line
2.51.0