Add support for StarFive JHB100 SPI
Subsystems (2)
v2 cover Add support for StarFive JHB100 SPI
The StarFive JHB100 SPI is based on the Synopsys DesignWare SSI version 2.00.
changes since v1:
PATCH 1:
- Add "starfive,jhb100-spi" and support falling back to "snps,dwc-ssi-2.00a" or "snps,dwc-ssi-1.01a".
- using subject lines reflecting the style for the spi subsystem.
v1: https://lore.kernel.org/all/[email protected]/
Changhuang Liang (2):
spi: dt-bindings: snps,dw-apb-ssi: Add starfive,jhb100-spi
spi: dw: Add support for snps,dwc-ssi-2.00a
Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml | 6 ++++++ drivers/spi/spi-dw-mmio.c | 1 + 2 files changed, 7 insertions(+)
--
2.25.1
PATCH v2 1/2 spi: dt-bindings: snps,dw-apb-ssi: Add starfive,jhb100-spi
Add a new compatible string "starfive,jhb100-spi" for the StarFive JHB100 SPI, it based on the Synopsys DesignWare SSI version 2.00a, uses snps,dwc-ssi-2.00a as the primary fallback and snps,dwc-ssi-1.01a as the secondary fallback.
--- Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml +6 -0
@@ -54,6 +54,12 @@ properties: - sophgo,sg2042-spi - thead,th1520-spi - const: snps,dw-apb-ssi + - description: Vendor controllers which use snps,dwc-ssi-2.00a as fallback + items: + - enum: + - starfive,jhb100-spi + - const: snps,dwc-ssi-2.00a + - const: snps,dwc-ssi-1.01a - description: Intel Keem Bay SPI Controller const: intel,keembay-ssi - description: Intel Mount Evans Integrated Management Complex SPI Controller
Signature · 1 line
2.25.1
Re: [PATCH v2 1/2] spi: dt-bindings: snps,dw-apb-ssi: Add starfive,jhb100-spi
pw-bot: not-applicable
[email protected]
AI reviewRe: [PATCH v2 1/2] spi: dt-bindings: snps,dw-apb-ssi: Add starfive,jhb100-spi
In reply to Changhuang LiangThank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] The patch introduces 'snps,dwc-ssi-2.00a' as a fallback compatible string but does not document…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The patch introduces 'snps,dwc-ssi-2.00a' as a fallback compatible string but does not document it as a standalone generic compatible. --
commit a0b5bdaa0ec7a10bb2b844ee5ff0f01be111deee
Author: Changhuang Liang <[email protected]>
spi: dt-bindings: snps,dw-apb-ssi: Add starfive,jhb100-spi
Add a new compatible string "starfive,jhb100-spi" for the StarFive JHB100 SPI, it based on the Synopsys DesignWare SSI version 2.00a, uses snps,dwc-ssi-2.00a as the primary fallback and snps,dwc-ssi-1.01a as the secondary fallback.
Quoted 5 lines
Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml +0
-0
Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml properties: · line 62
Quoted 9 lines
Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml +6
-0@@ -54,6 +54,12 @@ properties: - sophgo,sg2042-spi - thead,th1520-spi - const: snps,dw-apb-ssi + - description: Vendor controllers which use snps,dwc-ssi-2.00a as fallback + items: + - enum: + - starfive,jhb100-spi + - const: snps,dwc-ssi-2.00a + - const: snps,dwc-ssi-1.01a
[Severity: Medium]
Since snps,dwc-ssi-2.00a is introduced as a fallback here, should it also be added as a valid standalone string under the "Generic DW SPI Controller" enum list earlier in properties:compatible:oneOf?
If it is omitted from the generic enum list, any future device tree nodes that use the generic Synopsys 2.00a IP core without a vendor prefix might fail schema validation.
For context, the existing generic list only contains snps,dwc-ssi-1.01a and snps,dw-apb-ssi:
compatible:
oneOf:
- description: Generic DW SPI Controller
enum:
- snps,dw-apb-ssi
- snps,dwc-ssi-1.01a
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
PATCH v2 2/2 spi: dw: Add support for snps,dwc-ssi-2.00a
In reply to Changhuang LiangAdd a new compatible entry "snps,dwc-ssi-2.00a" for the Synopsys DesignWare SSI controller version 2.00a. This variant uses the same initialization routine as snps,dwc-ssi-1.01a (dw_spi_hssi_init).
--- drivers/spi/spi-dw-mmio.c | 1 + 1 file changed, 1 insertion(+)
drivers/spi/spi-dw-mmio.c +1 -0
@@ -438,6 +438,7 @@ static const struct of_device_id dw_spi_mmio_of_match[] = { { .compatible = "amazon,alpine-dw-apb-ssi", .data = dw_spi_alpine_init}, { .compatible = "renesas,rzn1-spi", .data = dw_spi_pssi_init}, { .compatible = "snps,dwc-ssi-1.01a", .data = dw_spi_hssi_init}, + { .compatible = "snps,dwc-ssi-2.00a", .data = dw_spi_hssi_init}, { .compatible = "intel,keembay-ssi", .data = dw_spi_hssi_no_dma_init}, { .compatible = "intel,mountevans-imc-ssi",
Signature · 1 line
2.25.1
Mark Brown
maintainerQuoted 4 lines · Changhuang Liang
Add support for StarFive JHB100 SPI
The StarFive JHB100 SPI is based on the Synopsys DesignWare SSI version 2.00.
Quoted 8 lines
changes since v1:
PATCH 1:
- Add "starfive,jhb100-spi" and support falling back to "snps,dwc-ssi-2.00a" or "snps,dwc-ssi-1.01a".
- using subject lines reflecting the style for the spi subsystem.[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-7.2
Thanks!
[1/2] spi: dt-bindings: snps,dw-apb-ssi: Add starfive,jhb100-spi
https://git.kernel.org/broonie/spi/c/07f251e0ed0b [2/2] spi: dw: Add support for snps,dwc-ssi-2.00a https://git.kernel.org/broonie/spi/c/914e708e3049
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark