Add Chameleon v3 devicetree
v4 cover Add Chameleon v3 devicetree
The Google Chameleon v3 is a board made for testing both video and audio interfaces of external devices. It acts as a base board for the Mercury+ AA1 module.
socfpga_arria10_mercury_aa1.dtsi and socfpga_arria10_chameleonv3.dts have also been sent to u-boot:
https://lists.denx.de/pipermail/u-boot/2022-May/485107.html
https://lists.denx.de/pipermail/u-boot/2022-May/485111.html
v4 changes:
- remove enclustra,mercury-aa1 from Arria 10 boards in dt-bindings
v3 changes:
- make seperate group for Chameleon v3 in dt-bindings
- add blank line after copyright header
v2 changes:
- split first patch into three
- move sdmmc-ecc node to socfpga_arria10.dtsi (instead of removing it entirely)
- use generic names for dts node names
- keep the enclustra,mercury-aa1 compatible
Paweł Anikiel (5):
ARM: dts: socfpga: Change Mercury+ AA1 dts to dtsi
ARM: dts: socfpga: Move sdmmc-ecc node to Arria 10 dts
ARM: dts: socfpga: Add atsha204a node to Mercury+ AA1 dts
ARM: dts: socfpga: Add Google Chameleon v3 devicetree
dt-bindings: altera: Add Chameleon v3 board
.../devicetree/bindings/arm/altera.yaml | 9 +-
arch/arm/boot/dts/Makefile | 2 +-
arch/arm/boot/dts/socfpga_arria10.dtsi | 10 +++
.../boot/dts/socfpga_arria10_chameleonv3.dts | 90 +++++++++++++++++++
...1.dts => socfpga_arria10_mercury_aa1.dtsi} | 48 ++--------
5 files changed, 117 insertions(+), 42 deletions(-)
create mode 100644 arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts
rename arch/arm/boot/dts/{socfpga_arria10_mercury_aa1.dts => socfpga_arria10_mercury_aa1.dtsi} (70%)Signature · 1 line
2.36.1.255.ge46751e96f-goog
PATCH v4 1/5 ARM: dts: socfpga: Change Mercury+ AA1 dts to dtsi
The Mercury+ AA1 is not a standalone board, rather it's a module with an Arria 10 SoC. Remove status = "okay" and i2c aliases, as they are routed to the base board and should be enabled from there.
---
arch/arm/boot/dts/Makefile | 1 -
...1.dts => socfpga_arria10_mercury_aa1.dtsi} | 28 -------------------
2 files changed, 29 deletions(-)
rename arch/arm/boot/dts/{socfpga_arria10_mercury_aa1.dts => socfpga_arria10_mercury_aa1.dtsi} (84%)arch/arm/boot/dts/Makefile +0 -1
@@ -1146,7 +1146,6 @@ dtb-$(CONFIG_ARCH_S5PV210) += \ s5pv210-torbreck.dtb dtb-$(CONFIG_ARCH_INTEL_SOCFPGA) += \ socfpga_arria5_socdk.dtb \ - socfpga_arria10_mercury_aa1.dtb \ socfpga_arria10_socdk_nand.dtb \ socfpga_arria10_socdk_qspi.dtb \ socfpga_arria10_socdk_sdmmc.dtb \
arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dtsi renamed from arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dts +0 -28
@@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -/dts-v1/; #include "socfpga_arria10.dtsi"
@@ -11,8 +10,6 @@ / { aliases { ethernet0 = &gmac0; serial1 = &uart1; - i2c0 = &i2c0; - i2c1 = &i2c1; }; memory@0 {
@@ -43,7 +40,6 @@ &gmac0 { phy-addr = <0xffffffff>; /* probe for phy addr */ max-frame-size = <3800>; - status = "okay"; phy-handle = <&phy3>;
@@ -69,22 +65,8 @@ phy3: ethernet-phy@3 { }; }; -&gpio0 { - status = "okay"; -}; - -&gpio1 { - status = "okay"; -}; - -&gpio2 { - status = "okay"; -}; - &i2c1 { - status = "okay"; isl12022: isl12022@6f { - status = "okay"; compatible = "isil,isl12022"; reg = <0x6f>; };
@@ -92,7 +74,6 @@ isl12022: isl12022@6f { /* Following mappings are taken from arria10 socdk dts */ &mmc { - status = "okay"; cap-sd-highspeed; broken-cd; bus-width = <4>;
@@ -101,12 +82,3 @@ &mmc { &osc1 { clock-frequency = <33330000>; }; - -&uart1 { - status = "okay"; -}; - -&usb0 { - status = "okay"; - dr_mode = "host"; -};
Signature · 1 line
2.36.1.255.ge46751e96f-goog
PATCH v4 2/5 ARM: dts: socfpga: Move sdmmc-ecc node to Arria 10 dts
In reply to Paweł AnikielThe ecc manager is a part of the Arria 10 SoC, move it to the correct dts.
--- arch/arm/boot/dts/socfpga_arria10.dtsi | 10 ++++++++++ arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dtsi | 12 ------------ 2 files changed, 10 insertions(+), 12 deletions(-)
arch/arm/boot/dts/socfpga_arria10.dtsi +10 -0
@@ -736,6 +736,16 @@ emac0-tx-ecc@ff8c0c00 { <37 IRQ_TYPE_LEVEL_HIGH>; }; + sdmmca-ecc@ff8c2c00 { + compatible = "altr,socfpga-sdmmc-ecc"; + reg = <0xff8c2c00 0x400>; + altr,ecc-parent = <&mmc>; + interrupts = <15 IRQ_TYPE_LEVEL_HIGH>, + <47 IRQ_TYPE_LEVEL_HIGH>, + <16 IRQ_TYPE_LEVEL_HIGH>, + <48 IRQ_TYPE_LEVEL_HIGH>; + }; + dma-ecc@ff8c8000 { compatible = "altr,socfpga-dma-ecc"; reg = <0xff8c8000 0x400>;
arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dtsi +0 -12
@@ -23,18 +23,6 @@ chosen { }; }; -&eccmgr { - sdmmca-ecc@ff8c2c00 { - compatible = "altr,socfpga-sdmmc-ecc"; - reg = <0xff8c2c00 0x400>; - altr,ecc-parent = <&mmc>; - interrupts = <15 IRQ_TYPE_LEVEL_HIGH>, - <47 IRQ_TYPE_LEVEL_HIGH>, - <16 IRQ_TYPE_LEVEL_HIGH>, - <48 IRQ_TYPE_LEVEL_HIGH>; - }; -}; - &gmac0 { phy-mode = "rgmii"; phy-addr = <0xffffffff>; /* probe for phy addr */
Signature · 1 line
2.36.1.255.ge46751e96f-goog
PATCH v4 3/5 ARM: dts: socfpga: Add atsha204a node to Mercury+ AA1 dts
In reply to Paweł AnikielAdd atsha204a node to Mercury+ AA1 dts
--- arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dtsi +8 -0
@@ -1,4 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 +/* + * Copyright 2022 Google LLC + */ #include "socfpga_arria10.dtsi"
@@ -54,6 +57,11 @@ phy3: ethernet-phy@3 { }; &i2c1 { + atsha204a: crypto@64 { + compatible = "atmel,atsha204a"; + reg = <0x64>; + }; + isl12022: isl12022@6f { compatible = "isil,isl12022"; reg = <0x6f>;
Signature · 1 line
2.36.1.255.ge46751e96f-goog
PATCH v4 4/5 ARM: dts: socfpga: Add Google Chameleon v3 devicetree
In reply to Paweł AnikielAdd devicetree for the Google Chameleon v3 board.
--- arch/arm/boot/dts/Makefile | 1 + .../boot/dts/socfpga_arria10_chameleonv3.dts | 90 +++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -1146,6 +1146,7 @@ dtb-$(CONFIG_ARCH_S5PV210) += \ s5pv210-torbreck.dtb dtb-$(CONFIG_ARCH_INTEL_SOCFPGA) += \ socfpga_arria5_socdk.dtb \ + socfpga_arria10_chameleonv3.dtb \ socfpga_arria10_socdk_nand.dtb \ socfpga_arria10_socdk_qspi.dtb \ socfpga_arria10_socdk_sdmmc.dtb \
arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts new file +90 -0
90 lines not on this page · raw message
Signature · 1 line
2.36.1.255.ge46751e96f-goog
PATCH v4 5/5 dt-bindings: altera: Add Chameleon v3 board
In reply to Paweł AnikielAdd Mercury+ AA1 boards category, together with the Chameleon v3 board.
--- Documentation/devicetree/bindings/arm/altera.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/arm/altera.yaml +8 -1
@@ -25,7 +25,14 @@ properties: items: - enum: - altr,socfpga-arria10-socdk - - enclustra,mercury-aa1 + - const: altr,socfpga-arria10 + - const: altr,socfpga + + - description: Mercury+ AA1 boards + items: + - enum: + - google,chameleon-v3 + - const: enclustra,mercury-aa1 - const: altr,socfpga-arria10 - const: altr,socfpga
Signature · 1 line
2.36.1.255.ge46751e96f-goog
Re: [PATCH v4 5/5] dt-bindings: altera: Add Chameleon v3 board
Quoted 3 lines · Paweł Anikiel
Add Mercury+ AA1 boards category, together with the Chameleon v3 board.
Signed-off-by Paweł Anikiel <[email protected]>
Best regards,
Krzysztof
Quoted 29 lines · Paweł Anikiel
The Google Chameleon v3 is a board made for testing both video and audio interfaces of external devices. It acts as a base board for the Mercury+ AA1 module.
socfpga_arria10_mercury_aa1.dtsiandsocfpga_arria10_chameleonv3.dtshave also been sent to u-boot:
https://lists.denx.de/pipermail/u-boot/2022-May/485107.html
https://lists.denx.de/pipermail/u-boot/2022-May/485111.htmlv4 changes:
- remove enclustra,mercury-aa1 from Arria 10 boards in dt-bindingsv3 changes:
- make seperate group for Chameleon v3 in dt-bindings
- add blank line after copyright headerv2 changes:
- split first patch into three
- move sdmmc-ecc node tosocfpga_arria10.dtsi(instead of removing it entirely)
- use generic names for dts node names
- keep the enclustra,mercury-aa1 compatiblePaweł Anikiel (5):
ARM: dts: socfpga: Change Mercury+ AA1 dts to dtsi
ARM: dts: socfpga: Move sdmmc-ecc node to Arria 10 dts
ARM: dts: socfpga: Add atsha204a node to Mercury+ AA1 dts
ARM: dts: socfpga: Add Google Chameleon v3 devicetree
dt-bindings: altera: Add Chameleon v3 board
Quoted 9 lines
.../devicetree/bindings/arm/altera.yaml | 9 +- arch/arm/boot/dts/Makefile | 2 +- arch/arm/boot/dts/socfpga_arria10.dtsi | 10 +++ .../boot/dts/socfpga_arria10_chameleonv3.dts | 90 +++++++++++++++++++ ...1.dts => socfpga_arria10_mercury_aa1.dtsi} | 48 ++-------- 5 files changed, 117 insertions(+), 42 deletions(-)create mode 100644
arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts
renamearch/arm/boot/dts/{socfpga_arria10_mercury_aa1.dts=>socfpga_arria10_mercury_aa1.dtsi} (70%)
Whole series applied!
Thanks,
Dinh