Re: [PATCH 0/2] Qualcomm: fix sdcard support on SM8250

2025-02-17 Thread Amit Pundir
which we intend to stub. Tested-by: Amit Pundir > > --- > Caleb Connolly (2): > power: regulator: add additional supported LDOs for pm8150l > pinctrl: qcom: sm8250: fix pin count > > drivers/pinctrl/qcom/pinctrl-sm8250.c | 2 +- > drivers/power/regula

[PATCH v4 3/6] ARM: dts: sync Actions Semi S700 DT from Linux v5.16-rc3

2021-12-02 Thread Amit Singh Tomar
From: Amit Singh Tomar This Synchronizes the Actions Semi S700 SoC DT changes from commit "g58e1100fdc59" ("Linux v5.16-rc3"). Signed-off-by: Amit Singh Tomar --- arch/arm/dts/s700.dtsi| 17 - .../dt-bindings/power/owl-s700

[PATCH v4 5/6] mmc: actions: add MMC driver for Actions OWL S700/S900

2021-11-28 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit adds support for MMC controllers found on Actions OWL SoC platform(S700/S900). Signed-off-by: Amit Singh Tomar --- Changes since v3: * Re-based to latest master (2ad8d0cb950da) There are some "dm: treewide" changes have been

[PATCH v4 6/6] configs: Enable mmc support

2021-11-28 Thread Amit Singh Tomar
From: Amit Singh Tomar This commits enables mmc on the Actions Cubieboard7 board. Signed-off-by: Amit Singh Tomar --- Changes since previous versions * No change. --- configs/cubieboard7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/cubieboard7_defconfig b

[PATCH v4 4/6] ARM: dts: s700: add MMC/SD controller node

2021-11-28 Thread Amit Singh Tomar
From: Amit Singh Tomar This patch adds node for mmc/sd controller found on Action Semi OWL S700 SoC. Since, upstream Linux binding has not been merged for S700 MMC/SD controller, Changes are put in u-boot specific dtsi file. Signed-off-by: Amit Singh Tomar --- Changes since previous versions

[PATCH v4 3/6] ARM: dts: sync Actions Semi S700 DT from Linux 5.10-rc7

2021-11-28 Thread Amit Singh Tomar
From: Amit Singh Tomar This Synchronizes the Actions Semi S700 SoC DT changes from commit "0477e9288185" ("Linux 5.10-rc7"). Signed-off-by: Amit Singh Tomar --- Changes since previous versions * No change. --- arch/arm/dts/s700.dtsi

[PATCH v4 2/6] clk: actions: Add SD/MMC clocks

2021-11-28 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit adds SD/MMC clocks, and provides .set/get_rate callbacks for SD/MMC device present on Actions OWL S700 SoCs. Signed-off-by: Amit Singh Tomar --- Changes since v3: * No change. Changes since v2: * Fixed the weird div assignment. * Moved

[PATCH v4 1/6] clk: actions: Introduce dummy get/set_rate callbacks

2021-11-28 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit introduces get/set_rate callbacks, these are dummy at the moment, and can be used to get/set clock for various devices based on the clk id. Signed-off-by: Amit Singh Tomar --- Changes since v3: * No changes. Changes since v2: * No changes

[PATCH v4 0/6] Add MMC/SD support for S700/S900

2021-11-28 Thread Amit Singh Tomar
Device Tree to 3df56000, end 3df5ab8f ... OK Starting kernel ... [0.00] Booting Linux on physical CPU 0x00 [0x410fd034] [0.00] Linux version 5.7.0-rc6-00022-g99f1c330923b-dirty (amit@amit-ThinkPad-X230) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revisi

Re: [PATCH v3 5/6] mmc: actions: add MMC driver for Actions OWL S700/S900

2021-03-01 Thread Amit Tomar
o an uninitialised value. > > But the compiler already has initialized mode to 0, that is why there is no warning. In order to test , printed out mode value which suggests this variable is initialized. Thanks -Amit

Re: Loading u-boot binary from the u-boot command line

2021-01-22 Thread Amit Tomar
ss. Once the image is loaded , you can bootm "SYS_TEXT_BASE". Thanks -Amit [1]: http://blog.mezeske.com/?p=483

[PATCH v3 5/6] mmc: actions: add MMC driver for Actions OWL S700/S900

2021-01-16 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit adds support for MMC controllers found on Actions OWL SoC platform(S700/S900). Signed-off-by: Amit Singh Tomar --- Changes since v2: * Progammed read/write delays as suggested by Jaehoon, its more readable now. * Updated commit

[PATCH v3 6/6] configs: Enable mmc support

2021-01-16 Thread Amit Singh Tomar
From: Amit Singh Tomar This commits enables mmc on the Actions Cubieboard7 board. Signed-off-by: Amit Singh Tomar --- Changes since previous versions * No change. --- configs/cubieboard7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/cubieboard7_defconfig b

[PATCH v3 4/6] ARM: dts: s700: add MMC/SD controller node

2021-01-16 Thread Amit Singh Tomar
From: Amit Singh Tomar This patch adds node for mmc/sd controller found on Action Semi OWL S700 SoC. Since, upstream Linux binding has not been merged for S700 MMC/SD controller, Changes are put in u-boot specific dtsi file. Signed-off-by: Amit Singh Tomar --- Changes since previous versions

