Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3978584rwb; Sat, 17 Dec 2022 03:02:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXvfdKzU0Z5KZ6SkC1cq2fSnun+S0d39loVxsrJQioNU0TLVHgCeWRCXqevXDiXSwxdVoOWG X-Received: by 2002:a05:6402:5299:b0:461:7c4e:c437 with SMTP id en25-20020a056402529900b004617c4ec437mr8448248edb.1.1671274976672; Sat, 17 Dec 2022 03:02:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671274976; cv=none; d=google.com; s=arc-20160816; b=dzYtS7RpSre1KiCpFpiygPH02DmXyYTbWQJk8l/n7kVp6zVY+iidH98etr4uBuOcMY yZd+RnSquXTxyA2aAp1dVsW4seDCF09EQQe+Gjgj1UNW9DexcYUfiFPCuFsQC6iRgTxA Yyz92p/8Qq0W5clJhbxL4OkKcKCtQ45a9/8xMLlW6SPuwJxEC5euYYPgRl/0YtqqzWVa zRyuaoUUb4OxgtfzFM13OoKCL/dtoKgI+CICbU9W6GCfTgBW4kYGdL8jJ2mM7aEzUeXI iOCNza1yCy8hD78kaOViLdZ2+Etold1C+95ZHc9mwAXCLuEAsd9OQjXnnADPSko/ORXo 1T0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=dgeIfPkL/uAsGQYe43m14UGQ6KeF1AJBZCItoIswQjA=; b=DXij5/e1cKt/COcTnFmAUi4gAAmj/xc9Q/dAu4Xn4qRnV1Xl/YZt6qxUElyYni4GgI CS/j59WZFIPUSErSbsxklbKbYcPrbAyIyPIQUVhKm/2rMcBy/rULDWNbRVlMArGkplte HYgS99Cdk3cLzi0QwcdqNKCB84ZvMuSUm9CBNP02Yh0hELvmu1923xoCGS9Y+Cf8omCx FeUzsH7fBT78izugR1moFzTLneNQkmMaU5oZwZoWub6MbCvVbjbB4Dv4Vs4TlBAhJjuU bG82IGv2lK+3okb9h/ich8ErZ3AffACde0WzB0UsPp8aElVqX5gIIlm9E61gj5tQIU+e nl3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TjaXqQvj; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n17-20020aa7db51000000b0046fa2af972dsi4111296edt.336.2022.12.17.03.02.40; Sat, 17 Dec 2022 03:02:56 -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; dkim=pass header.i=@linaro.org header.s=google header.b=TjaXqQvj; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230208AbiLQKzq (ORCPT + 69 others); Sat, 17 Dec 2022 05:55:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbiLQKzm (ORCPT ); Sat, 17 Dec 2022 05:55:42 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1567310B8 for ; Sat, 17 Dec 2022 02:55:41 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id q6so7143134lfm.10 for ; Sat, 17 Dec 2022 02:55:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=dgeIfPkL/uAsGQYe43m14UGQ6KeF1AJBZCItoIswQjA=; b=TjaXqQvjIE4ADe59iDZUvuhgHC4c0qDSOPDIyMPQF9p5KFJ0kTheTCLpKt6ae7qFgZ g/E3ETklQKvtjMxVhJN4AhhxD17DH5XfaAPWq4K9C8l82EyCVnTlOcKKhiCgJHVruF+J rHiw7PQSHaDxK9cWnCmYUpXuBJHwUUljh3/TZdhkEpPXrY1TeG++Ft/J8DlCifrDPImu EkUmNi6/BEKy4J5kHk37vzJ77M/FyIt3g2Zxo8pdDZNDTbQ7oYt+HKWvnbJdChr5KKqu zhh61pgN9BAduUNFvbbatEByFNM0/qa9Tv3VwwzeifV8hbYVdmmz9bbyD3b14d5//6mx N5sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dgeIfPkL/uAsGQYe43m14UGQ6KeF1AJBZCItoIswQjA=; b=dvzmuzT3siq5kz0AFazSvoprTXmZtfogDFMq6GKgbLZ/2+LiTUTI5HLsGnncRtxcS1 bxiiO4nKVSzDlWc2aNI/bNWHV7EasRQ+LJumYu6anRE3AtbjambFJficqMF1gjEGaD6w ZqeFh0Tmv3/+s4iNeGCvGVf/9RBsh1K+XDw+wVZJZbz0VDfHLqGGE0Y+MY33+enupcCN Yxw4fsGM4S/yUTGqFqECyjjjx0t6YU97DjIK+2e52BTOHR6kestg4JFIqL6EWW8nIpaV AAs/u4Df4GlrcDRrcLZuBkbRwAS5uuGrIjpwDsFZiQ+swcRGZsX29X+/zi73nkm/ah0D WSpg== X-Gm-Message-State: ANoB5pk0ZSejZD5xUrCrdjD3/ZFfEGOSFUMZX7gdhLYZSlZkX+7k669T JmtkbvXnk7hyIUrTVZKbmXNi3Q== X-Received: by 2002:a19:5f0d:0:b0:4a4:68b9:608c with SMTP id t13-20020a195f0d000000b004a468b9608cmr10625310lfb.23.1671274539224; Sat, 17 Dec 2022 02:55:39 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id u10-20020a05651220ca00b0048a982ad0a8sm482085lfr.23.2022.12.17.02.55.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Dec 2022 02:55:38 -0800 (PST) Message-ID: Date: Sat, 17 Dec 2022 11:55:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v1 2/6] dt-bindings: i2c: hpe,gxp-i2c Content-Language: en-US To: nick.hawkins@hpe.com, verdun@hpe.com, robh+dt@kernel.org, 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 References: <20221216183532.78933-1-nick.hawkins@hpe.com> <20221216183532.78933-3-nick.hawkins@hpe.com> From: Krzysztof Kozlowski In-Reply-To: <20221216183532.78933-3-nick.hawkins@hpe.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 16/12/2022 19:35, nick.hawkins@hpe.com wrote: > From: Nick Hawkins > Subject: missing explanation what you are doing. Use `git log` to learn how this can be written. > Document binding to support I2C controller in GXP. > > Signed-off-by: Nick Hawkins > --- > .../devicetree/bindings/i2c/hpe,gxp-i2c.yaml | 63 +++++++++++++++++++ > 1 file changed, 63 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..fa378e991fdb > --- /dev/null > +++ b/Documentation/devicetree/bindings/i2c/hpe,gxp-i2c.yaml > @@ -0,0 +1,63 @@ > +# 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 > + > + '#address-cells': > + const: 1 Drop, it's coming from i2c-controller. > + > + interrupts: > + maxItems: 1 > + > + reg: > + maxItems: 1 > + > + hpe,i2c-max-bus-freq: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Desired frequency in Hz of the bus. No, there is existing property for this - clock-frequency. Do not invent own stuff. Even if this was accepted, you must use standard property suffixes. > + default: 100000 > + > + hpe,sysreg-phandle: Don't encode the type in property name. You do not call "reg" a "reg-uint32", right? or hpe,i2c-max-bus-freq-uint32? hpe,sysreg (unless you can name it more accurately) > + $ref: /schemas/types.yaml#/definitions/phandle > + description: Pandle to syscon used to control the system registers. > + > + '#size-cells': > + const: 0 Drop, it's coming from i2c-controller. Krzysztof