Re: [PATCH 2/2] usb: xhci: Load Raspberry Pi 4 VL805's firmware

2020-04-28 Thread Bin Meng
Hi Nicolas, On Wed, Apr 29, 2020 at 1:45 AM Nicolas Saenz Julienne wrote: > > When needed, RPi4's co-processor (called VideoCore) has to be instructed > to load VL805's firmware (the chip providing xHCI support). VideCore's > firmware expects the board's PCIe bus to be already configured in order

[PATCH v3 1/2] drivers: gpio: add broadcom iproc gpio driver support

2020-04-28 Thread Rayagonda Kokatanur
Add gpio driver support for Broadcom iproc-based socs. Signed-off-by: Rayagonda Kokatanur Signed-off-by: Sheetal Tigadoli --- drivers/gpio/Kconfig | 10 ++ drivers/gpio/Makefile | 1 + drivers/gpio/iproc_gpio.c | 258 ++ 3 files changed, 269 inser

[PATCH v3 2/2] gpio: do not include on TARGET_BCMNS3

2020-04-28 Thread Rayagonda Kokatanur
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include for arch bcmns3. Signed-off-by: Rayagonda Kokatanur --- arch/arm/include/asm/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/

[PATCH v3 0/2] add brcm iproc gpio driver

2020-04-28 Thread Rayagonda Kokatanur
Add support for broadcom iproc gpio driver. Changes from v2: -remove ununsed variable "node" in iproc_get_gpio_pctrl_mapping() func to fix compilation warning. Changes from v1: -Address review comments from Simon Glass, Use dev_read_...() instead of fdtdec_...(). Rayagonda Kokatanur (2):

Re: [PATCH] video: cfb_console: Fix 64 bits support problem

2020-04-28 Thread Anatolij Gustschin
Hi Peng, On Wed, 29 Apr 2020 11:45:14 +0800 Peng Fan peng@nxp.com wrote: > From: Ye Li > > There are some integer to pointer convert. To support 64 bits system, > change the unsigned int to unsigned long. cfb_console is obsolete and shouldn't be used. Why are you not using DM_VIDEO based d

[PATCH v2 1/2] drivers: gpio: add broadcom iproc gpio driver support

2020-04-28 Thread Rayagonda Kokatanur
Add gpio driver support for Broadcom iproc-based socs. Signed-off-by: Rayagonda Kokatanur Signed-off-by: Sheetal Tigadoli --- drivers/gpio/Kconfig | 10 ++ drivers/gpio/Makefile | 1 + drivers/gpio/iproc_gpio.c | 259 ++ 3 files changed, 270 inser

[PATCH v2 2/2] gpio: do not include on TARGET_BCMNS3

2020-04-28 Thread Rayagonda Kokatanur
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include for arch bcmns3. Signed-off-by: Rayagonda Kokatanur --- arch/arm/include/asm/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/

[PATCH v2 0/2] add brcm iproc gpio driver

2020-04-28 Thread Rayagonda Kokatanur
Add support for broadcom iproc gpio driver. Changes from v1: -Address review comments from Simon Glass, Use dev_read_...() instead of fdtdec_...(). Rayagonda Kokatanur (2): drivers: gpio: add broadcom iproc gpio driver support gpio: do not include on TARGET_BCMNS3 arch/arm/include/asm/g

Re: [PATCH v1 1/2] drivers: gpio: add broadcom iproc gpio driver support

2020-04-28 Thread Rayagonda Kokatanur
On Tue, Apr 28, 2020 at 11:27 PM Simon Glass wrote: > > Hi Rayagonda, > > On Tue, 28 Apr 2020 at 02:11, Rayagonda Kokatanur > wrote: > > > > Add gpio driver support for Broadcom iproc-based socs. > > > > Signed-off-by: Rayagonda Kokatanur > > Signed-off-by: Sheetal Tigadoli > > --- > > drivers

RE: [PATCH 7/8] x86: enable 64-bit kernel boot from 64-bit U-Boot

2020-04-28 Thread Park, Aiden
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Sunday, April 26, 2020 1:16 PM > To: Park, Aiden > Cc: Bin Meng ; U-Boot Mailing List b...@lists.denx.de> > Subject: Re: [PATCH 7/8] x86: enable 64-bit kernel boot from 64-bit U-Boot > > Hi Aiden, > > On Tue, 21 Apr 2020 at 18

Re: [PATCH 2/2] usb: xhci: Load Raspberry Pi 4 VL805's firmware

2020-04-28 Thread Marek Szyprowski
Hi Nicolas, On 28.04.2020 19:44, Nicolas Saenz Julienne wrote: > When needed, RPi4's co-processor (called VideoCore) has to be instructed > to load VL805's firmware (the chip providing xHCI support). VideCore's > firmware expects the board's PCIe bus to be already configured in order > for it to l

[PATCH v7 12/14] dt-bindings: phy-mtk-tphy: add properties of address mapping and clocks

