Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2356011pxy; Tue, 3 Aug 2021 04:36:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5TAuLUgNUXtv0NS2+/xD/LU+8iNsU2nI42pQaUhO6VwlyiE9hFuion9xC7Ju4j9VujYHP X-Received: by 2002:a17:906:22db:: with SMTP id q27mr21007506eja.185.1627990578839; Tue, 03 Aug 2021 04:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627990578; cv=none; d=google.com; s=arc-20160816; b=VYzWVtRxb8TcBH9mX63gzMfbO7j8UvlfdZdkQYY7EKVul+n9ISlK/clGwhddLpTJ5c k5xVmv1kw+y5xUBixDoe72HSLPbgYDtXP9DPY+gDC66O4ODfbRv7ZKU6UWc0qBSRmmQb XVQHF8o46u+MAgx71oZ2iN0sXimVDHJ7zjlcbQaU5twejBhO88f2jD6sUijiUnsdxHZi xSNoBNYPKYkmGnB3D9A8p7SN6HIY71m5zL2JtReXjwv5MnSNPV16iyFv7W1yljxxL2eF /50ezCScvMFTt2QJ8wd+d1vpTgm1N9xnmV2mP0Hn40oHiaUcXEM/7Y68/bezigeCU0o8 kKxQ== 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=gCDWCRQQj2mOFr6tYab2swjLqCkvMnw+zRFC+ZW4jQg=; b=DtFXCDpf3dM6PEWgGJTA4iFsvaExae1kdgUY76Eo5l8N2KcPG5ryVTnJIXXpe536DT P57HOVyAvr2elus2BtVRGe/X9akjq8fWMQ0Z84X4RjtcGvx2zPSGpIiQSSNeB8bfnShn HqChv2QT/P5+pBYtANXiThEX9drWoguv/ztgaVfHMlMa5234lwW3c2Ww8mHI/UixYKEf 8gi4Tu0YDn+4WS7iGHSG/es02Wzx2Xr41h5l39z2ZgBOTXcchL4hv0PpqH2zZmxamBRO +nLh/DuqMTGGT7YiCtJWrTCAadNYXnP7qteWdfIyBmzcDhJn0S1832iI+k/lWLbxxIYE 5KbA== 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 p7si2716083edq.323.2021.08.03.04.35.55; Tue, 03 Aug 2021 04:36:18 -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 S235654AbhHCLdr (ORCPT + 99 others); Tue, 3 Aug 2021 07:33:47 -0400 Received: from mga17.intel.com ([192.55.52.151]:32454 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235443AbhHCLdq (ORCPT ); Tue, 3 Aug 2021 07:33:46 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10064"; a="193941007" X-IronPort-AV: E=Sophos;i="5.84,291,1620716400"; d="scan'208";a="193941007" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2021 04:33:35 -0700 X-IronPort-AV: E=Sophos;i="5.84,291,1620716400"; d="scan'208";a="521206791" Received: from jdanieck-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.128.99]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2021 04:33:29 -0700 From: Iwona Winiarska To: linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, Greg Kroah-Hartman 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, Rob Herring , Joel Stanley , Andrew Jeffery , Jean Delvare , Guenter Roeck , Arnd Bergmann , Olof Johansson , 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 , Dan Williams , Randy Dunlap , Zev Weiss , David Muller , Iwona Winiarska Subject: [PATCH v2 04/15] dt-bindings: Add bindings for peci-aspeed Date: Tue, 3 Aug 2021 13:31:23 +0200 Message-Id: <20210803113134.2262882-5-iwona.winiarska@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210803113134.2262882-1-iwona.winiarska@intel.com> References: <20210803113134.2262882-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 | 109 ++++++++++++++++++ 1 file changed, 109 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..2929d1e000d8 --- /dev/null +++ b/Documentation/devicetree/bindings/peci/peci-aspeed.yaml @@ -0,0 +1,109 @@ +# 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 + + cmd-timeout-ms: + minimum: 1 + maximum: 1000 + default: 1000 + + aspeed,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 + + aspeed,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 + + aspeed,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 + + aspeed,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 + +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>; + cmd-timeout-ms = <1000>; + aspeed,clock-divider = <0>; + aspeed,msg-timing = <1>; + aspeed,addr-timing = <1>; + aspeed,rd-sampling-point = <8>; + }; +... -- 2.31.1