arm64: dts: Initial RTD1293/RTD1296 and DS418j/DS418 support
Subsystems (4)
v2 cover arm64: dts: Initial RTD1293/RTD1296 and DS418j/DS418 support
Hello,
This series adds Device Trees for the Realtek RTD1293 and RTD1296 SoCs and Synology DiskStation DS418j and DS418 NAS devices.
v2 was updated to YAML schemas.
More details at:
https://en.opensuse.org/HCL:DS418j
https://en.opensuse.org/HCL:DS418
Latest experimental patches at:
https://github.com/afaerber/linux/commits/rtd1295-next
Have a lot of fun!
Cheers,
Andreas
v1 -> v2:
* Rebased onto Rob's SoC YAML schema conversion
* Moved SPDX-License-Identifier to top
* YAML schema conversions of watchdog and rtc
* Dropped "arm,armv8" (Rob)
* Adopted BSD-2-Clause instead of MIT dual-license (Rob)
* Dropped accidental enable-method and cpu-release-addr
* Fix DS418 to actually use rtd1296.dtsi
Andreas Färber (8):
dt-bindings: watchdog: realtek: Convert RTD119x to schema
dt-bindings: rtc: realtek: Convert RTD119x to schema
dt-bindings: arm: realtek: Tidy up conversion to json-schema
dt-bindings: arm: realtek: Document RTD1293 and Synology DS418j
arm64: dts: realtek: Change dual-license from MIT to BSD
arm64: dts: realtek: Add RTD1293 and Synology DS418j
dt-bindings: arm: realtek: Document RTD1296 and Synology DS418
arm64: dts: realtek: Add RTD1296 and Synology DS418
Documentation/devicetree/bindings/arm/realtek.yaml | 27 ++++++--- .../devicetree/bindings/rtc/realtek,rtd119x.txt | 16 ------ .../devicetree/bindings/rtc/realtek,rtd119x.yaml | 38 +++++++++++++ .../bindings/watchdog/realtek,rtd119x.txt | 17 ------ .../bindings/watchdog/realtek,rtd119x.yaml | 38 +++++++++++++ arch/arm64/boot/dts/realtek/Makefile | 5 ++ arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts | 30 ++++++++++ arch/arm64/boot/dts/realtek/rtd1293.dtsi | 51 +++++++++++++++++ arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts | 3 +- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 3 +- arch/arm64/boot/dts/realtek/rtd1296-ds418.dts | 30 ++++++++++ arch/arm64/boot/dts/realtek/rtd1296.dtsi | 65 ++++++++++++++++++++++ arch/arm64/boot/dts/realtek/rtd129x.dtsi | 3 +- 13 files changed, 280 insertions(+), 46 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt create mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml delete mode 100644 Documentation/devicetree/bindings/watchdog/realtek,rtd119x.txt create mode 100644 Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml create mode 100644 arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts create mode 100644 arch/arm64/boot/dts/realtek/rtd1293.dtsi create mode 100644 arch/arm64/boot/dts/realtek/rtd1296-ds418.dts create mode 100644 arch/arm64/boot/dts/realtek/rtd1296.dtsi
Signature · 1 line
2.16.4
PATCH v2 1/8 dt-bindings: watchdog: realtek: Convert RTD119x to schema
Convert the Realtek watchdog binding to a YAML schema.
---
v2: New
.../bindings/watchdog/realtek,rtd119x.txt | 17 ---------- .../bindings/watchdog/realtek,rtd119x.yaml | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/watchdog/realtek,rtd119x.txt create mode 100644 Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml
Documentation/devicetree/bindings/watchdog/realtek,rtd119x.txt deleted +0 -17
@@ -1,17 +0,0 @@ -Realtek RTD1295 Watchdog -======================== - -Required properties: - -- compatible : Should be "realtek,rtd1295-watchdog" -- reg : Specifies the physical base address and size of registers -- clocks : Specifies one clock input - - -Example: - - watchdog@98007680 { - compatible = "realtek,rtd1295-watchdog"; - reg = <0x98007680 0x100>; - clocks = <&osc27M>; - };
Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml new file +38 -0
@@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/watchdog/realtek,rtd119x.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Realtek RTD1295 Watchdog + +maintainers: + - Andreas Färber <[email protected]> + +allOf: + - $ref: watchdog.yaml# + +properties: + compatible: + oneOf: + - const: realtek,rtd1295-watchdog + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +examples: + - | + watchdog@98007680 { + compatible = "realtek,rtd1295-watchdog"; + reg = <0x98007680 0x100>; + clocks = <&osc27M>; + }; +...
Signature · 1 line
2.16.4
Re: [PATCH v2 1/8] dt-bindings: watchdog: realtek: Convert RTD119x to schema
Quoted 49 lines · Andreas Färber
Convert the Realtek watchdog binding to a YAML schema.
Signed-off-by Andreas Färber <[email protected]>---
v2: New.../bindings/watchdog/realtek,rtd119x.txt | 17 ---------- .../bindings/watchdog/realtek,rtd119x.yaml | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/watchdog/realtek,rtd119x.txt create mode 100644 Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yamlDocumentation/devicetree/bindings/watchdog/realtek,rtd119x.txt deleted +0
-17@@ -1,17 +0,0 @@ -Realtek RTD1295 Watchdog -======================== - -Required properties: - -- compatible : Should be "realtek,rtd1295-watchdog" -- reg : Specifies the physical base address and size of registers -- clocks : Specifies one clock input - - -Example: - - watchdog@98007680 { - compatible = "realtek,rtd1295-watchdog"; - reg = <0x98007680 0x100>; - clocks = <&osc27M>; - };Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml new file +8
-0@@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/watchdog/realtek,rtd119x.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Realtek RTD1295 Watchdog +
Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml line 18
Quoted 10 lines
Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml new file +10
-0+maintainers: + - Andreas Färber <[email protected]> + +allOf: + - $ref: watchdog.yaml# + +properties: + compatible: + oneOf: + - const: realtek,rtd1295-watchdog
You can drop the 'oneOf' here unless you're planning to add another entry with 2 compatible strings.
With that,
Quoted 23 lines
Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml new file +20
-0+ + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +examples: + - | + watchdog@98007680 { + compatible = "realtek,rtd1295-watchdog"; + reg = <0x98007680 0x100>; + clocks = <&osc27M>; + }; +...Signature · 1 line
2.16.4
Re: [PATCH v2 1/8] dt-bindings: watchdog: realtek: Convert RTD119x to schema
Am 25.10.19 um 23:16 schrieb Rob Herring:
Quoted 55 lines · Andreas Färber
Quoted 54 lines
Convert the Realtek watchdog binding to a YAML schema.
Signed-off-by Andreas Färber <[email protected]>---
v2: New.../bindings/watchdog/realtek,rtd119x.txt | 17 ---------- .../bindings/watchdog/realtek,rtd119x.yaml | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/watchdog/realtek,rtd119x.txt create mode 100644 Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yamlDocumentation/devicetree/bindings/watchdog/realtek,rtd119x.txt deleted +0
-17@@ -1,17 +0,0 @@ -Realtek RTD1295 Watchdog -======================== - -Required properties: - -- compatible : Should be "realtek,rtd1295-watchdog" -- reg : Specifies the physical base address and size of registers -- clocks : Specifies one clock input - - -Example: - - watchdog@98007680 { - compatible = "realtek,rtd1295-watchdog"; - reg = <0x98007680 0x100>; - clocks = <&osc27M>; - };Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml new file +13
-0@@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/watchdog/realtek,rtd119x.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Realtek RTD1295 Watchdog + +maintainers: + - Andreas Färber <[email protected]> + +allOf: + - $ref: watchdog.yaml#
Quoted 8 lines
Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml line 18
Quoted 5 lines
Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml new file +5
-0+ +properties: + compatible: + oneOf: + - const: realtek,rtd1295-watchdogYou can drop the 'oneOf' here unless you're planning to add another entry with 2 compatible strings.
It's a preparation for adding rtd1195-watchdog when needed, to make future diffs smaller. There's also RTD1395 and RTD1619 to be tested.
Quoted 4 lines
With that,
Reviewed-by Rob Herring <[email protected]>
Thanks,
Andreas
Signature · 4 lines
SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)
Re: [PATCH v2 1/8] dt-bindings: watchdog: realtek: Convert RTD119x to schema
Am 25.10.19 um 23:24 schrieb Andreas Färber:
Quoted 7 lines
Am 25.10.19 um 23:16 schrieb Rob Herring:
Quoted 6 lines · Andreas Färber
Quoted 4 lines
Documentation/devicetree/bindings/watchdog/realtek,rtd119x.yaml new file +4
-0+properties: + compatible: + oneOf: + - const: realtek,rtd1295-watchdog
Quoted 9 lines
Quoted 2 lines
You can drop the 'oneOf' here unless you're planning to add another entry with 2 compatible strings.
It's a preparation for adding rtd1195-watchdog when needed, to make future diffs smaller. There's also RTD1395 and RTD1619 to be tested.
Quoted 3 lines
With that,
Reviewed-by Rob Herring <[email protected]>
Self-NAK.
The example doesn't pass dt_binding_check: It doesn't like the tabs retained from the original binding. Replacing them with four spaces makes it pass. Will post a v3.
As for the compatibles, currently in the rtd1195.dtsi patch I'm reusing "realtek,rtd1295-watchdog", to avoid a dependency on the watchdog tree.
Long-term that's kind of ugly as it uses a later model number. That leaves us with two alternatives:
a) "realtek,rtd1195-watchdog", "realtek,rtd1295-watchdog" - this requires oneOf. Allows to distinguish between RTD1195 and RTD1295 while remaining compatible with the current driver.
b) "realtek,rtd1195-watchdog" - requires the driver change now and requires the binding to be merged before I can use it in the DT but doesn't need oneOf here.
Guenter, any preference here?
Thanks,
Andreas
Signature · 4 lines
SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)
PATCH v2 2/8 dt-bindings: rtc: realtek: Convert RTD119x to schema
In reply to Andreas FärberConvert the RTD119x binding to a YAML schema.
---
v2: New
.../devicetree/bindings/rtc/realtek,rtd119x.txt | 16 --------- .../devicetree/bindings/rtc/realtek,rtd119x.yaml | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt create mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml
Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt deleted +0 -16
@@ -1,16 +0,0 @@ -Realtek RTD129x Real-Time Clock -=============================== - -Required properties: -- compatible : Should be "realtek,rtd1295-rtc" -- reg : Specifies the physical base address and size -- clocks : Specifies the clock gate - - -Example: - - rtc@9801b600 { - compatible = "realtek,rtd1295-clk"; - reg = <0x9801b600 0x100>; - clocks = <&clkc RTD1295_CLK_EN_MISC_RTC>; - };
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file +38 -0
@@ -0,0 +1,38 @@ +# SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/realtek,rtd119x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek RTD129x Real-Time Clock + +allOf: + - $ref: "rtc.yaml#" + +maintainers: + - Andreas Färber <[email protected]> + +properties: + compatible: + const: realtek,rtd1295-rtc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + description: Specifies the clock gate + +required: + - compatible + - reg + - clocks + +examples: + - | + rtc@9801b600 { + compatible = "realtek,rtd1295-clk"; + reg = <0x9801b600 0x100>; + clocks = <&clkc RTD1295_CLK_EN_MISC_RTC>; + }; +...
Signature · 1 line
2.16.4
Rob Herring
maintainerRe: [PATCH v2 2/8] dt-bindings: rtc: realtek: Convert RTD119x to schema
Quoted 19 lines · Andreas Färber
Convert the RTD119x binding to a YAML schema.
Signed-off-by Andreas Färber <[email protected]>---
v2: New.../devicetree/bindings/rtc/realtek,rtd119x.txt | 16 --------- .../devicetree/bindings/rtc/realtek,rtd119x.yaml | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt create mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.yamlDocumentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file +0
-0
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml line 1
Quoted 1 line
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file +1
-0@@ -0,0 +1,38 @@ +# SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause
Missing ()
Though I'm not sure it matters other than consistency.
Quoted 25 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file +25
-0+%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/realtek,rtd119x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek RTD129x Real-Time Clock + +allOf: + - $ref: "rtc.yaml#" + +maintainers: + - Andreas Färber <[email protected]> + +properties: + compatible: + const: realtek,rtd1295-rtc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + description: Specifies the clock gate + +required:
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml line 36
Quoted 10 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file +10
-0+ - compatible + - reg + - clocks + +examples: + - | + rtc@9801b600 { + compatible = "realtek,rtd1295-clk"; + reg = <0x9801b600 0x100>; + clocks = <&clkc RTD1295_CLK_EN_MISC_RTC>;
You need the include file here or the example won't build (run 'make dt_binding_check').
Quoted 5 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file +2
-0+ }; +...Signature · 1 line
2.16.4
Re: [PATCH v2 2/8] dt-bindings: rtc: realtek: Convert RTD119x to schema
Am 25.10.19 um 23:20 schrieb Rob Herring:
Quoted 14 lines · Andreas Färber
Quoted 11 lines
Convert the RTD119x binding to a YAML schema.
Signed-off-by Andreas Färber <[email protected]>---
v2: New.../devicetree/bindings/rtc/realtek,rtd119x.txt | 16 --------- .../devicetree/bindings/rtc/realtek,rtd119x.yaml | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt create mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml
Quoted 5 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml
Quoted 5 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file +0
-0
While renaming the file to .yaml I would like to also rename it to 1195. It would need to be 1x9x to cover RTD1195 and e.g. RTD1296, and looking forward the wildcard may need to be 1xxx to cover also RTD1619, which quickly becomes unrecognizable.
Quoted 4 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml line 1
Quoted 2 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file +1
-0@@ -0,0 +1,38 @@ +# SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-ClauseMissing ()
Fixed.
Quoted 28 lines
Though I'm not sure it matters other than consistency.
Quoted 25 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file +25
-0+%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/realtek,rtd119x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek RTD129x Real-Time Clock + +allOf: + - $ref: "rtc.yaml#" + +maintainers: + - Andreas Färber <[email protected]> + +properties: + compatible: + const: realtek,rtd1295-rtc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + description: Specifies the clock gate + +required:
Quoted 8 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml line 34
Quoted 8 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file +8
-0+ - compatible + - reg + - clocks + +examples: + - | + rtc@9801b600 { + compatible = "realtek,rtd1295-clk";
This reveals a bug in the original binding example. Fixed to -rtc.
Quoted 5 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml line 36
Quoted 2 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file +2
-0+ reg = <0x9801b600 0x100>; + clocks = <&clkc RTD1295_CLK_EN_MISC_RTC>;You need the include file here or the example won't build (run 'make
dt_binding_check').
We can't. You acked the clk binding but the driver never got any review, so it didn't get merged and cannot be depended on here.
I've changed it to an artificial 42 so that dt_binding_check passes. I've also needed to fix the indentation to 4 spaces.
Regards,
Andreas
Quoted 6 lines
Quoted 6 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file +2
-0+ }; +...Signature · 1 line
2.16.4
Signature · 4 lines
SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)
Alexandre Belloni
maintainerRe: [PATCH v2 2/8] dt-bindings: rtc: realtek: Convert RTD119x to schema
Quoted 15 lines · Andreas Färber
Am 25.10.19 um 23:20 schrieb Rob Herring:
Quoted 14 lines · Andreas Färber
Quoted 11 lines
Convert the RTD119x binding to a YAML schema.
Signed-off-by Andreas Färber <[email protected]>---
v2: New.../devicetree/bindings/rtc/realtek,rtd119x.txt | 16 --------- .../devicetree/bindings/rtc/realtek,rtd119x.yaml | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt create mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml
Quoted 11 lines
Quoted 5 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml
Quoted 5 lines
Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file +0
-0While renaming the file to .yaml I would like to also rename it to 1195. It would need to be 1x9x to cover RTD1195 and e.g. RTD1296, and looking forward the wildcard may need to be 1xxx to cover also RTD1619, which quickly becomes unrecognizable.
I'm fine with removing wildcards as much as possible.
Signature · 3 lines
Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 3/8 dt-bindings: arm: realtek: Tidy up conversion to json-schema
In reply to Andreas FärberRestore the device names for compatible strings as comments. Prepare for adding more SoCs by inserting oneOf.
---
v2: New
Documentation/devicetree/bindings/arm/realtek.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
Documentation/devicetree/bindings/arm/realtek.yaml +8 -7
@@ -13,11 +13,12 @@ properties: $nodename: const: '/' compatible: - # RTD1295 SoC based boards - items: - - enum: - - mele,v9 - - probox2,ava - - zidoo,x9s - - const: realtek,rtd1295 + oneOf: + # RTD1295 SoC based boards + - items: + - enum: + - mele,v9 # MeLE V9 + - probox2,ava # ProBox2 AVA + - zidoo,x9s # Zidoo X9S + - const: realtek,rtd1295 ...
Signature · 1 line
2.16.4
Re: [PATCH v2 3/8] dt-bindings: arm: realtek: Tidy up conversion to json-schema
Quoted 11 lines · On Sun, 20 Oct 2019 06:08:12 +0200, =?UTF-8?q?Andreas=20F=C3=A4rber?= wrote:
Restore the device names for compatible strings as comments. Prepare for adding more SoCs by inserting oneOf.
Fixes 693af5f3eeaa ("dt-bindings: arm: Convert Realtek board/soc bindings to json-schema")Signed-off-by Andreas Färber <[email protected]>---
v2: NewDocumentation/devicetree/bindings/arm/realtek.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
Andreas Färber
AppliedRe: [PATCH v2 3/8] dt-bindings: arm: realtek: Tidy up conversion to json-schema
Am 25.10.19 um 23:21 schrieb Rob Herring:
Quoted 9 lines · On Sun, 20 Oct 2019 06:08:12 +0200, =?UTF-8?q?Andreas=20F=C3=A4rber?= wrote:
Quoted 8 lines
Restore the device names for compatible strings as comments. Prepare for adding more SoCs by inserting oneOf.
Fixes 693af5f3eeaa ("dt-bindings: arm: Convert Realtek board/soc bindings to json-schema")Signed-off-by Andreas Färber <[email protected]>---
v2: New
Quoted 5 lines
Quoted 3 lines
Documentation/devicetree/bindings/arm/realtek.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)Reviewed-by Rob Herring <[email protected]>
Thanks, applied to linux-realtek.git v5.5/dt64:
https://git.kernel.org/pub/scm/linux/kernel/git/afaerber/linux-realtek.git/log/?h=v5.5/dt64
Regards,
Andreas
Signature · 4 lines
SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)
PATCH v2 4/8 dt-bindings: arm: realtek: Document RTD1293 and Synology DS418j
In reply to Andreas FärberDefine compatible strings for Realtek RTD1293 SoC and Synology DiskStation DS418j NAS.
---
v1 -> v2:
* Converted to YAML schema
Documentation/devicetree/bindings/arm/realtek.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/realtek.yaml +6 -0
@@ -14,6 +14,12 @@ properties: const: '/' compatible: oneOf: + # RTD1293 SoC based boards + - items: + - enum: + - synology,ds418j # Synology DiskStation DS418j + - const: realtek,rtd1293 + # RTD1295 SoC based boards - items: - enum:
Signature · 7 lines
2.16.4 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Andreas Färber
AppliedRe: [PATCH v2 4/8] dt-bindings: arm: realtek: Document RTD1293 and Synology DS418j
Am 20.10.19 um 06:08 schrieb Andreas Färber:
Quoted 7 lines
Define compatible strings for Realtek RTD1293 SoC and Synology DiskStation DS418j NAS.
Acked-by Rob Herring <[email protected]>[AF: Converted to json-schema]Signed-off-by Andreas Färber <[email protected]>
Quoted 6 lines
---
v1 -> v2:
* Converted to YAML schemaDocumentation/devicetree/bindings/arm/realtek.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Applied to linux-realtek.git v5.5/dt64:
https://git.kernel.org/pub/scm/linux/kernel/git/afaerber/linux-realtek.git/log/?h=v5.5/dt64
Regards,
Andreas
Signature · 4 lines
SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)
PATCH v2 5/8 arm64: dts: realtek: Change dual-license from MIT to BSD
In reply to Andreas FärberMove the SPDX-License-Identifier to the top line and update to SPDX 2.0. While at it, switch from GPLv2+/MIT to GPLv2+/BSD2c before adding more.
---
v2: New
arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts | 3 +-- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 3 +-- arch/arm64/boot/dts/realtek/rtd129x.dtsi | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts +1 -2
@@ -1,7 +1,6 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * Copyright (c) 2016-2017 Andreas Färber - * - * SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ /dts-v1/;
arch/arm64/boot/dts/realtek/rtd1295.dtsi +1 -2
@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * Realtek RTD1295 SoC * * Copyright (c) 2016-2017 Andreas Färber - * - * SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ #include "rtd129x.dtsi"
arch/arm64/boot/dts/realtek/rtd129x.dtsi +1 -2
@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * Realtek RTD1293/RTD1295/RTD1296 SoC * * Copyright (c) 2016-2017 Andreas Färber - * - * SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ /memreserve/ 0x0000000000000000 0x0000000000030000;
Signature · 1 line
2.16.4
Re: [PATCH v2 5/8] arm64: dts: realtek: Change dual-license from MIT to BSD
Quoted 7 lines · Andreas Färber
Move the SPDX-License-Identifier to the top line and update to SPDX 2.0. While at it, switch from GPLv2+/MIT to GPLv2+/BSD2c before adding more.
Suggested-by Rob Herring <[email protected]>Cc Rob Herring <[email protected]>Signed-off-by Andreas Färber <[email protected]>
Quoted 7 lines
---
v2: Newarch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts | 3 +-- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 3 +-- arch/arm64/boot/dts/realtek/rtd129x.dtsi | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-)
It's really only schema files that I'm pushing towards BSD2C. Maybe in hindsight we should have done MIT as that's more common in the dts files.
Rob
Re: [PATCH v2 5/8] arm64: dts: realtek: Change dual-license from MIT to BSD
Am 25.10.19 um 22:52 schrieb Rob Herring:
Quoted 16 lines · Andreas Färber
Quoted 7 lines
Move the SPDX-License-Identifier to the top line and update to SPDX 2.0. While at it, switch from GPLv2+/MIT to GPLv2+/BSD2c before adding more.
Suggested-by Rob Herring <[email protected]>Cc Rob Herring <[email protected]>Signed-off-by Andreas Färber <[email protected]>Quoted 7 lines
---
v2: Newarch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts | 3 +-- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 3 +-- arch/arm64/boot/dts/realtek/rtd129x.dtsi | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-)
Quoted 5 lines
Acked-by Rob Herring <[email protected]>It's really only schema files that I'm pushing towards BSD2C. Maybe in hindsight we should have done MIT as that's more common in the dts files.
After discussion with Rob about whether to drop this change I dropped the misunderstood Suggested-by and applied this to linux-realtek.git v5.5/dt64 anyway:
https://git.kernel.org/pub/scm/linux/kernel/git/afaerber/linux-realtek.git/log/?h=v5.5/dt64
I don't mind either license.
Thanks,
Andreas
Signature · 4 lines
SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)
PATCH v2 6/8 arm64: dts: realtek: Add RTD1293 and Synology DS418j
In reply to Andreas FärberAdd Device Trees for RTD1293 SoC and Synology DiskStation DS418j NAS.
---
v1 -> v2:
* Moved SPDX-License-Identifier to top
* Dropped "arm,armv8" (Rob)
* Changed from MIT to BSD-2-Clause (Rob)
* Dropped accidental enable-method and cpu-release-addr
arch/arm64/boot/dts/realtek/Makefile | 3 ++ arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts | 30 +++++++++++++++ arch/arm64/boot/dts/realtek/rtd1293.dtsi | 51 ++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts create mode 100644 arch/arm64/boot/dts/realtek/rtd1293.dtsi
arch/arm64/boot/dts/realtek/Makefile +3 -0
@@ -1,4 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only + +dtb-$(CONFIG_ARCH_REALTEK) += rtd1293-ds418j.dtb + dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-mele-v9.dtb dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-probox2-ava.dtb dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-zidoo-x9s.dtb
arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts new file +30 -0
@@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +/* + * Copyright (c) 2017 Andreas Färber + */ + +/dts-v1/; + +#include "rtd1293.dtsi" + +/ { + compatible = "synology,ds418j", "realtek,rtd1293"; + model = "Synology DiskStation DS418j"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x40000000>; + }; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&uart0 { + status = "okay"; +};
arch/arm64/boot/dts/realtek/rtd1293.dtsi new file +51 -0
51 lines not on this page · raw message
Signature · 1 line
2.16.4
Andreas Färber
AppliedRe: [PATCH v2 6/8] arm64: dts: realtek: Add RTD1293 and Synology DS418j
Am 20.10.19 um 06:08 schrieb Andreas Färber:
Quoted 11 lines
Add Device Trees for RTD1293 SoC and Synology DiskStation DS418j NAS.
Signed-off-by Andreas Färber <[email protected]>---
v1 -> v2:
* Moved SPDX-License-Identifier to top
* Dropped "arm,armv8" (Rob)
* Changed from MIT to BSD-2-Clause (Rob)
* Dropped accidental enable-method and cpu-release-addr
Quoted 6 lines
arch/arm64/boot/dts/realtek/Makefile | 3 ++ arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts | 30 +++++++++++++++ arch/arm64/boot/dts/realtek/rtd1293.dtsi | 51 ++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts create mode 100644 arch/arm64/boot/dts/realtek/rtd1293.dtsi
Applied to linux-realtek.git v5.5/dt64:
https://git.kernel.org/pub/scm/linux/kernel/git/afaerber/linux-realtek.git/log/?h=v5.5/dt64
Regards,
Andreas
Signature · 4 lines
SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)
PATCH v2 7/8 dt-bindings: arm: realtek: Document RTD1296 and Synology DS418
In reply to Andreas FärberDefine compatible strings for Realtek RTD1296 SoC and Synology DiskStation DS418 NAS.
---
v1 -> v2:
* Converted to YAML schema
Documentation/devicetree/bindings/arm/realtek.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/realtek.yaml +6 -0
@@ -27,4 +27,10 @@ properties: - probox2,ava # ProBox2 AVA - zidoo,x9s # Zidoo X9S - const: realtek,rtd1295 + + # RTD1296 SoC based boards + - items: + - enum: + - synology,ds418 # Synology DiskStation DS418 + - const: realtek,rtd1296 ...
Signature · 1 line
2.16.4
Andreas Färber
AppliedRe: [PATCH v2 7/8] dt-bindings: arm: realtek: Document RTD1296 and Synology DS418
Am 20.10.19 um 06:08 schrieb Andreas Färber:
Quoted 7 lines
Define compatible strings for Realtek RTD1296 SoC and Synology DiskStation DS418 NAS.
Acked-by Rob Herring <[email protected]>[AF: Converted to json-schema]Signed-off-by Andreas Färber <[email protected]>
Quoted 6 lines
---
v1 -> v2:
* Converted to YAML schemaDocumentation/devicetree/bindings/arm/realtek.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Applied to linux-realtek.git v5.5/dt64:
https://git.kernel.org/pub/scm/linux/kernel/git/afaerber/linux-realtek.git/log/?h=v5.5/dt64
Regards,
Andreas
Signature · 4 lines
SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)
PATCH v2 8/8 arm64: dts: realtek: Add RTD1296 and Synology DS418
In reply to Andreas FärberAdd Device Trees for RTD1296 SoC and Synology DiskStation DS418.
---
v1 -> v2:
* Moved SPDX-License-Identifier to top
* Dropped "arm,armv8" (Rob)
* Changed from MIT to BSD-2-Clause (Rob)
* Dropped accidental enable-method and cpu-release-addr
* Fixed DS418 to use rtd1296.dtsi
arch/arm64/boot/dts/realtek/Makefile | 2 + arch/arm64/boot/dts/realtek/rtd1296-ds418.dts | 30 +++++++++++++ arch/arm64/boot/dts/realtek/rtd1296.dtsi | 65 +++++++++++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 arch/arm64/boot/dts/realtek/rtd1296-ds418.dts create mode 100644 arch/arm64/boot/dts/realtek/rtd1296.dtsi
arch/arm64/boot/dts/realtek/Makefile +2 -0
@@ -5,3 +5,5 @@ dtb-$(CONFIG_ARCH_REALTEK) += rtd1293-ds418j.dtb dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-mele-v9.dtb dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-probox2-ava.dtb dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-zidoo-x9s.dtb + +dtb-$(CONFIG_ARCH_REALTEK) += rtd1296-ds418.dtb
arch/arm64/boot/dts/realtek/rtd1296-ds418.dts new file +30 -0
@@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) +/* + * Copyright (c) 2017-2019 Andreas Färber + */ + +/dts-v1/; + +#include "rtd1296.dtsi" + +/ { + compatible = "synology,ds418", "realtek,rtd1296"; + model = "Synology DiskStation DS418"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x80000000>; + }; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&uart0 { + status = "okay"; +};
arch/arm64/boot/dts/realtek/rtd1296.dtsi new file +65 -0
65 lines not on this page · raw message
Signature · 1 line
2.16.4
Andreas Färber
AppliedRe: [PATCH v2 8/8] arm64: dts: realtek: Add RTD1296 and Synology DS418
Am 20.10.19 um 06:08 schrieb Andreas Färber:
Quoted 12 lines
Add Device Trees for RTD1296 SoC and Synology DiskStation DS418.
Signed-off-by Andreas Färber <[email protected]>---
v1 -> v2:
* Moved SPDX-License-Identifier to top
* Dropped "arm,armv8" (Rob)
* Changed from MIT to BSD-2-Clause (Rob)
* Dropped accidental enable-method and cpu-release-addr
* Fixed DS418 to usertd1296.dtsi
Quoted 6 lines
arch/arm64/boot/dts/realtek/Makefile | 2 + arch/arm64/boot/dts/realtek/rtd1296-ds418.dts | 30 +++++++++++++ arch/arm64/boot/dts/realtek/rtd1296.dtsi | 65 +++++++++++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 arch/arm64/boot/dts/realtek/rtd1296-ds418.dts create mode 100644 arch/arm64/boot/dts/realtek/rtd1296.dtsi
Applied to linux-realtek.git v5.5/dt64:
https://git.kernel.org/pub/scm/linux/kernel/git/afaerber/linux-realtek.git/log/?h=v5.5/dt64
Regards,
Andreas
Signature · 4 lines
SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)