The commit [1] also removed the code with driver model support, I
preferred to start from a revert and apply the necessary changes in a
second commit, rather than restore the removed modules.
[1] 82f7b869f5d7a ("video: Drop CONFIG_AM335X_LCD")
Dario Binacchi (2):
Revert &q
iy
Signed-off-by: Dario Binacchi
---
Changes in v4:
- Use the first version of the patch and fix the check of value returned
by the mtd_erase().
- Change the commit author.
Changes in v3:
- Simplify the code. mtd_erase() can't return a bad block error. Print
the messaged where the bad
Hi Simon,
On Wed, Oct 26, 2022 at 1:35 AM Simon Glass wrote:
>
> Hi,
>
> On Mon, 24 Oct 2022 at 03:35, Dario Binacchi
> wrote:
> >
> > From: Mikhail Kshevetskiy
> >
> > As reported by patch [1], the `mtd erase' command should not erase bad
> >
Hi Mikhail,
On Wed, Oct 26, 2022 at 2:56 PM Mikhail Kshevetskiy
wrote:
>
> On 26.10.2022 09:29, Dario Binacchi wrote:
>
> > [External email]
> >
> >
> >
> >
> >
> > Hi Mikhail,
> >
> > On Mon, Oct 24, 2022 at 1:24 PM Mikhail Ksheve
Hi Mikhail,
On Mon, Oct 24, 2022 at 1:24 PM Mikhail Kshevetskiy
wrote:
>
>
> On 24.10.2022 12:44, Dario Binacchi wrote:
> > [External email]
> >
> >
> >
> >
> >
> > From: Mikhail Kshevetskiy
> >
> > As reported by patch [1], the `m
er to make further upgrades easier.
[1]
https://lore.kernel.org/all/20221006031501.110290-2-mikhail.kshevets...@iopsys.eu/
Suggested-by: Michael Trimarchi
Co-developed-by: Michael Trimarchi
Signed-off-by: Michael Trimarchi
Co-developed-by: Dario Binacchi
Signed-off-by: Dario Binacchi
Tested-b
er to make further upgrades easier.
[1]
https://lore.kernel.org/all/20221006031501.110290-2-mikhail.kshevets...@iopsys.eu/
Suggested-by: Michael Trimarchi
Co-developed-by: Michael Trimarchi
Signed-off-by: Michael Trimarchi
Co-developed-by: Dario Binacchi
Signed-off-by: Dario Binacchi
Tested-b
hecks to do_mtd_erase() function in
> the case
> > >> srub flag is not provided. We can't simplify code by eliminating -EIO
> result
> > >> check of mtd_erase() as it will terminate erasing with
> CMD_RET_SUCCESS.
> > >>
> > >> Thanks to Dario Bin
asier.
[1]
https://lore.kernel.org/all/20221006031501.110290-2-mikhail.kshevets...@iopsys.eu/
Signed-off-by: Dario Binacchi
Suggested-by: Michael Trimarchi
Co-developed-by: Michael Trimarchi
Signed-off-by: Michael Trimarchi
Cc: Mikhail Kshevetskiy
---
cmd/mtd.c | 28 -
sing stub when CONFIG_CLK is deactivated
----
Dario Binacchi (3):
dm: clk: add missing stub when CONFIG_CLK is deactivated
mtd: mxs_nand: don't get the gpmi_apbh_dma clock
mtd: mxs_nand: get the clock with the right name
Fabio Est
Hi Michael,
On Wed, Sep 28, 2022 at 10:45 AM Dario Binacchi <
dario.binac...@amarulasolutions.com> wrote:
> From: Michael Trimarchi
>
> Add support for imx8mn architecture in order to run the NAND
> in fast edo mode.
>
> Signed-off-by: Michael Trimarchi
> Si
> +#if !CONFIG_IS_ENABLED(SYS_NAND_SELF_INIT)
> static struct nand_chip nand_chip[CONFIG_SYS_MAX_NAND_DEVICE];
> static ulong base_address[CONFIG_SYS_MAX_NAND_DEVICE] =
> CONFIG_SYS_NAND_BASE_LIST;
> #endif
> --
> 2.17.1
>
> Applied to nand-next, thanks!
Dario
--
*Da
From: Michael Trimarchi
Add support for imx8mn architecture in order to run the NAND
in fast edo mode.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
drivers/mtd/nand/raw/mxs_nand.c| 200 +
drivers/mtd/nand/raw/mxs_nand_dt.c | 66
Rename the gpmi_apb_bch clock name to gpmi_bch_apb, as you can find in
the device tree.
Fixes: commit a59691280daca ("MXS_NAND: Add clock support for iMX8")
Signed-off-by: Dario Binacchi
---
drivers/mtd/nand/raw/mxs_nand_dt.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletion
This clock name is not present in any U-boot and Linux kernel device
tree.
Fixes: commit a59691280daca ("MXS_NAND: Add clock support for iMX8")
Signed-off-by: Dario Binacchi
---
drivers/mtd/nand/raw/mxs_nand_dt.c | 13 -
1 file changed, 13 deletions(-)
diff --git a/d
From: Michael Trimarchi
It is used as delay for gpmi write strobe.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
arch/arm/include/asm/mach-imx/regs-gpmi.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/arch/arm/include/asm/mach-imx/regs-gpmi.h
b/arch/arm
From: Michael Trimarchi
Add shared counter in order to avoid to swich off clock that
are already used.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
drivers/clk/imx/clk-gate2.c | 15 ++-
drivers/clk/imx/clk.h | 27 +++
2 files
From: Michael Trimarchi
Add gpmi nand clock. Those clock can be used in mxs nand driver
to run nand to EDO mode 5, 4, ...
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
drivers/clk/imx/clk-imx8mn.c | 14 ++
1 file changed, 14 insertions(+)
diff --git a
Add missing stub for functions [devm_]clk_...() when CONFIG_CLK is
deactivated.
Signed-off-by: Dario Binacchi
---
include/clk.h | 32 +++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/include/clk.h b/include/clk.h
index 76bb64bb5ee0..407513e0fa29
Debugging and testing the series made it necessary to add some
patches to fix correct clock access and compilation issues raised
by buildman.
Dario Binacchi (3):
dm: clk: add missing stub when CONFIG_CLK is deactivated
mtd: mxs_nand: don't get the gpmi_apbh_dma clock
mtd: mxs_nand
printf(" ecc strength %8d bits\n", mtd->ecc_strength);
> + printf(" ecc step size %8d b\n", mtd->ecc_step_size);
> + printf(" subpagesize %8d b\n", chip->subpagesize);
> + printf(" options 0x%08x\n"
ize == 512 && page_size == 4096)
> {
> - info->ecc_bch = 1;
> - info->nfullchunks = 4;
> - info->ntotalchunks = 5;
> - info->chunk_size = 1024;
> - info->spare_size = 0;
> - info->last_
at91bootstrap@0 {
> >>>> + label = "at91bootstrap";
> >>>> + reg = <0x0 0x4>;
> >>>> + };
> >>>> +
> >>>> + u
The indentation went far on the right due to an extra tab for
each pinctrl sub-nodes.
Signed-off-by: Dario Binacchi
---
arch/arm/dts/sam9x60ek.dts | 36 ++--
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/arch/arm/dts/sam9x60ek.dts b/arch/arm
Replace 'disto' with 'distro' since they are all functions about distro
booting.
Signed-off-by: Dario Binacchi
---
boot/bootmeth_distro.c | 6 +++---
boot/bootmeth_pxe.c | 6 +++---
doc/develop/bootstd.rst | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-
return fsl_elbc_chip_init(0, dev_read_addr_ptr(dev), dev);
> }
>
> static const struct udevice_id fsl_elbc_nand_dt_ids[] = {
> --
> 2.20.1
>
Reviewed-by: Dario Binacchi
Thanks and regards,
Dario
--
Dario Binacchi
Embedded Linux Developer
dario.binac...@amarulasolutions.com
From: Michael Trimarchi
Upstream linux commit 3b5206f4be9b65.
Move Macronix specific initialization logic into nand_macronix.c. This
is part of the "separate vendor specific code from core" cleanup
process.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
(no cha
From: Michael Trimarchi
Upstream linux commit 229204da53b31d.
Move AMD/Spansion specific initialization/detection logic into
nand_amd.c. This is part of the "separate vendor specific code from
core" cleanup process.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
From: Michael Trimarchi
Upstream linux commit 10d4e75c36f6c1.
Move Micron specific initialization logic into nand_micron.c. This is
part of the "separate vendor specific code from core" cleanup process.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
(no change
From: Michael Trimarchi
Upstream linux commit 9b2d61f80b060c.
Move Toshiba specific initialization and detection logic into
nand_toshiba.c. This is part of the "separate vendor specific code from
core" cleanup process.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
chael Trimarchi
Signed-off-by: Dario Binacchi
---
(no changes since v3)
Changes in v3:
- Use commit sha1 with 13 digits.
- Wrap commit description to a maximum of 75 chars.
Changes in v2:
- Use short-commit form.
- Remove linux info. Uboot seems that backport without add this
extra inform
: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
(no changes since v3)
Changes in v3:
- Use commit sha1 with 13 digits.
Changes in v2:
- Use short-commit form
- Remove linux info. Uboot seems that backport without add this
extra information.
drivers/mtd/nand/raw/nand_toshiba.c | 26
From: Michael Trimarchi
Upstream linux commit 01389b6bd2f4f7.
Move Hynix specific initialization and detection logic into
nand_hynix.c. This is part of the "separate vendor specific code from
core" cleanup process.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
From: Michael Trimarchi
Upstream linux commit c51d0ac59f2420.
Move Samsung specific initialization and detection logic into
nand_samsung.c. This is part of the "separate vendor specific code from
core" cleanup process.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
From: Michael Trimarchi
Upstream linux commit 7f501f0a72036d.
Store the NAND ID in struct nand_chip to avoid passing id_data and id_len
as function parameters.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
(no changes since v3)
Changes in v3:
- Use commit sha1 with 13
From: Michael Trimarchi
In preparation of moving specific nand support that are not jedec
or onfi
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
(no changes since v1)
drivers/mtd/nand/raw/nand_base.c | 3 ++-
include/linux/mtd/rawnand.h | 3 +++
2 files changed, 5
t argument is of
type 'struct nand_chip *'
+ 33 |int *maf_id, int *dev_id,
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
Changes in v4:
- Add the patch to the series.
drivers/mtd/nand/raw/mt7621_nand.c | 2 +-
1 file
From: Michael Trimarchi
chip points to mtd. Passing chip is enough to have a reference
to mtd when is necessary
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
(no changes since v3)
Changes in v3:
- Fix code style warnings raised by patman.
drivers/mtd/nand/raw
step will allow us to get
rid of full-id entries in the nand_ids table or all the vendor specific
cases added over the time in the generic NAND ID decoding logic.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
(no changes since v3)
Changes in v3:
- Use commit sha1 with 13
let detection code directly set the NAND_BUSWIDTH_16 flag in
chip->options if needed.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
(no changes since v3)
Changes in v3:
- Use commit sha1 with 13 digits.
Changes in v2:
- Use short-commit form.
- Remove linux info. Uboot
In preparation of re-sync of mtd stack, we opt to move the current stack
slowly in order to have a more easy sync and test. We would like to
prepare uboot to support no-jedec and no-onfi compliant nand so we need
to clean up a bit the code we have now and upstream some of the support.
In this serie
chael Trimarchi
Signed-off-by: Dario Binacchi
---
Changes in v3:
- Use commit sha1 with 13 digits.
- Wrap commit description to a maximum of 75 chars.
Changes in v2:
- Use short-commit form.
- Remove linux info. Uboot seems that backport without add this
extra information.
drivers/mtd/nan
: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
Changes in v3:
- Use commit sha1 with 13 digits.
Changes in v2:
- Use short-commit form
- Remove linux info. Uboot seems that backport without add this
extra information.
drivers/mtd/nand/raw/nand_toshiba.c | 26 ++
1
From: Michael Trimarchi
Upstream linux commit 3b5206f4be9b65.
Move Macronix specific initialization logic into nand_macronix.c. This
is part of the "separate vendor specific code from core" cleanup
process.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
Cha
From: Michael Trimarchi
Upstream linux commit 229204da53b31d.
Move AMD/Spansion specific initialization/detection logic into
nand_amd.c. This is part of the "separate vendor specific code from
core" cleanup process.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
--
From: Michael Trimarchi
Upstream linux commit 10d4e75c36f6c1.
Move Micron specific initialization logic into nand_micron.c. This is
part of the "separate vendor specific code from core" cleanup process.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
Changes in
From: Michael Trimarchi
Upstream linux commit 9b2d61f80b060c.
Move Toshiba specific initialization and detection logic into
nand_toshiba.c. This is part of the "separate vendor specific code from
core" cleanup process.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dari
From: Michael Trimarchi
Upstream linux commit c51d0ac59f2420.
Move Samsung specific initialization and detection logic into
nand_samsung.c. This is part of the "separate vendor specific code from
core" cleanup process.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dari
From: Michael Trimarchi
Upstream linux commit 01389b6bd2f4f7.
Move Hynix specific initialization and detection logic into
nand_hynix.c. This is part of the "separate vendor specific code from
core" cleanup process.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
--
From: Michael Trimarchi
In preparation of moving specific nand support that are not jedec
or onfi
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
(no changes since v1)
drivers/mtd/nand/raw/nand_base.c | 3 ++-
include/linux/mtd/rawnand.h | 3 +++
2 files changed, 5
From: Michael Trimarchi
chip points to mtd. Passing chip is enough to have a reference
to mtd when is necessary
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
Changes in v3:
- Fix code style warnings raised by patman.
drivers/mtd/nand/raw/nand_base.c | 25
From: Michael Trimarchi
Upstream linux commit 7f501f0a72036d.
Store the NAND ID in struct nand_chip to avoid passing id_data and id_len
as function parameters.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
Changes in v3:
- Use commit sha1 with 13 digits.
- Fix code
step will allow us to get
rid of full-id entries in the nand_ids table or all the vendor specific
cases added over the time in the generic NAND ID decoding logic.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
Changes in v3:
- Use commit sha1 with 13 digits.
- Fix code style
let detection code directly set the NAND_BUSWIDTH_16 flag in
chip->options if needed.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
Changes in v3:
- Use commit sha1 with 13 digits.
Changes in v2:
- Use short-commit form.
- Remove linux info. Uboot seems that backport witho
In preparation of re-sync of mtd stack, we opt to move the current stack
slowly in order to have a more easy sync and test. We would like to
prepare uboot to support no-jedec and no-onfi compliant nand so we need
to clean up a bit the code we have now and upstream some of the support.
In this serie
let detection code directly set the NAND_BUSWIDTH_16 flag in
chip->options if needed.
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
Changes in v3:
- Use commit sha1 with 13 digits.
Changes in v2:
- Use short-commit form.
- Remove linux info. Uboot seems that backport witho
Passing the mtdparts environment variable to the Linux kernel is
required to properly mount the UBI rootfs.
Co-developed-by: Michael Trimarchi
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
include/configs/imx8mn_bsh_smm_s2.h | 1 +
1 file changed, 1 insertion(+)
diff
The Linux kernel device tree already specifies the device to be used for
boot console output with a stdout-path property under /chosen.
Co-developed-by: Michael Trimarchi
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
include/configs/imx8mn_bsh_smm_s2.h | 2 +-
1 file
imx8mn_bsh_smm_s2 uses ubifs rootfs, UBI commands are required to flash
it.
Co-developed-by: Michael Trimarchi
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
configs/imx8mn_bsh_smm_s2_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs
It allows to boot from NAND.
Co-developed-by: Michael Trimarchi
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
configs/imx8mn_bsh_smm_s2_defconfig | 5 +
1 file changed, 5 insertions(+)
diff --git a/configs/imx8mn_bsh_smm_s2_defconfig
b/configs
The series contains all the patches required by the BSH smm s2 board for
booting from NAND and properly mounting the UBI rootfs.
Dario Binacchi (4):
configs: imx8mn_bsh_smm_s2: add NAND driver
configs: imx8mn_bsh_smm_s2: add UBI commands
configs: imx8mn_bsh_smm_s2: remove console from
Passing the mtdparts environment variable to the Linux kernel is
required to properly mount the UBI rootfs.
Co-developed-by: Michael Trimarchi
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
include/configs/imx8mn_bsh_smm_s2.h | 1 +
1 file changed, 1 insertion(+)
diff
It allows to boot from NAND.
Co-developed-by: Michael Trimarchi
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
configs/imx8mn_bsh_smm_s2_defconfig | 5 +
1 file changed, 5 insertions(+)
diff --git a/configs/imx8mn_bsh_smm_s2_defconfig
b/configs
The Linux kernel device tree already specifies the device to be used for
boot console output with a stdout-path property under /chosen.
Co-developed-by: Michael Trimarchi
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
include/configs/imx8mn_bsh_smm_s2.h | 2 +-
1 file
imx8mn_bsh_smm_s2 uses ubifs rootfs, UBI commands are required to flash
it.
Co-developed-by: Michael Trimarchi
Signed-off-by: Michael Trimarchi
Signed-off-by: Dario Binacchi
---
configs/imx8mn_bsh_smm_s2_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs
The series contains all the patches required by the BSH smm s2 board for
booting from NAND and properly mounting the UBI rootfs.
Dario Binacchi (4):
configs: imx8mn_bsh_smm_s2: add NAND driver
configs: imx8mn_bsh_smm_s2: add UBI commands
configs: imx8mn_bsh_smm_s2: remove console from
Hi Sean,
> Il 01/04/2022 23:43 Michael Nazzareno Trimarchi
> ha scritto:
>
>
> Hi Sean
>
> On Fri, Apr 1, 2022 at 8:53 PM Sean Anderson wrote:
> >
> >
> >
> > On 4/1/22 2:46 PM, Sean Anderson wrote:
> > > Hi all,
> > >
> > > I don't understand how spl_nand_fit_read is supposed to work. This
_VBGADJ setting")
patch caused a 7/8 degree variation in the temperature provided by the
TEMPMON module on devices in the field. The patch you are reverting
tried to make backward compatible the update of REFTOP_VBGADJ
from fuse. Your patch, re-introduces non-backward compatibility.
Thanks and reg
Commit 97c16dc8bf098 ("imx: mx6ull: update the REFTOP_VBGADJ setting")
made this macro unused. Then remove it.
Signed-off-by: Dario Binacchi
---
arch/arm/include/asm/arch-mx6/crm_regs.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/include/asm/arch-mx6/crm_regs.h
)
Signed-off-by: Dario Binacchi
---
arch/arm/mach-imx/mx6/soc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c
index aacfc854a2f8..099cb5b12d77 100644
--- a/arch/arm/mach-imx/mx6/soc.c
+++ b/arch/arm/mach-imx/mx6/s
Commit 97c16dc8bf098 ("imx: mx6ull: update the REFTOP_VBGADJ setting")
made this macro unused. Then remove it.
Signed-off-by: Dario Binacchi
---
arch/arm/include/asm/arch-mx6/crm_regs.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/include/asm/arch-mx6/crm_regs.h
)
Signed-off-by: Dario Binacchi
---
arch/arm/mach-imx/mx6/soc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c
index aacfc854a2f8..099cb5b12d77 100644
--- a/arch/arm/mach-imx/mx6/soc.c
+++ b/arch/arm/mach-imx/mx6/s
Hi Guillaume,
> Il 22/10/2021 14:34 Guillaume GARDET ha scritto:
>
>
> Hi Dario,
>
> ----- Dario Binacchi a écrit :
> > Hi Guillaume,
> >
> > > Il 21/10/2021 16:47 Guillaume GARDET ha
> > > scritto:
> > >
> > >
> &
Hi Guillaume,
> Il 21/10/2021 16:47 Guillaume GARDET ha scritto:
>
>
> Hi,
>
> Commit 76c2ff3e [0] broke backlight on Chromebook snow.
> A revert on top of 2021.10 restores the backlight.
> Not sure why it breaks on Chromebook snow yet. Dario, any idea how to fix
> this?
Is it possible that
SSC.
Link: https://lore.kernel.org/r/20210606202253.31649-6-dario...@libero.it
Signed-off-by: Dario Binacchi
---
arch/arm/include/asm/arch-am33xx/clock.h | 12 +++
drivers/clk/ti/clk-am3-dpll.c| 131 ++-
2 files changed, 140 insertions(+), 3 deletions(-)
diff --git
PRCM_CM_CLKMODE_DPLL_XXX registers are mapped for all PLLs (CORE,
MPU, DDR, PER, DISP, EXTDEV).
Link: https://lore.kernel.org/r/20210606202253.31649-5-dario...@libero.it
Signed-off-by: Dario Binacchi
---
arch/arm/dts/am43xx-clocks.dtsi | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a
are mapped for all PLLs (CORE, MPU, DDR,
PER, DISP).
Link: https://lore.kernel.org/r/20210606202253.31649-4-dario...@libero.it
Signed-off-by: Dario Binacchi
---
arch/arm/dts/am33xx-clocks.dtsi | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/arm/dts/am33xx
d spread spectrum support")
Dario Binacchi (3):
ARM: dts: am33xx-clocks: add spread spectrum support
ARM: dts: am43xx-clocks: add spread spectrum support
clk: ti: add am33xx/am43xx spread spectrum clock support
arch/arm/dts/am33xx-clocks.dtsi | 10 +-
arch/arm/dts/am4
index 82e5eb3b43..21e5234477 100644
--- a/drivers/rtc/davinci.c
+++ b/drivers/rtc/davinci.c
@@ -2,127 +2,433 @@
/*
* (C) Copyright 2011 DENX Software Engineering GmbH
* Heiko Schocher
+ * Copyright (C) 2021 Dario Binacchi
*/
#include
#include
+#include
+#include
#include
#in
On reset, the RTC loads the 2000-01-01 date with a wrong day of the
week (Sunday instead of Saturday).
Signed-off-by: Dario Binacchi
---
(no changes since v1)
drivers/rtc/davinci.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/rtc/davinci.c b/drivers/rtc/davinci.c
To write correct data to the TC registers, the STATUS register must be
read until the BUSY bit is equal to zero. Once the BUSY flag is zero,
there is a 15 μs access period in which the TC registers can be
programmed.
The rtc_wait_not_busy() has been inspired by the Kernel.
Signed-off-by: Dario
The RTC module contains a kicker mechanism to prevent any spurious
writes from changing the register values. To set the time, you must
first unlock the TC registers, update them and then lock.
Signed-off-by: Dario Binacchi
---
(no changes since v1)
drivers/rtc/davinci.c | 14 ++
1
Use 32-bit access only where it is needed. Most of the RTC registers
contain useful information in the 8 least significant bits, the others
are reserved.
Signed-off-by: Dario Binacchi
---
(no changes since v1)
drivers/rtc/davinci.c | 32
1 file changed, 16
There have been some changes to the am335x- DTs related to the
rtc node, so let's re-syncs them with Linux.
Signed-off-by: Dario Binacchi
---
(no changes since v1)
arch/arm/dts/am335x-bone-common.dtsi| 5 +
arch/arm/dts/am335x-evm.dts | 5 +
arch/arm/dts/a
The series adds driver model support for omap RTC plus some fixes.
Changes in v2:
- Separated from Kconfig patch
- Use consistent naming (omap_rtc_.
- Remove non-DM support. It's no more used.
Dario Binacchi (8):
rtc: davinci: enable compilation for omap architectures
rtc: davinci
The Davinci's onchip RTC is also present on TI OMAP1, AM33XX, AM43XX and
DRA7XX SOCs. So, let's enable compilation for these architectures too.
Signed-off-by: Dario Binacchi
---
(no changes since v1)
drivers/rtc/Kconfig | 7 +++
1 file changed, 7 insertions(+)
diff --git a/d
Fix errors raised by module compilation.
Signed-off-by: Dario Binacchi
---
Changes in v2:
- Separated from Kconfig patch
drivers/rtc/davinci.c | 11 ---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/rtc/davinci.c b/drivers/rtc/davinci.c
index c446e7a735
Hi Lokesh,
> Il 27/05/2021 11:59 Lokesh Vutla ha scritto:
>
>
> On 07/05/21 9:45 am, Dario Binacchi wrote:
> > The Davinci's onchip RTC is also present on TI OMAP1, AM33XX, AM43XX and
> > DRA7XX SOCs. So, let's enable compilation for these architectures
Hi,
> Il 17/05/2021 22:15 Tom Rini ha scritto:
>
>
> On Fri, May 07, 2021 at 02:40:34PM +0530, Vignesh Raghavendra wrote:
>
> > If reg property of pinctrl-single node requires address translation then
> > probe fails with following message:
> >
> > single-pinctrl pinctrl@4301c000: failed to
Hi Pali,
> Il 07/05/2021 09:56 Pali Rohár ha scritto:
>
>
> On Friday 07 May 2021 06:15:02 Dario Binacchi wrote:
> > The Davinci's onchip RTC is also present on TI OMAP1, AM33XX, AM43XX and
> > DRA7XX SOCs. So, let's enable compilation for these archi
Update the driver to support the device tree and the driver model.
The read / write helpers in rtc_ops allow access to scratch registers
only. The offset parameter is added to the address of the scratch0
register.
Signed-off-by: Dario Binacchi
---
drivers/rtc/davinci.c | 373
There have been some changes to the am335x- DTs related to the
rtc node, so let's re-syncs them with Linux.
Signed-off-by: Dario Binacchi
---
arch/arm/dts/am335x-bone-common.dtsi| 5 +
arch/arm/dts/am335x-evm.dts | 5 +
arch/arm/dts/am335x-evmsk.dts
On reset, the RTC loads the 2000-01-01 date with a wrong day of the
week (Sunday instead of Saturday).
Signed-off-by: Dario Binacchi
---
drivers/rtc/davinci.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/rtc/davinci.c b/drivers/rtc/davinci.c
index b0a077cba7
The RTC module contains a kicker mechanism to prevent any spurious
writes from changing the register values. To set the time, you must
first unlock the TC registers, update them and then lock.
Signed-off-by: Dario Binacchi
---
drivers/rtc/davinci.c | 14 ++
1 file changed, 14
To write correct data to the TC registers, the STATUS register must be
read until the BUSY bit is equal to zero. Once the BUSY flag is zero,
there is a 15 μs access period in which the TC registers can be
programmed.
The rtc_wait_not_busy() has been inspired by the Kernel.
Signed-off-by: Dario
Use 32-bit access only where it is needed. Most of the RTC registers
contain useful information in the 8 least significant bits, the others
are reserved.
Signed-off-by: Dario Binacchi
---
drivers/rtc/davinci.c | 32
1 file changed, 16 insertions(+), 16
The Davinci's onchip RTC is also present on TI OMAP1, AM33XX, AM43XX and
DRA7XX SOCs. So, let's enable compilation for these architectures too.
Signed-off-by: Dario Binacchi
---
drivers/rtc/Kconfig | 7 +++
drivers/rtc/davinci.c | 11 ---
2 files changed, 15 insert
The series adds driver model support for omap RTC plus some fixes.
Dario Binacchi (7):
rtc: davinci: enable compilation for omap architectures
rtc: davinci: replace 32bit access with 8bit access
rtc: davinci: check BUSY bit before set TC registers
rtc: davinci: use unlock/lock
cells is derived from the physical
> > address width of that platform.
> >
> > So, what is that functions actually supposed to do?
>
> +Dario Binacchi +Mario Six
>
> I suspect the code has got ahead of the docs.
>
> d64b9cdcd47 fdt: translate address if #size-c
Hi Jan,
> Il 01/05/2021 14:29 Jan Kiszka ha scritto:
>
>
> On 11.04.21 09:39, Dario Binacchi wrote:
> > Use dev_read_addr_size to get size of the controller's register area.
> >
> > Signed-off-by: Dario Binacchi
> > Reviewed-by: Pratyush Yadav
201 - 300 of 735 matches
Mail list logo