Re: Aw: Re: [RFC v1 2/5] dt-bindings: clock: mediatek: add address-cells and size-cells to ethsys

From
Rob Herring <robh@kernel.org>
Date
2024-05-07 19:35:59
Also in
linux-arm-kernel, linux-clk, linux-leds, linux-mediatek, lkml, netdev
Reply to
Frank Wunderlich, 2024-05-06
On Mon, May 06, 2024 at 06:51:43PM +0200, Frank Wunderlich wrote:
quoted
Gesendet: Montag, 06. Mai 2024 um 10:18 Uhr
Von: "Krzysztof Kozlowski" [off-list ref]
On 05/05/2024 18:45, Frank Wunderlich wrote:
quoted
From: Frank Wunderlich <redacted>

Add missing properties already used in mt7986a.dtsi.
Missing for what? Or why? Provide context, IOW, explain why they are
missing.
ethernet-node in mt7986a.dtsi hast reset-cells-property

https://elixir.bootlin.com/linux/v6.9-rc1/source/arch/arm64/boot/dts/mediatek/mt7986a.dtsi#L559

and

address-cells and size-cells are used here:

https://elixir.bootlin.com/linux/v6.9-rc1/source/arch/arm64/boot/dts/mediatek/mt7986a.dtsi#L495

i saw the warnings while checking my r3mini dts...

arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dtb: syscon@15000000: '#address-cells', '#size-cells' do not match any of the regexes: 'pinctrl-[0-9]+'
	from schema $id: http://devicetree.org/schemas/clock/mediatek,ethsys.yaml#
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dtb: ethernet@15100000: Unevaluated properties are not allowed ('#reset-cells' was unexpected)
	from schema $id: http://devicetree.org/schemas/net/mediatek,net.yaml#

so i thought it is a good idea to fix this now ;)
The dts is already fixed dropping these properties in linux-next.

If you don't have child nodes with reg/ranges, then you never need 
#address-cells or #size-cells.

Rob
Thread (30 messages) 30 messages, 6 authors, last reply 2024-05-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help