* [PATCH 0/3] Improve K3-am625-sk support (USB, MMC)
@ 2022-12-16 14:36 Sjoerd Simons
2022-12-16 14:36 ` [PATCH 1/3] arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select Sjoerd Simons
` (4 more replies)
0 siblings, 5 replies; 11+ messages in thread
From: Sjoerd Simons @ 2022-12-16 14:36 UTC (permalink / raw)
To: Nishanth Menon
Cc: martyn.welch, Nitin Yadav, Aswath Govindraju, Krzysztof Kozlowski,
Rob Herring, Tero Kristo, Vignesh Raghavendra, devicetree,
linux-arm-kernel, linux-kernel
This series picks up a few patches from the TI BSP tree that
unfortunately didn't make it upstream thusfar.
The first patch improve SD card compatibility (allowing U1 class cards
to be used), the remaining ones add USB support.
The type-c connector isn't entirely modelled with these changes as
it goes through a TPS6598 PD controller. Unfortunately the dtb bindings
for that currently require an irq line, which is not connected on E1 and
E2 version boards. The patchese to support this setup unfortunately didn't land
yet[0].. As such the last patch ignored the PD controller and simply
configures usb0 as periphal only rather then mode switch capable, which
at least gives some basic usability of that USB port.
0: https://lore.kernel.org/lkml/f714ee55-ef47-317d-81b9-57020dda064b@ti.com/T/
Aswath Govindraju (2):
arm64: dts: ti: k3-am62-main: Add support for USB
arm64: dts: ti: k3-am625-sk: Add support for USB
Nitin Yadav (1):
arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select
arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 90 ++++++++++++++++++------
arch/arm64/boot/dts/ti/k3-am625-sk.dts | 22 ++++++
2 files changed, 90 insertions(+), 22 deletions(-)
--
2.39.0
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/3] arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select
2022-12-16 14:36 [PATCH 0/3] Improve K3-am625-sk support (USB, MMC) Sjoerd Simons
@ 2022-12-16 14:36 ` Sjoerd Simons
2022-12-20 11:19 ` Vignesh Raghavendra
2022-12-16 14:36 ` [PATCH 2/3] arm64: dts: ti: k3-am62-main: Add support for USB Sjoerd Simons
` (3 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: Sjoerd Simons @ 2022-12-16 14:36 UTC (permalink / raw)
To: Nishanth Menon
Cc: martyn.welch, Nitin Yadav, Aswath Govindraju, Krzysztof Kozlowski,
Rob Herring, Tero Kristo, Vignesh Raghavendra, devicetree,
linux-arm-kernel, linux-kernel
From: Nitin Yadav <n-yadav@ti.com>
UHS Class U1 sd-card are not getting detected due to incorrect
OTAP/ITAP delay select values in linux. Update OTAP and ITAP
delay select values for various speed modes. For sdhci0, update
OTAP delay values for ddr52 & HS200 and add ITAP delay for legacy
& mmc-hs. For sdhci1 & sdhci2, update OTAP & ITAP delay select
recommended as in RIOT for various speed modes.
Signed-off-by: Nitin Yadav <n-yadav@ti.com>
[cherry-pick from vendor BSP]
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
---
arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 46 ++++++++++++------------
1 file changed, 24 insertions(+), 22 deletions(-)
diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
index 03660476364f..28c250a8d1ec 100644
--- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
@@ -391,8 +391,10 @@ sdhci0: mmc@fa10000 {
ti,clkbuf-sel = <0x7>;
ti,otap-del-sel-legacy = <0x0>;
ti,otap-del-sel-mmc-hs = <0x0>;
- ti,otap-del-sel-ddr52 = <0x9>;
- ti,otap-del-sel-hs200 = <0x6>;
+ ti,otap-del-sel-ddr52 = <0x5>;
+ ti,otap-del-sel-hs200 = <0x5>;
+ ti,itap-del-sel-legacy = <0xa>;
+ ti,itap-del-sel-mmc-hs = <0x1>;
};
sdhci1: mmc@fa00000 {
@@ -403,17 +405,17 @@ sdhci1: mmc@fa00000 {
clocks = <&k3_clks 58 5>, <&k3_clks 58 6>;
clock-names = "clk_ahb", "clk_xin";
ti,trm-icp = <0x2>;
- ti,otap-del-sel-legacy = <0x0>;
+ ti,otap-del-sel-legacy = <0x8>;
ti,otap-del-sel-sd-hs = <0x0>;
- ti,otap-del-sel-sdr12 = <0xf>;
- ti,otap-del-sel-sdr25 = <0xf>;
- ti,otap-del-sel-sdr50 = <0xc>;
- ti,otap-del-sel-sdr104 = <0x6>;
- ti,otap-del-sel-ddr50 = <0x9>;
- ti,itap-del-sel-legacy = <0x0>;
- ti,itap-del-sel-sd-hs = <0x0>;
- ti,itap-del-sel-sdr12 = <0x0>;
- ti,itap-del-sel-sdr25 = <0x0>;
+ ti,otap-del-sel-sdr12 = <0x0>;
+ ti,otap-del-sel-sdr25 = <0x0>;
+ ti,otap-del-sel-sdr50 = <0x8>;
+ ti,otap-del-sel-sdr104 = <0x7>;
+ ti,otap-del-sel-ddr50 = <0x4>;
+ ti,itap-del-sel-legacy = <0xa>;
+ ti,itap-del-sel-sd-hs = <0x1>;
+ ti,itap-del-sel-sdr12 = <0xa>;
+ ti,itap-del-sel-sdr25 = <0x1>;
ti,clkbuf-sel = <0x7>;
bus-width = <4>;
};
@@ -426,17 +428,17 @@ sdhci2: mmc@fa20000 {
clocks = <&k3_clks 184 5>, <&k3_clks 184 6>;
clock-names = "clk_ahb", "clk_xin";
ti,trm-icp = <0x2>;
- ti,otap-del-sel-legacy = <0x0>;
+ ti,otap-del-sel-legacy = <0x8>;
ti,otap-del-sel-sd-hs = <0x0>;
- ti,otap-del-sel-sdr12 = <0xf>;
- ti,otap-del-sel-sdr25 = <0xf>;
- ti,otap-del-sel-sdr50 = <0xc>;
- ti,otap-del-sel-sdr104 = <0x6>;
- ti,otap-del-sel-ddr50 = <0x9>;
- ti,itap-del-sel-legacy = <0x0>;
- ti,itap-del-sel-sd-hs = <0x0>;
- ti,itap-del-sel-sdr12 = <0x0>;
- ti,itap-del-sel-sdr25 = <0x0>;
+ ti,otap-del-sel-sdr12 = <0x0>;
+ ti,otap-del-sel-sdr25 = <0x0>;
+ ti,otap-del-sel-sdr50 = <0x8>;
+ ti,otap-del-sel-sdr104 = <0x7>;
+ ti,otap-del-sel-ddr50 = <0x8>;
+ ti,itap-del-sel-legacy = <0xa>;
+ ti,itap-del-sel-sd-hs = <0xa>;
+ ti,itap-del-sel-sdr12 = <0xa>;
+ ti,itap-del-sel-sdr25 = <0x1>;
ti,clkbuf-sel = <0x7>;
};
--
2.39.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/3] arm64: dts: ti: k3-am62-main: Add support for USB
2022-12-16 14:36 [PATCH 0/3] Improve K3-am625-sk support (USB, MMC) Sjoerd Simons
2022-12-16 14:36 ` [PATCH 1/3] arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select Sjoerd Simons
@ 2022-12-16 14:36 ` Sjoerd Simons
2022-12-16 14:36 ` [PATCH 3/3] arm64: dts: ti: k3-am625-sk: " Sjoerd Simons
` (2 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: Sjoerd Simons @ 2022-12-16 14:36 UTC (permalink / raw)
To: Nishanth Menon
Cc: martyn.welch, Nitin Yadav, Aswath Govindraju, Vignesh Raghavendra,
Krzysztof Kozlowski, Rob Herring, Tero Kristo, devicetree,
linux-arm-kernel, linux-kernel
From: Aswath Govindraju <a-govindraju@ti.com>
AM62 SoC has two instances of USB on it. Therefore, add support for the
same.
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
[cherry-pick from vendor BSP]]
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
---
arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 44 ++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
index 28c250a8d1ec..105ffbf94a75 100644
--- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
@@ -442,6 +442,50 @@ sdhci2: mmc@fa20000 {
ti,clkbuf-sel = <0x7>;
};
+ usbss0: dwc3-usb@f900000 {
+ compatible = "ti,am62-usb";
+ reg = <0x00 0x0f900000 0x00 0x800>;
+ clocks = <&k3_clks 161 3>;
+ clock-names = "ref";
+ ti,syscon-phy-pll-refclk = <&wkup_conf 0x4008>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+ power-domains = <&k3_pds 178 TI_SCI_PD_EXCLUSIVE>;
+ ranges;
+
+ usb0: usb@31000000 {
+ compatible = "snps,dwc3";
+ reg =<0x00 0x31000000 0x00 0x50000>;
+ interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>, /* irq.0 */
+ <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>; /* irq.0 */
+ interrupt-names = "host", "peripheral";
+ maximum-speed = "high-speed";
+ dr_mode = "otg";
+ };
+ };
+
+ usbss1: dwc3-usb@f910000 {
+ compatible = "ti,am62-usb";
+ reg = <0x00 0x0f910000 0x00 0x800>;
+ clocks = <&k3_clks 162 3>;
+ clock-names = "ref";
+ ti,syscon-phy-pll-refclk = <&wkup_conf 0x4018>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+ power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>;
+ ranges;
+
+ usb1: usb@31100000 {
+ compatible = "snps,dwc3";
+ reg =<0x00 0x31100000 0x00 0x50000>;
+ interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>, /* irq.0 */
+ <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>; /* irq.0 */
+ interrupt-names = "host", "peripheral";
+ maximum-speed = "high-speed";
+ dr_mode = "otg";
+ };
+ };
+
fss: bus@fc00000 {
compatible = "simple-bus";
reg = <0x00 0x0fc00000 0x00 0x70000>;
--
2.39.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/3] arm64: dts: ti: k3-am625-sk: Add support for USB
2022-12-16 14:36 [PATCH 0/3] Improve K3-am625-sk support (USB, MMC) Sjoerd Simons
2022-12-16 14:36 ` [PATCH 1/3] arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select Sjoerd Simons
2022-12-16 14:36 ` [PATCH 2/3] arm64: dts: ti: k3-am62-main: Add support for USB Sjoerd Simons
@ 2022-12-16 14:36 ` Sjoerd Simons
2022-12-19 13:09 ` [PATCH 0/3] Improve K3-am625-sk support (USB, MMC) Martyn Welch
2022-12-20 11:32 ` Vignesh Raghavendra
4 siblings, 0 replies; 11+ messages in thread
From: Sjoerd Simons @ 2022-12-16 14:36 UTC (permalink / raw)
To: Nishanth Menon
Cc: martyn.welch, Nitin Yadav, Aswath Govindraju, Vignesh Raghavendra,
Krzysztof Kozlowski, Rob Herring, Tero Kristo, devicetree,
linux-arm-kernel, linux-kernel
From: Aswath Govindraju <a-govindraju@ti.com>
AM62 SoC has two instances of USB and they are brought on to the board
in the following way,
-> USB0 instance
- This is brought out to a USB TypeC connector on board through TPS6598 PD
controller. The PD controller should decide the role based on CC pin in
the connector. Unfortunately the irq line for the TPS isn't hooked up
which is a mode not yet support by the driver (some patches were
submitted earlier this year[0]). So for now the PD controller is left
out and periphal mode chosen.
-> USB1 instance
- This is brought out to a USB TypeA connector on board.
Therefore, add the required device tree support for the above in the board
dts file.
0: https://lore.kernel.org/lkml/f714ee55-ef47-317d-81b9-57020dda064b@ti.com/T/
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
[merge from vendor bsp, drop TPS6598 support, reword commit message]
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
---
arch/arm64/boot/dts/ti/k3-am625-sk.dts | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts
index 93a5f0817efc..c165fa0a4109 100644
--- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts
@@ -24,6 +24,8 @@ aliases {
spi0 = &ospi0;
ethernet0 = &cpsw_port1;
ethernet1 = &cpsw_port2;
+ usb0 = &usb0;
+ usb1 = &usb1;
};
chosen {
@@ -275,6 +277,12 @@ main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-pins-default {
AM62X_IOPAD(0x01d4, PIN_INPUT, 7) /* (B15) UART0_RTSn.GPIO1_23 */
>;
};
+
+ main_usb1_pins_default: main-usb1-pins-default {
+ pinctrl-single,pins = <
+ AM62X_IOPAD(0x0258, PIN_OUTPUT, 0) /* (F18) USB1_DRVVBUS */
+ >;
+ };
};
&wkup_uart0 {
@@ -514,3 +522,17 @@ &epwm1 {
&epwm2 {
status = "disabled";
};
+
+&usbss0 {
+ ti,vbus-divider;
+};
+
+&usb0 {
+ dr_mode = "peripheral";
+};
+
+&usb1 {
+ dr_mode = "host";
+ pinctrl-names = "default";
+ pinctrl-0 = <&main_usb1_pins_default>;
+};
--
2.39.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 0/3] Improve K3-am625-sk support (USB, MMC)
2022-12-16 14:36 [PATCH 0/3] Improve K3-am625-sk support (USB, MMC) Sjoerd Simons
` (2 preceding siblings ...)
2022-12-16 14:36 ` [PATCH 3/3] arm64: dts: ti: k3-am625-sk: " Sjoerd Simons
@ 2022-12-19 13:09 ` Martyn Welch
2022-12-20 11:32 ` Vignesh Raghavendra
4 siblings, 0 replies; 11+ messages in thread
From: Martyn Welch @ 2022-12-19 13:09 UTC (permalink / raw)
To: Sjoerd Simons, Nishanth Menon
Cc: Nitin Yadav, Aswath Govindraju, Krzysztof Kozlowski, Rob Herring,
Tero Kristo, Vignesh Raghavendra, devicetree, linux-arm-kernel,
linux-kernel
On Fri, 2022-12-16 at 15:36 +0100, Sjoerd Simons wrote:
>
> This series picks up a few patches from the TI BSP tree that
> unfortunately didn't make it upstream thusfar.
>
> The first patch improve SD card compatibility (allowing U1 class
> cards
> to be used), the remaining ones add USB support.
>
> The type-c connector isn't entirely modelled with these changes as
> it goes through a TPS6598 PD controller. Unfortunately the dtb
> bindings
> for that currently require an irq line, which is not connected on E1
> and
> E2 version boards. The patchese to support this setup unfortunately
> didn't land
> yet[0].. As such the last patch ignored the PD controller and simply
> configures usb0 as periphal only rather then mode switch capable,
> which
> at least gives some basic usability of that USB port.
>
> 0:
> https://lore.kernel.org/lkml/f714ee55-ef47-317d-81b9-57020dda064b@ti.com/T/
>
>
Series tested with known problematic SD Card and checking for detection
of inserted USB device.
Tested-by: Martyn Welch <martyn.welch@collabora.com>
> Aswath Govindraju (2):
> arm64: dts: ti: k3-am62-main: Add support for USB
> arm64: dts: ti: k3-am625-sk: Add support for USB
>
> Nitin Yadav (1):
> arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select
>
> arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 90 ++++++++++++++++++----
> --
> arch/arm64/boot/dts/ti/k3-am625-sk.dts | 22 ++++++
> 2 files changed, 90 insertions(+), 22 deletions(-)
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/3] arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select
2022-12-16 14:36 ` [PATCH 1/3] arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select Sjoerd Simons
@ 2022-12-20 11:19 ` Vignesh Raghavendra
2022-12-20 13:07 ` Sjoerd Simons
0 siblings, 1 reply; 11+ messages in thread
From: Vignesh Raghavendra @ 2022-12-20 11:19 UTC (permalink / raw)
To: Sjoerd Simons, Nishanth Menon
Cc: martyn.welch, Nitin Yadav, Aswath Govindraju, Krzysztof Kozlowski,
Rob Herring, Tero Kristo, devicetree, linux-arm-kernel,
linux-kernel
On 16/12/22 8:06 pm, Sjoerd Simons wrote:
> From: Nitin Yadav <n-yadav@ti.com>
>
> UHS Class U1 sd-card are not getting detected due to incorrect
> OTAP/ITAP delay select values in linux. Update OTAP and ITAP
> delay select values for various speed modes. For sdhci0, update
> OTAP delay values for ddr52 & HS200 and add ITAP delay for legacy
> & mmc-hs. For sdhci1 & sdhci2, update OTAP & ITAP delay select
> recommended as in RIOT for various speed modes.
>
> Signed-off-by: Nitin Yadav <n-yadav@ti.com>
> [cherry-pick from vendor BSP]
> Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
> ---
>
> arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 46 ++++++++++++------------
> 1 file changed, 24 insertions(+), 22 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
> index 03660476364f..28c250a8d1ec 100644
> --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
> @@ -391,8 +391,10 @@ sdhci0: mmc@fa10000 {
> ti,clkbuf-sel = <0x7>;
> ti,otap-del-sel-legacy = <0x0>;
> ti,otap-del-sel-mmc-hs = <0x0>;
> - ti,otap-del-sel-ddr52 = <0x9>;
> - ti,otap-del-sel-hs200 = <0x6>;
> + ti,otap-del-sel-ddr52 = <0x5>;
> + ti,otap-del-sel-hs200 = <0x5>;
> + ti,itap-del-sel-legacy = <0xa>;
This is pretty useless without corresponding driver changes
to pick up ti,itap-del-sel-legacy as well
https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/drivers/mmc/host/sdhci_am654.c?h=ti-linux-5.10.y&id=93d22fc56007ee13e589debf0d32c8b1d5fdc6d8
https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/drivers/mmc/host/sdhci_am654.c?h=ti-linux-5.10.y&id=9c878c3dc642f7f1f3ab6ca7f812cd43fe7ed7d8
Could you list that cards affected and fixed by this change?
Regards
Vignesh
[...]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/3] Improve K3-am625-sk support (USB, MMC)
2022-12-16 14:36 [PATCH 0/3] Improve K3-am625-sk support (USB, MMC) Sjoerd Simons
` (3 preceding siblings ...)
2022-12-19 13:09 ` [PATCH 0/3] Improve K3-am625-sk support (USB, MMC) Martyn Welch
@ 2022-12-20 11:32 ` Vignesh Raghavendra
2022-12-20 12:41 ` Sjoerd Simons
4 siblings, 1 reply; 11+ messages in thread
From: Vignesh Raghavendra @ 2022-12-20 11:32 UTC (permalink / raw)
To: Sjoerd Simons, Nishanth Menon
Cc: martyn.welch, Nitin Yadav, Krzysztof Kozlowski, Rob Herring,
Tero Kristo, devicetree, linux-arm-kernel, linux-kernel
Hi,
On 16/12/22 8:06 pm, Sjoerd Simons wrote:
>
> This series picks up a few patches from the TI BSP tree that
> unfortunately didn't make it upstream thusfar.
>
> The first patch improve SD card compatibility (allowing U1 class cards
> to be used), the remaining ones add USB support.
>
> The type-c connector isn't entirely modelled with these changes as
> it goes through a TPS6598 PD controller. Unfortunately the dtb bindings
> for that currently require an irq line, which is not connected on E1 and
> E2 version boards. The patchese to support this setup unfortunately didn't land
> yet[0].. As such the last patch ignored the PD controller and simply
> configures usb0 as periphal only rather then mode switch capable, which
> at least gives some basic usability of that USB port.
>
> 0: https://lore.kernel.org/lkml/f714ee55-ef47-317d-81b9-57020dda064b@ti.com/T/
>
>
Really appreciate porting and posting these patches to mainline!
Wondering what tree are these patches based on?
I cannot apply cleanly on linux-next.
> Aswath Govindraju (2):
> arm64: dts: ti: k3-am62-main: Add support for USB
> arm64: dts: ti: k3-am625-sk: Add support for USB
>
> Nitin Yadav (1):
> arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select
>
> arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 90 ++++++++++++++++++------
> arch/arm64/boot/dts/ti/k3-am625-sk.dts | 22 ++++++
> 2 files changed, 90 insertions(+), 22 deletions(-)
>
Regards
Vignesh
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/3] Improve K3-am625-sk support (USB, MMC)
2022-12-20 11:32 ` Vignesh Raghavendra
@ 2022-12-20 12:41 ` Sjoerd Simons
2022-12-21 14:49 ` Raghavendra, Vignesh
0 siblings, 1 reply; 11+ messages in thread
From: Sjoerd Simons @ 2022-12-20 12:41 UTC (permalink / raw)
To: Vignesh Raghavendra, Nishanth Menon
Cc: martyn.welch, Nitin Yadav, Krzysztof Kozlowski, Rob Herring,
Tero Kristo, devicetree, linux-arm-kernel, linux-kernel
Hey Vignesh,
On Tue, 2022-12-20 at 17:02 +0530, Vignesh Raghavendra wrote:
> Hi,
>
> On 16/12/22 8:06 pm, Sjoerd Simons wrote:
> >
> > This series picks up a few patches from the TI BSP tree that
> > unfortunately didn't make it upstream thusfar.
...
> > 0:
> > https://lore.kernel.org/lkml/f714ee55-ef47-317d-81b9-57020dda064b@ti.com/T/
> >
> >
> Really appreciate porting and posting these patches to mainline!
> Wondering what tree are these patches based on?
> I cannot apply cleanly on linux-next.
These are against Linux 6.1 ; I'll happy rebase agains next for the
next round or is there a specific tree you prefer to base against?
Regards,
--
Sjoerd Simons
Collabora Ltd.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/3] arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select
2022-12-20 11:19 ` Vignesh Raghavendra
@ 2022-12-20 13:07 ` Sjoerd Simons
2022-12-21 14:50 ` Raghavendra, Vignesh
0 siblings, 1 reply; 11+ messages in thread
From: Sjoerd Simons @ 2022-12-20 13:07 UTC (permalink / raw)
To: Vignesh Raghavendra, Nishanth Menon
Cc: martyn.welch, Nitin Yadav, Aswath Govindraju, Krzysztof Kozlowski,
Rob Herring, Tero Kristo, devicetree, linux-arm-kernel,
linux-kernel
Hey Vignesh
On Tue, 2022-12-20 at 16:49 +0530, Vignesh Raghavendra wrote:
>
>
> On 16/12/22 8:06 pm, Sjoerd Simons wrote:
> > From: Nitin Yadav <n-yadav@ti.com>
> >
> > UHS Class U1 sd-card are not getting detected due to incorrect
> > OTAP/ITAP delay select values in linux. Update OTAP and ITAP
> > delay select values for various speed modes. For sdhci0, update
> > OTAP delay values for ddr52 & HS200 and add ITAP delay for legacy
> > & mmc-hs. For sdhci1 & sdhci2, update OTAP & ITAP delay select
> > recommended as in RIOT for various speed modes.
> >
> > Signed-off-by: Nitin Yadav <n-yadav@ti.com>
> > [cherry-pick from vendor BSP]
> > Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
> > ---
> >
> > arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 46 ++++++++++++--------
> > ----
> > 1 file changed, 24 insertions(+), 22 deletions(-)
> >
> > diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
> > b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
> > index 03660476364f..28c250a8d1ec 100644
> > --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
> > +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
> > @@ -391,8 +391,10 @@ sdhci0: mmc@fa10000 {
> > ti,clkbuf-sel = <0x7>;
> > ti,otap-del-sel-legacy = <0x0>;
> > ti,otap-del-sel-mmc-hs = <0x0>;
> > - ti,otap-del-sel-ddr52 = <0x9>;
> > - ti,otap-del-sel-hs200 = <0x6>;
> > + ti,otap-del-sel-ddr52 = <0x5>;
> > + ti,otap-del-sel-hs200 = <0x5>;
> > + ti,itap-del-sel-legacy = <0xa>;
>
> This is pretty useless without corresponding driver changes
> to pick up ti,itap-del-sel-legacy as well
Right; itap-del-sel-legacy is properly documented in the device-tree
binding and was already previously set ofcourse so i didn't pick up it
needed more driver changes. That said the dtb change itself should
still be valid even if not actually applied.
> https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/drivers/mmc/host/sdhci_am654.c?h=ti-linux-5.10.y&id=93d22fc56007ee13e589debf0d32c8b1d5fdc6d8
> https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/drivers/mmc/host/sdhci_am654.c?h=ti-linux-5.10.y&id=9c878c3dc642f7f1f3ab6ca7f812cd43fe7ed7d8
>
> Could you list that cards affected and fixed by this change?
It's a Collabora branded UHS class 1 (SDR104) card; Matching the commit
message indication given by Nitin. So that in particular i guess, will
have been fixed by the change to the ti,otap-del-sel-sdr104 value for
sdhci1.
For the two patches you highlighted above; Is TI planning to upstream
those as well?
--
Sjoerd Simons
Collabora Ltd.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/3] Improve K3-am625-sk support (USB, MMC)
2022-12-20 12:41 ` Sjoerd Simons
@ 2022-12-21 14:49 ` Raghavendra, Vignesh
0 siblings, 0 replies; 11+ messages in thread
From: Raghavendra, Vignesh @ 2022-12-21 14:49 UTC (permalink / raw)
To: Sjoerd Simons, Nishanth Menon
Cc: martyn.welch, Nitin Yadav, Krzysztof Kozlowski, Rob Herring,
Tero Kristo, devicetree, linux-arm-kernel, linux-kernel
Hi Sjoerd
On 12/20/2022 6:11 PM, Sjoerd Simons wrote:
> Hey Vignesh,
>
> On Tue, 2022-12-20 at 17:02 +0530, Vignesh Raghavendra wrote:
>> Hi,
>>
>> On 16/12/22 8:06 pm, Sjoerd Simons wrote:
>>>
>>> This series picks up a few patches from the TI BSP tree that
>>> unfortunately didn't make it upstream thusfar.
> ...
>>> 0:
>>> https://lore.kernel.org/lkml/f714ee55-ef47-317d-81b9-57020dda064b@ti.com/T/
>>>
>>>
>> Really appreciate porting and posting these patches to mainline!
>> Wondering what tree are these patches based on?
>> I cannot apply cleanly on linux-next.
>
> These are against Linux 6.1 ; I'll happy rebase agains next for the
> next round or is there a specific tree you prefer to base against?
>
TI K3 patch queue is at:
https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git ti-next
This is part of linux-next. So, yes, I would like all patches to be
based on -next or above tree.
I see you have already done that in v2.. Thanks!
Regards
Vignesh
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/3] arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select
2022-12-20 13:07 ` Sjoerd Simons
@ 2022-12-21 14:50 ` Raghavendra, Vignesh
0 siblings, 0 replies; 11+ messages in thread
From: Raghavendra, Vignesh @ 2022-12-21 14:50 UTC (permalink / raw)
To: Sjoerd Simons, Nishanth Menon
Cc: martyn.welch, Nitin Yadav, Aswath Govindraju, Krzysztof Kozlowski,
Rob Herring, Tero Kristo, devicetree, linux-arm-kernel,
linux-kernel
On 12/20/2022 6:37 PM, Sjoerd Simons wrote:
> Hey Vignesh
>
> On Tue, 2022-12-20 at 16:49 +0530, Vignesh Raghavendra wrote:
>>
>>
>> On 16/12/22 8:06 pm, Sjoerd Simons wrote:
>>> From: Nitin Yadav <n-yadav@ti.com>
>>>
>>> UHS Class U1 sd-card are not getting detected due to incorrect
>>> OTAP/ITAP delay select values in linux. Update OTAP and ITAP
>>> delay select values for various speed modes. For sdhci0, update
>>> OTAP delay values for ddr52 & HS200 and add ITAP delay for legacy
>>> & mmc-hs. For sdhci1 & sdhci2, update OTAP & ITAP delay select
>>> recommended as in RIOT for various speed modes.
>>>
>>> Signed-off-by: Nitin Yadav <n-yadav@ti.com>
>>> [cherry-pick from vendor BSP]
>>> Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
>>> ---
>>>
>>> arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 46 ++++++++++++--------
>>> ----
>>> 1 file changed, 24 insertions(+), 22 deletions(-)
>>>
>>> diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
>>> b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
>>> index 03660476364f..28c250a8d1ec 100644
>>> --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
>>> +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
>>> @@ -391,8 +391,10 @@ sdhci0: mmc@fa10000 {
>>> ti,clkbuf-sel = <0x7>;
>>> ti,otap-del-sel-legacy = <0x0>;
>>> ti,otap-del-sel-mmc-hs = <0x0>;
>>> - ti,otap-del-sel-ddr52 = <0x9>;
>>> - ti,otap-del-sel-hs200 = <0x6>;
>>> + ti,otap-del-sel-ddr52 = <0x5>;
>>> + ti,otap-del-sel-hs200 = <0x5>;
>>> + ti,itap-del-sel-legacy = <0xa>;
>>
>> This is pretty useless without corresponding driver changes
>> to pick up ti,itap-del-sel-legacy as well
>
> Right; itap-del-sel-legacy is properly documented in the device-tree
> binding and was already previously set ofcourse so i didn't pick up it
> needed more driver changes. That said the dtb change itself should
> still be valid even if not actually applied.
>
>> https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/drivers/mmc/host/sdhci_am654.c?h=ti-linux-5.10.y&id=93d22fc56007ee13e589debf0d32c8b1d5fdc6d8
>> https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/drivers/mmc/host/sdhci_am654.c?h=ti-linux-5.10.y&id=9c878c3dc642f7f1f3ab6ca7f812cd43fe7ed7d8
>>
>> Could you list that cards affected and fixed by this change?
>
> It's a Collabora branded UHS class 1 (SDR104) card; Matching the commit
> message indication given by Nitin. So that in particular i guess, will
> have been fixed by the change to the ti,otap-del-sel-sdr104 value for
> sdhci1.
>
> For the two patches you highlighted above; Is TI planning to upstream
> those as well?
>
Yes, the plan is to post those patches to mmc list post 6.2-rc1
Regards
Vignesh
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-12-21 14:51 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-16 14:36 [PATCH 0/3] Improve K3-am625-sk support (USB, MMC) Sjoerd Simons
2022-12-16 14:36 ` [PATCH 1/3] arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select Sjoerd Simons
2022-12-20 11:19 ` Vignesh Raghavendra
2022-12-20 13:07 ` Sjoerd Simons
2022-12-21 14:50 ` Raghavendra, Vignesh
2022-12-16 14:36 ` [PATCH 2/3] arm64: dts: ti: k3-am62-main: Add support for USB Sjoerd Simons
2022-12-16 14:36 ` [PATCH 3/3] arm64: dts: ti: k3-am625-sk: " Sjoerd Simons
2022-12-19 13:09 ` [PATCH 0/3] Improve K3-am625-sk support (USB, MMC) Martyn Welch
2022-12-20 11:32 ` Vignesh Raghavendra
2022-12-20 12:41 ` Sjoerd Simons
2022-12-21 14:49 ` Raghavendra, Vignesh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).