From patchwork Fri Feb 17 15:50:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hawkins, Nick" X-Patchwork-Id: 58665 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp964454wrn; Fri, 17 Feb 2023 08:01:39 -0800 (PST) X-Google-Smtp-Source: AK7set/Le0fMLWvC+yesIAJ7Yj5u5zlxXIfKNKzPuvxp7ZCmt2IxILRHDgUxbxspE0ltRbnW7NQb X-Received: by 2002:aa7:c845:0:b0:4ac:bf55:7d69 with SMTP id g5-20020aa7c845000000b004acbf557d69mr871118edt.42.1676649699627; Fri, 17 Feb 2023 08:01:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676649699; cv=none; d=google.com; s=arc-20160816; b=PxB9T+jV1pjcJ/PbZuXGNrR7Xi5tJrL+pZ0V5JahGsKSg7cgRcK6EcDh3WygFOpGKq 9CM7LoFKNDUMG/FV+UtW9tegGcEi6lJIPZGIVgcTpfvqxNt/ld+nCIoXW6OcE3jKePwi ekag2c1imICyt0iuH9iG5DRCuyBzuwsDGC7TQGbEkYE7ncAdcQG46/auBHIl2Z+ndwZC 0tBIB/yQwFXrUmB2cQAmSD54GpBMY9vu+v192nxUOGXGY/hxHn5e4dHjPU38wr8KVccX f0pgWZBFNQKtn8XWpjDUJiIoh8BKWhheFifqDQNRk9z4yu5KnESJER0bxi9wc5roBn1o vOvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=b71fkatlNICCwbxVOrGgkq1hzsUvLsNK8hi0tK83NxQ=; b=BKuOTgVNiEG4NlvtEXqnwZokE+/WXSJq12BdEOCb65FoeVpijmL6mfVu8I4MLaf7rx uXz5IveK4B2HBEPqz4E2IYj9q0+J7bH6Tn9ccSaXYDwgnYR7YS9uAFGan/ieczF/FNq6 dYWq5HleK+MsEdu1yJ0HB4xeUOBUTtC4qmh+cftMxyv+Wf8z91OCpPpjkoSe0rOoDbwj jK1aATKBc4iiNYitF9bWz1/leON5mClTqg/3EC28XAe9xBO/F+lWQLbl2ldhRlzv7Blr v9/q3nBKHdU8MzZ+Fv1rXYkdf16lpda3lj5nptn/eBCWOwDKKm2m+I4b0ACnDHeWC+t4 bCyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=PUU1HMuz; 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=hpe.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e23-20020a056402149700b004acd994629bsi5707571edv.348.2023.02.17.08.01.10; Fri, 17 Feb 2023 08:01:39 -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=@hpe.com header.s=pps0720 header.b=PUU1HMuz; 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=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230412AbjBQPzT (ORCPT + 99 others); Fri, 17 Feb 2023 10:55:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230091AbjBQPzR (ORCPT ); Fri, 17 Feb 2023 10:55:17 -0500 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CD28644FF; Fri, 17 Feb 2023 07:55:16 -0800 (PST) Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31HEC67R020741; Fri, 17 Feb 2023 15:54:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version; s=pps0720; bh=b71fkatlNICCwbxVOrGgkq1hzsUvLsNK8hi0tK83NxQ=; b=PUU1HMuz4Xz+Lza+zLx3WtHeK5aGF85NjPvyetihGLZqdR8XdzumplBJUOmBUibT14vk skwDYL2jHPPEAgqvLrArbXJg/JJLxLB+zhM1u7nL4oi0150PAqbJWOjFCRRdusfEgHyk 0v6DA+xMNUAWdR6Rp3IRL+QAYRvsmr0hSVABEengxfXnuNfto9muW2dfcXa0qNKs2gWl tdCfeax4pz6GtgGPmbqQWXiK2KnzPQtwheccQ/8T6AFpau/qwUZCYUkCNr2yhJlRNCMU ClUFH+VIkwi8lDFyJy7Cw/iikeYd2lv87WPCoJRZXKOsnUmwn7o2uLSwy/FQTn3JWd1I Ng== Received: from p1lg14881.it.hpe.com (p1lg14881.it.hpe.com [16.230.97.202]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3ntanfsmwb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 15:54:57 +0000 Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14881.it.hpe.com (Postfix) with ESMTPS id B92F6805E62; Fri, 17 Feb 2023 15:54:56 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id D151F808DAA; Fri, 17 Feb 2023 15:54:55 +0000 (UTC) From: nick.hawkins@hpe.com To: verdun@hpe.com, nick.hawkins@hpe.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.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, wsa@kernel.org Subject: [PATCH v5 2/5] dt-bindings: i2c: Add hpe,gxp-i2c Date: Fri, 17 Feb 2023 09:50:51 -0600 Message-Id: <20230217155054.99757-3-nick.hawkins@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230217155054.99757-1-nick.hawkins@hpe.com> References: <20230217155054.99757-1-nick.hawkins@hpe.com> X-Proofpoint-ORIG-GUID: Wr5W0DxXH8HCOVoNRwTTj3t-CMjgToze X-Proofpoint-GUID: Wr5W0DxXH8HCOVoNRwTTj3t-CMjgToze X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-17_10,2023-02-17_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 suspectscore=0 priorityscore=1501 impostorscore=0 spamscore=0 clxscore=1015 bulkscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302170141 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758094635237858471?= X-GMAIL-MSGID: =?utf-8?q?1758094635237858471?= From: Nick Hawkins Document compatibility string to support I2C controller in GXP. Signed-off-by: Nick Hawkins --- v5: *No change v4: *Provide even greater description with the use of Phandle *Reorder properties so they match the required order v3: *Provide better description with use of Phandle 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 | 59 +++++++++++++++++++ 1 file changed, 59 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..6604dcd47251 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/hpe,gxp-i2c.yaml @@ -0,0 +1,59 @@ +# 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 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clock-frequency: + default: 100000 + + hpe,sysreg: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the global status and enable interrupt registers shared + between each I2C engine controller instance. It enables the I2C + engine controller to act as both a master or slave by being able to + arm and respond to interrupts from its engine. Each bit in the + registers represent the respective bit position. + +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>; + }; + };