[PATCH v3] gpio: aspeed: port Linux dt-bindings header file

2022-08-04 Thread Dhananjay Phadke
Makes it easier to add readable GPIO definitions in DTS files for Aspeed SOC based boards. Ported with small edits to add IBM copyright statement and fix for checkpatch warning. Signed-off-by: Dhananjay Phadke Reviewed-by: Billy Tsai Acked-by: Chia-Wei Wang --- include/dt-bindings/gpio

Re: [PATCH v2] gpio: aspeed: port Linux dt-bindings header file

2022-08-04 Thread Dhananjay Phadke
On 8/3/2022 7:35 PM, Joel Stanley wrote: On Thu, 4 Aug 2022 at 01:02, Dhananjay Phadke wrote: Ported as is, makes it easier to add readable GPIO definitions in DTS files. Signed-off-by: Dhananjay Phadke --- include/dt-bindings/gpio/aspeed-gpio.h | 49 ++ 1 file

[PATCH v2] gpio: aspeed: port Linux dt-bindings header file

2022-08-03 Thread Dhananjay Phadke
Ported as is, makes it easier to add readable GPIO definitions in DTS files. Signed-off-by: Dhananjay Phadke --- include/dt-bindings/gpio/aspeed-gpio.h | 49 ++ 1 file changed, 49 insertions(+) create mode 100644 include/dt-bindings/gpio/aspeed-gpio.h diff --git a

Re: [PATCH] gpio: aspeed: port Linux dt-bindings header file

2022-08-03 Thread Dhananjay Phadke
On 8/2/2022 10:34 PM, Billy Tsai wrote: Hello, On 2022/8/3, 10:10 AM, "Billy Tsai" wrote: Reviewed-by: Billy Tsai On 2022/8/3, 9:46 AM, "ChiaWei Wang" wrote: Acked-by: Chia-Wei Wang > > From: Dhananjay Phadke > > Sent

[PATCH] gpio: aspeed: port Linux dt-bindings header file

2022-08-02 Thread Dhananjay Phadke
Ported as is, makes it easier to add readable GPIO definitions in DTS files. Signed-off-by: Dhananjay Phadke --- include/dt-bindings/gpio/aspeed-gpio.h | 49 ++ 1 file changed, 49 insertions(+) create mode 100644 include/dt-bindings/gpio/aspeed-gpio.h diff --git a

Re: u-boot and IPv6

2022-07-19 Thread Dhananjay Phadke
On Wed, 13 Jul 2022, Chris Packham wrote: > On Tue, Jul 12, 2022 at 7:40 PM Chris Packham wrote: >> >> Hi Sean and Dhananjay, >> >> Adding U-Boot ML to the Cc >> [...] >> >> IPv6 support is definitely something I want to get landed in upstream U-Boot. >> >> It seemed to be fairly well receiv

Re: [PATCH] mtd: spi-nor-ids: Add support for W25Q512JV

2022-04-27 Thread Dhananjay Phadke
On 4/20/2022 8:18 AM, Jaap Crezee wrote: Hi Dhananjay, On 1/9/22 00:47, Dhananjay Phadke wrote: Will send v2 to use "w25q512jvm" name to be consistent with other DTR parts. Any follow-up on this? Hi Jaap, I didn't get hold of the system with that flash part to collect S

Re: [PATCH] lib/crypto: support sha384/sha512 in x509/pkcs7

2022-03-18 Thread Dhananjay Phadke
On 3/18/2022 12:44 AM, Ilias Apalodimas wrote: +cc Akashi-san who initially ported those. On Tue, 15 Mar 2022 at 19:19, Dhananjay Phadke wrote: Set digest_size SHA384 and SHA512 algorithms in pkcs7 and x509, (not set by ported linux code, but needed by __UBOOT__ part

[PATCH] lib/crypto: support sha384/sha512 in x509/pkcs7

2022-03-15 Thread Dhananjay Phadke
igned-off-by: Dhananjay Phadke --- lib/crypto/pkcs7_verify.c| 4 lib/crypto/x509_public_key.c | 4 2 files changed, 8 insertions(+) diff --git a/lib/crypto/pkcs7_verify.c b/lib/crypto/pkcs7_verify.c index 82c5c745d4..b832f01356 100644 --- a/lib/crypto/pkcs7_verify.c +++ b/lib/c

Re: [PATCH] image: Control FIT signature verification at runtime

2022-02-14 Thread Dhananjay Phadke
On 2/14/2022 3:13 PM, Patrick Williams wrote: On Mon, Feb 14, 2022 at 11:14:53AM -0800, Dhananjay Phadke wrote: On 2/13/2022 5:13 PM, Andrew Jeffery wrote: We can decouple HW RoT and runtime control on enforcing secure boot (requiring one or keys) on FIT image. Conflating two raises lot of

Re: [PATCH] image: Control FIT signature verification at runtime

2022-02-14 Thread Dhananjay Phadke
On 2/13/2022 5:13 PM, Andrew Jeffery wrote: Right, I think this question is an indication that I could write a more informative commit message, so if we converge on something acceptable I'll update it. Let me provide some more context: As mentioned above this is motivated by use with BMCs, speci

Re: [PATCH v3] drivers: spi-nor: Add JEDEC id for W25Q16JV

2022-01-20 Thread Dhananjay Phadke
On 1/20/2022 7:46 AM, tudor.amba...@microchip.com wrote: FWIW, "w25q15jvm" would be the "correct" name in linux. Although for this particular flash the name in linux is "w25q16jv-im/jm".. would you fix it? :D Anyhow, see [1] for a lengthy discussion on that name. That being said, I still don

Re: [PATCH v2] drivers: spi-nor: Add JEDEC id for W25Q16JV

2022-01-15 Thread Dhananjay Phadke
On 1/14/2022 6:04 AM, Angus Ainslie wrote:   }, +    { +    INFO("w25q16jv-im/jm", 0xef7015, 0, 64 * 1024,  32, +    SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | +    SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) +    }, Shouldn't this be w25q16jvm, which seems to be unoffic

