Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5562919rwb; Tue, 17 Jan 2023 15:47:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXsl7HHHrvzDYzY4oVmOWR6OM0U9EU2jS0jE74dtQ0Us+db8pbnvEVYXN5hYmoxjUopb6L0v X-Received: by 2002:a17:902:d3c9:b0:189:4bf4:2cfc with SMTP id w9-20020a170902d3c900b001894bf42cfcmr5615664plb.31.1673999277962; Tue, 17 Jan 2023 15:47:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673999277; cv=none; d=google.com; s=arc-20160816; b=P1gJ7+LPD6BQrAn1ao4/udePWqFwUxWBLvjJrQHuKUxRdJRKIpsI3JvH/5Upiv4sZy HnIVHizvlh2EvRR0Y9xXFA+M+3GuN3KzGzpkoZNWqhuE4jXa1BfXFgqLHlTYP4HZPB19 8qTodzzhhCr6l2buIvTQ3pzEGsl6M4yQ04NMbaeemdJ01icJLBGIVyMaKalwhJ9+SL2t BmAlZtXdisAh9vqG9FQQjpHunUztZNLEFKSSdg2V12Pm54eAcVJMxagKwD6YgRM4K+AL sF22QB0nc4+gaAUrtMpWFlsRmEY7Ufa58GdiJYXz027EGQomCf0EEGUnRxwEZHgThdgO nv5g== 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=OAboPIyX+LZamzi6kmY1kX0O39LsQKMvj3RB/7EVNyY=; b=VB9WN6EGQZjYhs4B5JE9LTWofhu7w3VH0sEOh3cK/EHwi6r1u3W6+nMVkBvuc+msG3 BVEpm9y026T79InJcXXoiiJJSr6dRccrBsENq9bxiutC/VAWRePE/u7xlcRK4aEuQOrq g3tYbyibzHG7U3Z+EN/Htx/1BNFzEzNlv5A6CrHZxpmjlp3Lkj1lE/Wuh0c+6QcGO1YE dciNW5IHye9dlP0fQcTlGX6jAg0Cy/IL2lwTJqDQaaXsg/coRmke8K2NeA1Ou/Rbn1aF LbJ1s6unUSRS0q0UoRDeYY8EXY57T1Rc09YWLa+a5S5Zl/7kLtFtNPNRv3gXZWDieFfG Jmvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=HV6kppB0; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h191-20020a6383c8000000b004c62c4e242csi1737635pge.546.2023.01.17.15.47.52; Tue, 17 Jan 2023 15:47:57 -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=HV6kppB0; 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 S229898AbjAQXbD (ORCPT + 46 others); Tue, 17 Jan 2023 18:31:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230130AbjAQXaQ (ORCPT ); Tue, 17 Jan 2023 18:30:16 -0500 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CED6E4A22E; Tue, 17 Jan 2023 12:47:00 -0800 (PST) Received: from pps.filterd (m0134423.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30HKiNOO028971; Tue, 17 Jan 2023 20:46:38 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=OAboPIyX+LZamzi6kmY1kX0O39LsQKMvj3RB/7EVNyY=; b=HV6kppB0iyBjPIWdz6wRr+NQ0VbPxBLTWN74ybmnkqGatV0gHfcnN9dChUcnGw8yNvHG kkDZBf1KAlFPbMJh+YGgOkVOFwXSLpF/Zjof7N2g8Qb84JgGptZXu6a517kB9bszg6Kz h7ozt1f0PiAxj9GVXzAEUWf+1gjWTKrrq0ZrKaIBP1zUpRQ+4WrD/6EUmqqu7r0aXQcH OgwRlCgMBMShi54vBHurFXk4tmO0Zb7lmFMcJO5SycpJ8lySvLUwflMjV1CcRLkPEbAk d5HvO3tMvfHcLo9flZIHj45sefD7abVNZI42L+HKoieFRQx9eWTG1L9ampY9dQclGiIi dg== Received: from p1lg14879.it.hpe.com (p1lg14879.it.hpe.com [16.230.97.200]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3n62ycr0gk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Jan 2023 20:46:38 +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 p1lg14879.it.hpe.com (Postfix) with ESMTPS id B8147310E6; Tue, 17 Jan 2023 20:46:37 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id 492DB8071D1; Tue, 17 Jan 2023 20:46:37 +0000 (UTC) From: nick.hawkins@hpe.com To: verdun@hpe.com, nick.hawkins@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 Subject: [PATCH v2 2/5] dt-bindings: i2c: Add hpe,gxp-i2c Date: Tue, 17 Jan 2023 14:44:36 -0600 Message-Id: <20230117204439.76841-3-nick.hawkins@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230117204439.76841-1-nick.hawkins@hpe.com> References: <20230117204439.76841-1-nick.hawkins@hpe.com> X-Proofpoint-ORIG-GUID: fZsDvngYNC4YYqGcBl00jA8qou9jY3K- X-Proofpoint-GUID: fZsDvngYNC4YYqGcBl00jA8qou9jY3K- 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.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-17_10,2023-01-17_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 mlxlogscore=999 priorityscore=1501 mlxscore=0 spamscore=0 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301170165 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 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. + +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