2020-04-28 Thread Chunfeng Yun
1. add the address mapping related properties; 2. make "ref" clock optional, and add optional clock "da_ref"; 3. add the banks layout of TPHY V1 and V2; Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v7: no changes v6: add Reviewed-by Weijie v2~v5: no changes --- doc/device-tree-bind

[PATCH v7 10/14] xhci: mediatek: Add support for MTK xHCI host controller

2020-04-28 Thread Chunfeng Yun
This patch is used to support the on-chip xHCI controller on MediaTek SoCs, currently control/bulk/interrupt transfers are supported. Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v7: use new API of phy bulk v6: add Reviewed-by Weijie v5: 1. print error number suggested by Marek

[PATCH v7 07/14] phy: phy-mtk-tphy: add support USB phys

2020-04-28 Thread Chunfeng Yun
Support USB2 and USB3 PHY with shared banks when support multi-phys Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v7: no changes v6: add Reviewed-by Weijie v3~v5: no changes v2: get the count of phys by dev_get_child_count() --- drivers/phy/phy-mtk-tphy.c | 227

[PATCH v7 09/14] phy: phy-mtk-tphy: add a new reference clock

2020-04-28 Thread Chunfeng Yun
Usually the digital and analog phys use the same reference clock, but some platforms have two separate reference clocks for each of them, so add another optional clock to support them. In order to keep the clock names consistent with PHY IP's, change the da_ref for analog phy and ref clock for digi

[PATCH v7 13/14] dt-bindings: usb: mtk-xhci: Add binding for MediaTek xHCI host controller

2020-04-28 Thread Chunfeng Yun
Add dt-binding for MediaTek xHCI host controller Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v7: no changes v6: add Reviewed-by Weijie v2~v5: no changes --- .../usb/mediatek,mtk-xhci.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644

[PATCH v7 11/14] arm: dts: mt7629: add usb related nodes

2020-04-28 Thread Chunfeng Yun
Add usb, phy and clock nodes Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v7: no changes v6: add Reviewed-by Weijie v3~v5: no changes v2: 1. remove fixed clock clk20m --- arch/arm/dts/mt7629-rfb.dts | 8 arch/arm/dts/mt7629.dtsi| 41 ++

RE: [PATCH 6/8] x86: Fix 64-bit compile warning

2020-04-28 Thread Park, Aiden
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Sunday, April 26, 2020 12:46 PM > To: Park, Aiden > Cc: Bin Meng ; U-Boot Mailing List b...@lists.denx.de> > Subject: Re: [PATCH 6/8] x86: Fix 64-bit compile warning > > Hi Aiden, > > On Tue, 21 Apr 2020 at 18:45, wrote: > >

[PATCH v7 14/14] MAINTAINERS: MediaTek: add USB related files

2020-04-28 Thread Chunfeng Yun
Add dt-binding files of xhci-mtk and phys, C files of phys. Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v7: no changes v6: add Reviewed-by Weijie v5: new patch --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7ac7e21ba1..cbbe70

[PATCH v7 06/14] usb: dwc2_udc_otg: use the phy bulk API to get phys

2020-04-28 Thread Chunfeng Yun
Use the phy bulk API to get a group of phys Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v7: use new API of phy bulk v6: add Reviewed-by Weijie v5: no changes v4: new patch --- drivers/usb/gadget/dwc2_udc_otg.c | 93 ++- 1 file changed, 17 insertions(+)

[PATCH v7 04/14] test: dm: phy: add a test item for the phy_bulk API

2020-04-28 Thread Chunfeng Yun
Add a test item for the phy_bulk API Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao Reviewed-by: Simon Glass --- v7: test new API v6: add Reviewed-by Weijie & Simon v5: no changes v4: new patch --- arch/sandbox/dts/test.dts | 11 +++ test/dm/phy.c | 33 +

[PATCH v7 08/14] phy: phy-mtk-tphy: add support new version

2020-04-28 Thread Chunfeng Yun
The new version removes all shared banks between multi-phys Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v7: no changes v6: add Reviewed-by Weijie v2~v5: no changes --- drivers/phy/phy-mtk-tphy.c | 68 +++--- 1 file changed, 63 insertions(+), 5 delet

[PATCH v7 01/14] dm: core: Add function to get child count of ofnode or device

2020-04-28 Thread Chunfeng Yun
This patch add function used to get the child count of a ofnode or a device Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao Reviewed-by: Simon Glass --- v7: no changes v6: add Reviewed-by Weijie & Simon v4~v5: no changes v3: 1. add non/inline function dev_get_child_count() instead of

[PATCH v7 00/14] Add support for MediaTek xHCI host controller

2020-04-28 Thread Chunfeng Yun
The series of patches are used to support xHCI host controller on MediaTek SoCs which has a glue layer IPPC (IP Port Control), and add USB function on T-PHY including T-PHY V1 and V2; Finally add USB related nodes for MT7629 platform. The files of xhci-mtk.* and phy-mtk-tphy.* are ported from Linu

[PATCH v7 03/14] phy: Add API for a bulk of phys

