Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3337299pxv; Mon, 12 Jul 2021 15:10:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWXQE40US+VZPW/l2yOtu66G3vqBSULEA98eTEdZ7NsjToqHe4s8eGzM8mTVmIOUa3K7qM X-Received: by 2002:a6b:f013:: with SMTP id w19mr805131ioc.182.1626127825427; Mon, 12 Jul 2021 15:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626127825; cv=none; d=google.com; s=arc-20160816; b=BZENkw0cVBesfCUNkcH7IILSZxKptmfJtgSl9BPLBQnUBx/bQALD1SHAEc8dQnblLe 4TR9Ym/pzXPwuU66b3P95ts6bdJBC9Z3ROskUi8yQblAQ3subHWVyy/nPaETp9K3l2Qy sh1RUyjVSHrXaFBc9urkjcwUOQ7a6cSVlmVz5hHqjam6EKw0J44XjIUHX8uuzKyXAnu6 s7QLarx9sEmNRbi02BsNX6y4W0LJgG3n5UdsJScW++7EzBwkMTcnW4D/j4hw4bTv0S/t RbrlxDvC4Xml0NwnFH1W2rCprr1cVg5baDr7kDiHjALDMF8lv8o8EmM7+XgmDZ2IrCW6 L73A== 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; bh=ytEDpILIQlBQ4xI8RxDcAB+Dq7KdGaMAKraE5xzy+lA=; b=r6vYN6MusLlbnXRg5wc1TLnN929JhZeq17cu/1t33p2MVmMJgEDT1iuGZjgL0bggFp Gb+xo0eyT0UuIqginhrDmn4xmJe9g55akYOFPFH/mXylvCQtku0YkTB4dUPRz1Fz5jP8 zK8Z2lNYaC8QI0ncwAU5itQJgvVLweT+R7UQDTikP4pE1NkIKgNytDVVnR1ROsemVNNK pnc1MjdYAtnrzU9GLFN1oZGuctOaECgC2TK224CZ881S4GIxYpDOXff26DmptVB2FicY yicln7i45DrmqaRsWxifvrWxT4NQeRCmiV6EyV1jEXMvesR6PYae5QmPL4kqrSVhRD9S bzjA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i6si21511104ilu.37.2021.07.12.15.10.12; Mon, 12 Jul 2021 15:10:25 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232004AbhGLWK7 (ORCPT + 99 others); Mon, 12 Jul 2021 18:10:59 -0400 Received: from mga03.intel.com ([134.134.136.65]:22385 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231252AbhGLWK7 (ORCPT ); Mon, 12 Jul 2021 18:10:59 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10043"; a="210105070" X-IronPort-AV: E=Sophos;i="5.84,235,1620716400"; d="scan'208";a="210105070" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2021 15:08:10 -0700 X-IronPort-AV: E=Sophos;i="5.84,235,1620716400"; d="scan'208";a="464374173" Received: from jzloch-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.136.11]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2021 15:08:04 -0700 From: Iwona Winiarska To: linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Cc: x86@kernel.org, devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, Greg Kroah-Hartman , Rob Herring , Joel Stanley , Andrew Jeffery , Jean Delvare , Guenter Roeck , Jonathan Corbet , Thomas Gleixner , Andy Lutomirski , Ingo Molnar , Borislav Petkov , Yazen Ghannam , Mauro Carvalho Chehab , Pierre-Louis Bossart , Tony Luck , Andy Shevchenko , Jae Hyun Yoo , Iwona Winiarska Subject: [PATCH 04/14] dt-bindings: Add bindings for peci-aspeed Date: Tue, 13 Jul 2021 00:04:37 +0200 Message-Id: <20210712220447.957418-5-iwona.winiarska@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210712220447.957418-1-iwona.winiarska@intel.com> References: <20210712220447.957418-1-iwona.winiarska@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree bindings for the peci-aspeed controller driver. Co-developed-by: Jae Hyun Yoo Signed-off-by: Jae Hyun Yoo Signed-off-by: Iwona Winiarska --- .../devicetree/bindings/peci/peci-aspeed.yaml | 111 ++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 Documentation/devicetree/bindings/peci/peci-aspeed.yaml diff --git a/Documentation/devicetree/bindings/peci/peci-aspeed.yaml b/Documentation/devicetree/bindings/peci/peci-aspeed.yaml new file mode 100644 index 000000000000..6061e06009fb --- /dev/null +++ b/Documentation/devicetree/bindings/peci/peci-aspeed.yaml @@ -0,0 +1,111 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/peci/peci-aspeed.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aspeed PECI Bus Device Tree Bindings + +maintainers: + - Iwona Winiarska + - Jae Hyun Yoo + +allOf: + - $ref: peci-controller.yaml# + +properties: + compatible: + enum: + - aspeed,ast2400-peci + - aspeed,ast2500-peci + - aspeed,ast2600-peci + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + description: | + Clock source for PECI controller. Should reference the external + oscillator clock. + maxItems: 1 + + resets: + maxItems: 1 + + clock-divider: + description: This value determines PECI controller internal clock + dividing rate. The divider will be calculated as 2 raised to the + power of the given value. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 7 + default: 0 + + msg-timing: + description: | + Message timing negotiation period. This value will determine the period + of message timing negotiation to be issued by PECI controller. The unit + of the programmed value is four times of PECI clock period. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 255 + default: 1 + + addr-timing: + description: | + Address timing negotiation period. This value will determine the period + of address timing negotiation to be issued by PECI controller. The unit + of the programmed value is four times of PECI clock period. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 255 + default: 1 + + rd-sampling-point: + description: | + Read sampling point selection. The whole period of a bit time will be + divided into 16 time frames. This value will determine the time frame + in which the controller will sample PECI signal for data read back. + Usually in the middle of a bit time is the best. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 15 + default: 8 + + cmd-timeout-ms: + description: | + Command timeout in units of ms. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 1000 + default: 1000 + +required: + - compatible + - reg + - interrupts + - clocks + - resets + +additionalProperties: false + +examples: + - | + #include + #include + peci-controller@1e78b000 { + compatible = "aspeed,ast2600-peci"; + reg = <0x1e78b000 0x100>; + interrupts = ; + clocks = <&syscon ASPEED_CLK_GATE_REF0CLK>; + resets = <&syscon ASPEED_RESET_PECI>; + clock-divider = <0>; + msg-timing = <1>; + addr-timing = <1>; + rd-sampling-point = <8>; + cmd-timeout-ms = <1000>; + }; +... -- 2.31.1