63380 Commits

Author SHA1 Message Date
Manivannan Sadhasivam
9e1e00f18a ARM: dts: qcom: Fix node name for NAND controller node
Use the common "nand-controller" node name for NAND controller node to
fix the `make dtbs_check` validation for Qcom platforms.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20210408170457.91409-10-manivannan.sadhasivam@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2021-04-13 21:06:37 -05:00
Manivannan Sadhasivam
ce5a28d12e ARM: dts: qcom: sdx55: Add interconnect nodes
Add interconnect nodes for the providers in SDX55 platform.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20210408170457.91409-9-manivannan.sadhasivam@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2021-04-13 21:06:31 -05:00
Manivannan Sadhasivam
6bf6655ddc ARM: dts: qcom: sdx55: Add SCM node
Add SCM node to enable SCM functionality on SDX55 platform.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20210408170457.91409-8-manivannan.sadhasivam@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2021-04-13 21:06:27 -05:00
Manivannan Sadhasivam
9b7069edb1 ARM: dts: qcom: sdx55: Add IMEM and PIL info region
Add a simple-mfd representing IMEM on SDX55 and define the PIL
relocation info region, so that post mortem tools will be able to locate
the loaded remoteproc.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20210408170457.91409-6-manivannan.sadhasivam@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2021-04-13 21:06:18 -05:00
Manivannan Sadhasivam
21e6e1dced ARM: dts: qcom: sdx55: Add modem SMP2P node
Add SMP2P nodes for the SDX55 platform to communicate with the modem.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20210408170457.91409-5-manivannan.sadhasivam@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2021-04-13 21:06:17 -05:00
Manivannan Sadhasivam
0ec7bde7b5 ARM: dts: qcom: sdx55: Add CPUFreq support
Add CPUFreq support to SDX55 platform using the cpufreq-dt driver.
There is no dedicated hardware block available on this platform to
carry on the CPUFreq duties. Hence, it is accomplished using the CPU
clock and regulators tied together by the operating points table.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20210408170457.91409-4-manivannan.sadhasivam@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2021-04-13 21:06:16 -05:00
Manivannan Sadhasivam
8e3d9a7c47 ARM: dts: qcom: sdx55: Add support for APCS block
The APCS block on SDX55 acts as a mailbox controller and also provides
clock output for the Cortex A7 CPU.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20210408170457.91409-3-manivannan.sadhasivam@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2021-04-13 21:06:16 -05:00
Manivannan Sadhasivam
37f0f245f9 ARM: dts: qcom: sdx55: Add support for A7 PLL clock
On SDX55 there is a separate A7 PLL which is used to provide high
frequency clock to the Cortex A7 CPU via a MUX.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20210408170457.91409-2-manivannan.sadhasivam@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2021-04-13 21:06:15 -05:00
Michael Walle
83216e3988 of: net: pass the dst buffer to of_get_mac_address()
of_get_mac_address() returns a "const void*" pointer to a MAC address.
Lately, support to fetch the MAC address by an NVMEM provider was added.
But this will only work with platform devices. It will not work with
PCI devices (e.g. of an integrated root complex) and esp. not with DSA
ports.

There is an of_* variant of the nvmem binding which works without
devices. The returned data of a nvmem_cell_read() has to be freed after
use. On the other hand the return of_get_mac_address() points to some
static data without a lifetime. The trick for now, was to allocate a
device resource managed buffer which is then returned. This will only
work if we have an actual device.

Change it, so that the caller of of_get_mac_address() has to supply a
buffer where the MAC address is written to. Unfortunately, this will
touch all drivers which use the of_get_mac_address().

Usually the code looks like:

  const char *addr;
  addr = of_get_mac_address(np);
  if (!IS_ERR(addr))
    ether_addr_copy(ndev->dev_addr, addr);

This can then be simply rewritten as:

  of_get_mac_address(np, ndev->dev_addr);

Sometimes is_valid_ether_addr() is used to test the MAC address.
of_get_mac_address() already makes sure, it just returns a valid MAC
address. Thus we can just test its return code. But we have to be
careful if there are still other sources for the MAC address before the
of_get_mac_address(). In this case we have to keep the
is_valid_ether_addr() call.

The following coccinelle patch was used to convert common cases to the
new style. Afterwards, I've manually gone over the drivers and fixed the
return code variable: either used a new one or if one was already
available use that. Mansour Moufid, thanks for that coccinelle patch!

<spml>
@a@
identifier x;
expression y, z;
@@
- x = of_get_mac_address(y);
+ x = of_get_mac_address(y, z);
  <...
- ether_addr_copy(z, x);
  ...>

@@
identifier a.x;
@@
- if (<+... x ...+>) {}

@@
identifier a.x;
@@
  if (<+... x ...+>) {
      ...
  }
- else {}

@@
identifier a.x;
expression e;
@@
- if (<+... x ...+>@e)
-     {}
- else
+ if (!(e))
      {...}

@@
expression x, y, z;
@@
- x = of_get_mac_address(y, z);
+ of_get_mac_address(y, z);
  ... when != x
</spml>

All drivers, except drivers/net/ethernet/aeroflex/greth.c, were
compile-time tested.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-04-13 14:35:02 -07:00
Arnd Bergmann
91f059a0fc MMC aliases fixups and some property/compatible cleanups.
-----BEGIN PGP SIGNATURE-----
 
 iQFEBAABCAAuFiEE7v+35S2Q1vLNA3Lx86Z5yZzRHYEFAmByvY0QHGhlaWtvQHNu
 dGVjaC5kZQAKCRDzpnnJnNEdgSjAB/0ca5PFybfoqLk49gTxkRuKfHw3s1WNUJrO
 x9GFk5ow8egchU2s3p5wk11+g9XoJA6OS05nwZPiDgNoK4pfsxydF3fHL54u8l0a
 8QhK5+AmmSu+LS1K/MU9O4riz8O4SY/XGp8Yn0Y0SL0a8BPIGyA1OInkCLlogMOw
 5pybiYNKERyh6oEWlttEWdusBtLDMuKlDttdgE1goAB2lXR1TokawT6WaRfnAUlL
 7Yp7JqksYKY/lhxC9CoO8GxtaqLZctPxDwPEIIn3Mx5R5M/KSdDNYgqGPEZY/CMK
 pJnAEeFDdE5ehQhmjcbmi/+IYilqndsYm6p4M4LGeDnNEFXk7aD1
 =8tCw
 -----END PGP SIGNATURE-----

