Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3468610pxb; Mon, 4 Apr 2022 17:57:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFLHPapGTbknCTQuY97/W2pAt11YWQ2g1p010khb+5ye45YSNGT2Qd+DNnDfeYrGs46e6d X-Received: by 2002:a62:84d3:0:b0:4fa:72e2:1c64 with SMTP id k202-20020a6284d3000000b004fa72e21c64mr952586pfd.29.1649120268162; Mon, 04 Apr 2022 17:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649120268; cv=none; d=google.com; s=arc-20160816; b=vmLVD+K+jNDC7gJxxNlKQwNR6fDYHX9yNTa7mmM7Q44WnwJ7lnf/TD1K1Ib0uV10Wh HYUj3pn8Fq4gmgtvYd3BKjn2ZI46m8CDmbeGPzS9EXTGo3IxrX2AZhjC8p1pCVT8Vk9P CX6SsqISby/xXlSzwD+SGN/yrX6s6NsO1nuiqUWmKNeL3ef6v9vpQD9fgBtIO36RdFrj oTGyigyZiWhuI5K8z7eqPSERHGtdd3F2TFkVqv3BbTRFpda0yocYKWt3z2odwjM6af0W xVtASHFCeaqUg6FjRZY5Tmg9MNLZtfOcCefjSxXzC7nu9s3orYwXpKwEW30cU0vLQqvF PYYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+si7rb/80RTkZ0HPi34L84T3FsNep37xaj1A3ObJQzc=; b=ln/UdvmkmKN1CxM6Rtr6/mk3fO6sI/rl16avxrokS1XzGTA2uFTUxc6zy50IaiZ8M7 Yfcee2dfDQmduFYiw+7NIlUXyH03JorOuMco6uCRB0oMr7rrcnUK6mhgQy81NEBAEoc1 3YrN3LJMFxyMUn2LhATCKCiu0H70KWYta9nJHUc0LxjWSGt691lQkHZXWyUG3iMEAn07 yUonJKvkiDqdZ8+70/9lOvxZmQN1OXYgOMtExIKXtPwL98oVIJkyO8nkhyjcAEBYhSr+ kQVxFuX5YDvzM/uTS9Q5W1LEzQB6fmoBX3pTuUiR1TpW3nf62wV1CsQnFVQ+AU6tX9O+ 9UDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=M7l1aKwN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u19-20020a627913000000b004fa3a8e0018si9720409pfc.207.2022.04.04.17.57.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 17:57:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=M7l1aKwN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1E50D139AE5; Mon, 4 Apr 2022 17:04:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236906AbiDBTqz (ORCPT + 99 others); Sat, 2 Apr 2022 15:46:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230064AbiDBTqw (ORCPT ); Sat, 2 Apr 2022 15:46:52 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B680D21809; Sat, 2 Apr 2022 12:45:00 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id i10-20020a17090a2aca00b001ca56c9ab16so1464023pjg.1; Sat, 02 Apr 2022 12:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=+si7rb/80RTkZ0HPi34L84T3FsNep37xaj1A3ObJQzc=; b=M7l1aKwNiO8SUVPZnpeX+NpPOb/LnEa8X6Vjc/opgP1CVAyscOWzpxH64PZpjSWl4d ckAjnViy5ZOFtr2HRn/7OVVALyt8NSx/Q+FzwSn6rsgipR5R70B0cylPCOW2cE82AHoQ EK1jmxHN0kGEFwVCF7MN45c75+jmIgifu7v069T45xorJ5E2hIVE0TCdfDkJrL5XjHO3 enORZIgQCR0ha8DHyypbPI3CAdCR6yf+Ojyryg0SNHaiPgoujdI4XiQYEb1eXs81l/GP VAVPJVEG4zdDOR+fMi3q6/M0uFpxfjkH5ANYjqCpf15vQKaw08Wv9Ks0M/8spv4N2Y/C eomw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=+si7rb/80RTkZ0HPi34L84T3FsNep37xaj1A3ObJQzc=; b=G6yEHAtwgQ5Pe6xjg38Jsnpw5C6v2VkupUZHy10y2Wvp0olAgWJdtXdmnVxVL34Y7H v6pzIS+EwhIw89mGG/9n2Gn5yZ6/FJzonXqKiB2tx+zebhSWHtdbwMIbPHcgJqcp+1gi m6akXQoHP2fbhHSebr5xLusUISe6hNLhe9siJ2VXiGSxlpJnHW0uq0kAfzV2pREhLkq4 pbfg7lINsjOvVsrFLnuoHmlz114EvVQykd6j5ZTeRKlZuKdRChrd+DZ43/hHvGpvGH7p wbJobeZBfUZsQcFD7nt4xu1uH/Wd3SMwiOncYCJ+2Yt4rlC1Jkt306lRCLeMIHmL7N2t VJlw== X-Gm-Message-State: AOAM532Iwt9TeL4WeVO8VAmykCDWm1MPR43B4u/kEx+QvYrYIOUWPMEK WiDOiVRBDrvK8Fr+zEIARVU= X-Received: by 2002:a17:902:f543:b0:156:5f55:a75d with SMTP id h3-20020a170902f54300b001565f55a75dmr11547320plf.72.1648928700147; Sat, 02 Apr 2022 12:45:00 -0700 (PDT) Received: from 9a2d8922b8f1 ([122.161.51.18]) by smtp.gmail.com with ESMTPSA id b2-20020a056a000a8200b004e1414f0bb1sm7395700pfl.135.2022.04.02.12.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Apr 2022 12:44:59 -0700 (PDT) Date: Sun, 3 Apr 2022 01:14:53 +0530 From: Kuldeep Singh To: Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 1/5] dt-bindings: i2c: Add Qualcomm Geni based QUP i2c bindings Message-ID: <20220402194453.GE35664@9a2d8922b8f1> References: <20220402051206.6115-1-singh.kuldeep87k@gmail.com> <20220402051206.6115-2-singh.kuldeep87k@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Sat, Apr 02, 2022 at 02:29:59PM +0200, Krzysztof Kozlowski wrote: > On 02/04/2022 07:12, Kuldeep Singh wrote: > > GENI(generic interface) based Qualcomm Universal Peripheral controller > > can support multiple serial interfaces like spi,uart and i2c. > > > > Unlike other i2c controllers, QUP i2c bindings are present in parent > > schema. Move it out from parent to an individual binding and let parent > > refer to child schema later on. > > > > Please note, current schema isn't complete as it misses out few > > properties and thus, add these missing properties along the process. > > > > Signed-off-by: Kuldeep Singh > > --- > > .../bindings/i2c/qcom,i2c-geni-qcom.yaml | 110 ++++++++++++++++++ > > 1 file changed, 110 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml > > > > diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml > > new file mode 100644 > > index 000000000000..01a02e680ea3 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml > > @@ -0,0 +1,110 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: "http://devicetree.org/schemas/i2c/qcom,i2c-geni-qcom.yaml#" > > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > > + > > +title: Qualcomm Geni based QUP I2C Controller > > + > > +maintainers: > > + - Andy Gross > > + - Bjorn Andersson > > + > > +allOf: > > + - $ref: /schemas/i2c/i2c-controller.yaml# > > + > > +properties: > > + compatible: > > + enum: > > + - qcom,geni-i2c > > Just const, no enum. There are no other flavors of this (unless you > think there are?). There are no other users. Will change it to const. > > > + > > + clocks: > > + maxItems: 1 > > + > > + clock-names: > > + const: se > > + > > + clock-frequency: > > + description: Desired I2C bus clock frequency in Hz > > + default: 100000 > > + > > + interconnects: > > + maxItems: 3 > > + > > + interconnect-names: > > + items: > > + - const: qup-core > > + - const: qup-config > > + - const: qup-memory > > + > > + interrupts: > > + maxItems: 1 > > + > > + power-domains: > > + maxItems: 1 > > + > > + reg: > > + maxItems: 1 > > + > > + required-opps: > > + maxItems: 1 > > I have doubts this is correct property. Usually it is part of the > opp-table. I see sc7180 needs this, but I think it is a mistake. Do you > know how it is supposed to work? Not sure how exactly it works. I took reference from Documentation/devicetree/bindings/clock/qcom,videocc.yaml on how to add required-opps. -Kuldeep