All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauri Sandberg <maukka@ext.kapsi.fi>
To: soc@kernel.org, linux-arm-kernel@lists.infradead.org,
	devicetree@vger.kernel.org
Cc: arnd@arndb.de, olof@lixom.net, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, andrew@lunn.ch,
	sebastian.hesselbarth@gmail.com,
	Mauri Sandberg <maukka@ext.kapsi.fi>
Subject: [RFC RFT PATCH v1 0/1] ARM: orion5x: convert D-Link DNS-323 to the Device Tree
Date: Wed, 27 Apr 2022 19:21:22 +0300	[thread overview]
Message-ID: <20220427162123.110458-1-maukka@ext.kapsi.fi> (raw)

Hello all,

I am making an attempt to create a device tree for D-Link DNS-323 devices
but I am falling short on a few specific details. I am requesting a
general review of the device tree files. I have access to DNS-323 rev A1
only and the B1 and C1 need to be tested separately, so I am reaching out
to people who might have them. The questions that I have at the moment are
below.

- some of resulting IRQs are different from what was requested in device tree
- logs say NR_IRQS is different from mach file one
- sata_mv fails to initialise with -22 (-EINVAL)
- there is no concensus on how to get ascii formatted MAC address from mtd
  partitions so eth is not fully functional without setting the MAC from
  userspace
- revs B1 and C1 need testing
- how to configure RTC to wake system from sleep?

What currently works in rev A1
 - leds
 - keys
 - fan
 - temperature sensor
 - shutdown
 - reboot
 - mtd partitions
 - ethernet (mac address must be set manually)

I have included relevant parts from boot log to better illustrate what seems
to be off target

-------------------------------- DT log ---------------------------------------
...
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
...
sata_mv 0000:00:01.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
sata_mv: probe of 0000:00:01.0 failed with error -22
...
mv64xxx_i2c mv64xxx_i2c.0: can't get pinctrl, bus recovery not supported
...
-------------------------------------------------------------------------------

Best regards,
Mauri

Mauri Sandberg (1):
  ARM: orion5x: convert D-Link DNS-323 to the Device Tree

 arch/arm/boot/dts/Makefile                   |   3 +
 arch/arm/boot/dts/orion5x-dlink-dns323.dtsi  | 217 ++++++
 arch/arm/boot/dts/orion5x-dlink-dns323a1.dts |  59 ++
 arch/arm/boot/dts/orion5x-dlink-dns323b1.dts |  38 +
 arch/arm/boot/dts/orion5x-dlink-dns323c1.dts |  80 ++
 arch/arm/mach-orion5x/Kconfig                |   6 +-
 arch/arm/mach-orion5x/Makefile               |   2 +-
 arch/arm/mach-orion5x/board-dns323.c         | 118 +++
 arch/arm/mach-orion5x/board-dt.c             |   3 +
 arch/arm/mach-orion5x/common.h               |   6 +
 arch/arm/mach-orion5x/dns323-setup.c         | 724 -------------------
 11 files changed, 528 insertions(+), 728 deletions(-)
 create mode 100644 arch/arm/boot/dts/orion5x-dlink-dns323.dtsi
 create mode 100644 arch/arm/boot/dts/orion5x-dlink-dns323a1.dts
 create mode 100644 arch/arm/boot/dts/orion5x-dlink-dns323b1.dts
 create mode 100644 arch/arm/boot/dts/orion5x-dlink-dns323c1.dts
 create mode 100644 arch/arm/mach-orion5x/board-dns323.c
 delete mode 100644 arch/arm/mach-orion5x/dns323-setup.c


base-commit: 46cf2c613f4b10eb12f749207b0fd2c1bfae3088
--
2.25.1

WARNING: multiple messages have this Message-ID (diff)
From: Mauri Sandberg <maukka@ext.kapsi.fi>
To: soc@kernel.org, linux-arm-kernel@lists.infradead.org,
	devicetree@vger.kernel.org
Cc: arnd@arndb.de, olof@lixom.net, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, andrew@lunn.ch,
	sebastian.hesselbarth@gmail.com,
	Mauri Sandberg <maukka@ext.kapsi.fi>
Subject: [RFC RFT PATCH v1 0/1] ARM: orion5x: convert D-Link DNS-323 to the Device Tree
Date: Wed, 27 Apr 2022 19:21:22 +0300	[thread overview]
Message-ID: <20220427162123.110458-1-maukka@ext.kapsi.fi> (raw)

Hello all,

I am making an attempt to create a device tree for D-Link DNS-323 devices
but I am falling short on a few specific details. I am requesting a
general review of the device tree files. I have access to DNS-323 rev A1
only and the B1 and C1 need to be tested separately, so I am reaching out
to people who might have them. The questions that I have at the moment are
below.

- some of resulting IRQs are different from what was requested in device tree
- logs say NR_IRQS is different from mach file one
- sata_mv fails to initialise with -22 (-EINVAL)
- there is no concensus on how to get ascii formatted MAC address from mtd
  partitions so eth is not fully functional without setting the MAC from
  userspace
- revs B1 and C1 need testing
- how to configure RTC to wake system from sleep?

What currently works in rev A1
 - leds
 - keys
 - fan
 - temperature sensor
 - shutdown
 - reboot
 - mtd partitions
 - ethernet (mac address must be set manually)

I have included relevant parts from boot log to better illustrate what seems
to be off target

-------------------------------- DT log ---------------------------------------
...
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
...
sata_mv 0000:00:01.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
sata_mv: probe of 0000:00:01.0 failed with error -22
...
mv64xxx_i2c mv64xxx_i2c.0: can't get pinctrl, bus recovery not supported
...
-------------------------------------------------------------------------------

Best regards,
Mauri

Mauri Sandberg (1):
  ARM: orion5x: convert D-Link DNS-323 to the Device Tree

 arch/arm/boot/dts/Makefile                   |   3 +
 arch/arm/boot/dts/orion5x-dlink-dns323.dtsi  | 217 ++++++
 arch/arm/boot/dts/orion5x-dlink-dns323a1.dts |  59 ++
 arch/arm/boot/dts/orion5x-dlink-dns323b1.dts |  38 +
 arch/arm/boot/dts/orion5x-dlink-dns323c1.dts |  80 ++
 arch/arm/mach-orion5x/Kconfig                |   6 +-
 arch/arm/mach-orion5x/Makefile               |   2 +-
 arch/arm/mach-orion5x/board-dns323.c         | 118 +++
 arch/arm/mach-orion5x/board-dt.c             |   3 +
 arch/arm/mach-orion5x/common.h               |   6 +
 arch/arm/mach-orion5x/dns323-setup.c         | 724 -------------------
 11 files changed, 528 insertions(+), 728 deletions(-)
 create mode 100644 arch/arm/boot/dts/orion5x-dlink-dns323.dtsi
 create mode 100644 arch/arm/boot/dts/orion5x-dlink-dns323a1.dts
 create mode 100644 arch/arm/boot/dts/orion5x-dlink-dns323b1.dts
 create mode 100644 arch/arm/boot/dts/orion5x-dlink-dns323c1.dts
 create mode 100644 arch/arm/mach-orion5x/board-dns323.c
 delete mode 100644 arch/arm/mach-orion5x/dns323-setup.c


base-commit: 46cf2c613f4b10eb12f749207b0fd2c1bfae3088
--
2.25.1

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

             reply	other threads:[~2022-04-27 16:23 UTC|newest]

Thread overview: 91+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-27 16:21 Mauri Sandberg [this message]
2022-04-27 16:21 ` [RFC RFT PATCH v1 0/1] ARM: orion5x: convert D-Link DNS-323 to the Device Tree Mauri Sandberg
2022-04-27 16:21 ` [RFC RFT PATCH v1 1/1] " Mauri Sandberg
2022-04-27 16:21   ` Mauri Sandberg
2022-04-27 18:12   ` Arnd Bergmann
2022-04-27 18:12     ` Arnd Bergmann
2022-04-28 20:06     ` Mauri Sandberg
2022-04-28 20:06       ` Mauri Sandberg
2022-04-28 20:47       ` Arnd Bergmann
2022-04-28 20:47         ` Arnd Bergmann
2022-04-28  7:13   ` Krzysztof Kozlowski
2022-04-28  7:13     ` Krzysztof Kozlowski
2022-04-28 20:09     ` Mauri Sandberg
2022-04-28 20:09       ` Mauri Sandberg
2022-04-27 18:10 ` [RFC RFT PATCH v1 0/1] " Arnd Bergmann
2022-04-27 18:10   ` Arnd Bergmann
2022-04-28  0:18   ` Andrew Lunn
2022-04-28  0:18     ` Andrew Lunn
2022-04-28 20:25     ` Mauri Sandberg
2022-04-28 20:25       ` Mauri Sandberg
2022-04-28 23:26       ` Andrew Lunn
2022-04-28 23:26         ` Andrew Lunn
2022-05-03  8:20         ` Mauri Sandberg
2022-05-03  8:20           ` Mauri Sandberg
2022-04-28 20:01   ` Mauri Sandberg
2022-04-28 20:01     ` Mauri Sandberg
2022-04-28 20:56     ` Arnd Bergmann
2022-04-28 20:56       ` Arnd Bergmann
2022-05-08 14:06       ` Mauri Sandberg
2022-05-08 14:06         ` Mauri Sandberg
2022-05-08 15:02         ` Arnd Bergmann
2022-05-08 15:02           ` Arnd Bergmann
2022-05-08 15:22           ` Pali Rohár
2022-05-08 15:22             ` Pali Rohár
2022-05-08 15:41             ` Pali Rohár
2022-05-08 15:41               ` Pali Rohár
2022-05-09  7:21               ` Arnd Bergmann
2022-05-09  7:21                 ` Arnd Bergmann
2022-05-09 10:48               ` Mauri Sandberg
2022-05-09 10:48                 ` Mauri Sandberg
2022-05-09 11:03                 ` Pali Rohár
2022-05-09 11:03                   ` Pali Rohár
2022-05-08 19:34             ` Mauri Sandberg
2022-05-08 19:34               ` Mauri Sandberg
2022-05-08 20:10               ` Pali Rohár
2022-05-08 20:10                 ` Pali Rohár
2022-05-09 10:52                 ` Mauri Sandberg
2022-05-09 10:52                   ` Mauri Sandberg
2022-04-28  0:29 ` Andrew Lunn
2022-04-28  0:29   ` Andrew Lunn
2022-09-22 20:24 ` [PATCH v2 0/3] ARM: orion5x: add D-Link DNS323 based on device treee Mauri Sandberg
2022-09-22 20:24   ` Mauri Sandberg
2022-09-22 20:24   ` [PATCH v2 1/3] dt-bindings: arm: add DT binding for D-Link DNS-323 Mauri Sandberg
2022-09-22 20:24     ` Mauri Sandberg
2022-09-22 20:36     ` Andrew Lunn
2022-09-22 20:36       ` Andrew Lunn
2022-09-23  9:18     ` Krzysztof Kozlowski
2022-09-23  9:18       ` Krzysztof Kozlowski
2022-09-22 20:24   ` [PATCH v2 2/3] ARM: dts: orion5x: Add D-Link DNS-323 Device Tree Mauri Sandberg
2022-09-22 20:24     ` Mauri Sandberg
2022-09-22 20:45     ` Andrew Lunn
2022-09-22 20:45       ` Andrew Lunn
2022-09-22 21:14       ` Pali Rohár
2022-09-22 21:14         ` Pali Rohár
2022-09-22 21:32         ` Andrew Lunn
2022-09-22 21:32           ` Andrew Lunn
2022-09-23  9:19     ` Krzysztof Kozlowski
2022-09-23  9:19       ` Krzysztof Kozlowski
2022-09-27 11:26     ` kernel test robot
2022-09-27 22:56     ` kernel test robot
2022-09-22 20:24   ` [PATCH v2 3/3] ARM: orion5x: Add D-Link DNS-323 based on " Mauri Sandberg
2022-09-22 20:24     ` Mauri Sandberg
2022-09-22 21:10     ` Andrew Lunn
2022-09-22 21:10       ` Andrew Lunn
2022-09-23  9:03       ` maukka
2022-09-23  9:03         ` maukka
2022-09-23 12:12         ` Andrew Lunn
2022-09-23 12:12           ` Andrew Lunn
2022-09-23 18:02           ` Pali Rohár
2022-09-23 18:02             ` Pali Rohár
2022-09-26 11:56             ` maukka
2022-09-26 11:56               ` maukka
2022-09-26 12:23               ` Pali Rohár
2022-09-28 13:32                 ` [EXT] " Elad Nachman
2022-09-30 15:40                   ` Pali Rohár
2022-09-22 21:39     ` Arnd Bergmann
2022-09-22 21:39       ` Arnd Bergmann
2022-09-23  9:13       ` maukka
2022-09-23  9:13         ` maukka
2022-09-23  9:24         ` Arnd Bergmann
2022-09-23  9:24           ` Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220427162123.110458-1-maukka@ext.kapsi.fi \
    --to=maukka@ext.kapsi.fi \
    --cc=andrew@lunn.ch \
    --cc=arnd@arndb.de \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=olof@lixom.net \
    --cc=robh+dt@kernel.org \
    --cc=sebastian.hesselbarth@gmail.com \
    --cc=soc@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.