2020-04-28 Thread Chunfeng Yun
This patch adds a "bulk" API to the phy API in order to get/init/exit/power on/off a group of phys associated with a device. The bulk API will avoid adding a copy of the same code to manage a group of phys in drivers. Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v7: provide bulk init

[PATCH v7 05/14] usb: dwc3: use the phy bulk API to get phys

2020-04-28 Thread Chunfeng Yun
Get a group of phys by the phy bulk API Signed-off-by: Chunfeng Yun Reviewed-by: Weijie Gao --- v7: use new API of phy bulk v6: add Reviewed-by Weijie v5: no changes v4: new patch --- drivers/usb/dwc3/core.c | 87 ++--- drivers/usb/dwc3/dwc3-generic.c | 7

[PATCH v7 02/14] test: dm: add test item for ofnode_get_child_count()

2020-04-28 Thread Chunfeng Yun
Add a test item for ofnode_get_child_count() Signed-off-by: Chunfeng Yun Reviewed-by: Simon Glass Reviewed-by: Weijie Gao --- v7: add @index for nodes with reg property suggested by Fabio v6: add Reviewed-by Weijie v4~v5: no changes v3: 1. squash dts patch into this one suggested by Simo

RE: [PATCH 5/8] configs: slimbootloader: Add x86_64 slimbootloader config

2020-04-28 Thread Park, Aiden
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Sunday, April 26, 2020 1:32 PM > To: Park, Aiden > Cc: Bin Meng ; U-Boot Mailing List b...@lists.denx.de> > Subject: Re: [PATCH 5/8] configs: slimbootloader: Add x86_64 slimbootloader > config > > Hi Aiden, > > On Tue, 21 Apr

RE: [PATCH 4/8] x86: slimbootloader: Support 64-bit operation

2020-04-28 Thread Park, Aiden
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Sunday, April 26, 2020 1:16 PM > To: Park, Aiden > Cc: Bin Meng ; U-Boot Mailing List b...@lists.denx.de> > Subject: Re: [PATCH 4/8] x86: slimbootloader: Support 64-bit operation > > Hi Aiden, > > On Tue, 21 Apr 2020 at 18:45,

RE: [PATCH 3/8] x86: start64: Support HOB in 64-bit U-Boot

2020-04-28 Thread Park, Aiden
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Sunday, April 26, 2020 1:16 PM > To: Park, Aiden > Cc: Bin Meng ; U-Boot Mailing List b...@lists.denx.de> > Subject: Re: [PATCH 3/8] x86: start64: Support HOB in 64-bit U-Boot > > Hi Aiden, > > On Tue, 21 Apr 2020 at 18:45, w

RE: [PATCH 2/8] x86: start64: Add a hook at 64-bit entry

2020-04-28 Thread Park, Aiden
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Sunday, April 26, 2020 1:16 PM > To: Park, Aiden > Cc: Bin Meng ; U-Boot Mailing List b...@lists.denx.de> > Subject: Re: [PATCH 2/8] x86: start64: Add a hook at 64-bit entry > > Hi Aiden, > > On Tue, 21 Apr 2020 at 18:45, wro

RE: [PATCH 1/8] x86: Add a new X86_RUN_64BIT_ONLY to Kconfig

2020-04-28 Thread Park, Aiden
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Sunday, April 26, 2020 1:16 PM > To: Park, Aiden > Cc: Bin Meng ; U-Boot Mailing List b...@lists.denx.de> > Subject: Re: [PATCH 1/8] x86: Add a new X86_RUN_64BIT_ONLY to Kconfig > > Hi Aiden, > > On Tue, 21 Apr 2020 at 18:45,

RE: [PATCH 0/8] Support 64-bit U-Boot for Slim Bootloader

2020-04-28 Thread Park, Aiden
Hi Simon, > -Original Message- > From: Simon Glass > Sent: Sunday, April 26, 2020 1:16 PM > To: Park, Aiden > Cc: Bin Meng ; U-Boot Mailing List b...@lists.denx.de> > Subject: Re: [PATCH 0/8] Support 64-bit U-Boot for Slim Bootloader > > Hi Aiden, > > On Tue, 21 Apr 2020 at 18:45, wr

[PATCH] powerpc/mpc85xx: Fix compiling error with DM_GPIO

2020-04-28 Thread Madalin Bucur
P4080DS compilation fails with DM_GPIO enabled: drivers/gpio/gpio-uclass.c:355:5: error: redefinition of 'gpio_request' int gpio_request(unsigned gpio, const char *label) ^~~~ In file included from ./arch/powerpc/include/asm/arch/gpio.h:17:0, from ./arch/powerpc/incl

[PATCH] drivers: net: e1000: with DM_ETH needs DM_PCI too

2020-04-28 Thread Madalin Bucur
Compilation error occur when DM_ETH is enabled without DM_PCI. Signed-off-by: Madalin Bucur --- drivers/net/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 4d1013c..4313d04 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -

