kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: chris@chrishell.de (chrishell)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Subject: Problems with of_find_compatible_node
Date: Fri, 11 Oct 2013 16:49:58 +0200	[thread overview]
Message-ID: <52581016.1080007@chrishell.de> (raw)
In-Reply-To: <CAGM3cC4FLorL3d981BW3c8=yGEu1KpnYaDDnNswxaogE1r5v+w@mail.gmail.com>

Hello Vishwas,
thanks for your reply. But I don not have a /proc/device-tree at all. I
solved the problem by writing a appropriate node into the .dts-file and
recompile the whole kernel. I exchanged also "xilinx,cpld-led" with
"cpld-led". After that it worked.

Regards /Chris



> Hi Chris,
>               probably you can do cat /proc/device-tree o/p to see if such
> a node exist in the device tree file.
> also you can check
> arch/ppc/boot/dts/  directory and check the .dts file to check if such an
> entry really exist in the .dts file which
> you are using.
> 
> Since in your case
>  np = of_find_compatible_node(NULL,NULL,
> "xilinx,cpld-led");
> returns NULL, its a  sign that the entry does not exist in the .dts file
> your system is using.
> thnaks,
> Vishwas S
> 
> 
> 
> Hello out there,
> I got a problem with the kernel function "of_find_compatible_node". I
> use it with:   np = of_find_compatible_node(NULL,NULL,
> "xilinx,cpld-led"); or with   np = of_find_compatible_node(NULL,NULL,
> "cpld-led"); but none of this works, because I get a null-pointer back.
> But it suppose to work? The target is a PPC-walnut-board.
> Which is the mechanism behind this function, which namespace is parsed
> in order to detect devices on the board? Can I parse the whole namespace
> in order to list up all devices?
> 
> What else can I do to solve this problem?
> 
> Thank you in advance...
> 
> Regards /chris
> 
> 
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131011/66ccb260/attachment.bin 

      reply	other threads:[~2013-10-11 14:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-01 16:23 Subject: Problems with of_find_compatible_node Vishwas Srivastava
2013-10-11 14:49 ` chrishell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52581016.1080007@chrishell.de \
    --to=chris@chrishell.de \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).