[PATCH v3 3/6] ARM: dts: sync Actions Semi S700 DT from Linux 5.10-rc7

2021-01-16 Thread Amit Singh Tomar
From: Amit Singh Tomar This Synchronizes the Actions Semi S700 SoC DT changes from commit "0477e9288185" ("Linux 5.10-rc7"). Signed-off-by: Amit Singh Tomar --- Changes since previous versions * No change. --- arch/arm/dts/s700.dtsi

[PATCH v3 2/6] clk: actions: Add SD/MMC clocks

2021-01-16 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit adds SD/MMC clocks, and provides .set/get_rate callbacks for SD/MMC device present on Actions OWL S700 SoCs. Signed-off-by: Amit Singh Tomar --- Changes since v2: * Fixed the not weird div assignment. * Moved the clock bit for SD from header

[PATCH v3 1/6] clk: actions: Introduce dummy get/set_rate callbacks

2021-01-16 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit introduces get/set_rate callbacks, these are dummy at the moment, and can be used to get/set clock for various devices based on the clk id. Signed-off-by: Amit Singh Tomar --- Changes since v2: * No changes. Changes since previous version

[PATCH v3 0/6] Add MMC/SD support for S700/S900

2021-01-16 Thread Amit Singh Tomar
From: Amit Singh Tomar This series(v3) addresses review comments provided by Andre and Jaehoon. Earlier in MMC driver, we were *not* checking the command response errors(for instance, the CRC error) based on STATU register. This is now addressed in patch 5/6. Also, MMC driver(pacth 5/6) now has

Re: [PATCH v2 5/6] mmc: actions: add MMC driver for Actions OWL S700

2020-12-24 Thread Amit Tomar
elevant here. Only thing is , it would be great if Mani or someone with S900 based board can test it. Thanks -Amit

Re: [PATCH v2 5/6] mmc: actions: add MMC driver for Actions OWL S700

2020-12-23 Thread Amit Tomar
> obj-$(CONFIG_$(SPL_TPL_)SUPPORT_EMMC_RPMB) += rpmb.o > > diff --git a/drivers/mmc/owl_mmc.c b/drivers/mmc/owl_mmc.c > > new file mode 100644 > > index 000..5c48307 > > --- /dev/null > > +++ b/drivers/mmc/owl_mmc.c > > @@ -0,0 +1,399 @@ > > +// SPDX-License-

Re: [PATCH v2 5/6] mmc: actions: add MMC driver for Actions OWL S700

2020-12-22 Thread Amit Tomar
Y_HIGH; > wdelay = OWL_SD_WDELAY_HIGH; > } > > writel(reg | OWL_SD_CTRL_RDELAY(rdelay) | OWL_SD_CTL_WDELAY(wdelay)...); > > There are many approach to make readable..but Amit mentioned it's using > same code in Linux kernel driver. > > To be honest, this is *n

Re: [PATCH v2 5/6] mmc: actions: add MMC driver for Actions OWL S700

2020-12-22 Thread Amit Tomer
On Wed, Dec 23, 2020 at 5:57 AM André Przywara wrote: > > On 19/12/2020 14:51, Amit Singh Tomar wrote: > > From: Amit Singh Tomar > > > > This commit adds support for MMC controllers found on Actions OWL > > S700 SoC platform. > > > > Signed-off-by: A

Re: [PATCH v2 4/6] ARM: dts: s700: add MMC/SD controller node

2020-12-22 Thread Amit Tomar
On Wed, Dec 23, 2020 at 4:58 AM Jaehoon Chung wrote: > On 12/19/20 11:51 PM, Amit Singh Tomar wrote: > > From: Amit Singh Tomar > > > > This patch adds node for ethernet controller found on Action Semi OWL > > S700 SoC. > > Is "ethernet controller" r

[PATCH v2 6/6] configs: Enable mmc support

2020-12-19 Thread Amit Singh Tomar
From: Amit Singh Tomar This commits enables mmc on the Actions Cubieboard7 board. Signed-off-by: Amit Singh Tomar --- Changes since previous version * No change --- configs/cubieboard7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/cubieboard7_defconfig b

[PATCH v2 5/6] mmc: actions: add MMC driver for Actions OWL S700

2020-12-19 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit adds support for MMC controllers found on Actions OWL S700 SoC platform. Signed-off-by: Amit Singh Tomar --- Changes since previous version * Corrected block count to 512. * Changed the command timeout value to 30ms. * Used

[PATCH v2 4/6] ARM: dts: s700: add MMC/SD controller node

2020-12-19 Thread Amit Singh Tomar
From: Amit Singh Tomar This patch adds node for ethernet controller found on Action Semi OWL S700 SoC. Since, upstream Linux binding has not been merged for S700 MMC/SD controller, Changes are put in u-boot specific dtsi file. Signed-off-by: Amit Singh Tomar --- Changes since previous version

[PATCH v2 3/6] ARM: dts: sync Actions Semi S700 DT from Linux 5.10-rc7

2020-12-19 Thread Amit Singh Tomar
From: Amit Singh Tomar This Synchronizes the Actions Semi S700 SoC DT changes from commit "0477e9288185" ("Linux 5.10-rc7"). Signed-off-by: Amit Singh Tomar --- Changes since previous version * No change. --- arch/arm/dts/s700.dtsi

[PATCH v2 2/6] clk: actions: Add SD/MMC clocks

2020-12-19 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit adds SD/MMC clocks, and provides .set/get_rate callbacks for SD/MMC device present on Actions OWL S700 SoCs. Signed-off-by: Amit Singh Tomar --- Changes since previous version: * Removed rate *= 2 as this just overclocks. * Separated the

[PATCH v2 1/6] clk: actions: Introduce dummy get/set_rate callbacks

2020-12-19 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit introduces get/set_rate callbacks, these are dummy at the moment, and can be used to get/set clock for various devices based on the clk id. Signed-off-by: Amit Singh Tomar --- Changes since previous version: * Removed premature initialization to avoid

[PATCH v2 0/6] Add MMC/SD support for S700

2020-12-19 Thread Amit Singh Tomar
From: Amit Singh Tomar This series(v2) has few important updates, while loading large files we found that MMC framework puts "0x1fffe00" into DMA Frame Length(DMA_FRAME_LEN 0x000C) but register itself is limited to 24 bits and hence it was failing. It is due to the wrong Block count(

Re: [PATCH 1/6] clk: actions: Introduce dummy get/set_rate callbacks

2020-12-14 Thread Amit Tomer
Hi, On Mon, Dec 14, 2020 at 6:45 AM André Przywara wrote: > > On 13/12/2020 09:43, Amit Singh Tomar wrote: > > This commit introduces get/set_rate callbacks, these are dummy at > > the moment, and can be used to get/set clock for various devices > > based on the clk i

Re: [PATCH 2/6] clk: actions: Add SD/MMC clocks

2020-12-14 Thread Amit Tomer
*/ > > + val |= 0xc00; > > Where does this come from? I don't see the Linux driver doing that? Actually if I don't set 11th and 10th bit , I see SD speed of 2KiB/s and unstable behaviour while loading files from the card. BSP U-boot driver chooses a value 0xfce0 for it. Thanks Amit

Re: [PATCH 5/6] mmc: actions: add MMC driver for Actions OWL S700

2020-12-14 Thread Amit Tomar
(dev); > > + struct owl_mmc_plat *plat = dev_get_platdata(dev); > > + struct owl_mmc_priv *priv = dev_get_priv(dev); > > + struct mmc_config *cfg = &plat->cfg; > > + int bus_width, ret; > > + fdt_addr_t addr; > > + > > + cfg->name = dev->name; > > + cfg->voltages = OWL_MMC_OCR; > > + cfg->f_min = 40; > > + cfg->f_max = 5200; > > + cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT; > > + > > + bus_width = dev_read_u32_default(dev, "bus-width", 1); > > + switch (bus_width) { > > + case 8: > > + cfg->host_caps |= MMC_MODE_8BIT; > > + /* Hosts capable of 8-bit transfers can also do 4 bits */ > > + case 4: > > + cfg->host_caps |= MMC_MODE_4BIT; > > + break; > > + case 1: > > + break; > > + default: > > + printf("Invalid bus-width value %u\n", bus_width); > > + } > > + cfg->host_caps |= MMC_MODE_HS | MMC_MODE_HS_52MHz; > > + > > + addr = dev_read_addr(dev); > > + if (addr == FDT_ADDR_T_NONE) > > + return -EINVAL; > > + > > + priv->reg_base = (void *)addr; > > + priv->dma_drq = 0x2; > > + > > + ret = clk_get_by_index(dev, 0, &priv->clk); > > + if (ret) { > > + debug("clk_get_by_index() failed: %d\n", ret); > > + return ret; > > + } > > You should read the DMA parameters from the DT here. What you currently > hard code (channel 2) only works for the first MMC. > It should be fairly straight-forward to follow the phandle and get the > base address of the DMA device, and to read the second argument to learn > the DRQ number. Then put this into priv and use it in dma_config(). > > Yeah, I initially thought about it but I wasn't sure that This device > trigger value is exactly matching to > DAM channel number, So I left the idea of having it. > > Thanks, > -Amit

Re: [PATCH 5/6] mmc: actions: add MMC driver for Actions OWL S700

2020-12-14 Thread Amit Tomar
e this change. > > > > > +} > > + > > +static int owl_mmc_set_ios(struct udevice *dev) > > +{ > > + struct owl_mmc_priv *priv = dev_get_priv(dev); > > + struct owl_mmc_plat *plat = dev_get_platdata(dev); > > + struct mmc *mmc = &plat->mmc; > > + u32 reg, ret; > > + > > + if (mmc->clock != priv->clock) { > > + priv->clock = mmc->clock; > > + owl_mmc_clk_set(priv, mmc->clock); > > + } > > + > > + ret = clk_set_rate(&priv->clk, mmc->clock); > > + if (IS_ERR_VALUE(ret)) > > + return ret; > > + > > + ret = clk_enable(&priv->clk); > > + if (ret) > > + return ret; > > + > > + /* Set the Bus width */ > > + reg = readl(priv->reg_base + OWL_REG_SD_EN); > > + reg &= ~0x03; > > Use macro, not 0x03. > > > + if (mmc->bus_width == 8) > > + reg |= OWL_SD_EN_DATAWID(2); > > + else if (mmc->bus_width == 4) > > + reg |= OWL_SD_EN_DATAWID(1); > > + > > + writel(reg, priv->reg_base + OWL_REG_SD_EN); > > + > > + return 0; > > +} > > + > > +static const struct dm_mmc_ops owl_mmc_ops = { > > + .send_cmd = owl_mmc_send_cmd, > > + .set_ios= owl_mmc_set_ios, > > +}; > > + > > +static int owl_mmc_probe(struct udevice *dev) > > +{ > > + struct mmc_uclass_priv *upriv = dev_get_uclass_priv(dev); > > + struct owl_mmc_plat *plat = dev_get_platdata(dev); > > + struct owl_mmc_priv *priv = dev_get_priv(dev); > > + struct mmc_config *cfg = &plat->cfg; > > + int bus_width, ret; > > + fdt_addr_t addr; > > + > > + cfg->name = dev->name; > > + cfg->voltages = OWL_MMC_OCR; > > + cfg->f_min = 40; > > + cfg->f_max = 5200; > > + cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT; > > + > > + bus_width = dev_read_u32_default(dev, "bus-width", 1); > > Use mmc_of_parse(). It's generic parser. > Ok, Sure. > > Best Regards, > Jaehoon Chung > > > Thanks, Amit

[PATCH 5/6] mmc: actions: add MMC driver for Actions OWL S700

2020-12-13 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit adds support for MMC controllers found on Actions OWL S700 SoC platform. Signed-off-by: Amit Singh Tomar --- drivers/mmc/Kconfig | 7 + drivers/mmc/Makefile | 1 + drivers/mmc/owl_mmc.c | 404 ++ 3 files

[PATCH 6/6] configs: Enable mmc support

2020-12-13 Thread Amit Singh Tomar
From: Amit Singh Tomar This commits enables mmc on the Actions Cubieboard7 board. Signed-off-by: Amit Singh Tomar --- configs/cubieboard7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/cubieboard7_defconfig b/configs/cubieboard7_defconfig index 64dc593..d1ee862

[PATCH 4/6] ARM: dts: s700: add MMC/SD controller node

2020-12-13 Thread Amit Singh Tomar
From: Amit Singh Tomar This patch adds node for ethernet controller found on Action Semi OWL S700 SoC. Since, upstream Linux binding has not been merged for S700 MMC/SD controller, Changes are put in u-boot specific dtsi file. Signed-off-by: Amit Singh Tomar --- arch/arm/dts/s700-u-boot.dtsi

[PATCH 2/6] clk: actions: Add SD/MMC clocks

2020-12-13 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit adds SD/MMC clocks, and provides .set/get_rate callbacks for SD/MMC device present on Actions OWL S700 SoCs. Signed-off-by: Amit Singh Tomar --- drivers/clk/owl/clk_owl.c | 66 +++ drivers/clk/owl/clk_owl.h | 2

[PATCH 3/6] ARM: dts: sync Actions Semi S700 DT from Linux 5.10-rc7

2020-12-13 Thread Amit Singh Tomar
From: Amit Singh Tomar This Synchronizes the Actions Semi S700 SoC DT changes from commit "0477e9288185" ("Linux 5.10-rc7"). Signed-off-by: Amit Singh Tomar --- arch/arm/dts/s700.dtsi | 17 - include/dt-bindings/power/owl-s

[PATCH 0/6] Add MMC/SD support for S700

2020-12-13 Thread Amit Singh Tomar
From: Amit Singh Tomar At the moment on S700 based platforms, only way to load/boot the Kernel is from Ethernet, and with these patches one can now load/boot the Kernel from uSD card. Patches(1/6 and 2/6) adds changes needed for MMC/SD clock. It introduces set/get callback routine and get/set

[PATCH 1/6] clk: actions: Introduce dummy get/set_rate callbacks

2020-12-13 Thread Amit Singh Tomar
From: Amit Singh Tomar This commit introduces get/set_rate callbacks, these are dummy at the moment, and can be used to get/set clock for various devices based on the clk id. Signed-off-by: Amit Singh Tomar --- drivers/clk/owl/clk_owl.c | 28 1 file changed, 28

[PATCH] arm: actions: increase SYS_MALLOC_F_LEN

2020-11-09 Thread Amit Singh Tomar
tion) well. This commit fixes it, by increasing SYS_MALLOC_F_LEN to value 0x2000. Suggested-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kconfig b/Kconfig index c94b10e9fa72..6dc20ed25b29 100644 --- a/Kconfig +++

Re: [PATCH v2 1/6] arm64: PIE: Do not skip static relocation

2020-10-01 Thread Amit Tomar
h the popular Linaro > toolchains, which lack this feature. > > Signed-off-by: Andre Przywara > --- > > With this, U-Boot now runs well from ROM when compiled with > "gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu". > > Tested-by: Amit Singh Tomar > Thanks -Amit

Re: [PATCH 0/5] qemu-arm64: Allow booting via Trusted Firmware

2020-09-24 Thread Amit Tomar
vironment PCI: Failed autoconfig bar 14 In:pl011@900 Out: pl011@900 Err: pl011@900 Net: No ethernet found. Thanks -Amit

Re: [PATCH 0/5] qemu-arm64: Allow booting via Trusted Firmware

2020-09-24 Thread Amit Tomar
sing "gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu" Thanks -Amit

Re: [PATCH 0/5] qemu-arm64: Allow booting via Trusted Firmware

2020-09-24 Thread Amit Tomar
EL1h FPCR= FPSR=0000 Wondering , if I have missed something ? Thanks -Amit

Re: [PATCH 00/15] net: sun8i-emac fixes and cleanups

2020-07-07 Thread Amit Tomer
requires to drop > the overzealous alignment checks in cache_v7.c first, which is part of > another, upcoming series. > > A git repo with those patches can be found here: > https://github.com/apritzel/u-boot/commits/sun8i-emac-cleanup Tested this on Pine64+, and it worked without any issue. Tested-by: Amit Singh Tomar Thanks -Amit