Merge tag 'v5.13-rockchip-dts32' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into arm/dt

MMC aliases fixups and some property/compatible cleanups.

* tag 'v5.13-rockchip-dts32' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip:
  ARM: dts: rockchip: move rv1108 mmcx aliases to board dts files
  ARM: dts: rockchip: move rk322x mmcx aliases to board dts files
  ARM: dts: rockchip: remove clock-names property from watchdog node in rv1108.dtsi
  ARM: dts: rockchip: add new watchdog compatible to rk322x.dtsi
  ARM: dts: rockchip: add new watchdog compatible to rv1108.dtsi

Link: https://lore.kernel.org/r/4638723.31r3eYUQgx@phil
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-04-13 10:54:16 +02:00
Nicolas Ferre
e4379d649e ARM: dts: at91: sama5d2/trivial: fix letter case for etm hex address
Fix the etm node hex address to lower case for matching regexp
specification and removing the additional warning that looks like:

arch/arm/boot/dts/at91-sama5d2_ptc_ek.dt.yaml: /: 'etm@73C000' does not
match any of the regexes: '@(0|[1-9a-f][0-9a-f]*)$', '^[^@]+$',
'pinctrl-[0-9]+'

Reported-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-04-12 15:22:26 +02:00
Greg Kroah-Hartman
14d34d2dbb Merge 5.12-rc7 into usb-next
We need the USB fixes in here as well.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-12 08:15:27 +02:00
Heiko Stuebner
e89db2b4c7 ARM: dts: rockchip: move rv1108 mmcx aliases to board dts files
As suggested by Arnd Bergmann, mmc-aliases are supposed to be
board-specific, so move the newly added general aliases to
the board-level on rv1108-based boards.

Suggested-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Link: https://lore.kernel.org/r/20210324122235.1059292-2-heiko@sntech.de
2021-04-11 11:11:42 +02:00
Heiko Stuebner
23a52b0dfe ARM: dts: rockchip: move rk322x mmcx aliases to board dts files
As suggested by Arnd Bergmann, mmc-aliases are supposed to be
board-specific, so move the newly added general aliases to
the board-level on rk322x-based boards.

Suggested-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Link: https://lore.kernel.org/r/20210324122235.1059292-1-heiko@sntech.de
2021-04-11 11:11:42 +02:00
Arnd Bergmann
e8adf27e97 Qualcomm dts updates for v5.13
This adds Bluetooth support on the Samsung Galaxy S5, corrects the mount
 matrix for the IMU on Nexus 5 and corrects the fuel gauge irq trigger
 for the two devices.
 -----BEGIN PGP SIGNATURE-----
 
 iQJPBAABCAA5FiEEBd4DzF816k8JZtUlCx85Pw2ZrcUFAmBwf4YbHGJqb3JuLmFu
 ZGVyc3NvbkBsaW5hcm8ub3JnAAoJEAsfOT8Nma3FzH8P/jA8KjKAaKKc2Hb/SxKc
 hYBPX0/kMX0K237JuQ6kqp5E3t6FVKihxI+RljhwAxviOW8DrvwF74qbtgl7PB4S
 1xq8CBn6bP5yUcxnCoBPjzcZjffe7BiXdBGLyf5w/KdfJe4Uea+0HlI6C5n/uwxS
 WgJsUGsUI3vS85I1fjPUhwXC6Q7s34r5ReYnLk3FwYXeWUjD77lafIsGtejScCh/
 2BCAIai2u8NOgb4cVwk93aK3wZ8lCCnlVt0ZSB3QhPmlq5A/I1KTpKQ6SMwNfQWV
 pY0JJZf9ELd5lPgCfhM2cW0oJhRYXrKT5+dGWlOtANLU7kegnQziqNEHFXf+gR+h
 2TyB/Z0x9v8HJejYqB/VNm2Vn+v5Z47iWzxPelBZETYTj/7Dozn1fbGDwwS0il9L
 sca/tSQai9nmWEjGSIbsTBSO85Tv15wKnrswt38LcuAKBz/VQD32mV4a3cIVjv4d
 /CI5YCyUQeggGzSPD4gUdD86U6hnuaba2hIvGYytiw5G91UtVRFGMUnHDWB55y2o
 iP2hV3uaKxuMTJUHSiN9/tB12sZRNfY9AAjyFe4R9irvHpBGn3RCYkXmpmO3AB+Q
 S7JR0Ieq7/nCY55E3WbLA4yhbzrDN3uGQVHypABixw1xLlhU2P4v1QoGxPBEw+n+
 BXjjihlfQNGU0yjoKNLrDW4M
 =M5GB
 -----END PGP SIGNATURE-----

Merge tag 'qcom-dts-for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into arm/dt

Qualcomm dts updates for v5.13

This adds Bluetooth support on the Samsung Galaxy S5, corrects the mount
matrix for the IMU on Nexus 5 and corrects the fuel gauge irq trigger
for the two devices.

* tag 'qcom-dts-for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux:
  ARM: dts: qcom: msm8974-klte: Add bluetooth support
  ARM: dts: qcom: msm8974: add blsp2_uart8
  ARM: dts: qcom: msm8974-samsung-klte: correct fuel gauge interrupt trigger level
  ARM: dts: qcom: msm8974-lge-nexus5: correct fuel gauge interrupt trigger level
  ARM: dts: qcom: msm8974-hammerhead: add mount matrix for IMU

