Skip to contentSkip to conversation

Add devicetree for Axentia Nattis

PATCH In review Peter Rosin 3 participants 10 messages Dec 1, 2017 – Dec 3, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover Add devicetree for Axentia Nattis

Hi!

I'd like to add a devicetree for our Nattis to the kernel. The Nattis is a device for showing departures for public transportation (optionally including a text-to-speech module for the visually impaired).

I'm a bit unsure if the tfa9879 sound codec binding is needed, but I suppose it belongs in trivial-devices?

Cheers,
Peter

Peter Rosin (2):
dt-bindings: trivial: add tfa9879 device
ARM: dts: at91: add devicetree for the Axentia Nattis with Natte power

 Documentation/devicetree/bindings/arm/axentia.txt  |   9 +
 .../devicetree/bindings/trivial-devices.txt        |   1 +
 MAINTAINERS                                        |   2 +
 arch/arm/boot/dts/Makefile                         |   1 +
 arch/arm/boot/dts/at91-natte.dtsi                  | 245 +++++++++++++++++++
 arch/arm/boot/dts/at91-nattis-2-natte-2.dts        | 258 +++++++++++++++++++++
 6 files changed, 516 insertions(+)
 create mode 100644 arch/arm/boot/dts/at91-natte.dtsi
 create mode 100644 arch/arm/boot/dts/at91-nattis-2-natte-2.dts
Signature · 6 lines
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

PATCH 1/2 dt-bindings: trivial: add tfa9879 device

Add record for NXP TFA9879 Mono BTL Class D audio amplifier.

---
 Documentation/devicetree/bindings/trivial-devices.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/trivial-devices.txt +1 -0
index af284fbd4d23..4cf30ce4e71f 100644
@@ -157,6 +157,7 @@ nxp,pcf2127		Real-time clock
 nxp,pcf2129		Real-time clock
 nxp,pcf8563		Real-time clock/calendar
 nxp,pcf85063		Tiny Real-Time Clock
+nxp,tfa9879		Mono BTL Class D audio amplifier
 oki,ml86v7667		OKI ML86V7667 video decoder
 ovti,ov5642		OV5642: Color CMOS QSXGA (5-megapixel) Image Sensor with OmniBSI and Embedded TrueFocus
 pericom,pt7c4338	Real-time Clock Module
Signature · 1 line
2.11.0
#7 lore raw

PATCH 2/2 ARM: dts: at91: add devicetree for the Axentia Nattis with Natte power

In reply to Peter Rosin

The Axentia Nattis is a device designed for presenting departures for public transport systems. The Natte helper board provides power and features a battery of battery chargers.

---
 Documentation/devicetree/bindings/arm/axentia.txt |   9 +
 MAINTAINERS                                       |   2 +
 arch/arm/boot/dts/Makefile                        |   1 +
 arch/arm/boot/dts/at91-natte.dtsi                 | 245 ++++++++++++++++++++
 arch/arm/boot/dts/at91-nattis-2-natte-2.dts       | 258 ++++++++++++++++++++++
 5 files changed, 515 insertions(+)
 create mode 100644 arch/arm/boot/dts/at91-natte.dtsi
 create mode 100644 arch/arm/boot/dts/at91-nattis-2-natte-2.dts
Documentation/devicetree/bindings/arm/axentia.txt +9 -0
index ea3fb96ae465..de58f2463880 100644
@@ -10,6 +10,15 @@ compatible = "axentia,linea",
 and following the rules from atmel-at91.txt for a sama5d31 SoC.
 
 
+Nattis v2 board with Natte v2 power board
+-----------------------------------------
+
+Required root node properties:
+compatible = "axentia,nattis-2", "axentia,natte-2", "axentia,linea",
+	     "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
+and following the rules from above for the axentia,linea CPU module.
+
+
 TSE-850 v3 board
 ----------------
 
MAINTAINERS +2 -0
index 2811a211632c..303d04502b8f 100644
@@ -2488,6 +2488,8 @@ L:	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org (moderated for non-subscribers)
 S:	Maintained
 F:	Documentation/devicetree/bindings/arm/axentia.txt
 F:	arch/arm/boot/dts/at91-linea.dtsi
