From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57EE9C4708F for ; Wed, 2 Jun 2021 23:05:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 25195613DE for ; Wed, 2 Jun 2021 23:05:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbhFBXHk (ORCPT ); Wed, 2 Jun 2021 19:07:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbhFBXHj (ORCPT ); Wed, 2 Jun 2021 19:07:39 -0400 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15E02C061756 for ; Wed, 2 Jun 2021 16:05:56 -0700 (PDT) Received: by mail-ot1-x335.google.com with SMTP id 5-20020a9d01050000b02903c700c45721so2939585otu.6 for ; Wed, 02 Jun 2021 16:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=01Hagr0rlb03xkE9a3oTGw76oR0aQexaO5aG/02aCB4=; b=Wab2V42HgyG6YvnYjDfObRMTpUq54/FpFMvvpT+0wP6ICyDk4x+cQIfhRBklOga6wc ZL0R67ZCLhERbhyuwTzYg3c5pTIjZYhS8c+SVvNUVQr9sgmTphZnOrWci2bmdI29YgUL QxLkjuCn9Dqr2RC8ie0c9Ou9nmmxGLKZtfLfAYHJdOsHNIEMzPyw3Hold94dCxvU1I4f hkTn9Lv1rQl645l9hSEpP0ocnhED/xBz/LeQc1qlY+ARoZjZyHgcSuEaaH+5L//Bsr5Y o71B/XPIjwbh8dCXUlSyzJTH6yHXVNiR9k2wA8C/SKAOy1wQnZCLi7r2vPjLc7iWAA2c 4xcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=01Hagr0rlb03xkE9a3oTGw76oR0aQexaO5aG/02aCB4=; b=KOXon6oF+ZUjyA9fyKn4gq8XtH5mJes/5MVWBgGaXY9/kN0HX7zbwpGF/4G3D/Ive9 tY1kcaL2c9l/APljYQCR7fz2z8oAJwWlIozxONV9oQWJK8AhS7r4Dh6/TnR7IzzcxPdK A1eM4p+USSJD1Jwce/gBMwam5JhNjGuZsdypscoc55ilSm++1n37H9TUe/TDL7JgegCx Q8RQxUsG7fqJnj+y0k6DUoq7qP1EUnrMY7PekgCxggA+y7ZsAIVJIzan4bu7z468LjAC wGdMgkraqfI/9ndtJevSEUdP/udF8l4jxytmvjdvA/bPhmDdkgo9H9ZzbocjRPpV/G9I e+tg== X-Gm-Message-State: AOAM533ySl4pfsDWYQcpZX4/PZ1R4e5knUvbD/wZMEo1Op+tS7YD3qmU 9sY4NNAmVSu3dg/4HyurVABRTw== X-Google-Smtp-Source: ABdhPJwkXDuDdU2nXIPKkgGdIzDgav85nX1ZhJns9Ee4N2N7+7xTNnkPC3zCqg/aC3h88B1WaWtj8Q== X-Received: by 2002:a05:6830:1d0:: with SMTP id r16mr3470023ota.116.1622675155259; Wed, 02 Jun 2021 16:05:55 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id n11sm286681ooo.12.2021.06.02.16.05.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 16:05:54 -0700 (PDT) Date: Wed, 2 Jun 2021 18:05:52 -0500 From: Bjorn Andersson To: Baruch Siach , Rob Herring Cc: Thierry Reding , Uwe Kleine-K?nig , Lee Jones , Andy Gross , Balaji Prakash J , Robert Marko , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 2/3] dt-bindings: pwm: add IPQ6018 binding Message-ID: References: <249bddc521b15e992d0846edf1813aeb577458b9.1621851644.git.baruch@tkos.co.il> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <249bddc521b15e992d0846edf1813aeb577458b9.1621851644.git.baruch@tkos.co.il> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Mon 24 May 05:20 CDT 2021, Baruch Siach wrote: > DT binding for the PWM block in Qualcomm IPQ6018 SoC. > > Signed-off-by: Baruch Siach > --- > v2: Make #pwm-cells const (Rob Herring) > --- > .../devicetree/bindings/pwm/ipq-pwm.yaml | 52 +++++++++++++++++++ > 1 file changed, 52 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/ipq-pwm.yaml > > diff --git a/Documentation/devicetree/bindings/pwm/ipq-pwm.yaml b/Documentation/devicetree/bindings/pwm/ipq-pwm.yaml > new file mode 100644 > index 000000000000..f85ce808a14e > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/ipq-pwm.yaml > @@ -0,0 +1,52 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pwm/ipq-pwm.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm IPQ6018 PWM controller > + > +maintainers: > + - Baruch Siach > + > +properties: > + "#pwm-cells": > + const: 2 > + > + compatible: > + const: qcom,pwm-ipq6018 > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: core > + > +required: > + - "#pwm-cells" > + - compatible > + - reg > + - clocks > + - clock-names > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + > + pwm@1941010 { > + #pwm-cells = <2>; > + compatible = "qcom,pwm-ipq6018"; > + reg = <0x0 0x1941010 0x0 0x20>; These 32 bytes are in the middle of the TCSR block, which is already partially described by the &tcsr_q6 node, which is described as only compatible = "syscon" - something no longer accepted by the DT maintainers. As such, I think we should adjust the &tcsr_q6 definition to cover the entire TCSR: 0x01937000 of size 0x21000. @Rob, should we represent the entire tcsr as a simple-mfd and then have the pwm and q6 region as children of that? Or can we make the whole thing as a simple-mfd and a syscon and only describe the pwm as a child? Regards, Bjorn > + clocks = <&gcc GCC_ADSS_PWM_CLK>; > + clock-names = "core"; > + }; > + }; > -- > 2.30.2 > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA631C47083 for ; Wed, 2 Jun 2021 23:10:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 741146102A for ; Wed, 2 Jun 2021 23:10:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 741146102A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1zRfzt6xRdop6QNxiHFbXLCs9umCclobgQZk00ZjnsY=; b=EulZCvBB30ZkYC mCDZeMOPsWMVvNeRwO86wyhe6TJbhzdxPSkpYoKFi7+nPtxyR6D7yOGfUTM1GkECdKRTfndUx5Bg/ yINR/GilEe4YRUtg/p8j+zn89DYediLb4YUCJhUq7KQpe1uZaaa5pUl83Bt8Z2zajaFZLUeX4aANJ KnKIGWytaLMgVrsagGKONePNGnccWF1tPXYH0fQCBiVvpK2MwgRJq1K3jCfjh61ZhYlRL/J5+FTxf xlxZNAlG+OYjgXnz3TnsNDQwbE40Xt0J3ViprI66dYis3sK24qAyBH/gibSb26vD/tqdB55Y9t5Q7 XJrfl5Amun4icJOL5T+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1loZw1-006Qts-8u; Wed, 02 Jun 2021 23:06:01 +0000 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1loZvx-006Qt7-VN for linux-arm-kernel@lists.infradead.org; Wed, 02 Jun 2021 23:05:59 +0000 Received: by mail-ot1-x330.google.com with SMTP id x41-20020a05683040a9b02903b37841177eso3988205ott.9 for ; Wed, 02 Jun 2021 16:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=01Hagr0rlb03xkE9a3oTGw76oR0aQexaO5aG/02aCB4=; b=Wab2V42HgyG6YvnYjDfObRMTpUq54/FpFMvvpT+0wP6ICyDk4x+cQIfhRBklOga6wc ZL0R67ZCLhERbhyuwTzYg3c5pTIjZYhS8c+SVvNUVQr9sgmTphZnOrWci2bmdI29YgUL QxLkjuCn9Dqr2RC8ie0c9Ou9nmmxGLKZtfLfAYHJdOsHNIEMzPyw3Hold94dCxvU1I4f hkTn9Lv1rQl645l9hSEpP0ocnhED/xBz/LeQc1qlY+ARoZjZyHgcSuEaaH+5L//Bsr5Y o71B/XPIjwbh8dCXUlSyzJTH6yHXVNiR9k2wA8C/SKAOy1wQnZCLi7r2vPjLc7iWAA2c 4xcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=01Hagr0rlb03xkE9a3oTGw76oR0aQexaO5aG/02aCB4=; b=K3E5rlxqPUT564YrHiwCGu6W5FtJIqn8Nlv9+d2XrdxF+LXX43M/nqLGz/w0PaNnJS ji/pRDroHkaDmD5fIy6HbqS886Z/xyj0RCG6uhjEBxKy+DkvUA0Y2wQPe61GZt9tlZkG Gwz5UsoQFUgMZ2pZxbRnV+z4bFGD6AepGuyfGY0qafjQujTKmIYjMIJZOaifqhioRPd4 CxEdC2n39SSQ2qTsvC+RzsaR/in763YYhq1RgWaBWeufQrrrPT1AB8xeZZuLSwvnJEkL T5KM/42xQTXCpvVbSTgl44BBV5HIR8k+ITeHFZwKABCwL8XILk60EFbEANSjoxmwpeuk RxcQ== X-Gm-Message-State: AOAM533XM1Fj8SkaxZbUzAYnQDOJuGEEaZ0qAsQWT4HfwfZci99zkGbr rBM6BCqMdqgQ7PDJBfpu3EKJUQ== X-Google-Smtp-Source: ABdhPJwkXDuDdU2nXIPKkgGdIzDgav85nX1ZhJns9Ee4N2N7+7xTNnkPC3zCqg/aC3h88B1WaWtj8Q== X-Received: by 2002:a05:6830:1d0:: with SMTP id r16mr3470023ota.116.1622675155259; Wed, 02 Jun 2021 16:05:55 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id n11sm286681ooo.12.2021.06.02.16.05.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 16:05:54 -0700 (PDT) Date: Wed, 2 Jun 2021 18:05:52 -0500 From: Bjorn Andersson To: Baruch Siach , Rob Herring Cc: Thierry Reding , Uwe Kleine-K?nig , Lee Jones , Andy Gross , Balaji Prakash J , Robert Marko , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 2/3] dt-bindings: pwm: add IPQ6018 binding Message-ID: References: <249bddc521b15e992d0846edf1813aeb577458b9.1621851644.git.baruch@tkos.co.il> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <249bddc521b15e992d0846edf1813aeb577458b9.1621851644.git.baruch@tkos.co.il> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210602_160558_071982_68FB571F X-CRM114-Status: GOOD ( 18.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon 24 May 05:20 CDT 2021, Baruch Siach wrote: > DT binding for the PWM block in Qualcomm IPQ6018 SoC. > > Signed-off-by: Baruch Siach > --- > v2: Make #pwm-cells const (Rob Herring) > --- > .../devicetree/bindings/pwm/ipq-pwm.yaml | 52 +++++++++++++++++++ > 1 file changed, 52 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/ipq-pwm.yaml > > diff --git a/Documentation/devicetree/bindings/pwm/ipq-pwm.yaml b/Documentation/devicetree/bindings/pwm/ipq-pwm.yaml > new file mode 100644 > index 000000000000..f85ce808a14e > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/ipq-pwm.yaml > @@ -0,0 +1,52 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pwm/ipq-pwm.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm IPQ6018 PWM controller > + > +maintainers: > + - Baruch Siach > + > +properties: > + "#pwm-cells": > + const: 2 > + > + compatible: > + const: qcom,pwm-ipq6018 > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: core > + > +required: > + - "#pwm-cells" > + - compatible > + - reg > + - clocks > + - clock-names > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + > + pwm@1941010 { > + #pwm-cells = <2>; > + compatible = "qcom,pwm-ipq6018"; > + reg = <0x0 0x1941010 0x0 0x20>; These 32 bytes are in the middle of the TCSR block, which is already partially described by the &tcsr_q6 node, which is described as only compatible = "syscon" - something no longer accepted by the DT maintainers. As such, I think we should adjust the &tcsr_q6 definition to cover the entire TCSR: 0x01937000 of size 0x21000. @Rob, should we represent the entire tcsr as a simple-mfd and then have the pwm and q6 region as children of that? Or can we make the whole thing as a simple-mfd and a syscon and only describe the pwm as a child? Regards, Bjorn > + clocks = <&gcc GCC_ADSS_PWM_CLK>; > + clock-names = "core"; > + }; > + }; > -- > 2.30.2 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel