Re: [PATCH 1/3] kvx: add qemu dts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Ahmad,

On 13/08/2024 08:28, Ahmad Fatoum wrote:
> On 12.08.24 16:41, Yann Sionneau wrote:
>>  obj-$(CONFIG_BOARD_K200) += k200.dtb.o
>> +obj-$(CONFIG_BOARD_QEMU) += qemu.dtb.o
> Given that you pass in the device tree externally anyway, how
> about yo make this obj- an extra-y and drop the Kconfig change.
> That way, the device tree is always generated alongside the
> normal image.
Ack!
>
>>  
>>  clean-files := *.dtb *.dtb.S .*.dtc .*.pre .*.dts *.dtb.z
>> diff --git a/arch/kvx/dts/qemu.dts b/arch/kvx/dts/qemu.dts
>> new file mode 100644
>> index 0000000000..68d242c113
>> --- /dev/null
>> +++ b/arch/kvx/dts/qemu.dts
>> @@ -0,0 +1,269 @@
>> +/dts-v1/;
>> +
>> +/ {
>> +	model = "Kalray Coolidge processor (QEMU)";
>> +	#address-cells = <0x02>;
>> +	#size-cells = <0x02>;
>> +	compatible = "kalray,coolidge\0kalray,iss";
> Is this a decompiled device tree?

Yes, you got me ^^ I replaced all hard-coded phandles with label references but I forgot about splitting this compatible into 2 strings. Will do!

I used the generated dtb from qemu as source for this patch by doing `kvx-system-qemu -M mppa-coolidge,dumpdtb=qemu.dtb`

Regards,

-- 

Yann









[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux