From patchwork Thu Jul 27 20:21:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Winiarska, Iwona" X-Patchwork-Id: 1813941 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ERLkaw86; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RBhzP5qp1z1ydh for ; Fri, 28 Jul 2023 06:23:12 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ERLkaw86; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4RBhzL0qy9z3cNQ for ; Fri, 28 Jul 2023 06:23:10 +1000 (AEST) X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ERLkaw86; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=intel.com (client-ip=134.134.136.20; helo=mgamail.intel.com; envelope-from=iwona.winiarska@intel.com; receiver=lists.ozlabs.org) Received: from mgamail.intel.com (unknown [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4RBhyt3PdSz3cJ4 for ; Fri, 28 Jul 2023 06:22:43 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690489366; x=1722025366; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=jWY2yyiMhHHy9qCZqmFdBV9+9C89ec7lr5dV5JithXU=; b=ERLkaw86iCZIj44nBWOzwNCxd8qFlDZ7ReCpX2dnVDJpnWy9IhsAvoz8 IEpkle6sfY5yC9noIdt0OBnBHiq2U7YbyNtHoSvtSZLYB8lW+zoLgnl7s Q6JCacRIit3HZwT8Ofs14IvgDGce3kFip5kjpcSs19FgDYjO5YlDjvaYa 4o01S9WAON0VhCdDJJZEmlimgLdUchezjx1qUBm/PTMbmN9e0yU5lpKcV ktDF67n7J7LraS6YN5Rk8QG/KLnsC2S4ONlipUV/WRSqGZa/5dgewClMK ERwxXTqOP/BP11d2k0bYHM3zgsDtDQbYPxMyKt0IhygwFC4Px8eICuS/X g==; X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="358441106" X-IronPort-AV: E=Sophos;i="6.01,235,1684825200"; d="scan'208";a="358441106" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 13:22:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="850915689" X-IronPort-AV: E=Sophos;i="6.01,235,1684825200"; d="scan'208";a="850915689" Received: from mtyszka-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.133.203]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 13:22:34 -0700 From: Iwona Winiarska To: openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/4] Add support for PECI Nuvoton Date: Thu, 27 Jul 2023 22:21:22 +0200 Message-Id: <20230727202126.1477515-1-iwona.winiarska@intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Menzel , Conor Dooley , Benjamin Fair , Iwona Winiarska , Avi Fishman , Patrick Venture , Rob Herring , Krzysztof Kozlowski , Tomer Maimon Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" Hi! The series adds support for PECI on Nuvoton-based BMC boards. It is based on patches that were sent by Tomer Maimon from Nuvoton [1]. Similar to Aspeed driver, unused (as in, default values were used in all of the available DTS files) vendor-specific properties were removed. If there is a use-case for such properties, they can be added in a separate series. Thank you Tomer for testing this series on Nuvoton hardware [2]. Please note that PECI Nuvoton was previously submitted as part of PECI subsystem series [3] that was never merged upstream. It was never included in the current in-tree PECI subsystem [4]. [1] https://lore.kernel.org/openbmc/CAP6Zq1jnbQ8k9VEyf9WgVq5DRrEzf5V6kaYP30S7g9BV9jKtaQ@mail.gmail.com/ [2] https://lore.kernel.org/openbmc/CAP6Zq1h1if4hyubyh6N8EOdGOu+zp0qVUimF-9L2eXZ-QFAYjw@mail.gmail.com/ [3] https://lore.kernel.org/all/20191211194624.2872-1-jae.hyun.yoo@linux.intel.com/ [4] https://lore.kernel.org/all/20220208153639.255278-1-iwona.winiarska@intel.com/ Changes v2 -> v3: * Fixed dt_binding_check error (Rob) Changes v1 -> v2: * Renamed binding filename to match compatible (Krzysztof) * Removed period from the end of copyright (Paul) Thanks -Iwona Iwona Winiarska (2): ARM: dts: nuvoton: Add PECI controller node arm64: dts: nuvoton: Add PECI controller node Tomer Maimon (2): dt-bindings: Add bindings for peci-npcm peci: Add peci-npcm controller driver .../bindings/peci/nuvoton,npcm-peci.yaml | 56 ++++ .../dts/nuvoton/nuvoton-common-npcm7xx.dtsi | 9 + .../dts/nuvoton/nuvoton-common-npcm8xx.dtsi | 9 + drivers/peci/controller/Kconfig | 16 + drivers/peci/controller/Makefile | 1 + drivers/peci/controller/peci-npcm.c | 298 ++++++++++++++++++ 6 files changed, 389 insertions(+) create mode 100644 Documentation/devicetree/bindings/peci/nuvoton,npcm-peci.yaml create mode 100644 drivers/peci/controller/peci-npcm.c