Link: https://lore.kernel.org/r/20210409162359.776076-1-bjorn.andersson@linaro.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-04-09 21:40:30 +02:00
Arnd Bergmann
be0f990acf ARM: dts: clps711x: fix missing interrupt parent
The kernelci.org bot reports a build time regression:

arch/arm/boot/dts/ep7209.dtsi:187.17-192.4: Warning (interrupts_property): /keypad: Missing interrupt-parent

There is only one interrupt controller in this SoC, so I assume this
is the parent.

Fixes: 2bd86203acf3 ("ARM: dts: clps711x: Add keypad node")
Reported-by: kernelci.org bot <bot@kernelci.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-04-09 09:35:08 +02:00
Arnd Bergmann
420c4c4619 ARM: dts: mvebu: fix SPI device node
dtc warns about a mismatched address:

arch/arm/boot/dts/armada-385-atl-x530.dts:171.14-199.4: Warning (spi_bus_reg): /soc/spi@10680/spi-flash@0: SPI bus unit address format error, expected "1"

I assume the "reg" property is correct here, so adjust the unit address
accordingly.

Fixes: c6dfc019c239 ("ARM: dts: mvebu: Add device tree for ATL-x530 Board")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: kernelci.org bot <bot@kernelci.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-04-09 09:31:19 +02:00
Arnd Bergmann
d60f314b93 ASPEED LPC updates for 5.13
These patches fix the ASPEED LPC bindings and LPC-related device drivers
 so in the future the KCS driver can properly use the hardware.
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE+nHMAt9PCBDH63wBa3ZZB4FHcJ4FAmBv7HAACgkQa3ZZB4FH
 cJ68Gg/+KQns6SXdsCxu1sXctZmaSzmOXgGNnwLqCDu6TRFjtsUQ2CaIOFOhuUjJ
 A75StHMPFqHmcciWBL5eYHH+1CwBqs3b6ZXRbXFvVq0PE709epGA1n0egzoXiVEF
 nNjUM/74JY/4r2iEZu2cFRaGJKYJYPzn8cfTMvxdDZhmflgWtXxV7MejBr0r+JpF
 3GevztzscuI8gmxH2VVs9BvvNZxp748oG3WNfHpyWUDG6kEK2/r4Y7BEmB+q6E0a
 CpbMINHOT6e/Mc55EpK3+eby+OGs9BN8yzJaU9oBSPxUirDRPVIeu1NShpjukQ7F
 wfO9OY7RR0mySmZp6u4Qj4FKnkUYoE0pzxslVoVAS68AiPy2Z6UB2nLpu+UlRQhf
 zlycloD5Tywn3hkA5uaT0FPu2zV/Kbla4MJaOT8BIGfTC+/X2andYIUQN9dbjRhC
 OyWpzYWRJar/nOLx6ergXtcPft2dn9g0KqPNRF4s414JFmrHLIjmdCXQiPePDFGQ
 pI+8bTv614wGPeTE1zAD7sMrFSv+FEU8a6ZdXwMUHKrV8E8jgKqT40+eyZ6SHGOZ
 u+ATncxGcOQTLk9/JiMFOLVlj0oUIGf4E6n+zldASwTPuFyzKlNFRSsmPxHkKF3/
 FwE/cSXCtU83Vrr3e3zhV39Pz7hkMPbeQpqLmFiMCMbs3N+Oq0o=
 =U2zj
 -----END PGP SIGNATURE-----

Merge tag 'aspeed-5.13-lpc' of git://git.kernel.org/pub/scm/linux/kernel/git/joel/bmc into arm/drivers

ASPEED LPC updates for 5.13

These patches fix the ASPEED LPC bindings and LPC-related device drivers
so in the future the KCS driver can properly use the hardware.

* tag 'aspeed-5.13-lpc' of git://git.kernel.org/pub/scm/linux/kernel/git/joel/bmc:
  soc: aspeed: Adapt to new LPC device tree layout
  pinctrl: aspeed-g5: Adapt to new LPC device tree layout
  ipmi: kcs: aspeed: Adapt to new LPC DTS layout
  ARM: dts: Remove LPC BMC and Host partitions
  dt-bindings: aspeed-lpc: Remove LPC partitioning

Link: https://lore.kernel.org/r/CACPK8Xcb12LsVr7CUaXXjQskKbVjb7x+jgueG1Hik-kBPWtDSg@mail.gmail.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-04-09 09:00:59 +02:00
Arnd Bergmann
e3bbc53ac8 BMC device tree updates for 5.13
The ASPEED and Nuvoton pull request now comes as a combined BMC pull
 request.
 
  - New machines
 
   * ASRock E3C246D4I, an AST2500 BMC for an Xeon E-2100/E-2200 mini-ITX
     system
   * Quanta GBS, an NPCM730 BMC for an x86 server
 
  - Power10 BMC updates for Everest and Rainier
 
  - GPIO line names for Mihawk
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE+nHMAt9PCBDH63wBa3ZZB4FHcJ4FAmBv7eEACgkQa3ZZB4FH
 cJ54xQ/8CdngV0E3yqrE26PjtNUkGBso1WGkA0UekM3TuehhGpI4gyeUqg/b3Y/c
 OBZ+AVvc56mKDfqlZh8ChHbHS7S4Zq3dXPNCrIF3wJyESJmfsvZ24XnAOYNq9dAc
 OVJtUNTgUGkDqHaUu5JOuxg0DGau/FuDf7ExRejTXqum0EpCuWfxdcuhEZE2liUF
 reZhMbnnkKMDJlEySdPx406MZrPmqnWQ7UP14mfDkaB2e3rwlDa+5r2+blqaZ3hx
 R0Uz41wT8iIewH9Y7wZiCZdO4VgzUjZ6bYam5gnaaN6kOx6fhFMigJ5xYSwHyTBe
 Djcb/yYCwSPZ6xmYswm56+7Me97ij3IXMlUcN75cRhgPih2ED+y0z58k4dcK1y0M
 KvPQzUmep5Uh8aM2Ypnip8H5bOn8JZHhGtCMrPLXgDua86Y34LVvlL1gJtk8QZY1
 kMWKVoJdjmDQwIXKFkF0LhAui79h+kJUc43ecCkxWWp0ucwaApAkyer0KfPTjqmy
 IvjDaJvW1+QY0tp0ccP+3wb02dgBHibADUwdFUnGIhTCDJLcXI9uvHsBCcZVP871
 Zqp0uQmY0aMhgJU+U5dWaxOvpVOHlUlEyaVUCvHLoCn9Mh/ZkN2WubDCA9a8T1wp
 jMVeN0T+g5Adb+9mivhv+ACIUp9UkHnx+SQn7wSQyWWnfKt9cX8=
 =bOLL
 -----END PGP SIGNATURE-----