Re: [PATCH v3 3/4] rtc: rk8xx: Add base support for the RK808 PMIC RTC

2020-04-28 Thread elaine.zhang
Hi Sunil, What scenarios need RTC? If it is to add hardware driver support, the function is still missing an alarm. Direct copy of the kernel is recommended. About 31 days for november month, I need to explain this hardware Bug: 1、There will be 31 in November after 2016, and there will be no

[PATCH] video: cfb_console: Fix 64 bits support problem

2020-04-28 Thread Peng Fan
From: Ye Li There are some integer to pointer convert. To support 64 bits system, change the unsigned int to unsigned long. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/video/cfb_console.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/vid

Pull request: u-boot-rockchip-20200429

2020-04-28 Thread Kever Yang
Hi Tom, Please pull the rockchip updates/fixes: - dts clean up to use -u-boot for px30, rk3399 boards - dts sycn from upstream kernel for rk3328, rk3399 - add rockchip rng driver - new board support: rk3328-roc-cc, rk3399-roc-pc - add signature support for spl fit image Travis: https://travis-ci.

Re: [PATCH v3 3/4] rtc: rk8xx: Add base support for the RK808 PMIC RTC

2020-04-28 Thread Kever Yang
+Elaine, Please help to review this patch. Thanks, - Kever On 2020/4/29 上午12:14, su...@amarulasolutions.com wrote: From: Suniel Mahesh Rockchip RK808 PMIC provides an integrated RTC module. It is commonly used with Rockchip SoCs. Add basic support to access date and time. Signed-off-by: S

[PATCH v1 35/35] acpi: Add an acpi split command

2020-04-28 Thread Simon Glass
Add a command that shows the individual blocks of data generated by each device. This can be helpful for debugging. Signed-off-by: Simon Glass --- Changes in v1: None cmd/acpi.c | 15 +-- drivers/core/acpi.c | 16 include/dm/acpi.h | 10 ++ test/

[PATCH v1 33/35] pci: Avoid a crash in device_is_on_pci_bus()

2020-04-28 Thread Simon Glass
This function cannot currently be called on the root node. Add a check for this as well as a test. Signed-off-by: Simon Glass --- Changes in v1: None include/dm/device.h | 2 +- test/dm/pci.c | 14 ++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/include/dm/

[PATCH v1 34/35] dm: acpi: Enhance acpi_get_name()

2020-04-28 Thread Simon Glass
For many device types it is possible to figure out the name just by looking at its uclass or parent. Add a function to handle this, since it allows us to cover the vast majority of cases automatically. However it is sometimes impossible to figure out an ACPI name for a device just by looking at it

[PATCH v1 32/35] x86: Allow devices to write to DSDT

2020-04-28 Thread Simon Glass
Call the new core function to inject ASL programmatically into the DSDT. This is made up of fragments generated by devices that have the inject_dsdt() method. The normal, compiled ASL file is added after this. Signed-off-by: Simon Glass --- Changes in v1: None arch/x86/lib/acpi_table.c | 15 ++

[PATCH v1 29/35] acpi: Support ordering SSDT data by device

2020-04-28 Thread Simon Glass
Add a /chosen property to control the order in which the data appears in the SSDT. This allows matching up U-Boot's output from a dump of the known-good data obtained from within Linux. Signed-off-by: Simon Glass --- Changes in v1: - Generalise the ACPI function recursion with acpi_recurse_metho

[PATCH v1 31/35] acpi: Add support for DSDT generation

2020-04-28 Thread Simon Glass
Some devices need to inject extra code into the Differentiated System Descriptor Table (DSDT). Add a method to handle this. Signed-off-by: Simon Glass --- Changes in v1: - Generalise the ACPI function recursion with acpi_recurse_method() arch/sandbox/dts/test.dts | 2 ++ drivers/core/acpi.c

[PATCH v1 25/35] acpi: Add support for a generic power sequence

2020-04-28 Thread Simon Glass
Add a way for devices to enable and disable themselves using ACPI code that updates GPIOs. This takes several timing parameters and supports enable, reset and stop. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpi_device.h | 41 lib/acpi/acpi_device.c |

[PATCH v1 20/35] acpi: Support writing a GPIO

2020-04-28 Thread Simon Glass
Allowing writing out a reference to a GPIO within the ACPI output. This can be used by ACPI code to access a GPIO at runtime. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpi_dp.h | 18 ++ lib/acpi/acpi_dp.c | 21 + test/dm/acpi_dp.c

[PATCH v1 26/35] acpi: Add support for SSDT generation

2020-04-28 Thread Simon Glass
Some devices need to generate code for the Secondary System Descriptor Table (SSDT). Add a method to handle this. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- Changes in v1: - Switch parameter order of _acpi_fill_ssdt() and make it static - Fix 'sentinal' and 'METHOD_FILL_SDDT'

[PATCH v1 27/35] x86: acpi: Move MADT down a bit

