Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp37559pxb; Tue, 12 Apr 2022 16:07:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSZtzF2luYSi3oj8I6+vmuyy2y4oUVW5SLRIpp/SxtsEWFsD552zTuA4Va3cudw6bZmr5T X-Received: by 2002:a63:d64d:0:b0:374:6edc:989c with SMTP id d13-20020a63d64d000000b003746edc989cmr32586109pgj.434.1649804851218; Tue, 12 Apr 2022 16:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649804851; cv=none; d=google.com; s=arc-20160816; b=cFLSaFmogNFyeZjhzsutwSsjECSE0BwKJElwwRu0AK06txzkqLsXSReeaa/8tar0XV nYg6pTLHQ1xaW+JMeTM5gLXVA2CeA415/CTY5I8ofBPSbKwp0PiYY+/8TN1Y7RPnDjkH t4cIPc8dhGhpDmYJzzofB2OkRAb5r87PlZQxcMNmtwMgROH11PO1TRyVReRD7c+X6duR PXXH3yNrho1NUfANjjxX9mFUxbR8oNOw9H50wYQv6X9lXkzfvFDdPWa0HKup/17uqtME LrEPw973mU4MNRZYPnoODTjxehgXg4oSMvp/L+yxAd7e0doutsjR/rqioLumaQ6VIUwo 8GDg== 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=2WZi02KGSxWTDOytghirv9WvF6kDbKHRt4IaYFgOoO0=; b=YOv15kBj/SZJN1zng3fS+hzK97TC/r38wU5yY0qYRAi4g/dLVkwUo2seOGg9pvne+7 hvt3a2hJu4Id6CWQdtVcOw9WO8FNKvWSvKeuNNBn4pcReL01RnTKMXhJoMcG2TyL07ho axfw5yo1nVDjfzUPMNs3FCAdVtSD3a8RqNaWXQPBTop2IBPF0EaG1QDUHCynQwvoGydU D3wsMVfTCx5G2Nzb/ifT0ViXALnyaxMS2zJLSJ/1VIy9oqY8nfLfInxz6YL5P2cb1oeF ZhkNVlrxYNS3qJCyMhMrh//2jMcifnUgS4tHcq8BLqDFfDzHO3ll1pWcIP3/+/yeJ/2/ yOOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U4GXJiDR; 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 a128-20020a636686000000b0039911b1bf43si4274461pgc.269.2022.04.12.16.07.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:07:31 -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=U4GXJiDR; 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0EBC5BD883; Tue, 12 Apr 2022 14:49:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245605AbiDKLlC (ORCPT + 99 others); Mon, 11 Apr 2022 07:41:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343496AbiDKLk7 (ORCPT ); Mon, 11 Apr 2022 07:40:59 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AFEA45ACA for ; Mon, 11 Apr 2022 04:38:44 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id k23so30224764ejd.3 for ; Mon, 11 Apr 2022 04:38:44 -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=2WZi02KGSxWTDOytghirv9WvF6kDbKHRt4IaYFgOoO0=; b=U4GXJiDRmHt1bqW4x998No2cKXzPTUXZgJdIOCYJpo1QImMW3dVp46ceiqpZW99d+1 m/Z0eTaFvQpBlYDMpTjMmYPpK6ggi8t+kLWEcwLpn0zzFGhx5Wpy8V0hxHgBwZTDVZZb 0eeXz7P7N95HKev3TZQKioZsZOq8ln2COWWTyQGliCAFADddSd+qXK0rWE8VYJQMXotF MLQDCbbZ1lYgyvCZ0RebEVLySV/JxBFbS75Yt02bonON78w+YAFA8kknJnPV7bufZ3fL RfKhYMCXLUWKvdjllZD9XP0llh4fkP2Z34QDLean86/axiTY9rybX4GOklYPPnQS34PA calA== 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=2WZi02KGSxWTDOytghirv9WvF6kDbKHRt4IaYFgOoO0=; b=aMnfPGw6YLR6Hskm19MTRLNQmOFID8omxTgP+Xt1Wl35bgIjbgw/5d/PUHkqcwuJPI P/8G2HJyihocX+944XfQDhA7awxyB9IjUYbQU+51EeZ2Yz9iLdFz+LrRsYXj6S/1ZpqE +HtxuR40JHfdKzXWJX64xSXJphVp6Dyw7Cn2YgUOUGQp6CjUh3xCv3uRsqD9tD8VtNUi T39i5DBj+CvPWIs8W54N6gp2+L2xPBgxWUWmew6a6y3LlyIfDyFe8/uW8UivlyfdlOCG rEK50DAXP3jsO8tZBQWhFULMIydXRlqwb7VhvGrWtguQH0nHUAW53pGofOFLsKb/KrLv ywgQ== X-Gm-Message-State: AOAM530WJSjczbVQm9uIGQ1nrKvZ3JOn9Xz2XZSS96d9SOkkVv9c3So7 aGw772ia/3XzEtmgfztm667rAA== X-Received: by 2002:a17:907:724c:b0:6e8:59c1:914c with SMTP id ds12-20020a170907724c00b006e859c1914cmr13259814ejc.172.1649677122864; Mon, 11 Apr 2022 04:38:42 -0700 (PDT) Received: from [192.168.0.191] (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id j23-20020a1709064b5700b006e87ae0c111sm2318025ejv.123.2022.04.11.04.38.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Apr 2022 04:38:42 -0700 (PDT) Message-ID: <50defa36-3d91-80ea-e303-abaade1c1f7e@linaro.org> Date: Mon, 11 Apr 2022 13:38:41 +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 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> From: Krzysztof Kozlowski In-Reply-To: <20220411105810.GB33220@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 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. >>> +required: >>> + - compatible >>> + - "#dma-cells" >>> + - interrupts >>> + - reg >> >> 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. :) Best regards, Krzysztof