Re: [PATCH v4 0/2] Calculate SDRAM size for Actions OWL SoCs

2020-06-12 Thread Amit Tomer
Hi Tom On Sat, May 9, 2020 at 1:45 PM Amit Singh Tomar wrote: > > Mani pointed out that changes in previous version were not good enough > for S900 and he provide snippet that seems to work on S900. > > This series v4 fixes the S900 Support by taking in changes sugg

Re: [PATCHv2 8/8] cubieboard7: Remove ARCH= references from documentation

2020-05-26 Thread Amit Tomer
Hi, On Wed, May 27, 2020 at 12:07 AM Tom Rini wrote: > > When building U-Boot we select the architecture via Kconfig and not ARCH > being passed in via the environment or make cmdline. > > While in here, add the doc file to the MAINTAINERS entry. > > Cc: Amit Singh To

Re: [PATCH 2/7] imx: Remove ARCH= references from documentation

2020-05-19 Thread Amit Tomer
Hi On Tue, May 19, 2020 at 8:21 PM Tom Rini wrote: > > When building U-Boot we select the architecture via Kconfig and not ARCH > being passed in via the environment or make cmdline. > > Cc: Adam Ford > Cc: Vanessa Maegima > Cc: Otavio Salvador > Cc: Igor Opaniuk >

Re: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-12 Thread Amit Tomer
MMC for S700 in Linux, and once those gets merged we would start working on Ethernet. Thanks -Amit

Re: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-12 Thread Amit Tomer
t this is kind of ready(I mean, the other bits like PHY and driver) for U-boot. So thought of posting it to the list here. Thanks -Amit

Re: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-12 Thread Amit Tomer
Hi, On Tue, May 12, 2020 at 7:49 PM André Przywara wrote: > > On 09/05/2020 15:25, Amit Singh Tomar wrote: > > This patch adds node for ethernet controller found on Action Semi OWL > > S700 SoC. > > > > Since, there is no upstream Linux binding exist for S700 ethern

[PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-09 Thread Amit Singh Tomar
This patch adds node for ethernet controller found on Action Semi OWL S700 SoC. Since, there is no upstream Linux binding exist for S700 ethernet controller, Changes are put in u-boot specific dtsi file. Signed-off-by: Amit Singh Tomar --- arch/arm/dts/s700-u-boot.dtsi | 13 + 1

[PATCH v1 7/7] configs: Enable mac and phy configs

2020-05-09 Thread Amit Singh Tomar
This patch adds MAC and PHY related configs (needed for proper ethernet operations) for Action Semi S700 SoC. Signed-off-by: Amit Singh Tomar --- configs/cubieboard7_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/cubieboard7_defconfig b/configs/cubieboard7_defconfig

[PATCH v1 6/7] owl: Kconfig: Enable DM eth for OWL platform

2020-05-09 Thread Amit Singh Tomar
This patch selects CONFIG_DM_ETH (ethernet driver is base on DM model) for Action semi owl SoC. Signed-off-by: Amit Singh Tomar --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 0d463088a2e4..80e07f92febc 100644 --- a/arch/arm

[PATCH v1 4/7] net: designware: s700: Add glue code for S700 mac

2020-05-09 Thread Amit Singh Tomar
This patchs adds glue logic to enable designware mac present on Action Semi based S700 SoC, Configures SoC specific bits. Undocumented bit that programs the PHY interface select register comes from vendor source. It has been tested on Cubieboard7-lite based on S700 SoC. Signed-off-by: Amit

[PATCH v1 3/7] net: phy: realtek: Introduce PHY_RTL8201F_S700_RMII_TIMINGS to adjust rx/tx timings

2020-05-09 Thread Amit Singh Tomar
-by: Amit Singh Tomar --- drivers/net/phy/Kconfig | 9 + drivers/net/phy/realtek.c | 35 +++ 2 files changed, 44 insertions(+) diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig index d1f049e62ab7..123c17c04458 100644 --- a/drivers/net/phy

[PATCH v1 2/7] net: phy: realtek: Add support for RTL8201F PHY module.

2020-05-09 Thread Amit Singh Tomar
This patch adds support for Realtek PHY RTL8201F 10/100Mbs (with variants: RTL8201FN and RTL8201FL) PHYceiver. It is present on Actions Semi Cubieboard7 board. Signed-off-by: Amit Singh Tomar --- drivers/net/phy/realtek.c | 20 1 file changed, 20 insertions(+) diff --git a

[PATCH v1 1/7] clk: actions: Add Ethernet clocks

2020-05-09 Thread Amit Singh Tomar
This commit adds clocks needed for ethernet operations for Actions OWL family of SoCs (S700 and S900). Signed-off-by: Amit Singh Tomar --- arch/arm/include/asm/arch-owl/regs_s700.h | 2 ++ arch/arm/include/asm/arch-owl/regs_s900.h | 4 drivers/clk/owl/clk_owl.c | 9

[PATCH v1 0/7] add Ethernet support for S700

2020-05-09 Thread Amit Singh Tomar
needed to boot Linux. Amit Singh Tomar (7): clk: actions: Add Ethernet clocks net: phy: realtek: Add support for RTL8201F PHY module. net: phy: realtek: Introduce PHY_RTL8201F_S700_RMII_TIMINGS to adjust rx/tx timings net: designware: s700: Add glue code for S700 mac arm: dts: s70

[PATCH v4 0/2] Calculate SDRAM size for Actions OWL SoCs

2020-05-09 Thread Amit Singh Tomar
-lite board, and it would be great if this can be tested on S900. Amit Singh Tomar (2): Actions: OWL: Calculate SDRAM size arm: actions: remove "CONFIG_SYS_SDRAM_SIZE" for Actions Owl Semi SoCs arch/arm/mach-owl/soc.c | 22 +- include/configs/owl-common.h

[PATCH v4 1/2] Actions: OWL: Calculate SDRAM size

2020-05-09 Thread Amit Singh Tomar
much taken from vendor source. This commit lets Linux boot on Cubieboard7-lite(based on S700). Signed-off-by: Amit Singh Tomar --- Changes since v3: * Fixed S900 support as suggested by Mani. * Changes the function name to owl_get_ddrcap. Changes since v2: * Fixed the

[PATCH v4 2/2] arm: actions: remove "CONFIG_SYS_SDRAM_SIZE" for Actions Owl Semi SoCs

2020-05-09 Thread Amit Singh Tomar
Now that, we calculate SDRAM size by reading DDR registers, "CONFIG_SYS_SDRAM_SIZE" is no more needed. This commit removes "CONFIG_SYS_SDRAM_SIZE" from common configuration file. Signed-off-by: Amit Singh Tomar --- * No change since previous version. --- include/configs/o

Re: [PATCH v2 1/2] Actions: OWL: Calculate SDRAM size

2020-05-09 Thread Amit Tomer
e this and remove other stuffs. Also this function should be > named > as owl_get_ddr_cap(). Thanks for pointing this out, and I just sent v3 as v2 didn't even compile for Bubblegum96. Would send the updated version that works on S900. Thanks Amit.

[PATCH v3 2/2] arm: actions: remove "CONFIG_SYS_SDRAM_SIZE" for Actions Owl Semi SoCs

2020-05-09 Thread Amit Singh Tomar
Now that, we calculate SDRAM size by reading DDR registers, "CONFIG_SYS_SDRAM_SIZE" is no more needed. This commit removes "CONFIG_SYS_SDRAM_SIZE" from common configuration file. Signed-off-by: Amit Singh Tomar --- * No change from previous versions. --- include/configs/o

[PATCH v3 1/2] Actions: OWL: Calculate SDRAM size

2020-05-09 Thread Amit Singh Tomar
much taken from vendor source. This commit lets Linux boot on Cubieboard7-lite(based on S700). Signed-off-by: Amit Singh Tomar --- Changes since v2: * Fixed the variable name so that it can compile for S900. Changes since v1: * added support for S900 * updated

[PATCH v3 0/2] Calculate SDRAM size for Actions OWL SoCs

2020-05-09 Thread Amit Singh Tomar
2) is re-worked to support S900 SoC along with S700. These changes have been tested on S700 based Cubieboard7-lite board, and it would be great if this can be tested on S900. Amit Singh Tomar (2): Actions: OWL: Calculate SDRAM size arm: actions: remove "CONFIG_SYS_SDRAM_SIZE" for A

[PATCH v2 1/2] Actions: OWL: Calculate SDRAM size

2020-05-08 Thread Amit Singh Tomar
much taken from vendor source. This commit lets Linux boot on Cubieboard7-lite(based on S700). Signed-off-by: Amit Singh Tomar --- Changes since v1: * added support for S900 * updated the commit message to reflect common OWL support. --- arch/arm/mach-owl/soc.c | 27

[PATCH v2 0/2] Calculate SDRAM size for Actions OWL SoCs

2020-05-08 Thread Amit Singh Tomar
This small series allows us to calculate SDRAM size instead of guessing it. Patch (1/2) is re-worked to support S900 SoC along with S700. These changes have been tested on S700 based Cubieboard7-lite board, and it would be great if this can be tested on S900. Amit Singh Tomar (2): Actions

[PATCH v2 2/2] arm: actions: remove "CONFIG_SYS_SDRAM_SIZE" for Actions Owl Semi SoCs

2020-05-08 Thread Amit Singh Tomar
Now that, we calculate SDRAM size by reading DDR registers, "CONFIG_SYS_SDRAM_SIZE" is no more needed. This commit removes "CONFIG_SYS_SDRAM_SIZE" from common configuration file. Signed-off-by: Amit Singh Tomar --- include/configs/owl-common.h | 1 - 1 file changed, 1 delet

Re: [PATCH] Actions: S700 Calculate SDRAM size

2020-05-04 Thread Amit Tomer
ased on S900. Thanks -Amit.

[PATCH] Actions: S700 Calculate SDRAM size

2020-05-02 Thread Amit Singh Tomar
commit lets Linux boot on Cubieboard7-lite (based on S700). Signed-off-by: Amit Singh Tomar --- There is bit of a story about it: Wasn't really aware that working on a board (CubieBoard7-Lite) that actually has only 1GB of RAM untill I see the Kernel crash[1], and DDR size is hard-coded t

[PATCH v11 00/13] Actions S700 SoC support

2020-04-19 Thread Amit Singh Tomar
ww.actions-semi.com/en/productview.aspx?id=225 [3]: http://u-boot.10912.n7.nabble.com/PATCH-v6-00-12-Actions-S700-SoC-support-td403562.html#a403567 [4]: http://u-boot.10912.n7.nabble.com/PATCH-v5-00-11-Actions-S700-SoC-support-td402752.html#a402762 [5]: https://paste.ubuntu.com/p/4nhCWryRNR/ Amit S

[PATCH v11 12/13] doc: boards: add Cubieboard7 documentation

2020-04-19 Thread Amit Singh Tomar
This adds build and flash steps for Actions S700 based Cubieboard7 board. Reviewed-by: Manivannan Sadhasivam Signed-off-by: Amit Singh Tomar --- Changes since v10: * Added Mani's reviewed-by Tag. Changes since v9: * Updated the heading to CUBIEBOARD7 to ACTIONS. *

[PATCH v11 13/13] MAINTAINERS: add entry for cubieboard7 config

2020-04-19 Thread Amit Singh Tomar
This commit adds entry for cubieboard7 config under Actions Semi OWL family. Signed-off-by: Amit Singh Tomar --- * Newly added patch, was not there in earlier versions. Hi Mani, Hope, this is file with you to have this under ARCH_OWL? --- MAINTAINERS | 1 + 1 file changed, 1 insertion

[PATCH v11 07/13] arm: actions: add S700 SoC device tree

2020-04-19 Thread Amit Singh Tomar
Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v10: * No change. Changes since v9: * Moved changes(that enables bubblegum-96 DT build) to patch 04/12. Changes since v8: * No changes. Changes since v7: * No changes. Change

[PATCH v11 10/13] actions: Move defconfig options to Kconfig

2020-04-19 Thread Amit Singh Tomar
This patch moves some of the config options from bubblegum_96_defconfig to respective Kconfig files. Signed-off-by: Amit Singh Tomar --- Changes since v10: * Moved out some of config options from mach-owl/Kconfig to appropriate config files. Changes since v9: * Added

[PATCH v11 11/13] arm: add Cubieboard7 board support

2020-04-19 Thread Amit Singh Tomar
The Cubieboard is a single board computer containing a Actions S700 SoC(with 4 ARMv8 Cortex-A53 cores). This patch adds respective defconfig alongwith .dts(copied from Linux v5.5-rc6 with hash "b3a987b0264d"). Signed-off-by: Amit Singh Tomar --- Changes since v10: Brought back follow

[PATCH v11 06/13] clk: actions: Add common clock driver

2020-04-19 Thread Amit Singh Tomar
This patch converts S900 clock driver to something common that can be used for other SoCs, for instance S700(few of clk registers are same). Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v10: * No change. Changes since v9: * Checked the relevant

[PATCH v11 08/13] arm: dts: actions: s700: add u-boot specific dtsi file

2020-04-19 Thread Amit Singh Tomar
Devices like uart and clk are needed to be enabled before relocation. this patch adds u-boot.dtsi file that mark these device as dm-pre-reloc. Reviewed-by: Manivannan Sadhasivam Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v10: * No change. Changes

[PATCH v11 05/13] arm: dts: actions: s900: add u-boot specific dtsi file

2020-04-19 Thread Amit Singh Tomar
Devices like uart and clk are needed to be enabled before relocation. This patch adds u-boot.dtsi file that mark these device as dm-pre-reloc. Reviewed-by: Manivannan Sadhasivam Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v10: * No change. Changes

[PATCH v11 09/13] arm: add support Actions Semi S700

2020-04-19 Thread Amit Singh Tomar
This patch adds basic support for Actions Semi based S700 SoC, which is driven by common owl framework. Reviewed-by: Manivannan Sadhasivam Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v10: * No change. Changes since v9: * Added Reviewed-by tag

[PATCH v11 04/13] arm: dts: sync dts for Action Semi S900

2020-04-19 Thread Amit Singh Tomar
iewed-by: Manivannan Sadhasivam Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v10: * No change. Changes since v9: * Added Reviewed-by tag from Mani. * Pulled in changes(that enables bubblegum DT build based on CONFIG_MACH_S900) from

[PATCH v11 01/13] arm: actions: Add common framework for Actions Owl Semi SoCs

2020-04-19 Thread Amit Singh Tomar
This commit adds common arch support for Actions Semi Owl series SoCs and removes the Bubblegum96 board files. Reviewed-by: Manivannan Sadhasivam Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v10: * No change. Changes since v9: * Added Reviewed

[PATCH v11 03/13] serial: actions: add compatible string

2020-04-19 Thread Amit Singh Tomar
This patch adds "actions,owl-uart" string to the owl uart driver. It is also defined in Linux kernel. Reviewed-by: Manivannan Sadhasivam Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v10: * No change. Changes since v9: * Added Revie