Merge tag 'bmc-5.13-devicetree' of git://git.kernel.org/pub/scm/linux/kernel/git/joel/bmc into arm/dt

BMC device tree updates for 5.13

The ASPEED and Nuvoton pull request now comes as a combined BMC pull
request.

 - New machines

  * ASRock E3C246D4I, an AST2500 BMC for an Xeon E-2100/E-2200 mini-ITX
    system
  * Quanta GBS, an NPCM730 BMC for an x86 server

 - Power10 BMC updates for Everest and Rainier

 - GPIO line names for Mihawk

* tag 'bmc-5.13-devicetree' of git://git.kernel.org/pub/scm/linux/kernel/git/joel/bmc: (21 commits)
  ARM: dts: nuvoton: Add Quanta GBS BMC Device Tree
  ARM: dts: aspeed: mihawk: Add GPIO line names
  ARM: dts: aspeed: Add Rainier 1S4U machine
  ARM: dts: aspeed: everest: Add size/address cells
  ARM: dts: aspeed: everest: Enable fan watchdog
  ARM: dts: aspeed: everest: Add RTC
  ARM: dts: aspeed: everest: GPIOs support
  ARM: dts: aspeed: everest: Add UCD90320 power sequencer
  ARM: dts: aspeed: everest: Add power supply i2c devices
  ARM: dts: aspeed: everest: Add pca9552 fan presence
  ARM: dts: aspeed: everest: Add FSI CFAMs and re-number engines
  ARM: dts: aspeed: everest: Add max31785 fan controller device
  ARM: dts: aspeed: everest: Add I2C components
  ARM: dts: aspeed: rainier 4U: Fix fan configuration
  ARM: dts: aspeed: rainier: Add missing fan nodes
  ARM: dts: aspeed: rainier: Enable fan watchdog
  ARM: dts: aspeed: rainier: Add presence GPIOs
  ARM: dts: aspeed: rainier: Add additional processor CFAMs
  ARM: dts: aspeed: rainier: Add gpio-keys-polled for fans
  ARM: dts: aspeed: rainier: Add directly controlled LEDs
  ...

Link: https://lore.kernel.org/r/CACPK8Xe-KV5BeQwOH6NKC1++FCVqwwNCGBh7hEbBORfrmxfTtQ@mail.gmail.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-04-09 08:57:49 +02:00
Joel Stanley
09e6d2b71a ARM: config: Add WPCM to multi v5
This is a newly added ARM926 platform that is not covered by any other
defconfigs.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210409054511.1534181-1-joel@jms.id.au
2021-04-09 15:18:40 +09:30
Jonathan Neuschäfer
37e9f9fa71 ARM: dts: Add devicetree for Supermicro X9SCi-LN4F based on WPCM450
The Supermicro X9SCi-LN4F is a server mainboard featuring the WPCM450
BMC. This patch adds a minimal devicetree for Linux running on the BMC.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210406120921.2484986-10-j.neuschaefer@gmx.net
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-09 14:11:26 +09:30
Jonathan Neuschäfer
ed09d269b9 ARM: dts: Add devicetree for Nuvoton WPCM450 BMC chip
The WPCM450 is an older BMC SoC in the Nuvoton NPCM family, originally
marketed as Winbond WPCM450.

This patch adds a devicetree with basic functionality.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210406120921.2484986-9-j.neuschaefer@gmx.net
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-09 14:11:25 +09:30
Jonathan Neuschäfer
ece3fe93e8 ARM: npcm: Introduce Nuvoton WPCM450 SoC
The WPCM450 is an older BMC SoC in the Nuvoton NPCM family, originally
marketed as Winbond WPCM450.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210406120921.2484986-6-j.neuschaefer@gmx.net
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-09 14:11:22 +09:30
Chia-Wei, Wang
311bf0f18c ARM: dts: Remove LPC BMC and Host partitions
The LPC controller has no concept of the BMC and the Host partitions.

A concrete instance is that the HICRB[5:4] are for the I/O port address
configurtaion of KCS channel 1/2. However, the KCS driver cannot access
HICRB for channel 1/2 initialization via syscon regmap interface due to
the parition boundary. (i.e. offset 80h)

In addition, for the HW design backward compatibility, a newly added HW
control bit could be located at any reserved one over the LPC addressing
space. Thereby, this patch removes the lpc-bmc and lpc-host child node
and thus the LPC partitioning.

Note that this change requires the synchronization between device tree
change and the driver change. To prevent the misuse of old devicetrees
with new drivers, or vice versa, the v2 compatible strings are adopted
for the LPC device as listed:

	"aspeed,ast2400-lpc-v2"
	"aspeed,ast2500-lpc-v2"
	"aspeed,ast2600-lpc-v2"

Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20210319062752.145730-2-andrew@aj.id.au
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-09 13:39:20 +09:30
Cristian Ciocaltea
d8fcfbf38f ARM: dts: owl-s500-roseapplepi: Add ATC2603C PMIC
Add device tree node for ATC2603C PMIC and remove the 'fixed-3.1V'
dummy regulator used for the uSD supply.

