Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2015 09:41:42 +0300
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        hackers@freebsd.org
Cc:        current@freebsd.org
Subject:   OF_getprop weirdness - raspberry pi
Message-ID:  <D0B40E58-32EB-4CFE-950E-78EAA05E9018@cs.huji.ac.il>

next in thread | raw e-mail | index | archive | help

Hi,
I’m running current as of last week on a raspberry pi B.

i don’t know if this only related to arm, but this is what I have in my rpi-b.dts:
	….
		spi0 {
		     rfid0 {
		     	   compatible = "rfid,mfrc5";
			   spi-chipselect = <0>;
			   reset {
			   	 compatible = "pcd-reset";
				 gpios = <&gpio 6 2>;
			   };
			   lock {
			   	compatible = "lock-1";
				gpios = <&gpio 13 2>;
			   };
			   sense {
			   	 compatible = "sense-1";
				 gpios = <&gpio 19 1>;
			   }; 
		     };
…
and a call to
	uint32_t data[3];
	
	OF_getprop(node, “gpios”, data, sizeof(data)); // node is ‘pcd-reset'
	returns:
		data[0]: 0x03000000
		data[1]: 0x06000000
		data[2]: 0x02000000

which looks to me that it’s in the wrong endian?

cheers,
	danny




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D0B40E58-32EB-4CFE-950E-78EAA05E9018>