]> git.ipfire.org Git - thirdparty/linux.git/commit
dt-bindings: mfd: rk817: Merge support for RK809
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Fri, 21 Jun 2024 21:57:19 +0000 (00:57 +0300)
committerLee Jones <lee@kernel.org>
Thu, 4 Jul 2024 16:38:41 +0000 (17:38 +0100)
commitf11121314a6e4ac505233fb7ae777311fb45a6a3
tree84c5e6b6781b2b55daca7560d50f6bcb35939051
parente7865de24e8d83b4f12bbca8be2f9d5de464b5fa
dt-bindings: mfd: rk817: Merge support for RK809

The Rockchip RK809 PMIC is compatible with RK817 and provides the same
capabilities, except for the battery charger manager.

There are also minor regulator related differences: BOOST and OTG_SWITCH
are specific to RK817, while DCDC_REG5, SWITCH_REG1 and SWITCH_REG2 are
provided RK809.

The current binding for RK809 doesn't document the audio codec
properties, although it has been already in use by several boards:
rk3566-quartz64-b, k3566-roc-pc, rk3568-evb1-v10, rk3568-lubancat-2,
rk3568-odroid-m1, rk3568-rock-3a.

Therefore dtbs_check fails for all of them:

  DTC_CHK arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dtb
  rk3568-rock-3a.dtb: pmic@20: '#sound-dai-cells', 'assigned-clock-parents', 'assigned-clocks', 'clock-names', 'clocks', 'codec' do not match any of the regexes: 'pinctrl-[0-9]+'
    from schema $id: http://devicetree.org/schemas/mfd/rockchip,rk809.yaml#

Additionally, the example in rockchip,rk809 binding is not able to
actually test the schema since it uses a wrong compatible
'rockchip,rk808' instead of the expected 'rockchip,rk809'.

Instead of duplicating even more content, merge the RK809 support into
the more inclusive RK817 schema and drop the now obsolete rockchip,rk809
related file.

Fixes: 6c38ca03406e ("dt-bindings: mfd: rk808: Convert bindings to yaml")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240622-rk809-fixes-v2-2-c0db420d3639@collabora.com
Signed-off-by: Lee Jones <lee@kernel.org>
Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml [deleted file]
Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml