From patchwork Wed Nov 16 10:21:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1731 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp62296wru; Wed, 16 Nov 2022 02:22:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf5g4tnNXRrkHZpSMtgDVwaLyuK+wqoxM3aSkWTEopJsb8VhVzoS70t/rrS6gkorQP3DRUda X-Received: by 2002:a17:90a:ad45:b0:20a:817e:8d16 with SMTP id w5-20020a17090aad4500b0020a817e8d16mr2940568pjv.187.1668594174677; Wed, 16 Nov 2022 02:22:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668594174; cv=none; d=google.com; s=arc-20160816; b=Tzd0fP97HyPoBFgkZFyTd/0lfP3eKXERKZq69OtTf2BR8qhtScN/SVq+jZh4nHTaxQ H0M7xX3R6c4oXvGTC97KjEF3sgnFN0YiJbPeuHYJGTI4osZt4yKIKf6ER1Jb6K6v4DFb eMA9geaXZ+dUs2ciQsIBojZ2CHOlkEAHSWDZHGOMXCVqBKf5g5eAkV00HjfQ30zdCbTS t+wrvPrkeKyMedbPWeNGbxDArHEYBKUY5OEkJrz892BAUGxx+o/fYslF5q6U1c8kMTzO 3REJWRBP7g/az4iIIV/RJQ0PzO9hV19+F+Ky3/t4VL4iYABkgyZoXtRmPN+dVgVeiqDD WyLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:date:from :content-transfer-encoding:mime-version:subject:dkim-signature; bh=Ch6qlE2H6eWivI1iYixGP1nvnJivcKTHhhIdL803mS4=; b=A+onZEUEvz/BZzkVSJAm0n38pU18EhVKEctmbQfWIU2COUHfq2jQnj2X9fMI0JwSio SgJ/7Whaa2hO0j1OHw8Oj06/S/tXuRMY0AfvctTREzpYj9cED36YstlJMsDFQ4DxMDEI 0FlK1GTQEhDm8Sv37tzt6XBG/1RQV81qvuuik4eHgqjy/Ep79kZ14+ItIMzjedmuNCp9 qVlYDuVdCDpKPEx5VN99LE5lUdsIMJ0a6Xd7A4/+kQgh44DEDCVDpU73/oEVjt7ETlPD pvB1v25QfdUdDSrA/zouBvY/pjwhwAMOGvCG6xFg3kAz7K4qTXNVZ7oDN0m4YiwQ6r/o jLEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gegj8597; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e23-20020a656897000000b0041c506dde92si14480879pgt.636.2022.11.16.02.22.41; Wed, 16 Nov 2022 02:22:54 -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=Gegj8597; 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 S238095AbiKPKWU (ORCPT + 99 others); Wed, 16 Nov 2022 05:22:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233224AbiKPKVv (ORCPT ); Wed, 16 Nov 2022 05:21:51 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD87820355 for ; Wed, 16 Nov 2022 02:21:50 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id j5-20020a05600c410500b003cfa9c0ea76so1112244wmi.3 for ; Wed, 16 Nov 2022 02:21:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:from:to:cc:subject:date:message-id:reply-to; bh=Ch6qlE2H6eWivI1iYixGP1nvnJivcKTHhhIdL803mS4=; b=Gegj85974dHQ3ALoNF5h58og/vfKR+g6/c8piu1+PsjfFYhKrNaZHgaS0vgXeYHOah KNlliW3WFFMsuP3TApwszDH4uu3opAdPR57FktR9uch5icYp5Y/D4JHoJw8XBQfmzSTq tPGB2XDRMJLbX4/pRdsvYZ0QBPsiaKgBg7c39/89cj6eaFhsJM7M2VpdWHU9POoXRgVe Mxp83v2fCKfot0kXH9vQLEVTNiLFbWpSkRf8UlZyBK4N9ROlufuVF1KzBQbze/04nDSh 2tsp54oZrbiL9A4sN7T39C5AxM6WzYIM68IqvmDNXdvsx2vjoEgzn0fMYH3iV5A+vSJ4 050A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ch6qlE2H6eWivI1iYixGP1nvnJivcKTHhhIdL803mS4=; b=dWO1cOL+rGIsVCgvmF5eeZMRnjZ+y6RccIEu0eWat+pBVsyTsszQFfqXK7mGK7DGkw yPVMQ+f9Ij/uPVH7E1taqo8FhqfwO/nhMKzSg6WvX0arlLTUDDnzjVWq/e3UvKpsT+yB spk1lghfB8ySqdw9TxjYfQpEggnFPjLlxT6iajt2GEaUMxuqM8jtt/NttnUT9E6EABGH Aqix46sZM0of/BtTMaFYppg5+zzLdPdBpY0LqRImOo9+sPhgCalK8BvVe+Iw6BV47WpL w0rVqbr9JwnWLnr19H9tqC7cJZDqOHx+oKXQ2xOP09JHnk9IHmHDU/qJSyxHcmhpPEzS 6hXg== X-Gm-Message-State: ANoB5pkJhpYuDhYsOAP2hm531UsHA8cYMcrarUKWKRV/R5gHcVmkppOX cplgwvFIgWdt120BYEuB00dlHw== X-Received: by 2002:a05:600c:2057:b0:3cf:6ab3:49ce with SMTP id p23-20020a05600c205700b003cf6ab349cemr1614164wmg.137.1668594109257; Wed, 16 Nov 2022 02:21:49 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id o5-20020a05600c510500b003b4ff30e566sm6133615wms.3.2022.11.16.02.21.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 02:21:48 -0800 (PST) Subject: [PATCH 0/6] soc: qcom: add support for the I2C Master Hub MIME-Version: 1.0 X-b4-tracking: H4sIALu5dGMC/w3MwQ6DIAwA0F8xPa+JEIjb/qawTkikLq14Mf77OL7Lu8BYKxu8pwuUz2p1lwH3mC AXkpWxfobBz9475wIKabNDd1nR2jPGGftvmKlh9Rkb2cGKpScMgZZvcq+wRIbxJTLGpCS5jFH6tt33 HzZs0xGAAAAA From: Neil Armstrong Date: Wed, 16 Nov 2022 11:21:47 +0100 Message-Id: <20221114-narmstrong-sm8550-upstream-i2c-master-hub-v1-0-64449106a148@linaro.org> To: Rob Herring , Konrad Dybcio , Andy Gross , Krzysztof Kozlowski , Bjorn Andersson Cc: linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.10.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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?1749647805217677675?= X-GMAIL-MSGID: =?utf-8?q?1749647805217677675?= The I2C Master Hub is a stripped down version of the GENI Serial Engine QUP Wrapper Controller but only supporting I2C serial engines without DMA support. The I2C Master Hub only supports a variant of the I2C serial engine with: - a separate "core" clock - no DMA support - non discoverable fixed FIFO size Since DMA isn't supported, the wrapper doesn't need the Master AHB clock and the iommus property neither. This patchset adds the bindings changes to the QUPv3 wrapper and I2C serial element bindings to reflect the different resources requirements. In order to reuse the QUPv3 wrapper and I2C serial element driver support, the I2C Master Hub requirements are expressed in new desc structs passed as device match data. To: Andy Gross To: Bjorn Andersson To: Konrad Dybcio To: Rob Herring To: Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-i2c@vger.kernel.org Signed-off-by: Neil Armstrong --- Neil Armstrong (6): dt-bindings: qcom: geni-se: document I2C Master Hub wrapper variant dt-bindings: i2c: qcom-geni: document I2C Master Hub serial I2C engine soc: qcom: geni-se: add desc struct to specify clocks from device match data soc: qcom: geni-se: add support for I2C Master Hub wrapper variant i2c: qcom-geni: add desc struct to prepare support for I2C Master Hub variant i2c: qcom-geni: add support for I2C Master Hub variant .../bindings/i2c/qcom,i2c-geni-qcom.yaml | 61 ++++++++++++++++---- .../devicetree/bindings/soc/qcom/qcom,geni-se.yaml | 43 +++++++++++--- drivers/i2c/busses/i2c-qcom-geni.c | 58 ++++++++++++++++++- drivers/soc/qcom/qcom-geni-se.c | 67 +++++++++++++++++----- 4 files changed, 192 insertions(+), 37 deletions(-) --- base-commit: 3c1f24109dfc4fb1a3730ed237e50183c6bb26b3 change-id: 20221114-narmstrong-sm8550-upstream-i2c-master-hub-44a7fb19475e Best regards,