2020-04-28 Thread Simon Glass
Put this table before MCFG so that it matches the order that coreboot uses when passing tables to Linux. This is a cosmetic change since the order of the tables does not otherwise matter. Signed-off-by: Simon Glass --- Changes in v1: - Correct the commit subject arch/x86/lib/acpi_table.c | 12

[PATCH v1 28/35] acpi: Record the items added to SSDT

2020-04-28 Thread Simon Glass
It is useful to be able to control the order of data written to the SSDT so that we can compare the output against known-good kernel dumps. Add code to record each item that is added along with the device that added it. That allows us to reorder things later if needed. Signed-off-by: Simon Glass

[PATCH v1 24/35] acpi: Add support for writing a GPIO power sequence

2020-04-28 Thread Simon Glass
Power to some devices is controlled by GPIOs. Add a way to generate ACPI code to enable and disable a GPIO so that this can be handled within an ACPI method. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpigen.h | 12 +++ lib/acpi/acpigen.c | 80

[PATCH v1 30/35] x86: Allow devices to write an SSDT

2020-04-28 Thread Simon Glass
Call the new core function to write the SSDT. This is made up of fragments generated by devices that have the fill_ssdt() method. Signed-off-by: Simon Glass --- Changes in v1: - Use OEM_TABLE_ID instead of ACPI_TABLE_CREATOR - Update ACPI_DSTATUS enum arch/x86/lib/acpi_table.c | 50 +++

[PATCH v1 18/35] acpi: Support writing a UUID

2020-04-28 Thread Simon Glass
ACPI supports writing a UUID in a special format. Add a function to handle this. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpigen.h | 13 + lib/acpi/acpigen.c | 38 ++ test/dm/acpigen.c | 33 +++

[PATCH v1 19/35] acpi: Support writing Device Properties objects via _DSD

2020-04-28 Thread Simon Glass
More complex device properties can be provided to drivers via a device-specific data (_DSD) object. To create this we need to build it up in a separate data structure and then generate the ACPI code, due to its recursive nature. Add an implementation of this. Signed-off-by: Simon Glass --- Cha

[PATCH v1 22/35] acpi: Add support for various misc ACPI opcodes

2020-04-28 Thread Simon Glass
Add more functions to handle some miscellaneous ACPI opcodes. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpigen.h | 114 + lib/acpi/acpigen.c | 83 ++ test/dm/acpigen.c | 75 +++

[PATCH v1 15/35] acpi: Support writing an integer

2020-04-28 Thread Simon Glass
ACPI supports storing integers in various ways. Add a function to handle this. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpigen.h | 17 ++ lib/acpi/acpigen.c | 51 ++ test/dm/acpigen.c | 46

[PATCH v1 17/35] acpi: Support writing a name

2020-04-28 Thread Simon Glass
ACPI supports storing names which are made up of multiple path components. Several special cases are supported. Add a function to emit a name. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpigen.h | 25 +++ include/test/ut.h | 17 lib/acpi/acpigen.c

[PATCH v1 23/35] acpi: Add support for writing a Power Resource

2020-04-28 Thread Simon Glass
These are used in ACPI to disable power to various pats of the system when in sleep. Add a way to create a power resource, with the caller finishing off the details. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpigen.h | 22 ++ lib/acpi/acpigen.c |

[PATCH v1 13/35] acpigen: Support writing a length

2020-04-28 Thread Simon Glass
It is convenient to write a length value for preceding a block of data. Of course the length is not known or is hard to calculate a priori. So add a way to mark the start on a stack, so the length can be updated when known. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpige

[PATCH v1 14/35] acpigen: Support writing a package

2020-04-28 Thread Simon Glass
A package collects together several elements. Add an easy way of writing a package header and updating its length later. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpigen.h | 62 ++ lib/acpi/acpigen.c | 12 test/dm/acpi

[PATCH v1 21/35] acpi: Support copying properties from device tree to ACPI

2020-04-28 Thread Simon Glass
Some drivers in Linux support both device tree and ACPI. U-Boot itself uses Linux device-tree bindings for its own configuration but does not use ACPI. It is convenient to copy these values over to the device tree for passing to linux. Add some convenience functions to help with this. Signed-off-

[PATCH v1 16/35] acpi: Support writing a string

2020-04-28 Thread Simon Glass
ACPI supports storing a simple nul-terminated string. Add support for this. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpigen.h | 10 ++ lib/acpi/acpigen.c | 6 ++ test/dm/acpigen.c | 32 ++-- 3 files changed, 46 insertion

[PATCH v1 12/35] acpi: Support generation of SPI descriptor

2020-04-28 Thread Simon Glass
Add a function to write a SPI descriptor to the generated ACPI code. Signed-off-by: Simon Glass --- Changes in v1: None drivers/spi/sandbox_spi.c | 11 include/acpi/acpi_device.h | 36 +++ include/spi.h | 4 +- lib/acpi/acpi_device.c | 119 +++

[PATCH v1 11/35] acpi: Support generation of I2C descriptor