+F:	arch/arm/boot/dts/at91-natte.dtsi
+F:	arch/arm/boot/dts/at91-nattis-2-natte-2.dts
 F:	arch/arm/boot/dts/at91-tse850-3.dts
 
 AXENTIA ASOC DRIVERS
arch/arm/boot/dts/Makefile +1 -0
index eff87a344566..0c10d89adbc8 100644
@@ -47,6 +47,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \
 	at91sam9x35ek.dtb
 dtb-$(CONFIG_SOC_SAM_V7) += \
 	at91-kizbox2.dtb \
+	at91-nattis-2-natte-2.dtb \
 	at91-sama5d27_som1_ek.dtb \
 	at91-sama5d2_xplained.dtb \
 	at91-sama5d3_xplained.dtb \
arch/arm/boot/dts/at91-natte.dtsi new file +245 -0

245 lines not on this page · raw message

arch/arm/boot/dts/at91-nattis-2-natte-2.dts new file +258 -0

258 lines not on this page · raw message

Signature · 6 lines
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#8 lore raw
In reply to Peter Rosin

Hello Peter,

Quoted 10 lines · Peter Rosin

Hi!

I'd like to add a devicetree for our Nattis to the kernel. The Nattis is a device for showing departures for public transportation (optionally including a text-to-speech module for the visually impaired).

I'm a bit unsure if the tfa9879 sound codec binding is needed, but I suppose it belongs in trivial-devices?

There's a DT binding for this device now:

https://patchwork.ozlabs.org/patch/816157/

Quoted 3 lines

Cheers,
Peter

Best regards,
Javier

#9 lore raw
Quoted 10 lines · Javier Martinez Canillas

Hello Peter,

Quoted 7 lines · Peter Rosin

Hi!

I'd like to add a devicetree for our Nattis to the kernel. The Nattis is a device for showing departures for public transportation (optionally including a text-to-speech module for the visually impaired).

Quoted 7 lines
Quoted 3 lines

I'm a bit unsure if the tfa9879 sound codec binding is needed, but I suppose it belongs in trivial-devices?

There's a DT binding for this device now:

https://patchwork.ozlabs.org/patch/816157/

What do you know, thanks for the hint. I even reviewed a followup patch for that one, so I guess I should have known...

Anyway, I should probably add a #sound-dai-cells entry. v2 coming up.

Cheers,
peda

#2 lore raw

Re: [alsa-devel] [PATCH 1/2] dt-bindings: trivial: add tfa9879 device

In reply to Peter Rosin
Quoted 12 lines · Peter Rosin

Add record for NXP TFA9879 Mono BTL Class D audio amplifier.

---
 Documentation/devicetree/bindings/trivial-devices.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/trivial-devices.txt +0 -0
index af284fbd4d23..4cf30ce4e71f 100644

Documentation/devicetree/bindings/trivial-devices.txt nxp,pcf2127 Real-time clock · line 160

Quoted 4 lines
Documentation/devicetree/bindings/trivial-devices.txt +1 -0
@@ -157,6 +157,7 @@ nxp,pcf2127         Real-time clock
 nxp,pcf2129            Real-time clock
 nxp,pcf8563            Real-time clock/calendar
 nxp,pcf85063           Tiny Real-Time Clock
+nxp,tfa9879            Mono BTL Class D audio amplifier

This is already described at Documentation/devicetree/bindings/sound/tfa9879.txt --
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Re: [PATCH 1/2] dt-bindings: trivial: add tfa9879 device

Quoted 8 lines · Fabio Estevam
Quoted 7 lines · Peter Rosin

Add record for NXP TFA9879 Mono BTL Class D audio amplifier.

---
 Documentation/devicetree/bindings/trivial-devices.txt | 1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines

Documentation/devicetree/bindings/trivial-devices.txt nxp,pcf2127 Real-time clock · line 160

Quoted 9 lines
Documentation/devicetree/bindings/trivial-devices.txt +1 -0
index af284fbd4d23..4cf30ce4e71f 100644
@@ -157,6 +157,7 @@ nxp,pcf2127         Real-time clock
 nxp,pcf2129            Real-time clock
 nxp,pcf8563            Real-time clock/calendar
 nxp,pcf85063           Tiny Real-Time Clock
