* [PATCH] ARM: at91: Add GARDENA smart Gateway AT91SAM board @ 2020-08-10 17:19 Reto Schneider 2020-08-17 10:21 ` Alexandre Belloni ` (2 more replies) 0 siblings, 3 replies; 9+ messages in thread From: Reto Schneider @ 2020-08-10 17:19 UTC (permalink / raw) To: linux-arm-kernel Cc: Reto Schneider, Stefan Roese, Michael Zimmermann, Rob Herring, Nicolas Ferre, Alexandre Belloni, Ludovic Desroches, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list From: Reto Schneider <reto.schneider@husqvarnagroup.com> This patch adds support for the GARDENA smart Gateway, which is based on the Atmel AT91SAM9G25. It is equipped with 128 MiB of DDR2 RAM and 256 MiB NAND storage. Please note that this gateway is not actually based on a AT91SAM9x5 EK board, but is close enough to allow its DT to be used. Co-developed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de> Co-developed-by: Michael Zimmermann <michael.zimmermann@grandcentrix.net> Signed-off-by: Michael Zimmermann <michael.zimmermann@grandcentrix.net> Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com> --- arch/arm/boot/dts/Makefile | 1 + .../dts/at91sam9g25-gardena-smart-gateway.dts | 186 ++++++++++++++++++ 2 files changed, 187 insertions(+) create mode 100644 arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 4572db3fa5ae..d38d256f59fa 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -44,6 +44,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \ at91-wb45n.dtb \ at91sam9g15ek.dtb \ at91sam9g25ek.dtb \ + at91sam9g25-gardena-smart-gateway.dtb \ at91sam9g35ek.dtb \ at91sam9x25ek.dtb \ at91sam9x35ek.dtb diff --git a/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts b/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts new file mode 100644 index 000000000000..19b0f67a7af6 --- /dev/null +++ b/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts @@ -0,0 +1,186 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Device Tree file for the GARDENA smart Gateway (AT91SAM) + * + * Copyright (C) 2020 GARDENA GmbH + */ + +/dts-v1/; + +#include "at91sam9g25.dtsi" +#include "at91sam9x5ek.dtsi" +#include <dt-bindings/input/input.h> + +/ { + model = "GARDENA smart Gateway (AT91SAM)"; + compatible = "gardena,smart-gateway-at91sam", "atmel,at91sam9g25", "atmel,at91sam9x5", "atmel,at91sam9"; + + aliases { + serial1 = &usart3; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory { + reg = <0x20000000 0x8000000>; + }; + + gpio-keys { + compatible = "gpio-keys"; + + user_btn1 { + label = "USER_BTN1"; + gpios = <&pioA 24 GPIO_ACTIVE_LOW>; + linux,code = <KEY_PROG1>; + }; + }; + + 1wire_cm { + status = "disabled"; + }; + + leds { + compatible = "gpio-leds"; + + power_blue { + label = "smartgw:power:blue"; + gpios = <&pioC 21 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + power_green { + label = "smartgw:power:green"; + gpios = <&pioC 20 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + + power_red { + label = "smartgw:power:red"; + gpios = <&pioC 19 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + radio_blue { + label = "smartgw:radio:blue"; + gpios = <&pioC 18 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + radio_green { + label = "smartgw:radio:green"; + gpios = <&pioC 17 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + radio_red { + label = "smartgw:radio:red"; + gpios = <&pioC 16 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + internet_blue { + label = "smartgw:internet:blue"; + gpios = <&pioC 15 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + internet_green { + label = "smartgw:internet:green"; + gpios = <&pioC 14 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + internet_red { + label = "smartgw:internet:red"; + gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + heartbeat { + label = "smartgw:heartbeat"; + gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + + pb18 { + status = "disabled"; + }; + + pd21 { + status = "disabled"; + }; + }; +}; + +&dbgu { + status = "okay"; +}; + +&macb0 { + phy-mode = "rmii"; + status = "okay"; +}; + +&nand_controller { + status = "okay"; +}; + +&usb0 { + status = "okay"; + num-ports = <3>; +}; + +&usb1 { + status = "okay"; +}; + +&usart0 { + status = "disabled"; +}; + +&usart2 { + status = "disabled"; +}; + +&dbgu { + status = "okay"; +}; + +&usart3 { + status = "okay"; + + pinctrl-0 = <&pinctrl_usart3 + &pinctrl_usart3_rts + &pinctrl_usart3_cts + >; +}; + +&watchdog { + status = "okay"; +}; + +&mmc0 { + status = "disabled"; +}; + +&mmc1 { + status = "disabled"; +}; + +&spi0 { + status = "disabled"; +}; + +&i2c0 { + status = "disabled"; +}; + +&adc0 { + status = "disabled"; +}; + +&ssc0 { + status = "disabled"; +}; -- 2.27.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] ARM: at91: Add GARDENA smart Gateway AT91SAM board 2020-08-10 17:19 [PATCH] ARM: at91: Add GARDENA smart Gateway AT91SAM board Reto Schneider @ 2020-08-17 10:21 ` Alexandre Belloni 2020-08-19 9:04 ` Reto Schneider 2020-08-19 11:25 ` [PATCH v2] ARM: at91: Add GARDENA smart Gateway (Art. 19000) board Reto Schneider 2020-08-22 15:10 ` [PATCH v3 1/2] dt-bindings: arm: " Reto Schneider 2 siblings, 1 reply; 9+ messages in thread From: Alexandre Belloni @ 2020-08-17 10:21 UTC (permalink / raw) To: Reto Schneider Cc: linux-arm-kernel, Reto Schneider, Stefan Roese, Michael Zimmermann, Rob Herring, Nicolas Ferre, Ludovic Desroches, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list Hello, Thank you for this submission. On 10/08/2020 19:19:19+0200, Reto Schneider wrote: > From: Reto Schneider <reto.schneider@husqvarnagroup.com> > > This patch adds support for the GARDENA smart Gateway, which is based on > the Atmel AT91SAM9G25. It is equipped with 128 MiB of DDR2 RAM and > 256 MiB NAND storage. > > Please note that this gateway is not actually based on a AT91SAM9x5 EK > board, but is close enough to allow its DT to be used. > > Co-developed-by: Stefan Roese <sr@denx.de> > Signed-off-by: Stefan Roese <sr@denx.de> > Co-developed-by: Michael Zimmermann <michael.zimmermann@grandcentrix.net> > Signed-off-by: Michael Zimmermann <michael.zimmermann@grandcentrix.net> > Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com> > --- > arch/arm/boot/dts/Makefile | 1 + > .../dts/at91sam9g25-gardena-smart-gateway.dts | 186 ++++++++++++++++++ > 2 files changed, 187 insertions(+) > create mode 100644 arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 4572db3fa5ae..d38d256f59fa 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -44,6 +44,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \ > at91-wb45n.dtb \ > at91sam9g15ek.dtb \ > at91sam9g25ek.dtb \ > + at91sam9g25-gardena-smart-gateway.dtb \ > at91sam9g35ek.dtb \ > at91sam9x25ek.dtb \ > at91sam9x35ek.dtb > diff --git a/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts b/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts > new file mode 100644 > index 000000000000..19b0f67a7af6 > --- /dev/null > +++ b/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts > @@ -0,0 +1,186 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * Device Tree file for the GARDENA smart Gateway (AT91SAM) > + * > + * Copyright (C) 2020 GARDENA GmbH > + */ > + > +/dts-v1/; > + > +#include "at91sam9g25.dtsi" > +#include "at91sam9x5ek.dtsi" > +#include <dt-bindings/input/input.h> > + > +/ { > + model = "GARDENA smart Gateway (AT91SAM)"; > + compatible = "gardena,smart-gateway-at91sam", "atmel,at91sam9g25", "atmel,at91sam9x5", "atmel,at91sam9"; You should document the vendor string. And ideally, gardena,smart-gateway-at91sam should be documented in Documentation/devicetree/bindings/arm/atmel-at91.yaml > + > + aliases { > + serial1 = &usart3; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; This is already in at91sam9x5ek.dtsi > + }; > + > + memory { > + reg = <0x20000000 0x8000000>; This is already in at91sam9x5cm.dtsi, included fromat91sam9x5ek.dtsi > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + > + user_btn1 { > + label = "USER_BTN1"; > + gpios = <&pioA 24 GPIO_ACTIVE_LOW>; > + linux,code = <KEY_PROG1>; > + }; > + }; > + > + 1wire_cm { > + status = "disabled"; > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + power_blue { > + label = "smartgw:power:blue"; > + gpios = <&pioC 21 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + > + power_green { > + label = "smartgw:power:green"; > + gpios = <&pioC 20 GPIO_ACTIVE_HIGH>; > + default-state = "on"; > + }; > + > + power_red { > + label = "smartgw:power:red"; > + gpios = <&pioC 19 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + > + radio_blue { > + label = "smartgw:radio:blue"; > + gpios = <&pioC 18 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + > + radio_green { > + label = "smartgw:radio:green"; > + gpios = <&pioC 17 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + > + radio_red { > + label = "smartgw:radio:red"; > + gpios = <&pioC 16 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + > + internet_blue { > + label = "smartgw:internet:blue"; > + gpios = <&pioC 15 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + > + internet_green { > + label = "smartgw:internet:green"; > + gpios = <&pioC 14 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + > + internet_red { > + label = "smartgw:internet:red"; > + gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + > + heartbeat { > + label = "smartgw:heartbeat"; > + gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "heartbeat"; > + }; > + > + pb18 { > + status = "disabled"; > + }; > + > + pd21 { > + status = "disabled"; > + }; > + }; > +}; > + > +&dbgu { > + status = "okay"; > +}; This is already in at91sam9x5ek.dtsi and is duplicated below > + > +&macb0 { > + phy-mode = "rmii"; > + status = "okay"; > +}; > + > +&nand_controller { > + status = "okay"; This is already in at91sam9x5cm.dtsi > +}; > + > +&usb0 { > + status = "okay"; > + num-ports = <3>; This is already in at91sam9x5ek.dtsi > +}; > + > +&usb1 { > + status = "okay"; This is already in at91sam9x5ek.dtsi > +}; > + > +&usart0 { > + status = "disabled"; > +}; > + > +&usart2 { > + status = "disabled"; > +}; > + > +&dbgu { > + status = "okay"; > +}; > + > +&usart3 { > + status = "okay"; > + > + pinctrl-0 = <&pinctrl_usart3 > + &pinctrl_usart3_rts > + &pinctrl_usart3_cts > + >; > +}; > + > +&watchdog { > + status = "okay"; > +}; > + > +&mmc0 { > + status = "disabled"; > +}; > + > +&mmc1 { > + status = "disabled"; > +}; > + > +&spi0 { > + status = "disabled"; > +}; > + > +&i2c0 { > + status = "disabled"; > +}; > + > +&adc0 { > + status = "disabled"; > +}; > + > +&ssc0 { > + status = "disabled"; > +}; Overall, I'm not convinced it is a good idea to start from at91sam9x5ek.dtsi as it makes you dtb bigger than necessary but if you want it that way, I'm fine with that. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] ARM: at91: Add GARDENA smart Gateway AT91SAM board 2020-08-17 10:21 ` Alexandre Belloni @ 2020-08-19 9:04 ` Reto Schneider 2020-08-19 10:51 ` Alexandre Belloni 0 siblings, 1 reply; 9+ messages in thread From: Reto Schneider @ 2020-08-19 9:04 UTC (permalink / raw) To: Alexandre Belloni Cc: linux-arm-kernel, Reto Schneider, Stefan Roese, Michael Zimmermann, Rob Herring, Nicolas Ferre, Ludovic Desroches, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list [-- Attachment #1: Type: text/plain, Size: 591 bytes --] Hi Alexandre, On 8/17/20 12:21 PM, Alexandre Belloni wrote: > Thank you for this submission. Thanks a lot for the feedback. I will send a v2. > Overall, I'm not convinced it is a good idea to start from > at91sam9x5ek.dtsi as it makes you dtb bigger than necessary but if you > want it that way, I'm fine with that. Because using at91sam9x5ek.dtsi saves some code (maintenance effort?!) I am willing to accept the extra binary size. However, if you think that this causes the maintenance efforts to be greater than when doing it your way, I'd be up for changing it. Kind regards, Reto [-- Attachment #2: 0xBFB93E8F422586E0.asc --] [-- Type: application/pgp-keys, Size: 2375 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] ARM: at91: Add GARDENA smart Gateway AT91SAM board 2020-08-19 9:04 ` Reto Schneider @ 2020-08-19 10:51 ` Alexandre Belloni 0 siblings, 0 replies; 9+ messages in thread From: Alexandre Belloni @ 2020-08-19 10:51 UTC (permalink / raw) To: Reto Schneider Cc: linux-arm-kernel, Reto Schneider, Stefan Roese, Michael Zimmermann, Rob Herring, Nicolas Ferre, Ludovic Desroches, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list On 19/08/2020 11:04:48+0200, Reto Schneider wrote: > Hi Alexandre, > > On 8/17/20 12:21 PM, Alexandre Belloni wrote: > > Thank you for this submission. > > Thanks a lot for the feedback. > > I will send a v2. > > > Overall, I'm not convinced it is a good idea to start from > > at91sam9x5ek.dtsi as it makes you dtb bigger than necessary but if you > > want it that way, I'm fine with that. > > Because using at91sam9x5ek.dtsi saves some code (maintenance effort?!) I > am willing to accept the extra binary size. > However, if you think that this causes the maintenance efforts to be > greater than when doing it your way, I'd be up for changing it. > I'd say at91sam9x5ek.dtsi has very little chances to change and even if this is the case, it will probably not break your device tree but it is still a possibility. As said, I'll let you choose. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v2] ARM: at91: Add GARDENA smart Gateway (Art. 19000) board 2020-08-10 17:19 [PATCH] ARM: at91: Add GARDENA smart Gateway AT91SAM board Reto Schneider 2020-08-17 10:21 ` Alexandre Belloni @ 2020-08-19 11:25 ` Reto Schneider 2020-08-19 22:35 ` Rob Herring 2020-08-22 15:10 ` [PATCH v3 1/2] dt-bindings: arm: " Reto Schneider 2 siblings, 1 reply; 9+ messages in thread From: Reto Schneider @ 2020-08-19 11:25 UTC (permalink / raw) To: linux-arm-kernel, alexandre.belloni Cc: Reto Schneider, Stefan Roese, Michael Zimmermann, Rob Herring, Nicolas Ferre, Ludovic Desroches, Kamel Bouhara, Cristian Birsan, Claudiu Beznea, Eugen Hristev, Codrin Ciubotariu, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list From: Reto Schneider <reto.schneider@husqvarnagroup.com> This patch adds support for the GARDENA smart Gateway, which is based on the Atmel AT91SAM9G25. It is equipped with 128 MiB of DDR2 RAM and 256 MiB NAND storage. Please note that this gateway is not actually based on a AT91SAM9x5 EK board, but is close enough to allow its DT to be used. Co-developed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de> Co-developed-by: Michael Zimmermann <michael.zimmermann@grandcentrix.net> Signed-off-by: Michael Zimmermann <michael.zimmermann@grandcentrix.net> Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com> --- .../devicetree/bindings/arm/atmel-at91.yaml | 2 + arch/arm/boot/dts/Makefile | 1 + .../dts/at91sam9g25-gardena-smart-gateway.dts | 157 ++++++++++++++++++ 3 files changed, 160 insertions(+) create mode 100644 arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.yaml b/Documentation/devicetree/bindings/arm/atmel-at91.yaml index 31b0c54fa2cf..b8da32f5d0a7 100644 --- a/Documentation/devicetree/bindings/arm/atmel-at91.yaml +++ b/Documentation/devicetree/bindings/arm/atmel-at91.yaml @@ -41,6 +41,8 @@ properties: - overkiz,kizboxmini-mb # Overkiz kizbox Mini Mother Board - overkiz,kizboxmini-rd # Overkiz kizbox Mini RailDIN - overkiz,smartkiz # Overkiz SmartKiz Board + - gardena,smart-gateway-at91sam" # GARDENA smart Gateway (Article + # No. 19000) - const: atmel,at91sam9g25 - const: atmel,at91sam9x5 - const: atmel,at91sam9 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index e6a1cac0bfc7..6368dac016dd 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -44,6 +44,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \ at91-wb45n.dtb \ at91sam9g15ek.dtb \ at91sam9g25ek.dtb \ + at91sam9g25-gardena-smart-gateway.dtb \ at91sam9g35ek.dtb \ at91sam9x25ek.dtb \ at91sam9x35ek.dtb diff --git a/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts b/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts new file mode 100644 index 000000000000..6dc6e14b5f58 --- /dev/null +++ b/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts @@ -0,0 +1,157 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Device Tree file for the GARDENA smart Gateway (Article No. 19000) + * + * Copyright (C) 2020 GARDENA GmbH + */ + +/dts-v1/; + +#include "at91sam9g25.dtsi" +#include "at91sam9x5ek.dtsi" +#include <dt-bindings/input/input.h> + +/ { + model = "GARDENA smart Gateway (Article No. 19000)"; + compatible = "gardena,smart-gateway-at91sam", "atmel,at91sam9g25", "atmel,at91sam9x5", "atmel,at91sam9"; + + aliases { + serial1 = &usart3; + }; + + gpio-keys { + compatible = "gpio-keys"; + + user_btn1 { + label = "USER_BTN1"; + gpios = <&pioA 24 GPIO_ACTIVE_LOW>; + linux,code = <KEY_PROG1>; + }; + }; + + 1wire_cm { + status = "disabled"; + }; + + leds { + compatible = "gpio-leds"; + + power_blue { + label = "smartgw:power:blue"; + gpios = <&pioC 21 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + power_green { + label = "smartgw:power:green"; + gpios = <&pioC 20 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + + power_red { + label = "smartgw:power:red"; + gpios = <&pioC 19 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + radio_blue { + label = "smartgw:radio:blue"; + gpios = <&pioC 18 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + radio_green { + label = "smartgw:radio:green"; + gpios = <&pioC 17 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + radio_red { + label = "smartgw:radio:red"; + gpios = <&pioC 16 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + internet_blue { + label = "smartgw:internet:blue"; + gpios = <&pioC 15 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + internet_green { + label = "smartgw:internet:green"; + gpios = <&pioC 14 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + internet_red { + label = "smartgw:internet:red"; + gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + heartbeat { + label = "smartgw:heartbeat"; + gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + + pb18 { + status = "disabled"; + }; + + pd21 { + status = "disabled"; + }; + }; +}; + +&macb0 { + phy-mode = "rmii"; + status = "okay"; +}; + +&usart0 { + status = "disabled"; +}; + +&usart2 { + status = "disabled"; +}; + +&usart3 { + status = "okay"; + + pinctrl-0 = <&pinctrl_usart3 + &pinctrl_usart3_rts + &pinctrl_usart3_cts + >; +}; + +&watchdog { + status = "okay"; +}; + +&mmc0 { + status = "disabled"; +}; + +&mmc1 { + status = "disabled"; +}; + +&spi0 { + status = "disabled"; +}; + +&i2c0 { + status = "disabled"; +}; + +&adc0 { + status = "disabled"; +}; + +&ssc0 { + status = "disabled"; +}; -- 2.27.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v2] ARM: at91: Add GARDENA smart Gateway (Art. 19000) board 2020-08-19 11:25 ` [PATCH v2] ARM: at91: Add GARDENA smart Gateway (Art. 19000) board Reto Schneider @ 2020-08-19 22:35 ` Rob Herring 0 siblings, 0 replies; 9+ messages in thread From: Rob Herring @ 2020-08-19 22:35 UTC (permalink / raw) To: Reto Schneider Cc: Codrin Ciubotariu, Michael Zimmermann, Ludovic Desroches, open list, Kamel Bouhara, Cristian Birsan, Eugen Hristev, alexandre.belloni, linux-arm-kernel, Stefan Roese, Claudiu Beznea, Reto Schneider, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, Rob Herring On Wed, 19 Aug 2020 13:25:47 +0200, Reto Schneider wrote: > From: Reto Schneider <reto.schneider@husqvarnagroup.com> > > This patch adds support for the GARDENA smart Gateway, which is based on > the Atmel AT91SAM9G25. It is equipped with 128 MiB of DDR2 RAM and > 256 MiB NAND storage. > > Please note that this gateway is not actually based on a AT91SAM9x5 EK > board, but is close enough to allow its DT to be used. > > Co-developed-by: Stefan Roese <sr@denx.de> > Signed-off-by: Stefan Roese <sr@denx.de> > Co-developed-by: Michael Zimmermann <michael.zimmermann@grandcentrix.net> > Signed-off-by: Michael Zimmermann <michael.zimmermann@grandcentrix.net> > Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com> > --- > .../devicetree/bindings/arm/atmel-at91.yaml | 2 + > arch/arm/boot/dts/Makefile | 1 + > .../dts/at91sam9g25-gardena-smart-gateway.dts | 157 ++++++++++++++++++ > 3 files changed, 160 insertions(+) > create mode 100644 arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts > My bot found errors running 'make dt_binding_check' on your patch: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/arm/atmel-at91.yaml: properties:compatible:oneOf:2:items: [{'enum': ['overkiz,kizboxmini-base', 'overkiz,kizboxmini-mb', 'overkiz,kizboxmini-rd', 'overkiz,smartkiz', 'gardena,smart-gateway-at91sam"']}, {'const': 'atmel,at91sam9g25'}, {'const': 'atmel,at91sam9x5'}, {'const': 'atmel,at91sam9'}] is not valid under any of the given schemas (Possible causes of the failure): /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/arm/atmel-at91.yaml: properties:compatible:oneOf:2:items: [{'enum': ['overkiz,kizboxmini-base', 'overkiz,kizboxmini-mb', 'overkiz,kizboxmini-rd', 'overkiz,smartkiz', 'gardena,smart-gateway-at91sam"']}, {'const': 'atmel,at91sam9g25'}, {'const': 'atmel,at91sam9x5'}, {'const': 'atmel,at91sam9'}] is not of type 'object' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/arm/atmel-at91.yaml: properties:compatible:oneOf:2:items:0:enum:4: 'gardena,smart-gateway-at91sam"' does not match '^[a-zA-Z0-9,.\\-_ #+/]+$' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/arm/atmel-at91.yaml: ignoring, error in schema: properties: compatible: oneOf: 2: items warning: no schema found in file: ./Documentation/devicetree/bindings/arm/atmel-at91.yaml See https://patchwork.ozlabs.org/patch/1347723 If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure dt-schema is up to date: pip3 install git+https://github.com/devicetree-org/dt-schema.git@master --upgrade Please check and re-submit. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v3 1/2] dt-bindings: arm: at91: Add GARDENA smart Gateway (Art. 19000) board 2020-08-10 17:19 [PATCH] ARM: at91: Add GARDENA smart Gateway AT91SAM board Reto Schneider 2020-08-17 10:21 ` Alexandre Belloni 2020-08-19 11:25 ` [PATCH v2] ARM: at91: Add GARDENA smart Gateway (Art. 19000) board Reto Schneider @ 2020-08-22 15:10 ` Reto Schneider 2020-08-22 15:10 ` [PATCH v3 2/2] ARM: at91: Add GARDENA smart Gateway (Art. 19000) support Reto Schneider 2020-08-25 15:53 ` [PATCH v3 1/2] dt-bindings: arm: at91: Add GARDENA smart Gateway (Art. 19000) board Alexandre Belloni 2 siblings, 2 replies; 9+ messages in thread From: Reto Schneider @ 2020-08-22 15:10 UTC (permalink / raw) To: linux-arm-kernel, alexandre.belloni Cc: Reto Schneider, Rob Herring, Nicolas Ferre, Ludovic Desroches, Kamel Bouhara, Eugen Hristev, Claudiu Beznea, Codrin Ciubotariu, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list From: Reto Schneider <reto.schneider@husqvarnagroup.com> Document devicetree's bindings for the GARDENA smart Gateway with article number 19000, based on the SAM9G25 Atmel SoC. Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com> --- Documentation/devicetree/bindings/arm/atmel-at91.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.yaml b/Documentation/devicetree/bindings/arm/atmel-at91.yaml index 31b0c54fa2cf..c0fa195698c8 100644 --- a/Documentation/devicetree/bindings/arm/atmel-at91.yaml +++ b/Documentation/devicetree/bindings/arm/atmel-at91.yaml @@ -41,6 +41,8 @@ properties: - overkiz,kizboxmini-mb # Overkiz kizbox Mini Mother Board - overkiz,kizboxmini-rd # Overkiz kizbox Mini RailDIN - overkiz,smartkiz # Overkiz SmartKiz Board + - gardena,smart-gateway-at91sam # GARDENA smart Gateway (Article + # No. 19000) - const: atmel,at91sam9g25 - const: atmel,at91sam9x5 - const: atmel,at91sam9 -- 2.27.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v3 2/2] ARM: at91: Add GARDENA smart Gateway (Art. 19000) support 2020-08-22 15:10 ` [PATCH v3 1/2] dt-bindings: arm: " Reto Schneider @ 2020-08-22 15:10 ` Reto Schneider 2020-08-25 15:53 ` [PATCH v3 1/2] dt-bindings: arm: at91: Add GARDENA smart Gateway (Art. 19000) board Alexandre Belloni 1 sibling, 0 replies; 9+ messages in thread From: Reto Schneider @ 2020-08-22 15:10 UTC (permalink / raw) To: linux-arm-kernel, alexandre.belloni Cc: Reto Schneider, Stefan Roese, Michael Zimmermann, Rob Herring, Nicolas Ferre, Ludovic Desroches, Kamel Bouhara, Cristian Birsan, Codrin Ciubotariu, Eugen Hristev, Claudiu Beznea, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list From: Reto Schneider <reto.schneider@husqvarnagroup.com> This patch adds support for the GARDENA smart Gateway, which is based on the Atmel AT91SAM9G25. It is equipped with 128 MiB of DDR2 RAM and 256 MiB NAND storage. Please note that this gateway is not actually based on a AT91SAM9x5 EK board, but is close enough to allow its DT to be used. Co-developed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de> Co-developed-by: Michael Zimmermann <michael.zimmermann@grandcentrix.net> Signed-off-by: Michael Zimmermann <michael.zimmermann@grandcentrix.net> Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com> --- Changes in v3: - Fix DT binding schema violation, put it in separate commit - Fix line length violation - Sort new dtb entry in Makefile Changes in v2: - Remove duplicated DT entries - Improve model name - Add device to relevant DT binding schema --- arch/arm/boot/dts/Makefile | 1 + .../dts/at91sam9g25-gardena-smart-gateway.dts | 158 ++++++++++++++++++ 2 files changed, 159 insertions(+) create mode 100644 arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index e6a1cac0bfc7..6cd1cfcd5316 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -43,6 +43,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \ at91-smartkiz.dtb \ at91-wb45n.dtb \ at91sam9g15ek.dtb \ + at91sam9g25-gardena-smart-gateway.dtb \ at91sam9g25ek.dtb \ at91sam9g35ek.dtb \ at91sam9x25ek.dtb \ diff --git a/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts b/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts new file mode 100644 index 000000000000..7da70aeeb528 --- /dev/null +++ b/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts @@ -0,0 +1,158 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Device Tree file for the GARDENA smart Gateway (Article No. 19000) + * + * Copyright (C) 2020 GARDENA GmbH + */ + +/dts-v1/; + +#include "at91sam9g25.dtsi" +#include "at91sam9x5ek.dtsi" +#include <dt-bindings/input/input.h> + +/ { + model = "GARDENA smart Gateway (Article No. 19000)"; + compatible = "gardena,smart-gateway-at91sam", "atmel,at91sam9g25", "atmel,at91sam9x5", + "atmel,at91sam9"; + + aliases { + serial1 = &usart3; + }; + + gpio-keys { + compatible = "gpio-keys"; + + user_btn1 { + label = "USER_BTN1"; + gpios = <&pioA 24 GPIO_ACTIVE_LOW>; + linux,code = <KEY_PROG1>; + }; + }; + + 1wire_cm { + status = "disabled"; + }; + + leds { + compatible = "gpio-leds"; + + power_blue { + label = "smartgw:power:blue"; + gpios = <&pioC 21 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + power_green { + label = "smartgw:power:green"; + gpios = <&pioC 20 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + + power_red { + label = "smartgw:power:red"; + gpios = <&pioC 19 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + radio_blue { + label = "smartgw:radio:blue"; + gpios = <&pioC 18 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + radio_green { + label = "smartgw:radio:green"; + gpios = <&pioC 17 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + radio_red { + label = "smartgw:radio:red"; + gpios = <&pioC 16 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + internet_blue { + label = "smartgw:internet:blue"; + gpios = <&pioC 15 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + internet_green { + label = "smartgw:internet:green"; + gpios = <&pioC 14 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + internet_red { + label = "smartgw:internet:red"; + gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + heartbeat { + label = "smartgw:heartbeat"; + gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + + pb18 { + status = "disabled"; + }; + + pd21 { + status = "disabled"; + }; + }; +}; + +&macb0 { + phy-mode = "rmii"; + status = "okay"; +}; + +&usart0 { + status = "disabled"; +}; + +&usart2 { + status = "disabled"; +}; + +&usart3 { + status = "okay"; + + pinctrl-0 = <&pinctrl_usart3 + &pinctrl_usart3_rts + &pinctrl_usart3_cts + >; +}; + +&watchdog { + status = "okay"; +}; + +&mmc0 { + status = "disabled"; +}; + +&mmc1 { + status = "disabled"; +}; + +&spi0 { + status = "disabled"; +}; + +&i2c0 { + status = "disabled"; +}; + +&adc0 { + status = "disabled"; +}; + +&ssc0 { + status = "disabled"; +}; -- 2.27.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: arm: at91: Add GARDENA smart Gateway (Art. 19000) board 2020-08-22 15:10 ` [PATCH v3 1/2] dt-bindings: arm: " Reto Schneider 2020-08-22 15:10 ` [PATCH v3 2/2] ARM: at91: Add GARDENA smart Gateway (Art. 19000) support Reto Schneider @ 2020-08-25 15:53 ` Alexandre Belloni 1 sibling, 0 replies; 9+ messages in thread From: Alexandre Belloni @ 2020-08-25 15:53 UTC (permalink / raw) To: linux-arm-kernel, Reto Schneider Cc: Alexandre Belloni, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, Claudiu Beznea, open list, Ludovic Desroches, Reto Schneider, Eugen Hristev, Codrin Ciubotariu, Rob Herring, Kamel Bouhara On Sat, 22 Aug 2020 17:10:20 +0200, Reto Schneider wrote: > Document devicetree's bindings for the GARDENA smart Gateway with > article number 19000, based on the SAM9G25 Atmel SoC. Applied, thanks! I did join back the long line in the device tree documention as I found that clearer. [1/2] dt-bindings: arm: at91: Add GARDENA smart Gateway (Art. 19000) board commit: c05a4bff5c509afda0ee60009d62b5abc0e08311 [2/2] ARM: at91: Add GARDENA smart Gateway (Art. 19000) support commit: 25ffa0dde53c14cd6ddc938e39f70db4f8837591 Best regards, -- Alexandre Belloni <alexandre.belloni@bootlin.com> ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-08-25 15:53 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-08-10 17:19 [PATCH] ARM: at91: Add GARDENA smart Gateway AT91SAM board Reto Schneider 2020-08-17 10:21 ` Alexandre Belloni 2020-08-19 9:04 ` Reto Schneider 2020-08-19 10:51 ` Alexandre Belloni 2020-08-19 11:25 ` [PATCH v2] ARM: at91: Add GARDENA smart Gateway (Art. 19000) board Reto Schneider 2020-08-19 22:35 ` Rob Herring 2020-08-22 15:10 ` [PATCH v3 1/2] dt-bindings: arm: " Reto Schneider 2020-08-22 15:10 ` [PATCH v3 2/2] ARM: at91: Add GARDENA smart Gateway (Art. 19000) support Reto Schneider 2020-08-25 15:53 ` [PATCH v3 1/2] dt-bindings: arm: at91: Add GARDENA smart Gateway (Art. 19000) board Alexandre Belloni
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).