From patchwork Wed Nov 16 10:21:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 20880 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp62502wru; Wed, 16 Nov 2022 02:23:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf6VoF3XLDFe2VRW00f4DHgl4veEjey6ykrcIvNePrNhqS1qVJ2zTCgJdfqpLP3PAHCoryqG X-Received: by 2002:a17:906:e210:b0:7ae:eaf1:c9e3 with SMTP id gf16-20020a170906e21000b007aeeaf1c9e3mr12833241ejb.551.1668594213540; Wed, 16 Nov 2022 02:23:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668594213; cv=none; d=google.com; s=arc-20160816; b=0oImbrMIetq7IGuBlP7oy+qn/jnu7jvoayUeTNrPlASwk+DDk180A/F6YNt/zysxoe 4EhEwjb5iF+hW8MedQOXVn6qhKlJ5sl2yRRNXZ5+vdJPsXOnAQWhpt+7/5Dw+4YCUMNH of1lUBLWphDF5oHxt18sS9cEO0JyNgQF+O2oVi+Qu5J3l2QZok0wx17dzmdf8eBzkC5+ XzghhmVQaqpVwSYghCSEfVARWJyFCsyIeAWViB6L5EL9FblT4PdgHZJxk4rQ/ivwKyrZ bKTW9J9xN0N6tWr4kwB4zHrBs0IOavxLXmottfDXEh6y7djO2YDUul1aMIzmgJF/5QPc 9YKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=HSVWFwlfT1R0XiTLF2nwbR5ZrhzAtrkx1WJmlAjyhZw=; b=kbCnco+7npiAJ4Rcf8PbuIPkvBoC8fP65hdeWyDvckgZ+jcV02gKReGfxKglcEp+fr H6E45H+8XuRYJ+3DdlyzjsarfzP7CJr989MnGAm/R7er4Jc7MOXC9QqiQ0O+6XgDDzGp FpkcC3o6wEXH4BEz5ZrkyfS7/ffwIMusoa917haq3pwdOVe7akT01glD3z6arNZStw23 fPQhVC70Ll2510YtAV4yvug9uLKtWo2Ol+QloL8T1jcsYgoV8E1PxSaVPGzJGG8/aDHQ 8uQM+yLWOwfglsZ0KaF16CWbNl+hMYnvxNBe8Jeq4Yd1d5WMq8+Uj4NlIyQuhxd7tXpW IdXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="x8/Nh7PN"; 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 hg6-20020a1709072cc600b0078c3197bf86si8421426ejc.533.2022.11.16.02.23.10; Wed, 16 Nov 2022 02:23:33 -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="x8/Nh7PN"; 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 S238775AbiKPKWW (ORCPT + 99 others); Wed, 16 Nov 2022 05:22:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233202AbiKPKVw (ORCPT ); Wed, 16 Nov 2022 05:21:52 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D87221252 for ; Wed, 16 Nov 2022 02:21:51 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id g12so28903100wrs.10 for ; Wed, 16 Nov 2022 02:21:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=HSVWFwlfT1R0XiTLF2nwbR5ZrhzAtrkx1WJmlAjyhZw=; b=x8/Nh7PNQPl0JPgz1FPnoyB8tVf315HDN4l8JhIQoTrK2o4UrXz0OhldFesWs9j/bk NP4tyinpXGmQXGYivleJC6LvK2b5a5mi880xptmhkedFvOdg+99bt2NqDXT6++hSnRPO YBBsT/zes/4NEx8fQs7yrC2ZPzHGNIPx2ttFitygqDgLSGLMVG+vWnP0h6BoHTlTKrvB IA52vvfCXJm8+rTbIV6LBSSvEObIixFY/TnOO13DZlXT3dGM5UWhNRM02HIHX67TJKYF a7we3OerjfHyvJBlJOT50tPwnKpSxpoBij83jXyTIZVb2SN9c/CJ5o4/kizau7G5L9mc 5dqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HSVWFwlfT1R0XiTLF2nwbR5ZrhzAtrkx1WJmlAjyhZw=; b=c4CRgnJPze/0PEFc7D+wyBGIi6YjuovFSeySw3j8A+m5KG04eT65f/90kLeNQ1mCdT +ofTAvyvE3IzRNgBBJxzQ8i6KCuk9CqrLeiNbYsuMGZad+mSbq7OYgw8p3+SXR6zA5Yj NYGDBpew7a38LEiH5zQyLZdBMxMPYlDO7KuetH24CgEi2a2wkp0Kh05aG+OezLHRnVis 0sjoBdyjWmzd14hH0kSc7s6aS9pfonqdoqXIm8K4iDczrUKx/enpDACxC+ZhYYI1Qphm ABDGr4ajK9E2Te/NM9mD59M56C2yqPSQkV5SRbhwuXcwj4ITxPLJmchQffKa2whE/n/b Hztw== X-Gm-Message-State: ANoB5pmN8LD8Xl7NX4WXewFfxUndJ+RC4HFa5nLvBf39GsR5+fH5nMV2 3E6uTCNGDuy7b8nziKtzpuhJiQ== X-Received: by 2002:adf:f6ca:0:b0:236:6e2a:ac12 with SMTP id y10-20020adff6ca000000b002366e2aac12mr12931127wrp.366.1668594110063; Wed, 16 Nov 2022 02:21:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 02:21:49 -0800 (PST) From: Neil Armstrong Date: Wed, 16 Nov 2022 11:21:48 +0100 Subject: [PATCH 1/6] dt-bindings: qcom: geni-se: document I2C Master Hub wrapper variant MIME-Version: 1.0 Message-Id: <20221114-narmstrong-sm8550-upstream-i2c-master-hub-v1-1-64449106a148@linaro.org> References: <20221114-narmstrong-sm8550-upstream-i2c-master-hub-v1-0-64449106a148@linaro.org> In-Reply-To: <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=unavailable 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?1749647845959734195?= X-GMAIL-MSGID: =?utf-8?q?1749647845959734195?= 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. This documents the variant compatible and forbids UART and SPI sub-nodes, and removes requirement for the Master AHB clock and iommu property. Signed-off-by: Neil Armstrong --- .../devicetree/bindings/soc/qcom/qcom,geni-se.yaml | 43 ++++++++++++++++++---- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml index 2bf5293fc995..6657e74df629 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml @@ -21,20 +21,15 @@ properties: compatible: enum: - qcom,geni-se-qup + - qcom,geni-se-i2c-master-hub reg: description: QUP wrapper common register address and length. maxItems: 1 - clock-names: - items: - - const: m-ahb - - const: s-ahb + clock-names: true - clocks: - items: - - description: Master AHB Clock - - description: Slave AHB Clock + clocks: true "#address-cells": const: 2 @@ -81,6 +76,38 @@ patternProperties: description: GENI Serial Engine based UART Controller. $ref: /schemas/serial/qcom,serial-geni-qcom.yaml# +if: + properties: + compatible: + contains: + const: qcom,geni-se-i2c-master-hub +then: + properties: + clock-names: + items: + - const: s-ahb + + clocks: + items: + - description: Slave AHB Clock + + iommus: false + + patternProperties: + "spi@[0-9a-f]+$": false + "serial@[0-9a-f]+$": false +else: + properties: + clock-names: + items: + - const: m-ahb + - const: s-ahb + + clocks: + items: + - description: Master AHB Clock + - description: Slave AHB Clock + additionalProperties: false examples: