Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3182311rwb; Fri, 20 Jan 2023 12:22:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXtA3p43JszuWP+KM6QXQs7tnFC73p7mv+RxCdor1iq5ZUr18W3sc8KT+7X2q9B6T2eWtad5 X-Received: by 2002:a05:6a21:594:b0:a3:a1ee:47ca with SMTP id lw20-20020a056a21059400b000a3a1ee47camr15450335pzb.46.1674246166022; Fri, 20 Jan 2023 12:22:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674246166; cv=none; d=google.com; s=arc-20160816; b=mimZUFhD9+QzV3+gkJuIB9lH0aPZJMhHio0aaMpafr2X+P0lA7oqK/Ko1+/oo9Nw05 OJXzjYMHwSrXejMY2m0a7b16HNhfGLRhlXdwSX7LzycyRU7Usiat4HrQN37OgjREKl60 tsi7qIawJB83l44/03oAK+4WZoTSvnAPw++lAtWMv3mtSTwZjqwevDrMiXMFBcmQGkFX 30GE2ktfFTxcKhYNwK320hbovJzzl2Gm0zYZ3OC2IfJaQAKzG6irD1KGVLBfTCIRex1T /lTJqxzlJ1hYNWk7ZBTPEKsKUpM4fj33Cw7WcFq/QeD6Ght5pS49AN0akvmHEytumZyF kLOw== 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=kjupaxapxqYmyklTLwg21m3KTTdmnbl3iYS34L7flQo=; b=MWRF0ygtV2QOH6brtxyp4V2Ru2s5Lx3wnYV5U3/Tsua2svaHOIL5+f0R7xrUEf04Lz JksU8XAMNTWtcLejRgxEhLg5TXXryLf6YAaXtnDlpQt9NSk7PoTFeT83bMvYZb8hq6f3 1BrRaTj01/0eQ00NtU5LrzBVICsHkfddaSITPAIGE45YhpZ81ekl3FpfGxoM/LMaCgzb +w0B1Oa29aHqR2LOGYGwWma3yqmwe+BEwKSF6Ddz1NGEisPKjzSkihdQZKuRplSgA4nS 4wgmbPj/QmGlCWPjKtfdB5P3iNTiAA4lfECJl1TJWSFPs9aIYat0A+I4KJK+xs54TXQz glcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=nVAs+a9l; 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 p16-20020a17090adf9000b00225c475b3d2si3388900pjv.55.2023.01.20.12.22.39; Fri, 20 Jan 2023 12:22:46 -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=nVAs+a9l; 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 S230084AbjATTEZ (ORCPT + 50 others); Fri, 20 Jan 2023 14:04:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbjATTEW (ORCPT ); Fri, 20 Jan 2023 14:04:22 -0500 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B44F7290; Fri, 20 Jan 2023 11:04:21 -0800 (PST) Received: from pps.filterd (m0148663.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30KJ2CE9024936; Fri, 20 Jan 2023 19:03:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id; s=pps0720; bh=kjupaxapxqYmyklTLwg21m3KTTdmnbl3iYS34L7flQo=; b=nVAs+a9l91gOqygxpLtvSesbqmVttgD3tAGHSmxmVP/bSikxAEAo8cbYwVbXKXFBwE2E wtGO/Fy/tfunnrlrz131L7ERY2UCSeKYWfnAq46HLipaVWLtBjK2P/2ApZFUQX5K0jOi h290BySb44iGJZi/tgcovEP8CXMuihY4QqYtYxz+Npjv6RIYobslMQJe13acbUjDqOPd Y6rjWZZPMmpEIIWbJ+tVqqGAYnTnr8bvK5r1ltZfYQ/+jBOuYmMpt4f4grz5r8t3ikeu E3jhpEPvAX5OPBcDkUO6svgu1mMfon2eiUEcTxzgqMQ8RLqJRpyEd9+YHcPaC1QlXVkB 2w== Received: from p1lg14878.it.hpe.com (p1lg14878.it.hpe.com [16.230.97.204]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3n80qhr3x3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 19:03:56 +0000 Received: from p1lg14886.dc01.its.hpecorp.net (unknown [10.119.18.237]) (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 p1lg14878.it.hpe.com (Postfix) with ESMTPS id 7E663301AC; Fri, 20 Jan 2023 19:03:55 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14886.dc01.its.hpecorp.net (Postfix) with ESMTP id 37D72808EB4; Fri, 20 Jan 2023 19:03:54 +0000 (UTC) From: nick.hawkins@hpe.com To: verdun@hpe.com, nick.hawkins@hpe.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, joel@jms.id.au, 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 v3 0/5] ARM: Add GXP I2C Support Date: Fri, 20 Jan 2023 13:01:54 -0600 Message-Id: <20230120190159.23459-1-nick.hawkins@hpe.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-GUID: _IC6lqmLRaGzHRyh2gFJC2tirpLMXGEP X-Proofpoint-ORIG-GUID: _IC6lqmLRaGzHRyh2gFJC2tirpLMXGEP 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.122.1 definitions=2023-01-20_10,2023-01-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 mlxscore=0 phishscore=0 priorityscore=1501 malwarescore=0 mlxlogscore=977 clxscore=1011 suspectscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301200180 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 v2: *Disable IRQ on a device remove *Remove use of I2C_CLASS_DEPRECATED *Use i2c_parse_fw_timings instead of of_property_read_u32 *Remove redundant dev_err_probe as platform_get_irq already has one *Used __iomem instead of res->start to find physical address *Use BIT in gxp_i2c_irq_handler *Made value u8 instead of u16 for u8 read *Provided a better description of Phandle in yaml 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 | 57 ++ 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 | 602 ++++++++++++++++++ 8 files changed, 904 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/hpe,gxp-i2c.yaml create mode 100644 drivers/i2c/busses/i2c-gxp.c -- 2.17.1