On Mon, 11 Mar 2024 at 08:47, Kaj Wiik <[email protected]> wrote:

> Hi all,
>
> Somewhat related to the previous question: how to define and use (RFSoC)
> pins as GPIOs via the gpio block?
>
> I noticed that group 'led' is in both gpio block mask and in .yaml but
> e.g. there is 'pmod' group in rfsoc4x2.yaml but it is not seen
> in the gpio mask parameters. Can that group be used e.g. via the 'custom'
> group?
>
> What is the process of adding pins to the gpio block other than just
> adding them into the .yaml file?
> Should I define a new group e.g. pmod and add that to the mask, would
> that be enough?
>
> Thanks,
> Kaj
>

Hi Kaj,

As you infer, you can use the "custom" group and then just type what you
want in the mask dialog -- e.g. 'pmod' (I wouldn't like to say if the
quotes are required or forbidden....)
With this mechanism, you can use any pin group present in the YAML file
without modifying the GPIO mask.

Otherwise, you can modify the mask to add the groups as you describe. The
annoyance then becomes choosing between having a bunch of groups in the
dropdown which are only supported if the platform YAML has included them,
or, adding a bunch of callback code so only the supported groups are
displayed based on your chosen platform.

My vote: "custom" :)

Cheers
Jack


> --
> You received this message because you are subscribed to the Google Groups "
> [email protected]" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CADpJ3s2srCtQK5JJyTkVqk7_-KzR2T%3DzkG8jU8DDOUMXLTZDnA%40mail.gmail.com
> <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CADpJ3s2srCtQK5JJyTkVqk7_-KzR2T%3DzkG8jU8DDOUMXLTZDnA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKSn8GoRn4Ve5GtoqhS5WyY6j_4Y9EKWBAQpb1_YZZdi%2BQw%40mail.gmail.com.

Reply via email to