2020-04-28 Thread Simon Glass
Add a function to write a GPIO descriptor to the generated ACPI code. Signed-off-by: Simon Glass --- Changes in v1: None drivers/i2c/sandbox_i2c.c | 11 drivers/rtc/sandbox_rtc.c | 11 include/acpi/acpi_device.h | 37 + lib/acpi/acpi_device.c | 103 ++

[PATCH v1 04/35] irq: Add a method to convert an interrupt to ACPI

2020-04-28 Thread Simon Glass
When generating ACPI tables we need to convert IRQs in U-Boot to the ACPI structures required by ACPI. This is a SoC-specific conversion and cannot be handled by generic code, so add a new IRQ method to do the conversion. Signed-off-by: Simon Glass --- Changes in v1: - Fix 'the an' typo - Move h

[PATCH v1 07/35] gpio: Add a method to convert a GPIO to ACPI

2020-04-28 Thread Simon Glass
When generating ACPI tables we need to convert GPIOs in U-Boot to the ACPI structures required by ACPI. This is a SoC-specific conversion and cannot be handled by generic code, so add a new GPIO method to do the conversion. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner --- Changes in

[PATCH v1 09/35] acpi: Support generation of GPIO descriptor

2020-04-28 Thread Simon Glass
Add a function to write a GPIO descriptor to the generated ACPI code. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpi_device.h | 22 ++ lib/acpi/acpi_device.c | 151 + test/dm/acpigen.c | 89 ++ 3 f

[PATCH v1 10/35] acpi: Support generation of a GPIO/irq for a device

2020-04-28 Thread Simon Glass
Some devices use interrupts but some use GPIOs. Since these are fully specified in the device tree we can automatically produce the correct ACPI descriptor for a device. Add a function to handle this. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpi_device.h | 15 +

[PATCH v1 06/35] acpi: Support generation of interrupt descriptor

2020-04-28 Thread Simon Glass
Add a function to write an interrupt descriptor to the generated ACPI code. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpi_device.h | 15 + lib/acpi/acpi_device.c | 118 + test/dm/acpigen.c | 31 ++ 3 files ch

[PATCH v1 05/35] acpi: Support generation of ACPI code

2020-04-28 Thread Simon Glass
Add a new file to handle generating ACPI code programatically. This is used when information must be dynamically added to the tables, e.g. the SSDT. Initial support is just for writing simple values. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpigen.h | 49 ++

[PATCH v1 02/35] acpi: Add a function to get a device path and scope

2020-04-28 Thread Simon Glass
Add a function to build up the ACPI path for a device and another for its scope. Signed-off-by: Simon Glass --- Changes in v1: - Split into more patches for review - Add tests arch/sandbox/dts/test.dts | 3 ++ include/acpi/acpi_device.h | 44 ++ lib/acpi/Makefile |

[PATCH v1 01/35] dm: core: Add an ACPI name for the root node

2020-04-28 Thread Simon Glass
This always has a fixed ACPI name so add it as a driver function. Signed-off-by: Simon Glass --- Changes in v1: - Capitalise ACPI_OPS_PTR drivers/core/root.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/core/root.c b/drivers/core/root.c index 14df16c280..9d5e81cfd

[PATCH v1 03/35] acpi: Add a way to check device status

2020-04-28 Thread Simon Glass
At present U-Boot does not support the different ACPI status values, but it is best to put this logic in a central place. Add a function to get the device status. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpi_device.h | 26 ++ lib/acpi/acpi_device

[PATCH v1 08/35] acpi: Support string output

2020-04-28 Thread Simon Glass
Add support for output of strings and streams of bytes. Signed-off-by: Simon Glass --- Changes in v1: None include/acpi/acpigen.h | 19 +++ lib/acpi/acpigen.c | 14 ++ test/dm/acpigen.c | 42 ++ 3 files changed, 75 in

[PATCH v1 00/35] dm: Add programmatic generation of ACPI tables (part B)

2020-04-28 Thread Simon Glass
NOTE: I have resent this as v1 to avoid confusion This is split from the original series in an attempt to get things applied in chunks. This part includes: - writing basic ACPI code for integers, strings, names, packages - writing descriptors for GPIO, I2C, interrupts, SPI - writing code to enabl

[PATCH 5/5] spl: sdp: Add DM gadget support for sdp

2020-04-28 Thread Peng Fan
From: Sherry Sun When enable CONFG_SPL_DM_USB_GADGET, sdp should use usb_gadget_initialize() and usb_gadget_release() to support DM gadget driver. Signed-off-by: Sherry Sun Signed-off-by: Peng Fan --- common/spl/spl_sdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 4/5] spl: sdp: Add a callback to clean up USB driver

2020-04-28 Thread Peng Fan
From: Ye Li Because SDP directly jumps to next level boot image, we'd better clean up the USB driver before it. Implement a weak callback function, that spl sdp can use it to clean up USB driver. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- common/spl/spl_sdp.c | 1 + 1 file changed, 1 in

[PATCH 1/5] spl: sdp: call board_usb_init at spl_sdp_load_image