Additionally, add 'SYSPWR' fixed regulator and provide cpu0 supply.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://lore.kernel.org/r/2e0a2931ae3757f016948e7c78e8e54afa325ae0.1615538629.git.cristian.ciocaltea@gmail.com
Link: https://lore.kernel.org/r/20210408062232.3575-1-mani@kernel.org'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-04-08 22:09:23 +02:00
Arnd Bergmann
e3e1276295 mvebu dt for 5.13 (part 1)
Add support for ATL-x530 Board (Armada 38x based)
 -----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQQYqXDMF3cvSLY+g9cLBhiOFHI71QUCYG4XpAAKCRALBhiOFHI7
 1ZoaAKCte3+j+CRoH3fBgBRTd5aIOBHd/QCeO8D+KkqxlnjVSo3XDt32cZQWq20=
 =xk5y
 -----END PGP SIGNATURE-----

Merge tag 'mvebu-dt-5.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu into arm/dt

mvebu dt for 5.13 (part 1)

Add support for ATL-x530 Board (Armada 38x based)

* tag 'mvebu-dt-5.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu:
  ARM: dts: mvebu: Add device tree for ATL-x530 Board

Link: https://lore.kernel.org/r/87v98xbzir.fsf@BL-laptop
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-04-08 22:08:32 +02:00
Arnd Bergmann
2de5bb9956 Defconfig changes for omaps for v5.13
Update defconfig to have nefilter available as loadable modules
 to make the defconfig more usable for networked devices. And we now
 select SIMPLE_PM_BUS so it can be dropped. And some devices use
 EEPROM_AT25 so let's add it as a loadable module.
 -----BEGIN PGP SIGNATURE-----
 
 iQJFBAABCAAvFiEEkgNvrZJU/QSQYIcQG9Q+yVyrpXMFAmBsM1ERHHRvbnlAYXRv
 bWlkZS5jb20ACgkQG9Q+yVyrpXMUFhAAtPZ0/JR5NoeAI2kRT+2MhfPP5pk3Wtw3
 x9b2Rdxm6Nf1XgQNVULzIXrUxHfrwKY6QdE7ODn0hJmxJ3Fq5fMpobleuDzh6OeG
 bkvr7x2nARedof2XSGL2Vazo9r0ELO3agz7sGILDQx7YfwvvGKGaHSo6WA3N4iMd
 8t1lfW0fuHZa/UNUro2oPKYpNWUP1ZWSdIPdNA5gB7qSc8BiDnqvUw83m0i66MXQ
 27ZSf7AA3SIJFfHi8aPxNmlbff8FH6xROzgUI90g3dRSwFV72hWEix4GAkkbHnQe
 BYzTVPRy5CYozoR4HJ0in2z10XC9aDZkCj9+hkcIqq+M9E+2z7clavP+8M8zMf0T
 bJNXJuUaQ5s3ZHPEXXm1qBzj4Bt+KE5rKA6Fc23ZKfrdlN8EmNohl8fCqtuGwavc
 YTAQgfidHkXIYXVoBQ1OIUZmUR6W9gR6GGeczNQXDgEZeZKzVedj9Ro1jph2XVLQ
 /PFMKaaK9hVOHg0Mg4SGF55zcfliWdaj8bvkzi+S8hD2JeNE/Ipj2rqTtuFt6xZw
 8t1TE+zSg0ZO+lCfXL8pGYOpPfAZk7nUSGL13ZetrAzUXk/UUdwl03oxPoo7w4Ni
 zZZpkIxcs/dHIyFj1JSjed4TX8wopDcM5AGbe1lFxyoDh9oKfElA5nRtAlsNkJ3L
 sEDGa1ZqQwA=
 =INyD
 -----END PGP SIGNATURE-----

Merge tag 'omap-for-v5.13/defconfig-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into arm/defconfig

Defconfig changes for omaps for v5.13

Update defconfig to have nefilter available as loadable modules
to make the defconfig more usable for networked devices. And we now
select SIMPLE_PM_BUS so it can be dropped. And some devices use
EEPROM_AT25 so let's add it as a loadable module.

* tag 'omap-for-v5.13/defconfig-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
  ARM: omap2plus_defconfig: Add AT25 EEPROM module
  ARM: omap2plus_defconfig: Enable Netfilter components as modules
  ARM: omap2plus_defconfig: Update for dropped simple-pm-bus

Link: https://lore.kernel.org/r/pull-1617703816-65652@atomide.com-3
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-04-08 22:05:50 +02:00
Arnd Bergmann
a0c97a6bd6 Samsung mach/soc changes for v5.13
1. Update Krzysztof Kozlowski's email address in Maintainers.
 2. Replace deprecated pwm_request() with pwm_get() in S3C24xx.
 3. Correct kerneldoc.
 -----BEGIN PGP SIGNATURE-----
 
 iQJEBAABCgAuFiEE3dJiKD0RGyM7briowTdm5oaLg9cFAmBtVmAQHGtyemtAa2Vy
 bmVsLm9yZwAKCRDBN2bmhouD1/l4EACJb+k+/hhVpqqSclbPZi44DCTn78kvjPe6
 zAmQppZwhO8I/KOG8SPvJrEI2wfsozV0yyUYvlunwQC6Jq7qIfCBputTSOSaE59H
 qmXNU7ZLGhsjSQE3Jamkn6BQgAyOUKPgvhYomCIAhJ/jSdMuE3NHrQzxK2g4eEs4
 bF1RSLzb1vdn5sHSxnAsEih9wC80cgMW91OiAZAspXPKustqaEya+8j7bjWSqC33
 3o5SQtgGmxAo1SirtsVbqrATE9rKsMNoP/9IKBbw3J4kr6i5lsXpogfz7jTXw98M
 ccmRmg/xpsSzeibHCJ0clSowjVBnHQwi1ddo6NgFFwP8eeK1SCKif282dYSrNuCt
 PtSoc63VUr96VmGlyrTO1gKt9OXl7vl36KU+gJjF2+UqGWbnIqDsfMxI9TBxBiEe
 7W2KK0BlX37V/vFx1PifmiOQt95Yg6M6U8mfGCqcJfSd9qwO1VfXtu3NbyJsBoTa
 6MU9vFdRyy12v7XroV7Z5m47ka+XoV8VKk8ZEIqkszxWzXZizbaBKlrI9hgriGyv
 OheEEkeJdnEyJtQMW+TNf7iHzUUWKr1y4OBHZkYsVBVoqNejHVK/hNa/v96ATLCP
 NWLB2yFMZNQZVrP7yuMgbn5ihJEY3LOQBOiqNo0rV49WpmpZsWxsOAga9WGhkGa1
 np2LZkFXdg==
 =X0tK
 -----END PGP SIGNATURE-----

