Each sandbox peripheral should have a size as well as a base address. This
is required for regmaps to work, so make this change for all nodes that have
an address.
Signed-off-by: Simon Glass <sjg@chromium.org>
model = "sandbox";
compatible = "sandbox";
#address-cells = <1>;
model = "sandbox";
compatible = "sandbox";
#address-cells = <1>;
aliases {
console = &uart0;
aliases {
console = &uart0;
compatible = "denx,u-boot-fdt-test";
ping-expect = <0>;
ping-add = <0>;
compatible = "denx,u-boot-fdt-test";
ping-expect = <0>;
ping-add = <0>;
compatible = "not,compatible";
};
no-compatible {
compatible = "not,compatible";
};
no-compatible {
compatible = "denx,u-boot-fdt-test";
ping-expect = <3>;
ping-add = <3>;
compatible = "denx,u-boot-fdt-test";
ping-expect = <3>;
ping-add = <3>;
#address-cells = <1>;
#size-cells = <0>;
compatible = "denx,u-boot-test-bus";
#address-cells = <1>;
#size-cells = <0>;
compatible = "denx,u-boot-test-bus";
ping-expect = <4>;
ping-add = <4>;
c-test@5 {
ping-expect = <4>;
ping-add = <4>;
c-test@5 {
ping-expect = <6>;
ping-add = <6>;
compatible = "google,another-fdt-test";
};
e-test {
ping-expect = <6>;
ping-add = <6>;
compatible = "google,another-fdt-test";
};
e-test {
ping-expect = <6>;
ping-add = <6>;
compatible = "google,another-fdt-test";
ping-expect = <6>;
ping-add = <6>;
compatible = "google,another-fdt-test";
i2c@0 {
#address-cells = <1>;
#size-cells = <0>;
i2c@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "sandbox,i2c";
clock-frequency = <100000>;
eeprom@2c {
compatible = "sandbox,i2c";
clock-frequency = <100000>;
eeprom@2c {
spi@0 {
#address-cells = <1>;
#size-cells = <0>;
spi@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "sandbox,spi";
cs-gpios = <0>, <&gpio_a 0>;
spi.bin@0 {
compatible = "sandbox,spi";
cs-gpios = <0>, <&gpio_a 0>;
spi.bin@0 {
syscon@0 {
compatible = "sandbox,syscon0";
syscon@0 {
compatible = "sandbox,syscon0";
};
syscon@1 {
compatible = "sandbox,syscon1";
};
syscon@1 {
compatible = "sandbox,syscon1";
+ reg = <0x20 5
+ 0x28 6
+ 0x30 7
+ 0x38 8>;