Re: [PATCH 0/3] mkimage: allow to specify signing algorithm

2022-01-13 Thread Dhananjay Phadke
On 1/13/2022 4:38 AM, Jan Kiszka wrote: On 25.11.21 20:03, Jan Kiszka wrote: Another step to decouple the FIT image specification from the actual signing: With these changes, the signature nodes can leave out an algo property, mkimage will initialize that as well while signing. This way, in-tree

Re: [PATCH v2] drivers: spi-nor: Add JEDEC id for W25Q16JV

2022-01-13 Thread Dhananjay Phadke
On 1/13/2022 9:17 AM, Angus Ainslie wrote: Add a JEDEC id for the Winbond W25Q16JV 16M-BIT serial flash memory with DUAL/QUAD SPI Changes since v1: Updated the name for more suffixes Signed-off-by: Angus Ainslie --- drivers/mtd/spi/spi-nor-ids.c | 5 + 1 file changed, 5 insertions(+)

Re: [PATCH] mtd: spi-nor-ids: Add support for W25Q512JV

2022-01-08 Thread Dhananjay Phadke
On 1/8/2022 1:39 PM, Dhananjay Phadke wrote: Add support for Winbond W25Q512JV 64MB SPI NOR flash. https://www.digikey.com/en/product-highlight/w/winbond/w25q512jv-512-mb-serial-flash-memory Signed-off-by: Dhananjay Phadke --- drivers/mtd/spi/spi-nor-ids.c | 5 + 1 file changed, 5

[PATCH] mtd: spi-nor-ids: Add support for W25Q512JV

2022-01-08 Thread Dhananjay Phadke
Add support for Winbond W25Q512JV 64MB SPI NOR flash. https://www.digikey.com/en/product-highlight/w/winbond/w25q512jv-512-mb-serial-flash-memory Signed-off-by: Dhananjay Phadke --- drivers/mtd/spi/spi-nor-ids.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi/spi-nor

Re: two questions on verified boot

2021-11-21 Thread Dhananjay Phadke
On 11/21/2021 6:55 AM, Rasmus Villemoes wrote: > (2) Assuming for the moment that I would be happy with just using > required=image, am I right in that not only does that mean that the > combination of kernel/fdt/initramfs is not verified, merely the > individual parts, but more importantly (a mix'

Re: [PATCH next v7 04/12] crypto: aspeed: Add AST2600 HACE support

2021-10-20 Thread Dhananjay Phadke
On Wed, 20 Oct 2021, Chia-Wei Wang wrote: > +static const struct hash_ops aspeed_hace_ops = { > + .hash_init = aspeed_hace_init, > + .hash_update = aspeed_hace_update, > + .hash_finish = aspeed_hace_finish, > + .hash_digest_wd = aspeed_hace_digest_wd, > + .hash_digest = aspe

[PATCH] tpm: add TPM2_GetRandom command support

2020-06-04 Thread Dhananjay Phadke
Add support for TPM2 GetRandom command Signed-off-by: Dhananjay Phadke --- include/tpm-v2.h | 13 + lib/tpm-v2.c | 44 2 files changed, 57 insertions(+) diff --git a/include/tpm-v2.h b/include/tpm-v2.h index ae00803f6d..513697e9a1

[PATCH] qemu-arm: set CONFIG_SYS_BOOTM_LEN to SZ_64M

2020-01-15 Thread Dhananjay Phadke
FIT image contents can be larger than default bootm limit 8M with initrd. Raise limit to 64MB which is commonly used elsewhere. Signed-off-by: Dhananjay Phadke --- include/configs/qemu-arm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/qemu-arm.h b/include/configs/qemu

Re: Query: Error: Unable to find signature node in Verified boot

2019-12-17 Thread Dhananjay Phadke
Signature node must be in u-boot's FDT, written by mkimage -K ... On Tue, Dec 17, 2019 at 4:38 AM Priyanka Singh wrote: > Hi, > > I was trying to test the Verified boot feature on NXP's LX2160ARDB board > and I am facing the following issue during the same: > > 1. U-boot is unable to v