+nxp,tfa9879            Mono BTL Class D audio amplifier

This is already described at Documentation/devicetree/bindings/sound/tfa9879.txt

Right. However, the patch adding that should have been sent to me, the maintainer of the driver. That is carefully recorded in MAINTAINERS. So, forgive me for assuming that nothing had changed in the driver behind my back.

Had that patch been sent my way as it should have been, I would have insisted that maintenance of the bindings had been kept together with the maintenance of the driver.

Cheers,
Peter

#4 lore raw

Re: [PATCH 1/2] dt-bindings: trivial: add tfa9879 device

Hi Peter,

Quoted 8 lines · Peter Rosin

Right. However, the patch adding that should have been sent to me, the maintainer of the driver. That is carefully recorded in MAINTAINERS. So, forgive me for assuming that nothing had changed in the driver behind my back.

Had that patch been sent my way as it should have been, I would have insisted that maintenance of the bindings had been kept together with the maintenance of the driver.

When I sent this patch ./scripts/get_maintainer.pl did lot list your name, so that's why I did not put you on Cc, sorry.

4.15-rc1 still does not list you, but linux-next does.

Would you like me to send the following patch so that new binding updates go to you?

MAINTAINERS +1 -1
@@ -9808,6 +9808,7 @@ NXP TFA9879 DRIVER
 M:     Peter Rosin <[email protected]>
 L:     alsa-devel-K7yf7f+aM1XWsZ/[email protected] (moderated for non-subscribers)
 S:     Maintained
+F:     Documentation/devicetree/bindings/sound/tfa9879.txt
 F:     sound/soc/codecs/tfa9879*
--

To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

Re: [PATCH 1/2] dt-bindings: trivial: add tfa9879 device

Quoted 9 lines · Fabio Estevam

Hi Peter,

Quoted 5 lines · Peter Rosin

Right. However, the patch adding that should have been sent to me, the maintainer of the driver. That is carefully recorded in MAINTAINERS. So, forgive me for assuming that nothing had changed in the driver behind my back.

Quoted 8 lines
Quoted 3 lines

Had that patch been sent my way as it should have been, I would have insisted that maintenance of the bindings had been kept together with the maintenance of the driver.

When I sent this patch ./scripts/get_maintainer.pl did lot list your name, so that's why I did not put you on Cc, sorry.

4.15-rc1 still does not list you, but linux-next does.

That's funny, because I get the below on both 4.14 and 4.15-rc1. And I expect the same ever since the driver was added some 3 years ago.

$ scripts/get_maintainer.pl your-patch-from[1].diff | grep Peter
Peter Rosin <[email protected]> (maintainer:NXP TFA9879 DRIVER)

[1] https://patchwork.ozlabs.org/patch/815930/

By the way, scripts/checkpatch.pl on that patch reports
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?

Quoted 2 lines

Would you like me to send the following patch so that new binding updates go to you?

Naahh, I'll claim it myself, that way I can clean up some nits in the actual file while at it...

Cheers,
Peter

Quoted 9 lines
MAINTAINERS +1 -0
@@ -9808,6 +9808,7 @@ NXP TFA9879 DRIVER
 M:     Peter Rosin <[email protected]>
 L:     alsa-devel at alsa-project.org (moderated for non-subscribers)
 S:     Maintained
+F:     Documentation/devicetree/bindings/sound/tfa9879.txt
 F:     sound/soc/codecs/tfa9879*
 
#6 lore raw

Re: [PATCH 1/2] dt-bindings: trivial: add tfa9879 device

Quoted 5 lines · Peter Rosin

That's funny, because I get the below on both 4.14 and 4.15-rc1. And I expect the same ever since the driver was added some 3 years ago.

$ scripts/get_maintainer.pl your-patch-from[1].diff | grep Peter
Peter Rosin <[email protected]> (maintainer:NXP TFA9879 DRIVER)

You are right.

I tried ./scripts/get_maintainer.pl Documentation/devicetree/bindings/sound/tfa9879.txt

in 4.15-rc1.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html