Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp391979rdb; Thu, 5 Oct 2023 08:51:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLSrxDfVKxiAow7dH8/69K+osqJ2AH0yBBuWUOII5vmiJMc2Iy1FbmhGvWoywT6jVJYYya X-Received: by 2002:a17:902:7248:b0:1c1:d730:f0c2 with SMTP id c8-20020a170902724800b001c1d730f0c2mr5391929pll.61.1696521073024; Thu, 05 Oct 2023 08:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696521073; cv=none; d=google.com; s=arc-20160816; b=B1EqpPQrp2L79kgzorLk3w4zNHyYopCmB4Qm3PBwNZ01SRPNGL34ih6BHnbVBnhlmx igInHDdIoFyr4/cK+IqI8bWPvu9gJJRhQaq0V+LF7RNF59l0tqB2tRCYtKBHM8l8M0H/ 7CsoEtIGeJ8DtqQUj5Ljr+EPmRcsBLZJ3uze/9vejUAWe2xg5FW58nP+wNvzJcW5xWzJ A5ymP3Bx0sFiSEdyIIksWIb69BNvINN4fGZJGUb8InX3vCiKQa0T7Rfl+6l8VmiE0xyB 6Hn31zvVD/nFiklGRTgxC1RgSXJ1D7oUjIZwoy5NifUPGi1O/sv9l41KmEJ5nS91LGgf rkRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=O9G6aJwwwtzXKgwKWSw8c7oRidhefF3dxtbgZvE+dvY=; fh=6AwcISBGklEC0U2b8ZFmhdtzZmcvKnccaXqP9iERvtc=; b=QsCX0VciL2JnNRzBSh+PkMa2jh8yVaLRaFWFW4otpx/YPLo1vWB3BkjosIAchMUK0i BhtTSGWf7BDrzlIjC2+IdhsivPWGhEac1tct9xT6SjLhU6AGtwpRMXvvXZ/8hV772RpB gttuPNZNUd/Cq1PgX/N1/bvOXbyYLPHuZSVAE+TJ3VUY62adXBAIcFdE0FmVzU9zp1qV EcGUq0VYav1eXZ/0kGiJdKUU7vr9qq8LrQVkMwkgFx7XD7CjaTm35u0Ni+L++qCJGrGN xgoHuKr6wkD8kGr4a0f6BtYt9HEeKMxhjdzDpHL06vckBsiFZeh6CAPGj5AF+Lm7+ixx uQYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iPks4J0H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w9-20020a1709026f0900b001c3e9170068si1674623plk.61.2023.10.05.08.51.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 08:51:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iPks4J0H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 751948377247; Thu, 5 Oct 2023 08:50:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234668AbjJEPtI (ORCPT + 99 others); Thu, 5 Oct 2023 11:49:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234032AbjJEPsK (ORCPT ); Thu, 5 Oct 2023 11:48:10 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB32521A22; Thu, 5 Oct 2023 07:23:36 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3953UEqG028895; Thu, 5 Oct 2023 03:31:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=qcppdkim1; bh=O9G6aJwwwtzXKgwKWSw8c7oRidhefF3dxtbgZvE+dvY=; b=iPks4J0HdIQy8fVM8icTif0VxyERHJLKI2DGETQwQRcGISZtnR1udCAwS/Oku0utlhJx sYRLOj90S9+T3QNJ3pwxV6mmaN7XGK7nIbbwDsAUIKjvR0EXv3SqP7g/cNpZhRq/+c/+ JYz6PrMZJFfTeHVwnaGAr4HELU1pD6lrDA4wA3B9GR4U3pYJoBOvNynk5SDgSVVij5Hz nLuw5fDqlclbdUblwIRUTXWELo9/EzXrbUm18qxHOcsxljxBYrijjx4iERgq5PHNlQhA 1sHyXcTrvNktEODnUMALLys1GGUEvqeDxzggx1CZ2aY48uSmxt3a/kPL16IFy2ZeXz2O zA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3th8e1su29-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Oct 2023 03:31:36 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3953Vas5027258 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 5 Oct 2023 03:31:36 GMT Received: from hu-devipriy-blr.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Wed, 4 Oct 2023 20:31:30 -0700 From: Devi Priya To: , , , , , , , , , , , , , , CC: , , Subject: [PATCH V14 4/4] arm64: dts: qcom: ipq6018: add pwm node Date: Thu, 5 Oct 2023 09:00:53 +0530 Message-ID: <20231005033053.2626465-5-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231005033053.2626465-1-quic_devipriy@quicinc.com> References: <20231005033053.2626465-1-quic_devipriy@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: SVaF6ymWFxZxGP96sq_D7GpP2tcGlQb5 X-Proofpoint-ORIG-GUID: SVaF6ymWFxZxGP96sq_D7GpP2tcGlQb5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-04_13,2023-10-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=0 adultscore=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310050028 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 05 Oct 2023 08:50:06 -0700 (PDT) Describe the PWM block on IPQ6018. The PWM is in the TCSR area. Make &tcsr "simple-mfd" compatible, and add &pwm as child of &tcsr. Add also ipq6018 specific compatible string. Reviewed-by: Krzysztof Kozlowski Co-developed-by: Baruch Siach Signed-off-by: Baruch Siach Signed-off-by: Devi Priya --- v14: Moved ranges just after reg as suggested by Krzysztof Picked up the R-b tag v13: No change v12: No change v11: No change v10: No change v9: Add 'ranges' property (Rob) v8: Add size cell to 'reg' (Rob) v7: Use 'reg' instead of 'offset' (Rob) Add qcom,tcsr-ipq6018 (Rob) Drop clock-names (Bjorn) v6: Make the PWM node child of TCSR (Rob Herring) Add assigned-clocks/assigned-clock-rates (Uwe Kleine-König) v5: Use qcom,pwm-regs for TCSR phandle instead of direct regs v3: s/qcom,pwm-ipq6018/qcom,ipq6018-pwm/ (Rob Herring) arch/arm64/boot/dts/qcom/ipq6018.dtsi | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index e59b9df96c7e..565e61ce382f 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -390,8 +390,21 @@ tcsr_mutex: hwlock@1905000 { }; tcsr: syscon@1937000 { - compatible = "qcom,tcsr-ipq6018", "syscon"; + compatible = "qcom,tcsr-ipq6018", "syscon", "simple-mfd"; reg = <0x0 0x01937000 0x0 0x21000>; + ranges = <0x0 0x0 0x01937000 0x21000>; + #address-cells = <1>; + #size-cells = <1>; + + pwm: pwm@a010 { + compatible = "qcom,ipq6018-pwm"; + reg = <0xa010 0x20>; + clocks = <&gcc GCC_ADSS_PWM_CLK>; + assigned-clocks = <&gcc GCC_ADSS_PWM_CLK>; + assigned-clock-rates = <100000000>; + #pwm-cells = <2>; + status = "disabled"; + }; }; usb2: usb@70f8800 { -- 2.34.1