Merge tag 'samsung-soc-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into arm/soc

Samsung mach/soc changes for v5.13

1. Update Krzysztof Kozlowski's email address in Maintainers.
2. Replace deprecated pwm_request() with pwm_get() in S3C24xx.
3. Correct kerneldoc.

* tag 'samsung-soc-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux:
  ARM: exynos: correct kernel doc in platsmp
  ARM: s3c: Use pwm_get() in favour of pwm_request() in RX1950
  MAINTAINERS: use Krzysztof Kozlowski's Canonical address

Link: https://lore.kernel.org/r/20210407065828.7213-3-krzysztof.kozlowski@canonical.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-04-08 22:02:11 +02:00
Arnd Bergmann
f47e8e1437 SoC changes for omaps for v5.13
Minor non-urgent fixes for issues found by robots and few typo fixes:
 
 - Use DEFINE_DEBUGFS_ATTRIBUTE
 
 - Add missing of_node_put()
 
 - Use true and false for bool variable
 
 - Use DEFINE_SPINLOCK
 
 - Fix incorrect kerneldoc usage
 -----BEGIN PGP SIGNATURE-----
 
 iQJFBAABCAAvFiEEkgNvrZJU/QSQYIcQG9Q+yVyrpXMFAmBsMLURHHRvbnlAYXRv
 bWlkZS5jb20ACgkQG9Q+yVyrpXOifhAA48WXNxmJ6GhYaDiJGfPlTGrQN1EwQo1p
 vQFvUf+u2fZQvg/q1KwPrDo67k5RScq97OH/LrQauvOHosn+dPHblHSZ+O5dYUxG
 IBtrbqLu6U4as46uDHIv6+vASB8SLyJBFRq5crWRqo+LFuSk4OfSa285W+LZ+Ks+
 8hpgKP2LuV4c8EX8otkBKktwdSSXy9CiQE8L42O36BrH4J7MP9iCHKsggZRtw12L
 GRvrQEPkp1YcFPHOjU0n7MCLMDBeecLKr2mafwTx2i4714I1528z1WQ+b7nh7oXV
 OBhg4QxxNuw2XhIWD9p1XePzs5pfiYbYSbpQTAbG/1/JdwgyYh1UtJemRhFPxmky
 oisDKLCJMIaW01XgI6PEC4xHNWXrtY+81abNuaFcegctNQ1fY+103TjWP9kT+tAK
 mP7C/RLQEsMwgwwlqkDOxQuz00bYY4kmIKAEm7ZM0MOwjmpS3vBtfKZTUzJoawSx
 yBirUChGeJicQQ6lFO9/vm7KOs5oMlfh99r101QTwuSozu4PrkJ2SdHyvAmvWSBP
 gm4kZNx8PQ5Gw8Rs9aOYYpLxQxzmD0aMcGbGGfgSRRXPxkbQOgv+1g7+t+hin7zj
 MxR83yyLo/X+m7uAOxqRIyZADSc7HcgroRbDr7o/QlTQqTyb2VUMHHplUXh4s3Vz
 pwUIJJGZ+zI=
 =+8vs
 -----END PGP SIGNATURE-----

Merge tag 'omap-for-v5.13/soc-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into arm/soc

SoC changes for omaps for v5.13

Minor non-urgent fixes for issues found by robots and few typo fixes:

- Use DEFINE_DEBUGFS_ATTRIBUTE

- Add missing of_node_put()

- Use true and false for bool variable

- Use DEFINE_SPINLOCK

- Fix incorrect kerneldoc usage

* tag 'omap-for-v5.13/soc-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
  ARM: OMAP1: fix incorrect kernel-doc comment syntax in file
  ARM: OMAP2+: fix incorrect kernel-doc comment syntax in file
  ARM: OMAP2+: Use DEFINE_SPINLOCK() for spinlock
  ARM: OMAP2+: use true and false for bool variable
  ARM: OMAP2+: add missing call to of_node_put()
  ARM: OMAP2+: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

Link: https://lore.kernel.org/r/pull-1617703816-65652@atomide.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-04-08 21:56:11 +02:00
Arnd Bergmann
d74b25572a HiSilicon ARMv7 SoC updates for v5.13
- Correct the HiSilicon copyright
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABAgAGBQJgZ/HYAAoJEAvIV27ZiWZcmH4P/1ezSTwh7z4eNiSowAjDpyrF
 kkC12eE8vHw+DtyHYRd6PNxtppe6NjnSs73CfDk8mz/6FpInnyzcrLHGMCIgcpdp
 WufIpZt9y/1uZbak55/tsBS1mouiqX9qWmHav7sQvM5k3qPhsR+xNvHzn6D+DV+p
 7c/njFEzNhzT1o0LEZMJUDcnpgqhbirYX18Zm6+B3BwfYtPYGgKlI20GiyefWmW3
 ElatSVVb2DV02vzDIeIZhMt9Z65b9O+sJqwfCUimLTwI8YEQRuNqvLYRkzJjofnZ
 BiMzNeitPH6K5Aw/ndmGSRfAye+58/zE9/TP5rM+v5QTzK5oGn4xQrpG9n2GE2u3
 aeYLqBeZKxMJIhm/te3LL28q8oMuxhZLCtdz6XeJLegcf75LnVA0Bqoa/SvP1H4T
 wXEcSdx9F+v3RXF2nO3ZxqqR4hCfMV1kIrvi7qZIrIyJWXzFVWszSvghmR+Y1pJL
 h9wPZ4wGlBRo2uli9L/J5TKG/vFT4urIgxzNQa1VlR835jvJAvGzjOcoJ462RfLQ
 wioS2nZoonbowCwzyQ9ROajaxRhwEFhJf1++kqXuh4Ka8EgSCxkKomDBmN3H7wbL
 TjiC2yHNliw5ZQYnsPvPyX925WRZZX4b0kvp0/FOfW+Ol8bUO+ycjWwJ5jSn0Uvt
 9taIKTGgbVYl7V5gPVn2
 =oAdW
 -----END PGP SIGNATURE-----

