* [PATCH v4 2/3] spi: spidev: Add an entry for elgin,jg10309-01
2024-08-29 11:31 [PATCH v4 1/3] dt-bindings: trivial-devices: Document elgin,jg10309-01 Fabio Estevam
@ 2024-08-29 11:31 ` Fabio Estevam
2024-08-29 11:31 ` [PATCH v4 3/3] ARM: dts: rockchip: rv1108-elgin-r1: Do not describe unexisting DAC device Fabio Estevam
` (3 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Fabio Estevam @ 2024-08-29 11:31 UTC (permalink / raw)
To: broonie
Cc: linux-spi, otavio.salvador, heiko, robh, krzk+dt, conor+dt,
devicetree, linux-arm-kernel, Fabio Estevam
The rv1108-elgin-r1 board has an LCD controlled via SPI in userspace.
The marking on the LCD is JG10309-01.
Add the "elgin,jg10309-01" compatible string.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
---
Changes since v3:
- Fix the series numbering version.
drivers/spi/spidev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index 05e6d007f9a7..316ed3664cb2 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -730,6 +730,7 @@ static int spidev_of_check(struct device *dev)
static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "cisco,spi-petra", .data = &spidev_of_check },
{ .compatible = "dh,dhcom-board", .data = &spidev_of_check },
+ { .compatible = "elgin,jg10309-01", .data = &spidev_of_check },
{ .compatible = "lineartechnology,ltc2488", .data = &spidev_of_check },
{ .compatible = "lwn,bk4", .data = &spidev_of_check },
{ .compatible = "menlo,m53cpld", .data = &spidev_of_check },
--
2.34.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH v4 3/3] ARM: dts: rockchip: rv1108-elgin-r1: Do not describe unexisting DAC device
2024-08-29 11:31 [PATCH v4 1/3] dt-bindings: trivial-devices: Document elgin,jg10309-01 Fabio Estevam
2024-08-29 11:31 ` [PATCH v4 2/3] spi: spidev: Add an entry for elgin,jg10309-01 Fabio Estevam
@ 2024-08-29 11:31 ` Fabio Estevam
2024-08-29 14:09 ` (subset) [PATCH v4 1/3] dt-bindings: trivial-devices: Document elgin,jg10309-01 Mark Brown
` (2 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Fabio Estevam @ 2024-08-29 11:31 UTC (permalink / raw)
To: broonie
Cc: linux-spi, otavio.salvador, heiko, robh, krzk+dt, conor+dt,
devicetree, linux-arm-kernel, Fabio Estevam, Conor Dooley
There is no DAC connected to the SPI bus of the Elgin RV1108 R1 board.
There is a JG10309-01 LCD controlled via SPI though.
Properly describe it by adding the "elgin,jg10309-01" compatible
string.
Reported-by: Conor Dooley <conor.dooley@microchip.com>
Closes: https://lore.kernel.org/linux-arm-kernel/20240717-parrot-malt-83cc04bf6b36@spud/
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
---
Changes since v3:
- Fix the series numbering version.
arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts b/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
index 2d9994379eb2..971bb617e845 100644
--- a/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
+++ b/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dts
@@ -168,8 +168,8 @@ &spi {
pinctrl-0 = <&spim1_clk &spim1_cs0 &spim1_tx &spim1_rx>;
status = "okay";
- dh2228fv: dac@0 {
- compatible = "rohm,dh2228fv";
+ display: display@0 {
+ compatible = "elgin,jg10309-01";
reg = <0>;
spi-max-frequency = <24000000>;
spi-cpha;
--
2.34.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: (subset) [PATCH v4 1/3] dt-bindings: trivial-devices: Document elgin,jg10309-01
2024-08-29 11:31 [PATCH v4 1/3] dt-bindings: trivial-devices: Document elgin,jg10309-01 Fabio Estevam
2024-08-29 11:31 ` [PATCH v4 2/3] spi: spidev: Add an entry for elgin,jg10309-01 Fabio Estevam
2024-08-29 11:31 ` [PATCH v4 3/3] ARM: dts: rockchip: rv1108-elgin-r1: Do not describe unexisting DAC device Fabio Estevam
@ 2024-08-29 14:09 ` Mark Brown
2024-08-29 17:38 ` Heiko Stuebner
2024-08-29 18:41 ` Rob Herring (Arm)
4 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2024-08-29 14:09 UTC (permalink / raw)
To: Fabio Estevam
Cc: linux-spi, otavio.salvador, heiko, robh, krzk+dt, conor+dt,
devicetree, linux-arm-kernel, Conor Dooley
On Thu, 29 Aug 2024 08:31:56 -0300, Fabio Estevam wrote:
> The rv1108-elgin-r1 board has an LCD controlled via SPI in userspace.
> The marking on the LCD is JG10309-01.
>
> Add an entry for the "elgin,jg10309-01" compatible string.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/3] dt-bindings: trivial-devices: Document elgin,jg10309-01
(no commit info)
[2/3] spi: spidev: Add an entry for elgin,jg10309-01
commit: 5f3eee1eef5d0edd23d8ac0974f56283649a1512
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
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: (subset) [PATCH v4 1/3] dt-bindings: trivial-devices: Document elgin,jg10309-01
2024-08-29 11:31 [PATCH v4 1/3] dt-bindings: trivial-devices: Document elgin,jg10309-01 Fabio Estevam
` (2 preceding siblings ...)
2024-08-29 14:09 ` (subset) [PATCH v4 1/3] dt-bindings: trivial-devices: Document elgin,jg10309-01 Mark Brown
@ 2024-08-29 17:38 ` Heiko Stuebner
2024-08-29 18:41 ` Rob Herring (Arm)
4 siblings, 0 replies; 9+ messages in thread
From: Heiko Stuebner @ 2024-08-29 17:38 UTC (permalink / raw)
To: broonie, Fabio Estevam
Cc: Heiko Stuebner, krzk+dt, robh, Conor Dooley, conor+dt,
otavio.salvador, devicetree, linux-spi, linux-arm-kernel
On Thu, 29 Aug 2024 08:31:56 -0300, Fabio Estevam wrote:
> The rv1108-elgin-r1 board has an LCD controlled via SPI in userspace.
> The marking on the LCD is JG10309-01.
>
> Add an entry for the "elgin,jg10309-01" compatible string.
>
>
Applied, thanks!
[3/3] ARM: dts: rockchip: rv1108-elgin-r1: Do not describe unexisting DAC device
commit: 0296f20c72d23f41ca0ccd64eb849e9ef1aa8977
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH v4 1/3] dt-bindings: trivial-devices: Document elgin,jg10309-01
2024-08-29 11:31 [PATCH v4 1/3] dt-bindings: trivial-devices: Document elgin,jg10309-01 Fabio Estevam
` (3 preceding siblings ...)
2024-08-29 17:38 ` Heiko Stuebner
@ 2024-08-29 18:41 ` Rob Herring (Arm)
2024-08-29 18:42 ` Rob Herring
4 siblings, 1 reply; 9+ messages in thread
From: Rob Herring (Arm) @ 2024-08-29 18:41 UTC (permalink / raw)
To: Fabio Estevam
Cc: heiko, broonie, krzk+dt, linux-spi, conor+dt, otavio.salvador,
Conor Dooley, devicetree, linux-arm-kernel
On Thu, 29 Aug 2024 08:31:56 -0300, Fabio Estevam wrote:
> The rv1108-elgin-r1 board has an LCD controlled via SPI in userspace.
> The marking on the LCD is JG10309-01.
>
> Add an entry for the "elgin,jg10309-01" compatible string.
>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
> Acked-by: Heiko Stuebner <heiko@sntech.de>
> ---
> Changes since v3:
> - Fix the series numbering version.
>
> Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y rockchip/rv1108-elgin-r1.dtb' for 20240829113158.3324928-1-festevam@gmail.com:
arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dtb: display@0: 'spi-cpha', 'spi-cpol' do not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/trivial-devices.yaml#
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH v4 1/3] dt-bindings: trivial-devices: Document elgin,jg10309-01
2024-08-29 18:41 ` Rob Herring (Arm)
@ 2024-08-29 18:42 ` Rob Herring
2024-08-29 19:07 ` Fabio Estevam
0 siblings, 1 reply; 9+ messages in thread
From: Rob Herring @ 2024-08-29 18:42 UTC (permalink / raw)
To: Fabio Estevam
Cc: heiko, broonie, krzk+dt, linux-spi, conor+dt, otavio.salvador,
Conor Dooley, devicetree, linux-arm-kernel
On Thu, Aug 29, 2024 at 1:41 PM Rob Herring (Arm) <robh@kernel.org> wrote:
>
>
> On Thu, 29 Aug 2024 08:31:56 -0300, Fabio Estevam wrote:
> > The rv1108-elgin-r1 board has an LCD controlled via SPI in userspace.
> > The marking on the LCD is JG10309-01.
> >
> > Add an entry for the "elgin,jg10309-01" compatible string.
> >
> > Signed-off-by: Fabio Estevam <festevam@gmail.com>
> > Acked-by: Conor Dooley <conor.dooley@microchip.com>
> > Acked-by: Heiko Stuebner <heiko@sntech.de>
> > ---
> > Changes since v3:
> > - Fix the series numbering version.
> >
> > Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
> > 1 file changed, 2 insertions(+)
> >
>
>
> My bot found new DTB warnings on the .dts files added or changed in this
> series.
>
> Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
> are fixed by another series. Ultimately, it is up to the platform
> maintainer whether these warnings are acceptable or not. No need to reply
> unless the platform maintainer has comments.
>
> If you already ran DT checks and didn't see these error(s), then
> make sure dt-schema is up to date:
>
> pip3 install dtschema --upgrade
>
>
> New warnings running 'make CHECK_DTBS=y rockchip/rv1108-elgin-r1.dtb' for 20240829113158.3324928-1-festevam@gmail.com:
>
> arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dtb: display@0: 'spi-cpha', 'spi-cpol' do not match any of the regexes: 'pinctrl-[0-9]+'
> from schema $id: http://devicetree.org/schemas/trivial-devices.yaml#
I'd be okay if trivial-devices.yaml references spi-peripheral-props.yaml.
Rob
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v4 1/3] dt-bindings: trivial-devices: Document elgin,jg10309-01
2024-08-29 18:42 ` Rob Herring
@ 2024-08-29 19:07 ` Fabio Estevam
2024-08-29 19:43 ` Fabio Estevam
0 siblings, 1 reply; 9+ messages in thread
From: Fabio Estevam @ 2024-08-29 19:07 UTC (permalink / raw)
To: Rob Herring
Cc: heiko, broonie, krzk+dt, linux-spi, conor+dt, otavio.salvador,
Conor Dooley, devicetree, linux-arm-kernel
Hi Rob,
On Thu, Aug 29, 2024 at 3:43 PM Rob Herring <robh@kernel.org> wrote:
> > New warnings running 'make CHECK_DTBS=y rockchip/rv1108-elgin-r1.dtb' for 20240829113158.3324928-1-festevam@gmail.com:
> >
> > arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dtb: display@0: 'spi-cpha', 'spi-cpol' do not match any of the regexes: 'pinctrl-[0-9]+'
> > from schema $id: http://devicetree.org/schemas/trivial-devices.yaml#
>
> I'd be okay if trivial-devices.yaml references spi-peripheral-props.yaml.
This is what I tried:
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -424,6 +424,9 @@ required:
- compatible
- reg
-additionalProperties: false
+allOf:
+ - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
but still get:
$ make CHECK_DTBS=y rockchip/rv1108-elgin-r1.dtb
SCHEMA Documentation/devicetree/bindings/processed-schema.json
DTC [C] arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dtb
/home/fabio/linux-next/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dtb:
display@0: Unevaluated properties are not allowed ('spi-cpha',
'spi-cpol' were unexpected)
from schema $id: http://devicetree.org/schemas/trivial-devices.yaml#
Any suggestions?
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH v4 1/3] dt-bindings: trivial-devices: Document elgin,jg10309-01
2024-08-29 19:07 ` Fabio Estevam
@ 2024-08-29 19:43 ` Fabio Estevam
0 siblings, 0 replies; 9+ messages in thread
From: Fabio Estevam @ 2024-08-29 19:43 UTC (permalink / raw)
To: Rob Herring
Cc: heiko, broonie, krzk+dt, linux-spi, conor+dt, otavio.salvador,
Conor Dooley, devicetree, linux-arm-kernel
On Thu, Aug 29, 2024 at 4:07 PM Fabio Estevam <festevam@gmail.com> wrote:
> $ make CHECK_DTBS=y rockchip/rv1108-elgin-r1.dtb
> SCHEMA Documentation/devicetree/bindings/processed-schema.json
> DTC [C] arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dtb
> /home/fabio/linux-next/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dtb:
> display@0: Unevaluated properties are not allowed ('spi-cpha',
> 'spi-cpol' were unexpected)
> from schema $id: http://devicetree.org/schemas/trivial-devices.yaml#
>
> Any suggestions?
'spi-cpha' and 'spi-cpol' are not documented in spi-peripheral-props.yaml.
I can send a patch adding them to spi-peripheral-props.yaml.
^ permalink raw reply [flat|nested] 9+ messages in thread