[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <01020191998a55a9-697c3a2c-237e-49bb-b3dd-45762198d74f-000000@eu-west-1.amazonses.com>
Date: Wed, 28 Aug 2024 15:11:05 +0000
From: Detlev Casanova <detlev.casanova@...labora.com>
To: linux-kernel@...r.kernel.org
Cc: Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Heiko Stuebner <heiko@...ech.de>,
David Airlie <airlied@...il.com>, Daniel Vetter <daniel@...ll.ch>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
Andi Shyti <andi.shyti@...nel.org>, Lee Jones <lee@...nel.org>,
Ulf Hansson <ulf.hansson@...aro.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>, Mark Brown <broonie@...nel.org>,
Wim Van Sebroeck <wim@...ux-watchdog.org>,
Guenter Roeck <linux@...ck-us.net>,
Chris Morgan <macromorgan@...mail.com>,
Jonas Karlman <jonas@...boo.se>, Tim Lunn <tim@...thertop.org>,
Chukun Pan <amadeus@....edu.cn>,
Muhammed Efe Cetin <efectn@...tonmail.com>,
Andy Yan <andyshrk@....com>, Jagan Teki <jagan@...eble.ai>,
Dragan Simic <dsimic@...jaro.org>,
Detlev Casanova <detlev.casanova@...labora.com>,
Ondrej Jirman <megi@....cz>, Jimmy Hon <honyuenkwun@...il.com>,
Elon Zhang <zhangzj@...k-chips.com>,
Finley Xiao <finley.xiao@...k-chips.com>,
Elaine Zhang <zhangqing@...k-chips.com>,
Liang Chen <cl@...k-chips.com>,
Yifeng Zhao <yifeng.zhao@...k-chips.com>,
Jisheng Zhang <jszhang@...nel.org>, Jamie Iles <jamie@...ieiles.com>,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org, dri-devel@...ts.freedesktop.org,
linux-i2c@...r.kernel.org, linux-mmc@...r.kernel.org,
linux-serial@...r.kernel.org, linux-spi@...r.kernel.org,
linux-watchdog@...r.kernel.org, kernel@...labora.com,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Subject: [PATCH v3 06/11] dt-bindings: mmc: Add support for rk3576 eMMC
The device is compatible with rk3588, so add an entry for the 2
compatibles together.
The rk3576 device has a power-domain that needs to be on for the eMMC to
be used. Add it as a requirement.
Signed-off-by: Detlev Casanova <detlev.casanova@...labora.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
---
.../bindings/mmc/snps,dwcmshc-sdhci.yaml | 38 +++++++++++++------
1 file changed, 26 insertions(+), 12 deletions(-)
diff --git a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
index 4d3031d9965f..aff8106ec361 100644
--- a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
+++ b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
@@ -10,18 +10,19 @@ maintainers:
- Ulf Hansson <ulf.hansson@...aro.org>
- Jisheng Zhang <Jisheng.Zhang@...aptics.com>
-allOf:
- - $ref: mmc-controller.yaml#
-
properties:
compatible:
- enum:
- - rockchip,rk3568-dwcmshc
- - rockchip,rk3588-dwcmshc
- - snps,dwcmshc-sdhci
- - sophgo,cv1800b-dwcmshc
- - sophgo,sg2002-dwcmshc
- - thead,th1520-dwcmshc
+ oneOf:
+ - items:
+ - const: rockchip,rk3576-dwcmshc
+ - const: rockchip,rk3588-dwcmshc
+ - enum:
+ - rockchip,rk3568-dwcmshc
+ - rockchip,rk3588-dwcmshc
+ - snps,dwcmshc-sdhci
+ - sophgo,cv1800b-dwcmshc
+ - sophgo,sg2002-dwcmshc
+ - thead,th1520-dwcmshc
reg:
maxItems: 1
@@ -38,7 +39,6 @@ properties:
- description: block clock for rockchip specified
- description: timer clock for rockchip specified
-
clock-names:
minItems: 1
items:
@@ -48,6 +48,9 @@ properties:
- const: block
- const: timer
+ power-domains:
+ maxItems: 1
+
resets:
maxItems: 5
@@ -63,7 +66,6 @@ properties:
description: Specify the number of delay for tx sampling.
$ref: /schemas/types.yaml#/definitions/uint8
-
required:
- compatible
- reg
@@ -71,6 +73,18 @@ required:
- clocks
- clock-names
+allOf:
+ - $ref: mmc-controller.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: rockchip,rk3576-dwcmshc
+ then:
+ properties:
+ power-domains:
+ minItems: 1
+
unevaluatedProperties: false
examples:
--
2.46.0
Powered by blists - more mailing lists