Repository navigation
char: silabs: si446x (SiLabs Si446x Transceiver) driver added. #4430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2721,6 +2721,15 @@ Params: speed SPI bus speed (default 4000000) | |
| height Display height (32 or 64; default 64) | ||
|
|
||
|
|
||
| Name: si446x-spi0 | ||
| Info: Overlay for Si446x UHF Transceiver via SPI using si446x driver | ||
| The driver is currently out-of-tree at https://github.com/sunipkmukherjee/silabs.git | ||
| Load: dtoverlay=si446x-spi0,<param>=<val> | ||
| Params: speed SPI bus speed (default 4000000) | ||
| int_pin GPIO pin for interrupts (default 17) | ||
| reset_pin GPIO pin for RESET (default 27) | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another blank line here. |
||
|
|
||
| Name: smi | ||
| Info: Enables the Secondary Memory Interface peripheral. Uses GPIOs 2-25! | ||
| Load: dtoverlay=smi | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| // Overlay for the SiLabs Si446X Controller - SPI0 | ||
| // Default Interrupt Pin: 17 | ||
| // Default SDN Pin: 27 | ||
| /dts-v1/; | ||
| /plugin/; | ||
|
|
||
| / { | ||
| compatible = "brcm,bcm2835"; | ||
|
|
||
| fragment@0 { | ||
| target = <&spi0>; | ||
| __overlay__ { | ||
| // needed to avoid dtc warning | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| status = "okay"; | ||
|
|
||
| uhf0: si446x@0{ | ||
| compatible = "silabs,si446x"; | ||
| reg = <0>; // CE0 | ||
| pinctrl-names = "default"; | ||
| pinctrl-0 = <&uhf0_pins>; | ||
| interrupt-parent = <&gpio>; | ||
| interrupts = <17 0x2>; // falling edge | ||
| spi-max-frequency = <4000000>; | ||
| sdn_pin = <27>; | ||
| irq_pin = <17>; | ||
| status = "okay"; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@1 { | ||
| target = <&gpio>; | ||
| __overlay__ { | ||
| uhf0_pins: uhf0_pins { | ||
| brcm,pins = <17 27>; | ||
| brcm,function = <0 1>; // in, out | ||
| brcm,pull = <2 0>; // high, none | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| __overrides__ { | ||
| int_pin = <&uhf0>, "interrupts:0", | ||
| <&uhf0>, "irq_pin:0", | ||
| <&uhf0_pins>, "brcm,pins:0"; | ||
| reset_pin = <&uhf0>, "sdn_pin:0", | ||
| <&uhf0_pins>, "brcm,pins:4"; | ||
| speed = <&uhf0>, "spi-max-frequency:0"; | ||
| }; | ||
| }; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two blank lines between overlays, please.