2020-04-28 Thread Peng Fan
From: Frank Li Need initialize UDC before run sdp download Signed-off-by: Frank Li Signed-off-by: Peng Fan --- common/spl/spl_sdp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c index 806bf1327e..a54c7479d0 100644 --- a/common/spl/spl_sdp.c

[PATCH 2/5] usb: gadget: sdp: use CONFIG_SDP_LOADADDR as default load address

2020-04-28 Thread Peng Fan
From: Frank Li If SDP_WRITE and SDP_JUMP addr is zero, use CONFIG_SDP_LOADADDR as default address Signed-off-by: Frank Li Signed-off-by: Peng Fan --- drivers/usb/gadget/Kconfig | 4 drivers/usb/gadget/f_sdp.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH 3/5] spl: sdp: Add CONFIG_SPL_SDP_USB_DEV for USB device

2020-04-28 Thread Peng Fan
From: Ye Li Add a new configuration CONFIG_SPL_SDP_USB_DEV to specify the usb index for spl sdp driver, so that we change use different device. The default value is 0. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- common/spl/Kconfig | 8 common/spl/spl_sdp.c | 4 ++-- 2 files ch

[PATCH 7/7] cpu: imx8: show RevC instead of Rev? at boot log

2020-04-28 Thread Peng Fan
From: Frank Li Add REVC informaiton. Signed-off-by: Frank Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 1 + drivers/cpu/imx8_cpu.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/arm/include/asm/arch-imx/cpu.h b/arch/arm/include/asm/arch-imx/c

[PATCH 6/7] cpu: imx_cpu: Print the CPU temperature for iMX8QM A72

2020-04-28 Thread Peng Fan
From: Ye Li iMX8QM registers two thermal devices for CPUs, get the temperature from "cpu-thermal1" device for A72 Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/cpu/imx8_cpu.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/cpu/imx8_

[PATCH 5/7] cpu: imx8: fix get core name and rate

2020-04-28 Thread Peng Fan
When current cpu is A53, using is_cortex_a53 could not detect A72 information, so check cpu device compatible property to get the correct information. Signed-off-by: Peng Fan --- drivers/cpu/imx8_cpu.c | 27 +-- 1 file changed, 17 insertions(+), 10 deletions(-) diff --gi

[PATCH 3/7] cpu: imx8: reimplement get cpu count

2020-04-28 Thread Peng Fan
Return 4 is not correct on i.MX8DX/DXL/8QM and etc. we need to count available cpu node with device_type "cpu". Signed-off-by: Peng Fan --- drivers/cpu/imx8_cpu.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu

[PATCH 4/7] cpu: imx8: support a72 as boot cpu

2020-04-28 Thread Peng Fan
Support booting i.MX8QM with A72 as boot cpu Signed-off-by: Peng Fan --- drivers/cpu/imx8_cpu.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index 7c54c290b8..029f20632e 100644 --- a/drivers/cpu/imx8_cpu.c +++ b/drivers/

[PATCH 1/7] uclass: cpu: Add new API to get udevice for current CPU

2020-04-28 Thread Peng Fan
When running on SoC with multiple clusters, the boot CPU may not be fixed, saying booting from cluster A or cluster B. Add a API that can return the udevice for current boot CPU. Cpu driver needs to implement is_current_cpu interface for this feature, otherwise the API only returns the first udevic

[PATCH 2/7] common: board_f: Use cpu_get_current_dev in print_cpuinfo

2020-04-28 Thread Peng Fan
From: Ye Li Current print_cpuinfo gets the first udevice in CPU class to return the cpu info. This has problem if the boot CPU is not fixed. Changing to use new API cpu_get_current_dev to fix the issue. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- common/board_f.c | 10 +- 1 file

Re: [PATCH v6 03/14] phy: Add get/enable/disable for a bulk of phys

2020-04-28 Thread Chunfeng Yun
On Wed, 2020-04-29 at 01:15 +0530, Jagan Teki wrote: > On Mon, Apr 27, 2020 at 7:47 AM Chunfeng Yun > wrote: > > > > On Sat, 2020-04-25 at 18:58 +0530, Jagan Teki wrote: > > > On Mon, Apr 20, 2020 at 8:52 AM Chunfeng Yun > > > wrote: > > > > > > > > This patch adds a "bulk" API to the phy API i

Re: [PATCH 3/3] acpi: Fix-up patch to correct sandbox test errors

2020-04-28 Thread Bin Meng
Hi Simon, On Tue, Apr 28, 2020 at 11:41 PM Simon Glass wrote: > > Hi Bin, > > On Tue, 28 Apr 2020 at 08:59, Bin Meng wrote: > > > > Hi Simon, > > > > On Tue, Apr 28, 2020 at 10:39 PM Simon Glass wrote: > > > > > > Hi Bin, > > > > > > On Tue, 28 Apr 2020 at 08:34, Bin Meng wrote: > > > > > > >

Re: [PATCH 5/8] phy: rockchip: add a new driver for type-c phy

2020-04-28 Thread Frank Wang
Hi Jagan, All ack related will be fixed in the next patches. BR, Frank On 2020/4/28 17:27, Jagan Teki wrote: On Tue, Apr 28, 2020 at 12:01 PM Frank Wang wrote: This implements the Type-C PHY driver for Rockchip platform with Cadence IP block. Signed-off-by: Frank Wang Signed-off-by: Willia

RE: [PATCH] ARM: dts: imxrt1050: indent lcdif node correctly

2020-04-28 Thread Peng Fan
> Subject: [PATCH] ARM: dts: imxrt1050: indent lcdif node correctly > > Accidentally submitted a patch with indentation not correct, let's fix it by > indenting wrong lines. > > Signed-off-by: Giulio Benetti Acked-by: Peng Fan > --- > arch/arm/dts/imxrt1050.dtsi | 12 ++-- > 1 file c

Re: [PATCH v2 2/2] Makefile: Only build dtc if needed

2020-04-28 Thread Simon Glass
Hi Tom, On Tue, 28 Apr 2020 at 09:52, Tom Rini wrote: > > On Tue, Apr 28, 2020 at 09:41:14AM -0600, Simon Glass wrote: > > Hi Tom. > > > > On Tue, 28 Apr 2020 at 08:19, Tom Rini wrote: > > > > > > On Mon, Apr 27, 2020 at 04:10:06PM -0700, Vagrant Cascadian wrote: > > > > On 2020-04-27, Simon Gla

Re: [PATCH 1/1] hush: avoid NULL check before free()

2020-04-28 Thread Simon Glass
On Tue, 28 Apr 2020 at 13:56, Heinrich Schuchardt wrote: > > free() checks if its argument is NULL. Don't duplicate this in the calling > code. > > Signed-off-by: Heinrich Schuchardt > --- > common/cli_hush.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Reviewed-by: Simon Glass

[PATCH] ARM: rmobile: Update Gen3 defconfig names in MAINTAINERS files

2020-04-28 Thread Marek Vasut
Synchronize Gen3 defconfig entries in the MAINTAINERS files after the recent consolidation. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- board/renesas/salvator-x/MAINTAINERS | 4 +--- board/renesas/ulcb/MAINTAINERS | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff -

Re: [PATCH 1/5] ARM: imx: Do not define do_reset() if sysreset is enabled

2020-04-28 Thread Marek Vasut
On 4/28/20 11:23 PM, Harald Seiler wrote: > Hello Marek, Hi, > On Tue, 2020-04-28 at 16:22 +0200, Marek Vasut wrote: >> The SPL can also be compiled with sysreset drivers just fine, so >> update the condition to cater for that option. > > Me and Claudius solved the same problem in a different wa

Re: [PATCH 1/5] ARM: imx: Do not define do_reset() if sysreset is enabled

2020-04-28 Thread Harald Seiler
Hello Marek, On Tue, 2020-04-28 at 16:22 +0200, Marek Vasut wrote: > The SPL can also be compiled with sysreset drivers just fine, so > update the condition to cater for that option. Me and Claudius solved the same problem in a different way a while back (see [1] and [2]). The two approaches ove

[PATCH 1/1] hush: avoid NULL check before free()

2020-04-28 Thread Heinrich Schuchardt
free() checks if its argument is NULL. Don't duplicate this in the calling code. Signed-off-by: Heinrich Schuchardt --- common/cli_hush.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/cli_hush.c b/common/cli_hush.c index cf1e273485..a62af07cc5 100644 --- a/common/c

[PATCH 1/1] fs: ext4: avoid NULL check before free()

2020-04-28 Thread Heinrich Schuchardt
free() checks if its argument is NULL. Don't duplicate this in the calling code. Signed-off-by: Heinrich Schuchardt --- fs/ext4/ext4_journal.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/fs/ext4/ext4_journal.c b/fs/ext4/ext4_journal.c index f8524e5a99..0c

Re: [PATCH v2 0/3] arm: caches: allow to activate dcache in SPL and in U-Boot pre-reloc

2020-04-28 Thread Tom Rini
On Fri, Apr 24, 2020 at 08:20:14PM +0200, Patrick Delaunay wrote: > > Hi > > It is a V2 serie after Marek feedback for > http://patchwork.ozlabs.org/project/uboot/list/?series=168378 > > This serie allows dcache activation in SPL or in U-Boot preloc stage > for ARM board. > > See "arm: stm32mp

Re: [PATCH v6 03/14] phy: Add get/enable/disable for a bulk of phys

2020-04-28 Thread Jagan Teki
On Mon, Apr 27, 2020 at 7:47 AM Chunfeng Yun wrote: > > On Sat, 2020-04-25 at 18:58 +0530, Jagan Teki wrote: > > On Mon, Apr 20, 2020 at 8:52 AM Chunfeng Yun > > wrote: > > > > > > This patch adds a "bulk" API to the phy API in order to > > > get/enable/disable a group of phys associated with a

  1   2   3   4   >