Port-arm archive

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

Re: Help with device tree overlays on RPI




> On Dec 11, 2018, at 8:32 AM, Jason Thorpe <thorpej%me.com@localhost> wrote:
> 
> I'm not seeing "nixie-clock-control-pins" or "nixie-clock-controls" inserted into the tree at all.

Ok, I've got it all working.  I was a little confused about how to insert new nodes at / in the tree from the overlay file, but I have it working now:

00000180:   /nixie-clock-controls
000001d8:     /setup-mode-switch
00000234:     /alarm-enable-switch
00000294:     /awake-button
000002e8:     /alarm-set-button
00000344:     /snooze-button
00000398:     /enter-button
000003ec:     /down-button
0000043c:     /up-button
0000048c:   /nixie-clock-control-pins

nixie-dev:thorpej 2$ ofctl -p /nixie-clock-control-pins
[Caching 124 nodes and 815 properties]
brcm,function           00000000 ........ ........ ........   ....
brcm,pins               00000000 00000002 00000003 00000004   ................
            0010:       00000005 00000006 00000019 0000001b   ................
brcm,pull               00000002 ........ ........ ........   ....
linux,phandle           00000054 ........ ........ ........   ...T
name                    6e697869 652d636c 6f636b2d 636f6e74   "nixie-clock-cont
            0010:       726f6c2d 70696e73 00...... ........   rol-pins"
phandle                 00000054 ........ ........ ........   ...T
nixie-dev:thorpej 3$ ofctl -p /nixie-clock-controls     
[Caching 124 nodes and 815 properties]
compatible              6770696f 2d6b6579 7300.... ........   "gpio-keys"
name                    6e697869 652d636c 6f636b2d 636f6e74   "nixie-clock-cont
            0010:       726f6c73 00...... ........ ........   rols"
pinctrl-0               00000054 ........ ........ ........   ...T
pinctrl-names           64656661 756c7400 ........ ........   default.
nixie-dev:thorpej 4$


I need to figure out what's wrong with my pinctrl statement for the controls, though:

[     1.000000] pinctrl: failed to set config pinctrl-0 for /nixie-clock-controls: 6

Anyway, here's the dts file with the winning overlay recipe:

	https://www.dropbox.com/s/x7ka8xvc4i6alxw/thorpej-RPI-NixieClock.dts

-- thorpej



Home | Main Index | Thread Index | Old Index