[U-Boot] [PATCH v2 01/22] sandbox: Update device tree 'reg' properties for I2C and SPI

Bin Meng bmeng.cn at gmail.com
Mon Mar 9 09:57:25 CET 2015


On Fri, Mar 6, 2015 at 3:25 AM, Simon Glass <sjg at chromium.org> wrote:
> We should have a size value for these. Add one in each case. This will
> be needed for PCI.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2:
> - Update root node #size=cells to 1 in this patch
>
>  arch/sandbox/dts/sandbox.dts | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts
> index 9ce31bf..d090ba8 100644
> --- a/arch/sandbox/dts/sandbox.dts
> +++ b/arch/sandbox/dts/sandbox.dts
> @@ -2,7 +2,7 @@
>
>  / {
>         #address-cells = <1>;
> -       #size-cells = <0>;
> +       #size-cells = <1>;
>
>         chosen {
>                 stdout-path = "/serial";
> @@ -144,7 +144,7 @@
>         i2c at 0 {
>                 #address-cells = <1>;
>                 #size-cells = <0>;
> -               reg = <0>;
> +               reg = <0 0>;
>                 compatible = "sandbox,i2c";
>                 clock-frequency = <400000>;
>                 eeprom at 2c {
> @@ -161,7 +161,7 @@
>         spi at 0 {
>                 #address-cells = <1>;
>                 #size-cells = <0>;
> -               reg = <0>;
> +               reg = <0 0>;
>                 compatible = "sandbox,spi";
>                 cs-gpios = <0>, <&gpio_a 0>;
>                 flash at 0 {
> --

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list