Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1839961pxk; Sat, 26 Sep 2020 06:57:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA+TfCVxcAlEVzkSo7oPQ4xMQQ1BWQJNonjxjaNElKh72VU0XrCyUGLyWg8dVbiUTp6tEf X-Received: by 2002:a17:906:1b11:: with SMTP id o17mr7934169ejg.67.1601128620504; Sat, 26 Sep 2020 06:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601128620; cv=none; d=google.com; s=arc-20160816; b=mXbvloWOEp81BlGyrr1QodnERsws/cPl0K3GRAB5Teg6lJKuXW6iXNkTjI6mcRsD+X UBHv/ZCcwwSfUMSEPObu2mrKVO93JAYHRCs1PlQ45BW9OLHG6zn06j3nBctI6IarPUYl 9Kmb9beLvY9f048GBpk2gdL4owvgiiMa6udWbHwjcGyywOW9ySlAFVL/RHVq5YHqLWPS mW0FabY6Gfn1hOntm+MnZz8y6KHV/ZRPWJFBoE1xP1Q0jgl1XLJye2QpaKZJgj6h5PNO F65MEK3VaB4D4am4chvKjJdri8Bn3Cs57XKPeHdkLCwHqsdirKt9NINwgCoyuiO/tuHD hoSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=RA7LUkzddUd10nvHC0mfviDAxL46W59IEg0s0KDNnzs=; b=xyP68G4cBVaQU9k2kNzTo3ysi5KqOJrMhuv1sv7+7g4QLBqEUS4NEqKMmZHlgmm+ow rXU6FXy2R6GbW2/kFT9+KyDXdk+c1R8okc2aeVg6Qndo1EJSm16suKIu/TvAWMro9b9C bs2h66YlFshP0oZ0676yh8N7MDP9gyt361myiP9lkBsqewOCBg/iMklH0om2oewKCkL0 dy79x+sc6NgJc2R5vaLPZUZ8Q/pqbYMNVu/sa7nnn99yeYEtLgSczZYRZZyOuPyn5YVC wHOlvc3mHrX4QwZr3NK9cdslxIETXcS1CVHB17lKOj3rBkqf/2hfqSQ5O0YdCIgE4yp9 bQ0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=hTMQSlxv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si4016454edw.559.2020.09.26.06.56.36; Sat, 26 Sep 2020 06:57:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=hTMQSlxv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726382AbgIZNzi (ORCPT + 99 others); Sat, 26 Sep 2020 09:55:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726183AbgIZNzh (ORCPT ); Sat, 26 Sep 2020 09:55:37 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89570C0613CE for ; Sat, 26 Sep 2020 06:55:37 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id l17so5358948edq.12 for ; Sat, 26 Sep 2020 06:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RA7LUkzddUd10nvHC0mfviDAxL46W59IEg0s0KDNnzs=; b=hTMQSlxvuCL0c49x8QB5ZMUNX37toENDh2UPYetCeFdxc/RzFEHzeKZgQRME5O6BpR +uH2UlGRxOKi5JwNmMfVokQyyuYkzNk7C+qOKYysEvLNqWN/27yNGB16l+LXyVOzOkId RD4hF35RI00hLNSBzeOu4cnLfsiJJm0ffkE5bH0/ykPvGvbbSCA72Eq0kV5JguHOyQTI 5AetR0I/1/B+NQ0Lw5qntq0C8CilpfiNNz2Pmpv1UR0ZlV7wXg2Onr3d97MxJjCjJhHk 6QPv6MAW1xbJ+utWtyoB1PT4yiNWlLj52ngC6mVU3SxFK/uT9PmfUhkgOO4GF7EcP+iQ ntUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RA7LUkzddUd10nvHC0mfviDAxL46W59IEg0s0KDNnzs=; b=rz74r+rPfyOFQzE6qDaYSuGC9rZG3ydfSHuJz5u/iSpuC2knmkVY1ooZXWObcV0Z7P ifiJbQoEmArAVUpvwMIXEQuzOViR2MSJK7+FksWFoQ1DNLq3qFjFfyvN1k7T7kTccEPX 4s0qQMwErp29h03VtQ3XW3BGfrB6yzwHd8yFcG3p59LyVscgr3WglwPr/0WoAOL7TffQ Mo6dw6iuDuH4PZmVqTBVg4n1vf7dwWgoaxMaBrqdI6YzttRFONhGETqr82t8D6tZVb7X dNtSM2EPlCpU28zVs6cAotQJaOBCfMKkwvGzzOMC7/iXyhE/9OmNW/xCCoRlmBKAxtSx qfGg== X-Gm-Message-State: AOAM531ujESZvlFaYn/FnmDG6tFiXWNQDaB2WpDYanlEsYOjjEUfGl16 ClHVsoZAmm1Ou+sLAOHeKeOAa1YeH8cd6uG0yWfMLToharxEJDjxHaN5NY64GQ0aDawBKNw5liT 37mgBb3deZMHvv+BaGnZJEzLSOaKvBHE5mKqZdGSZ6UD5xsd6TC4Nw4fiPDKlV8thuEMFPEEzlf Nplt6bh9aynQ== X-Received: by 2002:a05:6402:5:: with SMTP id d5mr6483588edu.376.1601128535538; Sat, 26 Sep 2020 06:55:35 -0700 (PDT) Received: from localhost.localdomain ([2a00:ee2:4b0d:3001:fbc5:498b:ed6d:cfac]) by smtp.gmail.com with ESMTPSA id oq8sm4165700ejb.32.2020.09.26.06.55.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2020 06:55:34 -0700 (PDT) From: Luka Kovacic To: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-leds@vger.kernel.org Cc: lee.jones@linaro.org, pavel@ucw.cz, dmurphy@ti.com, robh+dt@kernel.org, jdelvare@suse.com, linux@roeck-us.net, andrew@lunn.ch, jason@lakedaemon.net, gregory.clement@bootlin.com, luka.perkov@sartura.hr, robert.marko@sartura.hr, Luka Kovacic Subject: [PATCH v2 0/7] Add support for the iEi Puzzle-M801 board Date: Sat, 26 Sep 2020 15:55:07 +0200 Message-Id: <20200926135514.26189-1-luka.kovacic@sartura.hr> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds support for the iEi Puzzle-M801 1U Rackmount Network Appliance and for the iEi WT61P803 PUZZLE microcontroller, which enables some board specific features like fan and LED control, system power management and temperature sensor reading. The platform is based on the popular Marvell Armada 8040 SoC and supports up to 16 GB of DDR4 2400 MHz ECC RAM. It has a PCIe x16 slot (x2 lanes only) and an M.2 type B slot. External chassis ports: 2x 10 GbE SFP+ 4x 1 GbE (Marvell 88E1512P) 2x USB 3.0 1x RJ45 serial port All notable board components are supported in this patchset. Changes for v2: - Use LAAs for local-mac-address and match reg values - Code styling changes - Error handling moved to the end of the function - Define all magic numbers in the main header file - Convert the driver to make it OF independent - Refactor hwmon to use devm_hwmon_device_register_with_info() - Reduce the number of mutex locks - Allocate memory once for the response buffer - Reduce managed memory allocations Luka Kovacic (7): dt-bindings: Add iEi vendor prefix and iEi WT61P803 PUZZLE driver bindings drivers: mfd: Add a driver for iEi WT61P803 PUZZLE MCU drivers: hwmon: Add the iEi WT61P803 PUZZLE HWMON driver drivers: leds: Add the iEi WT61P803 PUZZLE LED driver Documentation/ABI: Add iei-wt61p803-puzzle driver sysfs interface documentation MAINTAINERS: Add an entry for the iEi WT61P803 PUZZLE driver arm64: dts: marvell: Add a device tree for the iEi Puzzle-M801 board .../stable/sysfs-driver-iei-wt61p803-puzzle | 65 + .../hwmon/iei,wt61p803-puzzle-hwmon.yaml | 41 + .../leds/iei,wt61p803-puzzle-leds.yaml | 48 + .../bindings/mfd/iei,wt61p803-puzzle.yaml | 82 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 13 + arch/arm64/boot/dts/marvell/Makefile | 1 + .../dts/marvell/armada-8040-puzzle-m801.dts | 519 ++++++++ drivers/hwmon/Kconfig | 8 + drivers/hwmon/Makefile | 1 + drivers/hwmon/iei-wt61p803-puzzle-hwmon.c | 511 ++++++++ drivers/leds/Kconfig | 8 + drivers/leds/Makefile | 1 + drivers/leds/leds-iei-wt61p803-puzzle.c | 174 +++ drivers/mfd/Kconfig | 8 + drivers/mfd/Makefile | 1 + drivers/mfd/iei-wt61p803-puzzle.c | 1069 +++++++++++++++++ include/linux/mfd/iei-wt61p803-puzzle.h | 69 ++ 18 files changed, 2621 insertions(+) create mode 100644 Documentation/ABI/stable/sysfs-driver-iei-wt61p803-puzzle create mode 100644 Documentation/devicetree/bindings/hwmon/iei,wt61p803-puzzle-hwmon.yaml create mode 100644 Documentation/devicetree/bindings/leds/iei,wt61p803-puzzle-leds.yaml create mode 100644 Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml create mode 100644 arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dts create mode 100644 drivers/hwmon/iei-wt61p803-puzzle-hwmon.c create mode 100644 drivers/leds/leds-iei-wt61p803-puzzle.c create mode 100644 drivers/mfd/iei-wt61p803-puzzle.c create mode 100644 include/linux/mfd/iei-wt61p803-puzzle.h -- 2.26.2