提交 42f94bb9 编写于 作者: K Krzysztof Kozlowski

dt-bindings: memory: lpddr3: deprecate passing timings frequency as unit address

The timings node maximum frequency was passed as an unit address, which
is actually a workaround.  Such workaround and unit address are not
needed at all, because the device memory node (parent) can contain
multiple timing nodes without unit addresses but with suffix used for
nodenames, e.g. timings-1.

LPDDR2 bindings already use such version, so unify the LPDDR3 with them.
Suggested-by: NDmitry Osipenko <digetx@gmail.com>
Signed-off-by: NKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: NDmitry Osipenko <digetx@gmail.com>
Reviewed-by: NRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220206135807.211767-7-krzysztof.kozlowski@canonical.com
上级 e531932c
...@@ -17,6 +17,13 @@ properties: ...@@ -17,6 +17,13 @@ properties:
maxItems: 1 maxItems: 1
description: | description: |
Maximum DDR clock frequency for the speed-bin, in Hz. Maximum DDR clock frequency for the speed-bin, in Hz.
Property is deprecated, use max-freq.
deprecated: true
max-freq:
$ref: /schemas/types.yaml#/definitions/uint32
description: |
Maximum DDR clock frequency for the speed-bin, in Hz.
min-freq: min-freq:
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
...@@ -117,19 +124,16 @@ properties: ...@@ -117,19 +124,16 @@ properties:
required: required:
- compatible - compatible
- min-freq - min-freq
- reg - max-freq
additionalProperties: false additionalProperties: false
examples: examples:
- | - |
lpddr3 { lpddr3 {
#address-cells = <1>; timings {
#size-cells = <0>;
timings@800000000 {
compatible = "jedec,lpddr3-timings"; compatible = "jedec,lpddr3-timings";
reg = <800000000>; max-freq = <800000000>;
min-freq = <100000000>; min-freq = <100000000>;
tCKE = <3750>; tCKE = <3750>;
tCKESR = <3750>; tCKESR = <3750>;
......
...@@ -18,6 +18,7 @@ properties: ...@@ -18,6 +18,7 @@ properties:
'#address-cells': '#address-cells':
const: 1 const: 1
deprecated: true
density: density:
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
...@@ -55,6 +56,7 @@ properties: ...@@ -55,6 +56,7 @@ properties:
'#size-cells': '#size-cells':
const: 0 const: 0
deprecated: true
tCKE-min-tck: tCKE-min-tck:
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
...@@ -191,7 +193,7 @@ properties: ...@@ -191,7 +193,7 @@ properties:
cycles. cycles.
patternProperties: patternProperties:
"^timings@[0-9a-f]+$": "^timings((-[0-9])+|(@[0-9a-f]+))?$":
$ref: jedec,lpddr3-timings.yaml $ref: jedec,lpddr3-timings.yaml
description: | description: |
The lpddr3 node may have one or more child nodes with timings. The lpddr3 node may have one or more child nodes with timings.
...@@ -201,10 +203,8 @@ patternProperties: ...@@ -201,10 +203,8 @@ patternProperties:
required: required:
- compatible - compatible
- '#address-cells'
- density - density
- io-width - io-width
- '#size-cells'
additionalProperties: false additionalProperties: false
...@@ -214,8 +214,6 @@ examples: ...@@ -214,8 +214,6 @@ examples:
compatible = "samsung,K3QF2F20DB", "jedec,lpddr3"; compatible = "samsung,K3QF2F20DB", "jedec,lpddr3";
density = <16384>; density = <16384>;
io-width = <32>; io-width = <32>;
#address-cells = <1>;
#size-cells = <0>;
tCKE-min-tck = <2>; tCKE-min-tck = <2>;
tCKESR-min-tck = <2>; tCKESR-min-tck = <2>;
...@@ -239,9 +237,9 @@ examples: ...@@ -239,9 +237,9 @@ examples:
tXP-min-tck = <2>; tXP-min-tck = <2>;
tXSR-min-tck = <12>; tXSR-min-tck = <12>;
timings@800000000 { timings {
compatible = "jedec,lpddr3-timings"; compatible = "jedec,lpddr3-timings";
reg = <800000000>; max-freq = <800000000>;
min-freq = <100000000>; min-freq = <100000000>;
tCKE = <3750>; tCKE = <3750>;
tCKESR = <3750>; tCKESR = <3750>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册