Merge tag 'hisi-armv7soc-for-5.13' of git://github.com/hisilicon/linux-hisi into arm/soc

HiSilicon ARMv7 SoC updates for v5.13

- Correct the HiSilicon copyright

* tag 'hisi-armv7soc-for-5.13' of git://github.com/hisilicon/linux-hisi:
  ARM: hisi: use the correct HiSilicon copyright

Link: https://lore.kernel.org/r/eba8b55e-0969-8ca2-eca3-7c471cb0ff6f@hisilicon.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-04-08 21:54:57 +02:00
Arnd Bergmann
b9a9786a13 Fixes for omaps for v5.12-rc cycle
Fix swapped mmc device order also for omap3 that got changed with the
 recent PROBE_PREFER_ASYNCHRONOUS changes. While eventually the aliases
 should be board specific, all the mmc device instances are all there in
 the SoC, and we do probe them by default so that PM runtime can idle the
 devices if left enabled from the bootloader.
 
 Also included are two compiler warning fixes.
 -----BEGIN PGP SIGNATURE-----
 
 iQJFBAABCAAvFiEEkgNvrZJU/QSQYIcQG9Q+yVyrpXMFAmBsLxERHHRvbnlAYXRv
 bWlkZS5jb20ACgkQG9Q+yVyrpXOthw/8DOHKvlQA7kSQGGAu8nEhhQJQL/3GXUhf
 yflEEVwU9wqMCUe9uIyBTwoeMF2VwhP35ljoI2wI5wgB0Lu031M0NE4tofMUe23H
 UmTd2lI2JNdjNf3+yicI9g+2C9Gl61SD2cyv9lJyr4K/Z/r9SswU6SYFEHiDsu5R
 lj7Df0fJlwSRtckEHtbDLqB7k1cw2pDO/HDztUIVaaVHyTN6RhgdFUELgv7K6lD1
 A2jJZo+47O7doLLPU3NS/rTgvKcIQNuF38zcl55ger8bZ4MIJsbJfiOhcTkd9H0c
 K4E8KnIK+8fxCnW5QsDjQwI/Id5ey45ZXXUBoVfHCKBTpmvgMtZWgpG/hgpGHDHu
 D8juml24l1a6VYyHnbeAaAdCai4UQB24SbZmGnhyQyVdL5knzo9hRv5zdvl30GWz
 C4MSG6H3pV+Mvjx6KOfZTURJFBhaukcuOf3ou4EmfogR2EdyMPyFnSZIamV4Ucm1
 t9JJwdse8kP01lhlpDKmc3ffnm4341lrltqG7iX/EuOYmmso3hcXNHDe0aC/hYDI
 yOZYnAUy5c9jm7WZtp0wkgbxEuDZNx86b+zvDEO6vmQ3klLxO3VV9Jy8Ye7+I6v3
 XKG1qpqgEQcOLNDLgNHSRMOSn/8MRj428f6DGV8h25TkSX+sZDjpLT+16OnXIcsC
 ZjDApshepVg=
 =F8MV
 -----END PGP SIGNATURE-----

Merge tag 'omap-for-v5.12/fixes-rc6-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into arm/fixes

Fixes for omaps for v5.12-rc cycle

Fix swapped mmc device order also for omap3 that got changed with the
recent PROBE_PREFER_ASYNCHRONOUS changes. While eventually the aliases
should be board specific, all the mmc device instances are all there in
the SoC, and we do probe them by default so that PM runtime can idle the
devices if left enabled from the bootloader.

Also included are two compiler warning fixes.

* tag 'omap-for-v5.12/fixes-rc6-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
  ARM: OMAP2+: Fix uninitialized sr_inst
  ARM: dts: Fix swapped mmc order for omap3
  ARM: OMAP2+: Fix warning for omap_init_time_of()
  ARM: OMAP4: PM: update ROM return address for OSWR and OFF
  ARM: OMAP4: Fix PMIC voltage domains for bionic
  ARM: dts: Fix moving mmc devices with aliases for omap4 & 5
  ARM: dts: Drop duplicate sha2md5_fck to fix clk_disable race

Link: https://lore.kernel.org/r/pull-1617702755-711306@atomide.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-04-08 17:56:09 +02:00
Tony Lindgren
25de4ce5ed clocksource/drivers/timer-ti-dm: Handle dra7 timer wrap errata i940
There is a timer wrap issue on dra7 for the ARM architected timer.
In a typical clock configuration the timer fails to wrap after 388 days.

To work around the issue, we need to use timer-ti-dm percpu timers instead.

Let's configure dmtimer3 and 4 as percpu timers by default, and warn about
the issue if the dtb is not configured properly.

Let's do this as a single patch so it can be backported to v5.8 and later
kernels easily. Note that this patch depends on earlier timer-ti-dm
systimer posted mode fixes, and a preparatory clockevent patch
"clocksource/drivers/timer-ti-dm: Prepare to handle dra7 timer wrap issue".

For more information, please see the errata for "AM572x Sitara Processors
Silicon Revisions 1.1, 2.0":

https://www.ti.com/lit/er/sprz429m/sprz429m.pdf