[PATCH v11 02/13] arm: actions: rename sysmap-s900 to sysmap-owl

2020-04-19 Thread Amit Singh Tomar
Now that memory maps(for both S700 and S900 SoCs) can be managed using a common file, rename sysmap-s900 to sysmap-owl to reflect the same. Reviewed-by: Manivannan Sadhasivam Signed-off-by: Amit Singh Tomar --- Changes since v10: * No change. Changes since v9: * No changes

[PATCH v11 00/13] Actions S700 SoC support

2020-04-19 Thread Amit Singh Tomar
ww.actions-semi.com/en/productview.aspx?id=225 [3]: http://u-boot.10912.n7.nabble.com/PATCH-v6-00-12-Actions-S700-SoC-support-td403562.html#a403567 [4]: http://u-boot.10912.n7.nabble.com/PATCH-v5-00-11-Actions-S700-SoC-support-td402752.html#a402762 [5]: https://paste.ubuntu.com/p/4nhCWryRNR/ Amit S

Re: [PATCH v9 00/12] Actions S700 SoC support

2020-04-06 Thread Amit Tomer
if it gets merge in next cycle. > Andre, thanks to you too for helping with the reviews. Much appreciated! Yeah, Thanks for Andre for detailed review and guiding me along the way. Thanks -Amit

[PATCH v10 11/12] arm: add Cubieboard7 board support

2020-04-06 Thread Amit Singh Tomar
The Cubieboard is a single board computer containing a Actions S700 SoC(with 4 ARMv8 Cortex-A53 cores). This patch adds respective defconfig alongwith .dts(copied from Linux v5.5-rc6 with hash "b3a987b0264d"). Reviewed-by: Manivannan Sadhasivam Reviewed-by: Andre Przywara Signed-of

[PATCH v10 12/12] doc: boards: add Cubieboard7 documentation

2020-04-06 Thread Amit Singh Tomar
This adds build and flash steps for Actions S700 based Cubieboard7 board. Signed-off-by: Amit Singh Tomar --- Changes since v9: * Updated the heading to CUBIEBOARD7 to ACTIONS. * Added shorthand for mkimage command. Changes since v8: * No changes. Changes since v7

[PATCH v10 06/12] clk: actions: Add common clock driver

2020-04-06 Thread Amit Singh Tomar
This patch converts S900 clock driver to something common that can be used for other SoCs, for instance S700(few of clk registers are same). Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v9: * Checked the relevant SoC model. Changes since v8

[PATCH v10 09/12] arm: add support Actions Semi S700

2020-04-06 Thread Amit Singh Tomar
This patch adds basic support for Actions Semi based S700 SoC, which is driven by common owl framework. Reviewed-by: Manivannan Sadhasivam Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v9: * Added Reviewed-by tag from Mani. Changes since v8

[PATCH v10 07/12] arm: actions: add S700 SoC device tree

2020-04-06 Thread Amit Singh Tomar
Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v9: * Moved changes(that enables bubblegum-96 DT build) to patch 04/12. Changes since v8: * No changes. Changes since v7: * No changes. Changes since v6: * No changes. Change

[PATCH v10 08/12] arm: dts: actions: s700: add u-boot specific dtsi file

2020-04-06 Thread Amit Singh Tomar
Devices like uart and clk are needed to be enabled before relocation. this patch adds u-boot.dtsi file that mark these device as dm-pre-reloc. Reviewed-by: Manivannan Sadhasivam Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v9: * Added Reviewed-by tag

[PATCH v10 10/12] actions: Move defconfig options to Kconfig

2020-04-06 Thread Amit Singh Tomar
This patch moves some of the config options from bubblegum_96_defconfig to platform specific Kconfig file. Reviewed-by: Manivannan Sadhasivam Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v9: * Added Reviewed-by tag from Mani. Changes since v8

[PATCH v10 05/12] arm: dts: actions: s900: add u-boot specific dtsi file

2020-04-06 Thread Amit Singh Tomar
Devices like uart and clk are needed to be enabled before relocation. This patch adds u-boot.dtsi file that mark these device as dm-pre-reloc. Reviewed-by: Manivannan Sadhasivam Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v9: * Added Reviewed-by tag

[PATCH v10 02/12] arm: actions: rename sysmap-s900 to sysmap-owl

2020-04-06 Thread Amit Singh Tomar
Now that memory maps(for both S700 and S900 SoCs) can be managed using a common file, rename sysmap-s900 to sysmap-owl to reflect the same. Reviewed-by: Manivannan Sadhasivam Signed-off-by: Amit Singh Tomar --- Changes since v9: * No changes. Changes since v8: * No changes

[PATCH v10 03/12] serial: actions: add compatible string

2020-04-06 Thread Amit Singh Tomar
This patch adds "actions,owl-uart" string to the owl uart driver. It is also defined in Linux kernel. Reviewed-by: Manivannan Sadhasivam Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v9: * Added Reviewed-by tag from Mani. Changes since v8:

[PATCH v10 04/12] arm: dts: sync dts for Action Semi S900

2020-04-06 Thread Amit Singh Tomar
iewed-by: Manivannan Sadhasivam Reviewed-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v9: * Added Reviewed-by tag from Mani. * Pulled in changes(that enables bubblegum DT build based on CONFIG_MACH_S900) from patch 07/12. Changes since v8: *

  1   2   3   4   5   6   >