This filename is used a few times. Move it to a constant before adding
further uses.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/moveconfig.py | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
Applied to u-boot-dm, thanks!
__
On 4 June 2017 at 16:11, wrote:
> From: Alison Chaiken
>
> The instructions for creating a disk image that are presently in
> README.sandbox fail because sfdisk doesn't know about GPT.
>
> Signed-off-by: Alison Chaiken
> ---
> board/sandbox/README.sandbox | 2 +-
> 1 file changed, 1 insertion(
From: Alison Chaiken
Make minor changes to README.gpt and sandbox_defconfig to support
testing of the gpt command's functionality in the sandbox.
Signed-off-by: Alison Chaiken
---
doc/README.gpt | 10 ++
1 file changed, 10 insertions(+)
Applied to u-boot-dm, thanks!
__
This converts the following to Kconfig:
CONFIG_SCSI
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v2:
- Move the "imply SCSI" before the "help" message
- Change 'enabled' to 'enables' in config SCSI
README | 1 -
arch/Kconfig
These are not as clear as they could be. Tidy them up a bit. Also fix a
tiny code-style nit.
Signed-off-by: Simon Glass
---
Changes in v2: None
drivers/core/uclass.c | 3 +--
include/dm/uclass.h | 13 +++--
2 files changed, 12 insertions(+), 4 deletions(-)
Applied to u-boot-dm, tha
Hi Simon,
On 06/14/2017 11:10 AM, Simon Glass wrote:
> Sometimes a node will have multiple compatible strings. Drivers may use
> one or the other so the best approach seems to be to #define them to be
> equivalent.
>
> Update dtoc to support this.
>
> Signed-off-by: Simon Glass
This patch works
The newest clean-up features are not mentioned in the docs. Fix this and
add a few hints for particular workflows that are hopefully helpful.
Signed-off-by: Simon Glass
---
Changes in v2:
- Adjust hints to include Tom Rini's <(...) approach
- Drop change of 'headers' to 'header'
tools/moveconf
Support passes in a defconfig filename of '-' to read the list from stdin
instead of from a file.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/moveconfig.py | 21 ++---
1 file changed, 18 insertions(+), 3 deletions(-)
Applied to u-boot-dm, thanks!
_
On 06/09/2017 12:41 AM, Simon Glass wrote:
> Hi,
>
> On 23 April 2017 at 20:10, Simon Glass wrote:
>> Sometimes it is useful to iterate through all devices in a uclass and
>> skip over those which do not work correctly (e.g fail to probe). Add two
>> new functions to provide this feature.
>>
>> Th
Some CONFIG options can be implied by others and this can help to reduce
the size of the defconfig files. For example, CONFIG_X86 implies
CONFIG_CMD_IRQ, so we can put 'imply CMD_IRQ' under 'config X86' and
all x86 boards will have that option, avoiding adding CONFIG_CMD_IRQ to
each of the x86 defc
Hi Kever,
On 8 June 2017 at 18:48, Kever Yang wrote:
> Simon,
>
> After the long discuss, this patch can be applied without any update,
> right?
>
OK I've resurrected it in patchwork:
http://patchwork.ozlabs.org/patch/763856/
Regards,
Simon
>
> Thanks,
> - Kever
>
> On 05/23/2017 04:26 AM
Add some tests which check the behaviour of uclass_first_device() and
uclass_next_device() when probing of a device fails.
Signed-off-by: Simon Glass
---
Changes in v2: None
arch/sandbox/dts/test.dts | 19 +
include/dm/uclass-id.h| 1 +
test/dm/test-fdt.c| 72 +
On 28 April 2017 at 10:33, Philipp Tomsich
wrote:
> This allows requests (via the DTS) for PCLK_HDMI_CTRL/PCLK_VIO_GRF,
> which are clock gates in the HDMI output path for the RK3399.
>
> As these are enabled by default (i.e. after reset), we don't implement
> any logic to actively open/close thes
On 28 April 2017 at 10:33, Philipp Tomsich
wrote:
> To add HDMI support for the RK3399, this commit provides the needed
> pinctrl functionality to configure the HDMI I2C pins (used for reading
> the screen's EDID).
>
> Signed-off-by: Philipp Tomsich
>
> ---
>
> Changes in v2: None
>
> arch/arm/i
On 28 April 2017 at 09:31, Philipp Tomsich
wrote:
> With the RK3399 DRAM controller (DMC) driver providing all the
> infrastructure, retrieve the DRAM size from the DMC init in the
> board-specific code (instead of hard-coding) for the RK3399-Q7 (Puma).
>
> Signed-off-by: Philipp Tomsich
> ---
>
On 28 April 2017 at 09:11, Philipp Tomsich
wrote:
> The (non-secure) efuse node in the DTS requests PCLK_EFUSE1024NS.
> To allow us to add a efuse-driver (and more importantly, to allow
> probes of such a driver to succeed), we need need to accept requests
> for PCLK_EFUSE1024NS and return a non-e
Rockchip pwm need to init polarity, implement pwm_set_invert()
to do it.
Signed-off-by: Kever Yang
Acked-by: Simon Glass
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/pwm/rk_pwm.c | 17 -
1 file changed, 16 insertions(+), 1 deletion(-)
Applied to u-b
Hi Jaehoon,
On 04/27/2017 12:21 PM, Jaehoon Chung wrote:
> On 04/25/2017 04:52 PM, Philipp Tomsich wrote:
>> The 'clock-freq-min-max' property was deprecated in the upstream
>> (i.e. Linux) DTS bindings in favor of the 'max-frequency' property.
> It's difference wit Linux kernel. "clock-freq-min-
This is a copy from kernel.
Signed-off-by: Kever Yang
Acked-by: Simon Glass
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
doc/device-tree-bindings/pwm/pwm.txt | 69
1 file changed, 69 insertions(+)
create mode 100644 doc/device-tree-bind
On 25 April 2017 at 01:52, Philipp Tomsich
wrote:
> The clocking of the designware MMC controller in the upstream
> (i.e. Linux) RK3399 has changed/does not match what the current DTS in
> U-Boot uses: the first clock entry now is HCLK_SDMMC instead of
> SCLK_SDMMC.
>
> With the simple clock drive
On 23 April 2017 at 21:58, Kever Yang wrote:
> The file is from evb-rk3399_defconfig with changes:
> - use rk3399-firefly dtb
> - re-order by make savedefconfig
>
> Signed-off-by: Kever Yang
> ---
>
> configs/firefly-rk3399_defconfig | 65
>
> 1 file cha
Hi Simon,
On 04/23/2017 08:42 AM, Simon Glass wrote:
> The code to generate the tables is quite long. Move the node-output code
> into its own function.
>
> Signed-off-by: Simon Glass
> ---
>
> tools/dtoc/dtoc.py | 96
> +-
> 1 file changed
Add test case for new interface set_invert().
Signed-off-by: Kever Yang
Acked-by: Simon Glass
---
Changes in v4: None
Changes in v3:
- add sanbox test
Changes in v2: None
drivers/pwm/sandbox_pwm.c | 16
test/dm/pwm.c | 1 +
2 files changed, 17 insertions(+)
App
Hi Philipp,
I didn't search the history of kernel about the "clock-freq-min-max"
when I find the regression.
You patch for rockchip_dw_mmc would be better if it can apply.
Hi Simon,
You can decide which version to use. If using V2, should pull with
Philipp's
patch for remove 'clock
The latest kernel PWM drivers enable the polarity settings. When system
run from U-Boot to kerenl, if there are differences in polarity set or
duty cycle, the PMW will re-init:
close -> set polarity and duty cycle -> enable the PWM.
The power supply controled by pwm regulator may have voltage sha
On 20 April 2017 at 03:03, Kever Yang wrote:
> There are 3 regions used by rk3399 ATF:
> - bl31 code, located at 0x1;
> - cortex-m0 code and data, located at 0xff8c;
> - bl31 data, located at 0xff8c1000 ~ 0xff8c4000;
>
> SPL_TEXT_BASE starts from 0xff8c2000, we need to reserve memory
> for
On 24 April 2017 at 04:34, Kever Yang wrote:
> Hi Simon,
>
>
>
> On 04/24/2017 11:38 AM, Simon Glass wrote:
>>
>> On 19 April 2017 at 04:17, Kever Yang wrote:
>>>
>>> Firefly-rk3399 is a bord from T-Firefly, you can find detail about
>>> it here:
>>> http://en.t-firefly.com/en/firenow/Firefly_RK3
On 20 April 2017 at 02:15, Kever Yang wrote:
> GMAC controller need to init the tx io driver strength to 13mA,
> just like the description in dts pinctrl node, or else the controller
> may only work in 100MHz Mode, and fail to work at 1000MHz mode.
>
> Signed-off-by: Kever Yang
> ---
>
> arch/ar
Hi Simon,
On 04/23/2017 08:42 AM, Simon Glass wrote:
> At present dtoc assumes that nodes which are phandles do not themselves
> reference other phandle nodes. Unfortunately this is not necessarilly
> true. As a result we can currently output C code which does not compile
> because a node declara
Since fdt is the name of a module, use a different name for variables to
avoid a conflict.
Signed-off-by: Simon Glass
---
tools/binman/control.py | 10 +-
tools/binman/etype/u_boot_dtb_with_ucode.py | 9 -
tools/binman/func_test.py | 4 ++-
This file was used to select between the normal and fallback libfdt
implementations. Now that we only have one, it is not needed.
Drop it and fix up all users.
Signed-off-by: Simon Glass
---
tools/binman/control.py | 2 +-
tools/binman/etype/u_boot_dtb_with_ucode.py | 2 +
Previously we were sometimes forced to collate x86 microcode due to not
having access to the offset of each individual piece. Now that we never
use fdt_fallback, we don't have this problem. Drop this special case from
the code.
Signed-off-by: Simon Glass
---
tools/binman/etype/u_boot_dtb_with_u
Since we only have one Fdt implementation now we don't need to have a base
class. Merge the implementation and the base class together.
Signed-off-by: Simon Glass
---
tools/dtoc/fdt.py| 176 +++-
tools/dtoc/fdt_normal.py | 226
Now that this is no-longer available, stop looking for it. The new module
will be used if available.
Signed-off-by: Simon Glass
---
tools/dtoc/fdt_normal.py | 32
1 file changed, 8 insertions(+), 24 deletions(-)
Applied to u-boot-fdt/next, thanks!
_
On Mon, Apr 17, 2017 at 07:47:34AM -0600, Simon Glass wrote:
> Hi Tom,
>
> On 17 April 2017 at 07:33, Tom Rini wrote:
> >
> > On Mon, Apr 17, 2017 at 10:13:06PM +0900, Masahiro Yamada wrote:
> > > Hi Tom,
> > >
> > >
> > > 2017-04-17 22:05 GMT+09:00 Tom Rini :
> > > > On Sun, Apr 16, 2017 at 08:22
The tests don't currently cover all the different property types. Add a
new test which checks each property type in turn, to make sure each has
the correct type and value.
Signed-off-by: Simon Glass
---
tools/binman/fdt_test.py | 46 ++
tools/binman
Now that this module has been accepted upstream we should stop using the
local U-Boot one. In preparation for this, rename it to indicate it is for
legacy use.
Signed-off-by: Simon Glass
---
lib/libfdt/{libfdt.swig => libfdt_legacy.swig} | 3 +--
lib/libfdt/setup.py
Use the new library if available, while retaining backwards compatibility
with the old library for now.
Signed-off-by: Simon Glass
---
tools/Makefile | 4 +++-
tools/binman/binman.py | 3 +++
tools/dtoc/fdt.py| 1 +
tools/dtoc/fdt_normal.py | 35 ++
Build the upstream python libfdt module. At present the legacy module is
still built and is the one that it used. Future work will switch this
over.
Signed-off-by: Simon Glass
---
tools/Makefile | 18 ++
1 file changed, 18 insertions(+)
Applied to u-boot-fdt/next, thanks!
_
At present only a subset of source files are build. Add the rest and
refactor this so that a source file list is available also. This will be
used in later commit.
Signed-off-by: Simon Glass
---
tools/Makefile | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
Applied to u-boot-fdt/
This gives a warning with some native compilers:
lib/fdtdec.c:1203:8: warning: format ‘%llx’ expects argument of type
‘long long unsigned int’, but argument 3 has type
‘long unsigned int’ [-Wformat=]
Fix it with a cast.
Signed-off-by: Simon Glass
---
lib/fdtdec.c | 3 ++-
1 file changed
This gives a warning with some native compilers:
cmd/pci.c:152:11: warning: format ‘%llx’ expects argument of type
‘long long unsigned int’, but argument 3 has type
‘u64 {aka long unsigned int}’ [-Wformat=]
Fix it with a cast.
Signed-off-by: Simon Glass
---
cmd/pci.c | 3 ++-
1 file cha
This is no-longer needed, so stop building it.
Signed-off-by: Simon Glass
---
lib/libfdt/libfdt_legacy.swig | 112 --
lib/libfdt/setup.py | 38 --
tools/Makefile| 18 ---
3 files changed, 168 deletions(-)
delet
Drop this now-unused library and associated tests.
Signed-off-by: Simon Glass
---
tools/binman/fdt_test.py | 10 ---
tools/binman/func_test.py | 42 ---
tools/dtoc/fdt.py | 4 +-
tools/dtoc/fdt_fallback.py | 181 -
tools/dtoc/f
Since fdt is a module it conflicts with this variable name and prevents it
being used in tests. Rename the variable.
Signed-off-by: Simon Glass
---
tools/binman/fdt_test.py | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
Applied to u-boot-fdt/next, thanks!
U-Boot needs to provide some swig include directories. Add this feature.
Signed-off-by: Simon Glass
---
lib/libfdt/pylibfdt/setup.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Applied to u-boot-fdt/next, thanks!
___
U-Boot mailing list
This is needed by binman and dtoc, so if those are being used, check that
the library is present and complain if not.
This means that the fallback library (which uses fdtget) will not be used
anymore and swig will need to be installed to use binman / dtoc.
This affects any board which uses binman
These header files are actually part of libfdt. Move them there to make
it easier to build pylibfdt and easier to merge changes from upstream.
Update the license header to use SPDX at the same time.
Signed-off-by: Simon Glass
---
include/fdt.h | 68 +-
include/libfdt.h| 2094 +-
On 22 April 2017 at 02:57, Jonas Karlman wrote:
> Set ethernet mac address in late init for Tinker Board,
> prevents getting a random mac address each boot.
>
> Read mac address from eeprom, first 6 bytes from m24c08@50.
> Same as /etc/init.d/rockchip.sh on Tinker OS.
>
> Signed-off-by: Jonas Karl
On 22 April 2017 at 02:57, Jonas Karlman wrote:
> Signed-off-by: Jonas Karlman
> ---
>
> Changes in v3:
> - Add i2c_eeprom_{read,write} functions
>
> Changes in v2: None
>
> drivers/misc/i2c_eeprom.c | 32 ++--
> include/i2c_eeprom.h | 24
Add mipi dsi configuration for evb-rk3288 device tree.
Signed-off-by: Eric Gao
Reviewed-by: Simon Glass
---
Changes in v3:
-Add Reviewer.
Changes in v2:
-Move panel and backlight configuration to it's define node.
Changes in v1:
-Add dts configuration.
arch/arm/dts/rk3288-evb.dtsi | 80 +++
Add grf register define for rk3288 mipi dsi
Signed-off-by: Eric Gao
Reviewed-by: Simon Glass
---
Changes in v3:
-Add Reviewer.
Changes in v2: None
Changes in v1:
-Add grf define for mipi dsi
arch/arm/include/asm/arch-rockchip/grf_rk3288.h | 62 +
1 file changed, 62 i
Add dts config for mipi display, include vop, mipi controller, panel, backlight
. And Enable rk808 for lcd_3v3 in another patch.
Signed-off-by: Eric Gao
Reviewed-by: Simon Glass
Reviewed-by: Philipp Tomsich
---
Changes in v8:
-Set vop disabled by default.
-Move unused config.
Changes in v7:
Add GRF register declaration for mipi dsi.
Signed-off-by: Eric Gao
Reviewed-by: Simon Glass
Reviewed-by: Philipp Tomsich
---
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5:
-Modify indentation for better readability.
-Make all enum variate have explicit value.
Chan
plat->size here is used to reserve frame buffer space befor relocation.
our mipi panel use 24 bitwidth, and vop require 32bit align. So the frame
buffer size should be at least 1920*1200*32/8.
Signed-off-by: Eric Gao
Reviewed-by: Simon Glass
---
Changes in v8: None
Changes in v7: None
Changes
Add basic driver for mipi display on rockchip soc platform.
Signed-off-by: Eric Gao
Acked-by: Simon Glass
---
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5:
-Merge Kconfig and Makefile changes into this patch.
Changes in v4: None
Changes in v3:
-Split mipi dsi driv
Add mipi dsi configs for rk3399 evb board
Signed-off-by: Eric Gao
Reviewed-by: Simon Glass
---
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5:
-Regenerate defconfig file using "make savedefconfig"
Changes in v4: None
Changes in v3: None
Changes in v2:
-Add defconfig
Because the bitwidth is different for different display mode, so we need
to set them according to demand.
Signed-off-by: Eric Gao
Reviewed-by: Simon Glass
---
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2:
Since this driver can be used for rk8xx series pmic,
let's rename rk808 to rk8xx, to make it clear.
Configs parts are done by sed -i "s/RK808/RK8XX/g" `grep RK808 -lr ./`
Signed-off-by: Jacob Chen
---
Changes in v2:
- rename rk808 to rk8xx
arch/arm/mach-rockchip/rk3288/sdram_rk3288.c | 6 +--
Add mipi display mode for rk3399 vop, so that we can use mipi panel
for display.
Signed-off-by: Eric Gao
Reviewed-by: Simon Glass
---
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2:
-Add mipi display mode fo
Both RK808 and RK818 chips are using a similar register map,
so we can reuse them.
I have also add reg prefix to exist registers, to keep them same style.
Signed-off-by: Jacob Chen
Reviewed-by: Simon Glass
---
Changes in v2: None
drivers/power/regulator/rk808.c | 18 ++---
include/power/rk8
Enable pwm0 for display of rk3399 evb board. The PWM do not have decicated
interrupt number in dts and can not get periph_id by pinctrl framework. So
init them here.
Signed-off-by: Eric Gao
Reviewed-by: Simon Glass
---
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5:
Using mask is more flexible than bits.
Signed-off-by: Jacob Chen
Reviewed-by: Simon Glass
---
Changes in v2: None
drivers/power/regulator/rk808.c | 39 ++-
1 file changed, 22 insertions(+), 17 deletions(-)
Applied to u-boot-rockchip/next, thanks!
_
It's caused by the difference of clk_set_rate function implement between
rk3288 andd rk3399.
clk_set_rate() of rk3288 return 0 in normal condition.
clk_set_rate() of rk3399 return input parameter in normal condition.
So check clk_set_rate's return value by IS_ERR_VALUE.
Signed-off-by: Eric Gao
2017-05-02 14:54 GMT+08:00 Jacob Chen :
> The RK818 chip is a Power Management IC (PMIC) for multimedia and handheld
> devices.
>
> For boards use rk818, the input current should be set in the early stage,
> before
> ddr initialization.
>
> Signed-off-by: Jacob Chen
> ---
>
> Changes in v2:
> - r
2017-05-02 14:54 GMT+08:00 Jacob Chen :
> Add support for the rk818 regulator. The regulator module consists
> of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to
> power OTG and HDMI5V.
>
>
>
> Signed-off-by: Jacob Chen
> Reviewed-by: Simon Glass
> ---
>
> Changes in v2: None
>
>
This core function will need to work with a live tree also. Update it to
accept an ofnode instead of an offset.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2:
- Cut the series down to only prepare the way for live tree
- Drop all live tree changes
- Adjust storage to avoid a c
With live tree we need a struct device_node * to reference a node. With
the existing flat tree, we need an int offset. We need to unify these into
a single value which can represent both.
Add an ofnode union for this and adjust existing code to move to this.
Signed-off-by: Simon Glass
---
Chang
This function is only used in one place. It is better to just declare it
internally since there is a simpler replacement for use outside the
driver-model core code.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/core/root.c | 17 +++--
include/dm/roo
At present devices use a simple integer offset to record the device tree
node associated with the device. In preparation for supporting a live
device tree, which uses a node pointer instead, refactor existing code to
access this field through an inline function.
Signed-off-by: Simon Glass
---
Ch
It is good practice to include common.h as the first header. This ensures
that required features like the DECLARE_GLOBAL_DATA_PTR macro,
configuration options and common types are available.
Fix up some files which currently don't do this. This is necessary because
driver model will soon start usi
This header includes things that are needed to make driver build. Adjust
existing users to include that always, even if other dm/ includes are
present
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/arm/lib/bootm.c | 2 +-
arch/arm/mach
This function should not be used outside the core driver-model code.
Update it to use dm_scan_fdt_dev() instead.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/gpio/atmel_pio4.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Applied to u-boot-dm
__
Move this group of address-related functions into a new file. These use
the flat device tree. Future work will provide new versions of these which
can support the live tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/core/Makefile | 2 +-
drivers/core/dev
This function is called when the MMC block device is being probed. There
is a recursive call in this function since find_mmc_device() itself can
cause the MMC device to be probed.
Admittedly the MMC device should already be probed, since we would not be
probing its child otherwise, but the current
The intention with block devices is that the device number (devnum field
in its descriptor) matches the alias of its parent device. For example,
with:
aliases {
mmc0 = "/sdhci@700b0600";
mmc1 = "/sdhci@700b0400";
}
we expect that the block devices f
We do not need to probe the block device here, so avoid doing so. The MMC
device itself must be active, but the block device can come later.
Signed-off-by: Simon Glass
---
drivers/mmc/mmc-uclass.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
Applied to u-boot-dm
On Wed, May 3, 2017 at 5:36 AM, Simon Glass wrote:
> Hi Andy,
>
> On 24 April 2017 at 02:04, Andy Shevchenko wrote:
>> On Mon, Apr 24, 2017 at 5:02 AM, Simon Glass wrote:
>>> At present this code is inline. Move it into a function to allow it to
>>> be used elsewhere.
>>>
>>> Signed-off-by: Simo
Enable CONFIG_DM_MMC_OPS and CONFIG_BLK for all Tegra devices. This moves
Tegra to use driver model fully for MMC.
Signed-off-by: Simon Glass
---
board/toradex/common/tdx-cfg-block.c | 2 +-
configs/apalis-tk1_defconfig | 2 -
configs/apalis_t30_defconfig | 2 -
configs/beave
Sometimes it is useful to be able to find a block device without also
probing it. Add a function for this as well as the associated test.
Signed-off-by: Simon Glass
---
drivers/block/blk-uclass.c | 15 +--
include/blk.h | 15 ++-
test/dm/blk.c |
On Sun, Apr 23, 2017 at 4:10 AM, Simon Glass wrote:
> We should not call out to board code from drivers. With driver model,
> mmc_power_init() already has code to use a named regulator, but the
> legacy code path remains. Update the code to make this clear.
>
I don't like this patch as it describ
These support the flat device tree. We want to use the dev_read_..()
prefix for functions that support both flat tree and live tree. So rename
the existing functions to avoid confusion.
In the end we will have:
1. dev_read_addr...()- works on devices, supports flat/live tree
2. devfdt_g
When binding a new MMC device, make sure that it has the required
operations. Since for now we still support *not* having the operations
(with CONFIG_DM_MMC_OPS not enabled) it makes sense to add this check.
Signed-off-by: Simon Glass
---
drivers/mmc/mmc-uclass.c | 4
1 file changed, 4 ins
Change these board to use a live device tree after relocation.
Signed-off-by: Simon Glass
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
---
Changes in v5: None
Changes in v4:
- Rebase to master
- Drop changes already applied
- Fix PCI and i2c init problems on jetson-tx1
- Enable live
Update the tegra114 spi driver to support a live device tree.
Signed-off-by: Simon Glass
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/spi/tegra114_spi.c | 13 +
1 file changed,
These are not needed now since the drivers now use driver model. Drop
them.
Signed-off-by: Simon Glass
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/fdtdec.h | 6 --
lib/fdtdec.c | 6
Update the tegra i2c driver to support a live device tree.
Signed-off-by: Simon Glass
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
---
Changes in v5: None
Changes in v4:
- Drop fdtdec.h header
Changes in v3: None
Changes in v2: None
drivers/i2c/tegra_i2c.c | 7 +--
1 file cha
This property should be in the /chosen node, not /aliases.
Signed-off-by: Simon Glass
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
arch/arm/dts/tegra124-nyan-big.dts | 5 -
1 file changed, 4 in
On 17 June 2017 at 07:35, Bin Meng wrote:
> Running 'scsi scan' command causes scsi_scan_dev() to be called,
> from which device_probe() is called and consequently AHCI driver
> probe routine will be called as SCSI driver's parent, and finally
> ahci_probe_scsi() calls scsi_scan_dev() again.
>
> R
On 17 June 2017 at 07:36, Bin Meng wrote:
> During 'scsi reset', scsi_bus_reset() is called with udevice pointed
> to NULL, which causes exception. As a temporary fix, disable the call
> for DM SCSI for now.
>
> Signed-off-by: Bin Meng
> ---
>
> cmd/scsi.c | 2 ++
> 1 file changed, 2 insertions(+)
Update the GPIO driver to support a live device tree.
Signed-off-by: Simon Glass
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/gpio/tegra_gpio.c | 10 ++
1 file changed, 6 insertions
Update the Tegra EHCI driver to support a live device tree.
Signed-off-by: Simon Glass
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/usb/host/ehci-tegra.c | 34 ++
Update the tegra pwm driver to support a live device tree.
Signed-off-by: Simon Glass
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/pwm/tegra_pwm.c | 2 +-
1 file changed, 1 insertion(+), 1
We sometimes need to read a resource from an arbitrary node. In any case
for consistency we should not put the live-tree switching code in
a dev_read_...() function. Update this to suit.
Signed-off-by: Simon Glass
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
---
Changes in v5: None
Update the tegra mmc driver to support a live device tree.
Signed-off-by: Simon Glass
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/mmc/tegra_mmc.c | 17 +++--
1 file changed, 7
Update the tegra pci driver to support a live device tree. Fix the check
for nvidia,num-lanes so that an error will actually be detected.
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
Signed-off-by: Simon Glass
---
Changes in v5: None
Changes in v4:
- Update to deal with rename of of
Adjust this code to support a live device tree. This should be implemented
as a PHY driver but that is left as an exercise for the maintainer.
Signed-off-by: Simon Glass
---
Changes in v5: None
Changes in v4:
- Update to use ofnode_read_resource()
Changes in v3: None
Changes in v2: None
arch/
Adjust this to take a device as a parameter instead of a node.
Signed-off-by: Simon Glass
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
arch/arm/include/asm/arch-tegra/clock.h | 2 +-
arch/arm/mach-
On 16 July 2017 at 22:08, Masahiro Yamada wrote:
> They are unused since commit d8c6fb8cedbc ("sandbox: Drop special
> case console code for sandbox").
>
> Signed-off-by: Masahiro Yamada
> ---
>
> arch/sandbox/cpu/os.c | 11 ---
> include/os.h | 20
> 2 file
On 16 July 2017 at 21:18, Masahiro Yamada wrote:
> DT property values can be strings as well as integers. This is why
> of_get_property/fdt_getprop returns an opaque pointer.
>
> Signed-off-by: Masahiro Yamada
> ---
>
> drivers/core/read.c | 2 +-
> include/dm/read.h | 6 +++---
> 2 files cha
701 - 800 of 1121 matches
Mail list logo