The concept is based on earlier reference patches done by Tero Kristo and
Keerthy.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <kristo@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210323074326.28302-3-tony@atomide.com
2021-04-08 16:41:18 +02:00
Linus Walleij
d570838efb
ARM/spi: spear: Drop PL022 num_chipselect
A previous refactoring moved the chip select number handling
to the SPI core and we missed a leftover platform data user
in the ST spear platform. The spear is not using this
chipselect or PL022 for anything and should be using device
tree like the rest of the platform so just delete the
offending platform data.

Cc: Viresh Kumar <vireshk@kernel.org>
Cc: Shiraz Hashim <shiraz.linux.kernel@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20210408075045.3435046-1-linus.walleij@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-04-08 15:21:58 +01:00
Jonathan Neuschäfer
8a8cba741b ARM: dts: Add board-specific compatible string to npcm750-evb devicetree
According to the revised binding, the devicetree needs a board-specific
compatible string.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Link: https://lore.kernel.org/r/20210320164023.614059-2-j.neuschaefer@gmx.net
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:33:02 +09:30
George Hung
ee33e2fb3d ARM: dts: nuvoton: Add Quanta GBS BMC Device Tree
Add the device tree for the Quanta GBS BMC based on NPCM730 SoC.

Signed-off-by: George Hung <george.hung@quantatw.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210330071336.18370-1-george.hung@quantatw.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:21:05 +09:30
Nichole Wang
62b8a07b06 ARM: dts: aspeed: mihawk: Add GPIO line names
Name the GPIOs to help userspace work with them. The names describe the
functionality the lines provide, not the net or ball name. This makes it
easier to share userspace code across different systems and makes the
use of the lines more obvious.

Signed-off-by: Nichole Wang <Nichole_Wang@wistron.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210330020808.830-1-Nichole_Wang@wistron.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:15:33 +09:30
Eddie James
7f03894a65 ARM: dts: aspeed: Add Rainier 1S4U machine
The 1S4U version of the Rainier system has only 4 fans. Create a new
tree, include the 4U version, and delete the 2 extra fans.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20210329150020.13632-23-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:13:57 +09:30
Joel Stanley
7aaa2074d5 ARM: dts: aspeed: everest: Add size/address cells
The gpio and fan nodes reg properties cause dtc to emit a noisy warning
about relying on default sizes.

Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:13:56 +09:30
Eddie James
6cebf3764f ARM: dts: aspeed: everest: Enable fan watchdog
Set watchdog 1 to pulse the fan watchdog circuit that drives the FAULT
pin of the MAX31785, resulting in fans running at full speed, if at
any point the BMC stops pulsing it, such as a BMC reboot at runtime.
Enable watchdog 2 for BMC reboots.

Signed-off-by: Matthew Barth <msbarth@linux.ibm.com>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20210329150020.13632-21-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:13:56 +09:30
Eddie James
5dbbacd43f ARM: dts: aspeed: everest: Add RTC
Add the RTC at the appropriate I2C bus and address.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20210329150020.13632-20-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:13:56 +09:30
Alpana Kumari
3c00ebf08a ARM: dts: aspeed: everest: GPIOs support
This commit adds support for-
- Presence GPIOs
- I2C control GPIOs
- Op-panel GPIOs (ex PHR)

Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Brandon Wyman <bjwyman@gmail.com>
Link: https://lore.kernel.org/r/20210329150020.13632-19-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:13:56 +09:30
Jim Wright
22db69f04c ARM: dts: aspeed: everest: Add UCD90320 power sequencer
Add UCD90320 chip to Everest device tree.

Signed-off-by: Jim Wright <jlwright@us.ibm.com>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20210329150020.13632-18-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:13:56 +09:30
Brandon Wyman
d66d720b64 ARM: dts: aspeed: everest: Add power supply i2c devices
Add the i2c/pmbus power supply devices to the everest device tree.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20210329150020.13632-17-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:13:56 +09:30
Matthew Barth
baf1fb2668 ARM: dts: aspeed: everest: Add pca9552 fan presence
Add the pca9552 at address 0x61 on i2c14 behind mux0 channel 3 with the
4 GPIO fan presence inputs.

Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Brandon Wyman <bjwyman@gmail.com>
Link: https://lore.kernel.org/r/20210329150020.13632-16-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:13:56 +09:30
Eddie James
d9406d17e9 ARM: dts: aspeed: everest: Add FSI CFAMs and re-number engines
Add additional CFAMs and re-number the existing engines for the
extra processors present on the Everest system.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20210329150020.13632-15-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:13:56 +09:30
Matthew Barth
7313cde52a ARM: dts: aspeed: everest: Add max31785 fan controller device
Add the max31785 configuration at address 0x52 on i2c14 behind mux0
channel 3.

Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20210329150020.13632-14-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:13:56 +09:30
Priyanga Ramasamy
03b5e43f7d ARM: dts: aspeed: everest: Add I2C components
Tested and able to bound the devices with i2c driver.

Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20210329150020.13632-13-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:13:55 +09:30
Eddie James
0d7208d908 ARM: dts: aspeed: rainier 4U: Fix fan configuration
The 4U fans didn't have the correct properties since the fan nodes
were redefined. Fix this by referencing each fan individually and
adding the differences to the 4U fans.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20210329150020.13632-12-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:12:13 +09:30
Joel Stanley
510ed4320a ARM: dts: aspeed: rainier: Add missing fan nodes
The Maxim fan controller has six fans attached. Two of these were
missing from the description.

Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:07:43 +09:30
Eddie James
2f9a9f3c93 ARM: dts: aspeed: rainier: Enable fan watchdog
Set watchdog 1 to pulse the fan watchdog circuit that drives the FAULT
pin of the MAX31785, resulting in fans running at full speed, if at
any point the BMC stops pulsing it, such as a BMC reboot at runtime.
Enable watchdog 2 for BMC reboots.

Signed-off-by: Matthew Barth <msbarth@linux.ibm.com>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Acked-by: Andrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20210329150020.13632-11-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-04-08 11:07:42 +09:30