From patchwork Fri Feb 17 08:33:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 58417 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp770553wrn; Fri, 17 Feb 2023 00:37:30 -0800 (PST) X-Google-Smtp-Source: AK7set/SvA5zdBDc5NsZnuZjuH5uZtOCwxluQ9rgKbL/5SraHfrDrAPb6mWZoDytK1PXYzN5OBn1 X-Received: by 2002:a05:6a20:3ca6:b0:bc:50a6:5944 with SMTP id b38-20020a056a203ca600b000bc50a65944mr10901864pzj.38.1676623050652; Fri, 17 Feb 2023 00:37:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676623050; cv=none; d=google.com; s=arc-20160816; b=r2KU2hVSSx08kmc/m9gD6R5j2XaDGodUiDK/acAFEaOVdEICv58MMq7EtWeNBQw/ng kPld5perxTBm0LD3SzjsugGhIW5sb6g84owf27V5QaaCPw32Wu5A/nxNSSIgbAzJ/pGz PLeihcRJUXbvgTmHzTtT8uFPsPZ8Zl+FHn4bSH/5KXf8I1eXlMZoFK7rI7D7hKdlD+yg Qdxwni3qmrLvezRmpkFJ9zPK8zrcpBjN6RLOXNwNfaXW1Rqf+efF8GkeYh/qn4nLyqbx /P/LxEpKxjkWLrDH4DcGep/H2aw1/Cx6wjvFbrCB6imotLYoX3ZBYlANgLHUL+AXEUcE PW+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dhVqyWRblQnWDpLPMMouwmbGElAdHlf0juTflJFrGS4=; b=lURVVNQFjnitRx9naFocon5E8F7s3W9N6/9jwviIa86kaHjFL89RiZ7ipdKCu4Z/dq 70jWYZZZjKZQHjlikVQDVCwx2WnzO5UuCc+TVs8y0dcwS6Lo6NbwCvg/74rqfSR0tdGg 4PXDV0ESnvbfl5BBfijUXqZXcTkByzG1IAeHTbZzK7KoxPFPkfbbfBY0Xve3gV6/yC/C xfDU9vTKpMMBiskNsVO+ChRnw+JjE1RycKvwHkSRK/SQeJAR0BRKxvLf/Y7vQvAyCtgK oKRCh6UP07zYC0CTep78sYLsgsNFJag5AGyfnaZlqDOr6lZXUuhKDdtHSwTxluSIlgsH ONlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TgbRswtc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a63e94f000000b004b377960752si4726031pgj.353.2023.02.17.00.37.18; Fri, 17 Feb 2023 00:37:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TgbRswtc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229802AbjBQIeH (ORCPT + 99 others); Fri, 17 Feb 2023 03:34:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229897AbjBQIeE (ORCPT ); Fri, 17 Feb 2023 03:34:04 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 754F5604C0; Fri, 17 Feb 2023 00:33:51 -0800 (PST) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31H5rGEB029046; Fri, 17 Feb 2023 08:33:47 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; s=qcppdkim1; bh=dhVqyWRblQnWDpLPMMouwmbGElAdHlf0juTflJFrGS4=; b=TgbRswtcIGRL6VNiVbqbCW2ThSNNznep+wEnjbpqRdCZdLsZ8aBYzizqrNipHAOx6zTW lbMot7I+SQScBrri78zKl6P2enkgy4jN/JjEtJHRBQMqFyzzFzMJSBcXs4/zOyADuH9m m2G/X9GMlu5WGSgJk6RmbVa+HWcxNXN56MIldFrppQt56HGGL386QSMewBdYuB03SNNo dh+q+y0s7JoV+WAtN3+ieXARn+7atY6tujeBDUzGZNw7GdgqpTaZYrm6rm2P4hMbTYEB HgNe5EFVBnnhbqJmsgOy1B6POdA7KzKfCvFSSA9lPB3GCe8q6ONlu/829gkE3t/ecsWA +A== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nswjph94p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 08:33:47 +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 31H8XkwT016001 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 08:33:46 GMT Received: from kathirav-linux.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.986.41; Fri, 17 Feb 2023 00:33:41 -0800 From: Kathiravan T To: , , , , , , , , , , , CC: , , Kathiravan T Subject: [PATCH V3 4/5] dt-bindings: mailbox: qcom: add compatible for the IPQ5332 SoC Date: Fri, 17 Feb 2023 14:03:07 +0530 Message-ID: <20230217083308.12017-5-quic_kathirav@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230217083308.12017-1-quic_kathirav@quicinc.com> References: <20230217083308.12017-1-quic_kathirav@quicinc.com> MIME-Version: 1.0 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: ktpuDPxwdhxhh3_heqrJ_7gPfcMHU-Xo X-Proofpoint-ORIG-GUID: ktpuDPxwdhxhh3_heqrJ_7gPfcMHU-Xo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-17_04,2023-02-16_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 adultscore=0 malwarescore=0 suspectscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 spamscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302170076 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758066691582270988?= X-GMAIL-MSGID: =?utf-8?q?1758066691582270988?= Add the mailbox compatible for the IPQ5332 SoC. Since the IPQ5332 mailbox is compatible with the IPQ6018, lets create the fallback to ipq6018 compatible, so that we don't bloat the of_device_id table in the driver. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Kathiravan T --- Changes in V3: - Pick up R-b tag Changes in V2: - As suggested by Krzysztof, modified the binding to use the fallback mechanism so that we don't keep adding the compatibles with the same driver data in mailbox driver .../mailbox/qcom,apcs-kpss-global.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 56b386b688b3..71195c0cadf9 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -16,6 +16,10 @@ maintainers: properties: compatible: oneOf: + - items: + - enum: + - qcom,ipq5332-apcs-apps-global + - const: qcom,ipq6018-apcs-apps-global - items: - enum: - qcom,ipq6018-apcs-apps-global @@ -110,9 +114,10 @@ allOf: - if: properties: compatible: - enum: - - qcom,ipq6018-apcs-apps-global - - qcom,ipq8074-apcs-apps-global + contains: + enum: + - qcom,ipq6018-apcs-apps-global + - qcom,ipq8074-apcs-apps-global then: properties: clocks: @@ -126,9 +131,10 @@ allOf: - if: properties: compatible: - enum: - - qcom,ipq6018-apcs-apps-global - - qcom,ipq8074-apcs-apps-global + contains: + enum: + - qcom,ipq6018-apcs-apps-global + - qcom,ipq8074-apcs-apps-global then: properties: '#clock-cells':