Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp815049pxb; Tue, 12 Apr 2022 14:12:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjYFCGnkYlfBOSkBSWdvJqRnCL6pxRLKnXER/+hQuBhFlI9wuESb4++jtMxAUSKMhwewFA X-Received: by 2002:a63:9307:0:b0:373:a700:beaa with SMTP id b7-20020a639307000000b00373a700beaamr32612714pge.260.1649797954361; Tue, 12 Apr 2022 14:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649797954; cv=none; d=google.com; s=arc-20160816; b=taLLTUoQ7iO7NTJgEZVb6kw6qO++pJ6Bdqm1rgenWjLzUYOpYlJEg07QaKslgdeJ1o TkVX74iQaqkm1x6fhrVbnWPf59Id1sdH0HBW2BSLqccVXT7Fefx6ht7Y41g29UdPjbbq d7q/95nd+PVViKntrv3ImZ/lZ/X2ZKccmHkz3ZD614fOLj43f+rrw7pbA1N99ImtLQbM rNwlri9dccmbMZX75R4X3c6hyUNmtrJb3qsP89xtq0OSfJ7himU3fnxOzdhK/ZfpGWUI RnW+WxLV0rg32ZbCEgrzjeYq27XxevIjZSK4oE93vU0l1YDu8rmkqafvi0s5XUWdyv7r wURg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=gdMXT9TzsyH4/nxmkBNQPgpVjR8VBr666pmrMpmTXZI=; b=FSAAByT/fMK5IbksPzCfZ4SmnNzRHZyyU1vI2HgLYonVJgbL35a/lHM5nNZbCQvX3C IG2JQfnbQr2zC6u+3ERDK2rCVNHQuhO07yg83skq3AogTi2f+kfzqGc65Uwl77ee60HW Z6Z7rpZrZZCVN+I0DtYtMRr3DwddIK11lEPZwd6Fi83aCaaKd8blNgcNHpW1us5FVLPs nSHIPKI4nWZpwaVnpRsAWs6esKF6h+EuHZ2GebE0lju1DX/9GDq1SpfyUDGjX1NGTqzg JySGC93j1vLuNYptcnJsLUweqSFd6kiJ/FbWXfFnWu7ye/9kT0NbyiYE6a3yRzaD/jfi pdzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sf9531F6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q82-20020a632a55000000b003991d7d27c9si3644491pgq.865.2022.04.12.14.12.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:12:34 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sf9531F6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D40B1E7F7A; Tue, 12 Apr 2022 13:28:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351565AbiDLHHh (ORCPT + 99 others); Tue, 12 Apr 2022 03:07:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351775AbiDLGyW (ORCPT ); Tue, 12 Apr 2022 02:54:22 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45487BFA for ; Mon, 11 Apr 2022 23:44:02 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id lc2so14723038ejb.12 for ; Mon, 11 Apr 2022 23:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=gdMXT9TzsyH4/nxmkBNQPgpVjR8VBr666pmrMpmTXZI=; b=Sf9531F6U+Pwb0a1JtSz+UJf/7y7GtDmQlZZhYfSi+mfIvdBuA4l0w7/WatdjA9Ad6 TvV1/c+RE7sUGKS1/vUuU2MhBpzDMSR5e27v5CWt4Y1uEERO4rzy1WFE7UFOUTkys8y4 CrAZELDcitDaBEG070MG6AnwITJStO2p0wpebyOBC/F8c4E4tcDxGW0/DG5QxVW1sIpV 8p0pgBHVk3S74bwGfrfbc9v6owVXngqPs+TyhlqZ2FJ8kqVHCNvX0K4QrJKpDWlQQ4ZP fgucKqXTCFSYrEFgMqiDfOIFe4mCpdCXVpFSuD1BRgEDhCuvS5dXmNhhvfMGmg+v/lcO ESgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=gdMXT9TzsyH4/nxmkBNQPgpVjR8VBr666pmrMpmTXZI=; b=gi5JHKIu3yx465wxMs6Z9Kau3+libY0d5gs8p2be4OVlB4bs+dXKdbOO8A8KpZdlQ8 dQ5JW0F1OaoGtpjGzZJ1q8/KjmBV5aKOVJOqQpt5tvYk5ZjbLRVzZ8cQLUnZhIs/IVSb C6hILhbedV2usYQ61csiSdot9eoLGLQ8jMS1qaeEdZHIesvnJuxKZZHn0qA0eLucRZh8 9nqC69UcCo44xoMukCiDkMhMlfAfRxeZZMcfDFemyMPGTDVax2Wg7qD0RsL1XJFZD/XA 5fcbBZGGEX8OWEWjbtoZ6ezVKBDvPD0iGWUgMYCrYSPtX4rTt3L+h9oNM3u9o3prUvBQ mHOA== X-Gm-Message-State: AOAM531jzlGhb8FlMQmguoUME4z0mWmVcsbJ4ZFvLWU2KmfbMOpInd2s dEzLS54/SZ1nKTYfZwUQk9GzIA== X-Received: by 2002:a17:907:1b06:b0:6e7:f58a:9b91 with SMTP id mp6-20020a1709071b0600b006e7f58a9b91mr34377224ejc.291.1649745840798; Mon, 11 Apr 2022 23:44:00 -0700 (PDT) Received: from [192.168.0.193] (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id c1-20020a50cf01000000b0041cb7e02a5csm14566517edk.87.2022.04.11.23.43.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Apr 2022 23:44:00 -0700 (PDT) Message-ID: <8ff07720-3c52-99e6-8046-501f4ae28518@linaro.org> Date: Tue, 12 Apr 2022 08:43:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v2 6/6] dt-bindings: dma: Convert Qualcomm BAM DMA binding to json format Content-Language: en-US To: Kuldeep Singh , Srinivas Kandagatla Cc: Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Vinod Koul , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org References: <20220410175056.79330-1-singh.kuldeep87k@gmail.com> <20220410175056.79330-7-singh.kuldeep87k@gmail.com> <14ecb746-56f0-2d3b-2f93-1af9407de4b7@linaro.org> <20220411105810.GB33220@9a2d8922b8f1> <50defa36-3d91-80ea-e303-abaade1c1f7e@linaro.org> <20220412061953.GA95928@9a2d8922b8f1> From: Krzysztof Kozlowski In-Reply-To: <20220412061953.GA95928@9a2d8922b8f1> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 On 12/04/2022 08:19, Kuldeep Singh wrote: > On Mon, Apr 11, 2022 at 01:38:41PM +0200, Krzysztof Kozlowski wrote: >> On 11/04/2022 12:58, Kuldeep Singh wrote: >>>> This is something new and it seems only one SoC defines it (not even one >>>> BAM version). I wonder whether this is actually correct or this >>>> particular version of BAM is slightly different. Maybe someone could >>>> clarify it, but if no - looks ok. >>> >>> Yes, sdm845.dtsi uses 4 entries and rest 1. >> >> Yes, I know. This does not solve my wonder. >> >>> >>>> >>>>> + >>>>> + num-channels: >>>>> + $ref: /schemas/types.yaml#/definitions/uint32 >>>>> + description: >>>>> + Indicates supported number of DMA channels in a remotely controlled bam. >>>>> + >>>>> + qcom,controlled-remotely: >>>>> + $ref: /schemas/types.yaml#/definitions/flag >>>> >>>> type: boolean >>> >>> Boolean comes under flag in types.yaml >>> >>> definitions: >>> flag: >>> oneOf: >>> - type: boolean >>> const: true >>> - type: 'null' >>> >>> I have seen other boolean properties(spi-cpol, spi-cpha and bunch of >>> others) using type flag. I think we should keep flag here. >> >> type:boolean is just shorter and example-schema recommends it. If you >> want to base on something (as a template, pattern) then the >> example-schema is the source, the preferred one. > > I had seen other spec using flag and that's why kept same here. I understand, you mentioned it before. However other spec is not the example-schema... > Which example schema are you talking about? There is only one example-schema. $ find ./linux -name 'example-schema*' >>>> clocks, clock-names, qcom-ee - these are required according to old bindings. >>> >>> I missed qcom,ee. Will add in v3. >>> >>> For clocks and clock-names , there are two platforms(msm8996.dtsi, >>> sdm845.dtsi) where these properties are missing. And I don't want to add >>> some random values. Shall I skip them here? and let board owners add >>> them later. >> >> These are required, so the SoC DTSI should be fixed. Not with random >> clocks but something proper. :) > > Yes absolutely :-) > I have kept Srinivas in copy, who sent initial support for both the > dtsi. Probably he can confirm provided his email doesn't bounce. > > Anyway Krzysztof, can you confirm the same as you have been actively > contributing to Qcom peripherals. I will add credit in follow-up > submission. Honestly not now, because I don't have access to related datasheets (I am working on this). You can though try to look at original (vendor) sources: https://git.codelinaro.org/clo/la/kernel/msm-4.19 (sdm845) https://git.codelinaro.org/clo/la/kernel/msm-3.18 (msm8996) Best regards, Krzysztof