New Device Trees for A64
#1
Check out the drop of the H5SDK Orange Pi posted.

https://github.com/orangepi-xunlong/Oran...4/boot/dts

Aren't these w1p1 files the A64 and the w2p1 stuff the H5?

sun50iw1p1-clk.dtsi
sun50iw1p1-fpga.dts
sun50iw1p1-perf1_v1_0.dts
sun50iw1p1-perf2_v1_0.dts
sun50iw1p1-perf3_v1_0.dts
sun50iw1p1-pinctrl.dtsi
sun50iw1p1-soc.dts
sun50iw1p1-t1.dts
sun50iw1p1.dtsi


It is truly idiotic that everyone outside of China has to rely on Allwinner to release the code to their Chinese OEMs and then those OEMs turn around and post it for everyone to see. Why can't they just put this stuff on a public server like everyone else does?
  Reply
#2
Why and how is this relevant? Every board needs its device tree and every board might be different and thus needs its own device tree.
  Reply
#3
Right, so we need a Pine version of sun50iw1p1-t1.dts. But we can use all of the dtsi (include) files which describe the core A64 CPU. The normal way to write these device trees is to make include files that describe the core CPU and then include those files from a small dts file which adds the board specific info.

Core A64 CPU description include files
sun50iw1p1.dtsi
sun50iw1p1-clk.dtsi
sun50iw1p1-pinctrl.dtsi

We need to write board specific files..
sun50iw1p1-pine64.dts
sun50iw1p1-m64.dts
sun50iw1p1-friendly64.dts
etc - small files that include the core dtsi files.

Also compare the contents of sun50iw1p1-clk, sun50iw1p1-pinctrl, sun50iw1p1.dtsi to what is in the current Pine device tree. Those new files are in much better shape. For example they have all of the symbolic pHandles.

I have always thought the Pine64.dts file was created by decompiling a binary device tree and it wasn't the original source, this looks to be the original source.
  Reply
#4
This has always been possible as similar sources are in the BSP kernel tree. I am just not willing to spend any time on this. Feel free to create a working git repository for pine64 dtsi with a makefile supporting all the different variants and I might feel to use it eventually in my building gear.
  Reply
#5
Hi Guys,

May i ask You a (maybe obvious for You but not for me) a question:
Where i should look for technical data about pinephone such like camera, display (digitizer) correct names, values and so for and so on? -i mean You suggested best link to looking for. I am going to write on new DTS file for PinePhone based on (already working, but not 100% correct) - Pine64_plus wrote by Linus Torvalds (i guess). I mean... i am going to prepare a sid version. It could be compile by DTC tool, or not, but i have to try.

There is a github where is all linux dir with sources made by Linus Torvald:
https://github.com/torvalds/linux/tree/m.../allwinner

Is this below website is the one, and the best one?
https://wiki.pine64.org/index.php/PinePh...ifications

I am going to use as much possible with DRY rule, so basically i need some information (if it even possible) WHAT type, name and value of data i should insert to a
sun50i-a64-pinephone.dts based on sun50i-a64-pine64-plus.dts, and then compile DTS to DTB by DTC Debian tool. Finally i am going to prepare some image by dd or cdebootstrap (from included files one dir) and try to use on sdcard just like in following tutorial (this is work, but could be much better):
https://wiki.debian.org/InstallingDebian...64/PINEA64

Thanks for help in advance! Smile

Edit: I downloaded all pdfs i had been able to find on above website, but if You found a better source, please feel free and write something about it. Thanks!

P.S. I have no idea why, but pmbootstrap did not work correctly last time, and Pine64 installer either.. So please, help me if You can. Wink
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Developing an Android App For a Bluetooth Device Traveler 10 1,759 12-04-2016, 10:43 PM
Last Post: Traveler
  Can the latest update do not affect the android device gustavowoltmann01 0 350 11-15-2016, 09:27 AM
Last Post: gustavowoltmann01
  Android USB debugging and OTG device mode jonsmirl 0 2,186 07-25-2016, 10:46 AM
Last Post: jonsmirl

Forum Jump:


Users browsing this thread: 1 Guest(s)