Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp706592pxv; Thu, 15 Jul 2021 14:02:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3gena0dDsxhR04DpeTYOyileKLkpI5uLadGSDS9Kd3+ME+j/QTFZU5TYTLmxbACPh+3xa X-Received: by 2002:a17:907:11c1:: with SMTP id va1mr7651713ejb.365.1626382936313; Thu, 15 Jul 2021 14:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626382936; cv=none; d=google.com; s=arc-20160816; b=SvN0O1BhycI62upzTnyXGqqbdQrq+WeYofUCL/r9mPs5bdwMcDDgoOFP6jQ05iCJp2 74ARXOO7EbC9ze3Wf/uXnPHX2r5LZy+VdzXjRN0PBNwfm80y4MONnrXGjtZG9bGvc6gZ XYiHSpa1FoUNNABVSZe1zv6Ll8Pj5dVpdfKtGQrHzH2WR0b7aOx11BSZ3VeVRqmK2e+p 8QxSZ6JGuTqBHqBcrjXN5Lh4nx9sl0dQHJl3iP/tfJvEz22ZkwpDDkLJvteqVwBuDXaR ClRpjz34d4gXrtFG03wE1V9KEGmYF4rufBWJulxpqCq6PzIswBryCmH4WpkwglbJxmHD iQEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=DU/pjsNZXYd/mflQi0Kfu+Fvn8JWm+lHh6CuqP6iNvc=; b=E4poIWgkP5LHMV8adWIELjQnUETD/zlk/UJ98z4BdNelA43ov1OYgM+ExjIAO+iD9H 9h6i1s7Y29oZl7tQaGzipwn/KIttC57in07KrW9MlP/kgsenu+qyNeog2Nr/tonlmuJS qhu5CiMUGAZXo7xDb53ItPuPFxFEOQtlHkrFJjSDhh4uRzTViNZo0PRN0JqfVVVI5A4W u5YLEmpQZXhcvLxk5/AVIIXD85QDsrjbP6qwDNutllq1uiSHs5s5/3FBUBSB+hgRcy9v s8lJDwggfsGGet02SbrHc6q6rAmz5qncQ0klULdYt00sSvuPswq8M4yzog7Yl2e3FWsM wDIQ== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id li7si8712423ejb.552.2021.07.15.14.01.52; Thu, 15 Jul 2021 14:02:16 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231341AbhGOQbl (ORCPT + 99 others); Thu, 15 Jul 2021 12:31:41 -0400 Received: from mail-io1-f54.google.com ([209.85.166.54]:42639 "EHLO mail-io1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231313AbhGOQbk (ORCPT ); Thu, 15 Jul 2021 12:31:40 -0400 Received: by mail-io1-f54.google.com with SMTP id x10so7133683ion.9; Thu, 15 Jul 2021 09:28:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=DU/pjsNZXYd/mflQi0Kfu+Fvn8JWm+lHh6CuqP6iNvc=; b=JIXY0Owi76ZQ/JRznR/HBbA2yATjQTiKax6wg/GZ8YzN/cBnuWaRIIjPbS3N0am6w1 YZA0lAK0vTfnQAeLfUlGOyNtdMsvLmUm6DL56pvr/Qz3P4S+I6IW6l/xzNxX9Za4Ox3w 0kuOR9LUngxFgBGJ9XdEHh8eehCiYSd+6/ntjOMFIsmRIcC4UUMN1GKzYxnAGkL8zRe0 QluzykRdNhXN39pbKHBGDjVuYFWFS0ZBFNt5EIABTrC5EwvFXFljRrYNw2IpZWk9lk+Z 5mTY12D3x6ntKygV/0+zDLcndOzV/cufjBCsk0FeVMUxZI9rXX9WHG36ytpdzN1Fhd3x NoJA== X-Gm-Message-State: AOAM530yIYwhk2xqx7Jl2rxCsyC2C3ulQlh2iNngsJeNLwvYkdMTKVss karZ2dPg6TzmhV1XXnv/2g== X-Received: by 2002:a6b:4e02:: with SMTP id c2mr3883015iob.166.1626366526415; Thu, 15 Jul 2021 09:28:46 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id a11sm3368502ilf.79.2021.07.15.09.28.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 09:28:45 -0700 (PDT) Received: (nullmailer pid 1194569 invoked by uid 1000); Thu, 15 Jul 2021 16:28:40 -0000 Date: Thu, 15 Jul 2021 10:28:40 -0600 From: Rob Herring To: Iwona Winiarska Cc: linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, 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 , 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 Subject: Re: [PATCH 04/14] dt-bindings: Add bindings for peci-aspeed Message-ID: <20210715162840.GA1187226@robh.at.kernel.org> References: <20210712220447.957418-1-iwona.winiarska@intel.com> <20210712220447.957418-5-iwona.winiarska@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210712220447.957418-5-iwona.winiarska@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 13, 2021 at 12:04:37AM +0200, Iwona Winiarska wrote: > 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 Are all of these properties common for PECI or specific to this controller? The former needs to go into the common schema. The latter need vendor prefixes. > + > +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 > >