Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6784677rwb; Wed, 18 Jan 2023 09:17:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXt2zFUyW8HCh17KhFva4Sjsg20FCr/CRjqChgUdAnQMXpbbA2GzsUTZ8z9d4lOjZp//ZTRk X-Received: by 2002:a17:907:80c7:b0:84c:eca0:5f67 with SMTP id io7-20020a17090780c700b0084ceca05f67mr4709683ejc.54.1674062279571; Wed, 18 Jan 2023 09:17:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674062279; cv=none; d=google.com; s=arc-20160816; b=v2Mb4I64u/+Bjidm9282VFiFTnM+7i2VozGeQTPLstvjGQ3sTZYHbHAQw/cpYuHUPp uhw9oMxe2U4bZeIiMry+xC5asTAC4Wf9M3xnJC8m/W0sz11d7N7u3iWWUwQWJD1H6LP6 NYYklpo+WTVnt9kuuU8NowKXi3cPPTXk4xtL6pnODzzCQ/wBa/pbrpming27abGNozpK 6QKawDOB3v2xHr6KPQ3DkjTBDzCVs34ZmOIqQFIEvLjN4Bc0cQpBYhsnluYbh9soMWdZ w6tWyTyRhsNVJ9OF8/agFUnYqk348+1ak02g7x81Vu1d8fev1hmctWTQAvUXdVz0k810 yIKg== 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=NHCZmTVHrP18h7OzNIc6YzJ2Md15wHzbbI9y81VEo1s=; b=ZsEaI8PU86WM0xnC/se5lEPdGgJpGJFI7TtLRHmY6oG16IoDCMJKMheF64p95uMNHx P1Wk+1iQXqnJ1KLJHMBqBhor9A95DnLm571tK6yF+/XrfHHI1gM+3TVTNBXX7FMgp7ms FIF+KvzeNr1iOU9XnZyCs+U90QF+svHrKg/Zrrc2LIpKpCUndGSK3ZZnOSK02OxcpEnd 2uD1VfAF8S+an5mYqUh1ESLV1kg+FhpSz8vGC5FhpIfi78e+w9Tx3KuiReckCKQZfCpw ij9oZ/b9Cfb3C716eZJXbm17fsRKvDGRvD8dSO/vgRvgzOxZyu1zrRXzxGmQyAEEIw+Y EF6g== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs8-20020a1709072d0800b0085a483a6fcdsi30067036ejc.311.2023.01.18.09.17.48; Wed, 18 Jan 2023 09:17:59 -0800 (PST) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbjARQgT (ORCPT + 45 others); Wed, 18 Jan 2023 11:36:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230353AbjARQfn (ORCPT ); Wed, 18 Jan 2023 11:35:43 -0500 Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B10FA4617B; Wed, 18 Jan 2023 08:34:47 -0800 (PST) Received: by mail-ot1-f54.google.com with SMTP id m18-20020a05683026d200b0068661404380so234432otu.2; Wed, 18 Jan 2023 08:34:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NHCZmTVHrP18h7OzNIc6YzJ2Md15wHzbbI9y81VEo1s=; b=XuC5b0yo0TyWdS0zeuLd06VKAQ3WrSgb+ty/PuqS6AzgLwOBeBEX1qhgH6+1OUPcGe PqANJUjYQDj9rStr2b73uQoF/5pFa70dQVr+BujUG2F2VRk1utOJ9+n3/fnUshb2RteW r3hwkovs7TrKWisgB9lF2gJcPnMbb+HpN66nq3nwAajnluk6+DwxhL44TO/u5R2NPAiD m+jWo6sSW15DL8spRTDCqO9YVlt6te2r1XtepKnwdDHUGru9JgQIVFTb+4DJFLlX/sJv d69rqjqqhwWDRforY5bIloA8fqEjQrISGD6mmUzOiJBRbM2sjYStv2h5q3LhIQrFCaCw 7scQ== X-Gm-Message-State: AFqh2kqZgN7vBo/UbZr0/THhZ4Koc0yKA3oWYSDpjwX47Ns/FPToqNFq pZzzq6zjBXav9HxeF7MScc6PDJIp4A== X-Received: by 2002:a9d:61d9:0:b0:66e:43e3:449 with SMTP id h25-20020a9d61d9000000b0066e43e30449mr4206546otk.14.1674059686898; Wed, 18 Jan 2023 08:34:46 -0800 (PST) Received: from robh_at_kernel.org ([4.31.143.193]) by smtp.gmail.com with ESMTPSA id o15-20020a9d764f000000b0066b9a6bf3bcsm18493668otl.12.2023.01.18.08.34.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 08:34:46 -0800 (PST) Received: (nullmailer pid 128779 invoked by uid 1000); Wed, 18 Jan 2023 16:34:45 -0000 Date: Wed, 18 Jan 2023 10:34:45 -0600 From: Rob Herring To: nick.hawkins@hpe.com Cc: verdun@hpe.com, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, linux@armlinux.org.uk, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 2/5] dt-bindings: i2c: Add hpe,gxp-i2c Message-ID: <20230118163445.GA125487-robh@kernel.org> References: <20230117204439.76841-1-nick.hawkins@hpe.com> <20230117204439.76841-3-nick.hawkins@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230117204439.76841-3-nick.hawkins@hpe.com> X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no 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: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 17, 2023 at 02:44:36PM -0600, nick.hawkins@hpe.com wrote: > From: Nick Hawkins > > Document compatibility string to support I2C controller > in GXP. > > Signed-off-by: Nick Hawkins > > --- > > v2: > *Removed uneccessary size-cells and address-cells > *Removed phandle from hpe,sysreg-phandle > *Changed hpe,i2c-max-bus-freq to clock-frequency > --- > .../devicetree/bindings/i2c/hpe,gxp-i2c.yaml | 54 +++++++++++++++++++ > 1 file changed, 54 insertions(+) > create mode 100644 Documentation/devicetree/bindings/i2c/hpe,gxp-i2c.yaml > > diff --git a/Documentation/devicetree/bindings/i2c/hpe,gxp-i2c.yaml b/Documentation/devicetree/bindings/i2c/hpe,gxp-i2c.yaml > new file mode 100644 > index 000000000000..2f718d9ad504 > --- /dev/null > +++ b/Documentation/devicetree/bindings/i2c/hpe,gxp-i2c.yaml > @@ -0,0 +1,54 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/i2c/hpe,gxp-i2c.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: HPE GXP SoC I2C Controller > + > +maintainers: > + - Nick Hawkins > + > +allOf: > + - $ref: /schemas/i2c/i2c-controller.yaml# > + > +properties: > + compatible: > + const: hpe,gxp-i2c > + > + interrupts: > + maxItems: 1 > + > + reg: > + maxItems: 1 > + > + clock-frequency: > + default: 100000 > + > + hpe,sysreg: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: Phandle to syscon used to control the system registers. Not too useful of a description. Something about what bits you need to access and what they do would be useful. > + > +required: > + - compatible > + - reg > + - interrupts > + > +unevaluatedProperties: false > + > +examples: > + - | > + i2c@2600 { > + compatible = "hpe,gxp-i2c"; > + reg = <0x2500 0x70>; > + interrupts = <9>; > + #address-cells = <1>; > + #size-cells = <0>; > + hpe,sysreg = <&sysreg_system_controller>; > + clock-frequency = <10000>; > + > + eeprom@50 { > + compatible = "atmel,24c128"; > + reg = <0x50>; > + }; > + }; > -- > 2.17.1 >