Message ID | 20230719220853.1029316-2-iwona.winiarska@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2743385vqt; Wed, 19 Jul 2023 15:25:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlGl3DsT/vOZW6QNOHVbyr6Wf0lqRe3xMt8e0yU2shD79FHvnaDQK8Kik3f7KA5L9kSeaixY X-Received: by 2002:a17:906:20ce:b0:993:eb4b:ed51 with SMTP id c14-20020a17090620ce00b00993eb4bed51mr3669844ejc.27.1689805558657; Wed, 19 Jul 2023 15:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689805558; cv=none; d=google.com; s=arc-20160816; b=C3Di2RNRZwzUu1rEF4wxEULZwIUsbUEqrpPkPeZl6ZCdk0xyeIAzARaeeNuXiUh+Zi YMJVdPLZBq/bgZzfaKkmDjfLGtQC+i/pcjbH1NHn1wgnxXiocc/VfyqomBS7JPUiE62n DaiJW2AUY6Eh/gzSHC1IyQp5Yoo0sw2IsRDRNbF4twPC8Kjcm/KXVC6MLobeFS3gAbKZ /qQHWAL5OfO5joNQbMpz/BYiWh7UMyiGg45Bnp98k5VgZyYmswikdZ3aWRp592PO1FQQ Rted175dM2iJ+QWG5EmyWHnVtWgHSgOJnQ4kc+NBGT2YidvBjAxar4pob922o9S8IwIe XNhw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9ZyRvS7ubRfMN7Gjpr3DSzkfF7TAx+7POkLuaLsYLtw=; fh=nCzQ8bMFMEtXeNVl3x1beQTfyVUeRwTQ5sG1xJ6JsuQ=; b=Xd+Vte6xsyYxOCZYwbuvUkc4gtpVucTQWOAtzsF/qzxM62WTYV8mN7Jyq3E6Gijl9J aIKWLODduEYzZzs9qQqRWkqqlSQMO3O/nvSldLD4qKUWzGTJYq++COAiCdy/dSCBzuk+ ePm6X5D0zrLqpSwNEySFrRZpNBOrIzAcw2jye3zkUe/gEG0tvQdYF5AeT3DWT3yKd1Sb aYP7Hlm1RylBVlqc46+LvGA31xYh11cCymDJtm0cgVcPFLZQi40LBxmDDmsRX1wlmb42 1serGVNazdwAzvz9YjUoKbwJ+dQTuH17l2iHxhwVxWtWX9xwM50S4t8TMD4yBBUThQyz ijzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WKWy4uOn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h9-20020a1709063c0900b0099b445b4f45si1150079ejg.389.2023.07.19.15.25.34; Wed, 19 Jul 2023 15:25:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WKWy4uOn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230477AbjGSWJz (ORCPT <rfc822;daweilics@gmail.com> + 99 others); Wed, 19 Jul 2023 18:09:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230440AbjGSWJw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Jul 2023 18:09:52 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F074E1FE6; Wed, 19 Jul 2023 15:09:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689804590; x=1721340590; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JDwhcZhKr03vEOccJGsNc2LPmcRcTuvQ2/Fhij2iptw=; b=WKWy4uOnC1vaXbVeuvE08O9QTAHCKBYRQAZ2OcfFksNaBQ55ljPN7cWu qfQUCv8gA3n8DpI9zMve2iPTpzEvtRjdWB4CM1BMyTv+iwwYLqVnI4Cqq ydmy/J7J2YVigLjqTFyG5lwhFA6/MKDPbRygnyAAUbUSgREkZFOq8WzXl cVxKnZGVA/zJBZfy9eB/L7JEFZQyUn4vk/WSebjZB8FFA3JkX2khF54n0 DxvrFZcADoK9OLuyEkOUS2MYSA8dyDvobqe/KlcxhqVD0A++QjmNKWIof J254mQF5p1wFtGZpXqx02eP3Kplujkr2/vURhYgKMEkdm9S6NCaYLQaXV A==; X-IronPort-AV: E=McAfee;i="6600,9927,10776"; a="365461146" X-IronPort-AV: E=Sophos;i="6.01,216,1684825200"; d="scan'208";a="365461146" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2023 15:09:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10776"; a="848205378" X-IronPort-AV: E=Sophos;i="6.01,216,1684825200"; d="scan'208";a="848205378" Received: from patroagn-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.131.68]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2023 15:09:43 -0700 From: Iwona Winiarska <iwona.winiarska@intel.com> To: openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Avi Fishman <avifishman70@gmail.com>, Tomer Maimon <tmaimon77@gmail.com>, Patrick Venture <venture@google.com>, Nancy Yuen <yuenn@google.com>, Benjamin Fair <benjaminfair@google.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Tyrone Ting <warp5tw@gmail.com>, Iwona Winiarska <iwona.winiarska@intel.com> Subject: [PATCH 1/4] dt-bindings: Add bindings for peci-npcm Date: Thu, 20 Jul 2023 00:08:50 +0200 Message-Id: <20230719220853.1029316-2-iwona.winiarska@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230719220853.1029316-1-iwona.winiarska@intel.com> References: <20230719220853.1029316-1-iwona.winiarska@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771889553263093080 X-GMAIL-MSGID: 1771889553263093080 |
Series |
Add support for PECI Nuvoton
|
|
Commit Message
Winiarska, Iwona
July 19, 2023, 10:08 p.m. UTC
From: Tomer Maimon <tmaimon77@gmail.com> Add device tree bindings for the peci-npcm controller driver. Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Signed-off-by: Tyrone Ting <warp5tw@gmail.com> Co-developed-by: Iwona Winiarska <iwona.winiarska@intel.com> Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com> --- .../devicetree/bindings/peci/peci-npcm.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/peci/peci-npcm.yaml
Comments
On 20/07/2023 00:08, Iwona Winiarska wrote: > From: Tomer Maimon <tmaimon77@gmail.com> > > Add device tree bindings for the peci-npcm controller driver. > > Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> > Signed-off-by: Tyrone Ting <warp5tw@gmail.com> > Co-developed-by: Iwona Winiarska <iwona.winiarska@intel.com> > Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com> > --- No changes from previous versions? Nothing improved? > .../devicetree/bindings/peci/peci-npcm.yaml | 56 +++++++++++++++++++ > 1 file changed, 56 insertions(+) > create mode 100644 Documentation/devicetree/bindings/peci/peci-npcm.yaml Use compatible as filename. Best regards, Krzysztof
On Thu, 2023-07-20 at 08:18 +0200, Krzysztof Kozlowski wrote: > On 20/07/2023 00:08, Iwona Winiarska wrote: > > From: Tomer Maimon <tmaimon77@gmail.com> > > > > Add device tree bindings for the peci-npcm controller driver. > > > > Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> > > Signed-off-by: Tyrone Ting <warp5tw@gmail.com> > > Co-developed-by: Iwona Winiarska <iwona.winiarska@intel.com> > > Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com> > > --- > > No changes from previous versions? Nothing improved? This is the first submission. > > > .../devicetree/bindings/peci/peci-npcm.yaml | 56 +++++++++++++++++++ > > 1 file changed, 56 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/peci/peci-npcm.yaml > > Use compatible as filename. Sure - there are two compatible entries, so I'm going to change it to nuvoton,npcm-peci.yaml Thanks -Iwona > > Best regards, > Krzysztof >
On Thu, Jul 20, 2023 at 08:03:28AM +0000, Winiarska, Iwona wrote: > On Thu, 2023-07-20 at 08:18 +0200, Krzysztof Kozlowski wrote: > > On 20/07/2023 00:08, Iwona Winiarska wrote: > > > From: Tomer Maimon <tmaimon77@gmail.com> > > > > > > Add device tree bindings for the peci-npcm controller driver. > > > > > > Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> > > > Signed-off-by: Tyrone Ting <warp5tw@gmail.com> > > > Co-developed-by: Iwona Winiarska <iwona.winiarska@intel.com> > > > Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com> > > > --- > > > > No changes from previous versions? Nothing improved? > > This is the first submission. 13th by my count. https://lore.kernel.org/all/20230616193450.413366-2-iwona.winiarska@intel.com/ https://lore.kernel.org/all/20191211194624.2872-8-jae.hyun.yoo@linux.intel.com/
On Mon, 2023-07-24 at 08:38 -0600, Rob Herring wrote: > On Thu, Jul 20, 2023 at 08:03:28AM +0000, Winiarska, Iwona wrote: > > On Thu, 2023-07-20 at 08:18 +0200, Krzysztof Kozlowski wrote: > > > On 20/07/2023 00:08, Iwona Winiarska wrote: > > > > From: Tomer Maimon <tmaimon77@gmail.com> > > > > > > > > Add device tree bindings for the peci-npcm controller driver. > > > > > > > > Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> > > > > Signed-off-by: Tyrone Ting <warp5tw@gmail.com> > > > > Co-developed-by: Iwona Winiarska <iwona.winiarska@intel.com> > > > > Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com> > > > > --- > > > > > > No changes from previous versions? Nothing improved? > > > > This is the first submission. > > 13th by my count. > > https://lore.kernel.org/all/20230616193450.413366-2-iwona.winiarska@intel.com/ This was just a request for testing sent exclusively to openbmc mailinglist (and btw - there were no changes in between). > https://lore.kernel.org/all/20191211194624.2872-8-jae.hyun.yoo@linux.intel.com/ This is part of a series that contains whole, currently obsoleted, PECI subsystem, in a form that never got merged into mainline Linux. The PECI subsystem that is currently present in mainline Linux didn't include Nuvoton driver: https://lore.kernel.org/all/20220208153639.255278-1-iwona.winiarska@intel.com/ There is a subset of patches that is common between this submission and the obsoleted PECI subsystem series (the linked v11), but I don't see how continuing that numbering would provide any useful information to reviewers. Thanks -Iwona
diff --git a/Documentation/devicetree/bindings/peci/peci-npcm.yaml b/Documentation/devicetree/bindings/peci/peci-npcm.yaml new file mode 100644 index 000000000000..6eafa9ccaa54 --- /dev/null +++ b/Documentation/devicetree/bindings/peci/peci-npcm.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/peci/peci-npcm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton PECI Bus + +maintainers: + - Tomer Maimon <tmaimon77@gmail.com> + +allOf: + - $ref: peci-controller.yaml# + +properties: + compatible: + enum: + - nuvoton,npcm750-peci + - nuvoton,npcm845-peci + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + description: + Clock source for PECI controller. Should reference the APB clock. + maxItems: 1 + + cmd-timeout-ms: + minimum: 1 + maximum: 1000 + default: 1000 + +required: + - compatible + - reg + - interrupts + - clocks + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/nuvoton,npcm7xx-clock.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + peci-controller@f0100000 { + compatible = "nuvoton,npcm750-peci"; + reg = <0xf0100000 0x200>; + interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk NPCM7XX_CLK_APB3>; + cmd-timeout-ms = <1000>; + }; +...