linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] ASoC: rockchip-spdif: add description for rk3308
@ 2020-08-18 14:37 Johan Jonker
  2020-08-18 14:37 ` [PATCH v2 2/2] arm64: dts: rockchip: change fallback string rockchip,rk3308-spdif Johan Jonker
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Johan Jonker @ 2020-08-18 14:37 UTC (permalink / raw)
  To: heiko
  Cc: robh+dt, lgirdwood, broonie, sugar.zhang, alsa-devel, devicetree,
	linux-arm-kernel, linux-rockchip, linux-kernel

A test with the command below shows that the compatible string

"rockchip,rk3308-spdif", "rockchip,rk3328-spdif"

is already in use, but is not added to a document.
The current fallback string "rockchip,rk3328-spdif" points to a data
set enum RK_SPDIF_RK3366 in rockchip_spdif.c that is not used both
in the mainline as in the manufacturer kernel.
(Of the enum only RK_SPDIF_RK3288 is used.)
So if the properties don't change we might as well use the first SoC
in line as fallback string and add the description for rk3308 as:

"rockchip,rk3308-spdif", "rockchip,rk3066-spdif"

make ARCH=arm64 dtbs_check
DT_SCHEMA_FILES=Documentation/devicetree/bindings/sound/rockchip-spdif.yaml

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
Changed V2:
  rebase
---
 Documentation/devicetree/bindings/sound/rockchip-spdif.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/sound/rockchip-spdif.yaml b/Documentation/devicetree/bindings/sound/rockchip-spdif.yaml
index 7bad6f16f..62a61b68d 100644
--- a/Documentation/devicetree/bindings/sound/rockchip-spdif.yaml
+++ b/Documentation/devicetree/bindings/sound/rockchip-spdif.yaml
@@ -27,6 +27,7 @@ properties:
           - enum:
               - rockchip,rk3188-spdif
               - rockchip,rk3288-spdif
+              - rockchip,rk3308-spdif
           - const: rockchip,rk3066-spdif
 
   reg:
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-30 19:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-18 14:37 [PATCH v2 1/2] ASoC: rockchip-spdif: add description for rk3308 Johan Jonker
2020-08-18 14:37 ` [PATCH v2 2/2] arm64: dts: rockchip: change fallback string rockchip,rk3308-spdif Johan Jonker
2020-08-18 17:39 ` [PATCH v2 1/2] ASoC: rockchip-spdif: add description for rk3308 Mark Brown
2020-08-30 19:42 ` Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).