Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5584176rwb; Tue, 17 Jan 2023 16:06:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXuDHNPA6Rwui6PxG0r6SBIQ7dj9oL/xPge5I9TNe6EGWxWdTzkgTQXayijYjwQtF02wuRnK X-Received: by 2002:a05:6a20:3b09:b0:b8:69a0:ce7e with SMTP id c9-20020a056a203b0900b000b869a0ce7emr10823257pzh.34.1674000390430; Tue, 17 Jan 2023 16:06:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674000390; cv=none; d=google.com; s=arc-20160816; b=KhsbSzkRxy5LL/ecw08683lJaXSicPUyoZ/rpJx48cvAcjkFpyN/HIbEZO/GffrvUE oYBLBSxAwIddvkAcIqnS46wCJCJctvtTUCaZ2PL1VEhYEA1gvbu0TdMw3JUIvb96UTZJ LPMtImo/27c7W0rjwXcZhWboDEF30V12ETFiRE8G/MBvVDmcqhR6NYkh4ol8xYQhko24 v/uyrrjACSvpFZyC+X3brfIRhJ0jo/rRI0pIWT1B5h1tcU0eVDrp/d31goIsR4ZK2P9s YC7x3N9hFHz83Empp8xrQoatUPe9fL3T7IfjiQ/y/eKzf/zBzKIyhTd7P6URgKJHhl78 IiSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:to:from:dkim-signature; bh=xu0gNtr2Z2txR9heTWdHL3sXK5Oqg0fVDrMyRzFbrg4=; b=Y3PAXujuu/roXs3wvzwUkNjl3HmDQh598V2vSn2IXymn8WOFNux6bgnqiCzYaJLZkV WDJhPW293K9Q5NqO7VW1vHukcyIDfV/9EkrsO6AWZU0f8C6r2z3o/OfSdvB/8iK2SMzz 3vwcXXv15h7SvbfI6X5goGfeswzE0roKr2zsHWml/DmLWRTCVJyBBsJqGgPQH1uelP0u voUdEsHYk39IU/YDi8ON15kd8Yl9okvy5aCLIhEOdvJgHLCMQRm3UFFKORrxIm0Iu06y Qdw9KeO4Dvz+u31ZtdId8KER0sXE3aIRzcEja73i9SMPJ3/Bjfa6Te4DJsTa4Lq6xP7m sNtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=bsOPE7bm; 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 cp8-20020a056a00348800b0058167c50a3asi23593278pfb.142.2023.01.17.16.06.25; Tue, 17 Jan 2023 16:06:30 -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=bsOPE7bm; 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 S229977AbjAQXbL (ORCPT + 46 others); Tue, 17 Jan 2023 18:31:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230134AbjAQXaQ (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 CE9BA4A22B; Tue, 17 Jan 2023 12:46:59 -0800 (PST) Received: from pps.filterd (m0134424.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30HIIC2p007652; Tue, 17 Jan 2023 20:46:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id; s=pps0720; bh=xu0gNtr2Z2txR9heTWdHL3sXK5Oqg0fVDrMyRzFbrg4=; b=bsOPE7bm4fptmQC81oC5H/7q5JHJlhVRnRf7zLCmwy3qHupkXXJAmK4UJylLcwqu/Fwl F9bKluvyediojwua3BWunVOFl4s2PADPkvtPGffnFM9Tgt31emY5L8Dh1BLWq+bT4j/d Pq7YEz0yRIR+Kr5shvBW050ph0tJXhnE9QPtkO8tPsfaG7dvLZVwybTAfR5Rd6ocKtcr N50JdlWo9VZyOv4V9XqsyKj289ZudHcx2vbLtby141XGf/LGhQPrpGvhsddg69up26Cq pTWFh0U2Fw42l1qyRsDqka5/VCtq6MQVPWe9y17VjaCQhO2RDXGUSKSwPvR2+fnF4XZE rQ== Received: from p1lg14880.it.hpe.com (p1lg14880.it.hpe.com [16.230.97.201]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3n5wag3mrk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Jan 2023 20:46:37 +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 p1lg14880.it.hpe.com (Postfix) with ESMTPS id CD84A807EF1; Tue, 17 Jan 2023 20:46:36 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id 1587B808993; Tue, 17 Jan 2023 20:46:36 +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 0/5] ARM: Add GXP I2C Support Date: Tue, 17 Jan 2023 14:44:34 -0600 Message-Id: <20230117204439.76841-1-nick.hawkins@hpe.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-ORIG-GUID: 8mGm0V-jBegraZ0FtbEuu2S8omn3UEqF X-Proofpoint-GUID: 8mGm0V-jBegraZ0FtbEuu2S8omn3UEqF 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 mlxlogscore=726 clxscore=1015 spamscore=0 mlxscore=0 phishscore=0 malwarescore=0 adultscore=0 impostorscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301170166 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 The GXP SoC supports 10 I2C engines. Each I2C engine is completely independent and can function both as an I2C master and I2C slave. The I2C master can operate in a multi master environment. The engines support a scalable speed from 8kHZ to 1.5 Mhz. --- Changes since v1: *Removed yaml documentation of hpe,gxp-sysreg as it has been applied to syscon.yaml *Made i2cX a generic node name i2c in dts file *Added status field to the dtsi and the dts for i2c bus *Removed unnecessary size-cells and address-cells from yaml *Removed phandle from hpe,sysreg-phandle *Changed hpe,i2c-max-bus-freq to clock-frequency *Removed rogue tab in structure definition *Removed use of __iomem *base local variables as it was unnecessary *Switched #if IS_ENABLED() -> if (IS_ENABLED()) inside functions *Removed use of pr_* functions *Removed informational prints in register and unregister functions *Removed print from interrupt handler *Removed informational prints from probe function *Switched dev_err -> dev_err_probe in probe function *Used the respective helper for mapping the resource to __iomem Nick Hawkins (5): i2c: hpe: Add GXP SoC I2C Controller dt-bindings: i2c: Add hpe,gxp-i2c ARM: dts: hpe: Add I2C Topology ARM: multi_v7_defconfig: add gxp i2c module MAINTAINERS: Add HPE GXP I2C Support .../devicetree/bindings/i2c/hpe,gxp-i2c.yaml | 54 ++ MAINTAINERS | 2 + arch/arm/boot/dts/hpe-bmc-dl360gen10.dts | 109 ++++ arch/arm/boot/dts/hpe-gxp.dtsi | 125 ++++ arch/arm/configs/multi_v7_defconfig | 1 + drivers/i2c/busses/Kconfig | 7 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-gxp.c | 609 ++++++++++++++++++ 8 files changed, 908 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/hpe,gxp-i2c.yaml create mode 100644 drivers/i2c/busses/i2c-gxp.c -- 2.17.1