Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp352814rwe; Fri, 14 Apr 2023 04:02:40 -0700 (PDT) X-Google-Smtp-Source: AKy350Yo4lU6aCe8fbEUnv5gvdakLZhm1r1MrY2cmbQSJmhODUrs+cDYuQ/8obrn7kHb7DiGDD+s X-Received: by 2002:a05:6a20:3c90:b0:ee:9272:73f8 with SMTP id b16-20020a056a203c9000b000ee927273f8mr10312pzj.36.1681470160195; Fri, 14 Apr 2023 04:02:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681470160; cv=none; d=google.com; s=arc-20160816; b=zS7jbZK2CHW+oAh4kUcf1xl9kDGevQOnZwruIZIbec63iIc6AM4XrfQYc3A1y/Yt9t 6uREch0WvSbJkakuZBcaJg3dqUyOJ+IIUBkVN471nhp4/pqKEQbuyW4PsIjB51N9yZQ2 cioLvHtZVzfy9+b1bVQ4EkCy1gqb/+Lf+1mditIlVOE+qX1rZNlIT/CTHES3dnds8UAe 8bFiT7vq9YK673sbhbFEKN13qIGner+rhhdPrkNWhkrcZmPT96oFvRxtJitk4UeWzLCp p6SlC2Rvg3Oq1Ifb2CrDrQc+bCU7UGM4XcG8AWH0QMAHT7LFQrr+QkUq5acgbyBBk/jI uWOQ== 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=hDqRpuaN4PvvGQUgBdd+SN7are6DfzlZ1XCPEcl9Rv4=; b=LpG/S/asLJYjmNoctbfzpNN/rL60e7A821w1Tt99QUW+zsmHSW2K+1gxZwheavhKBS ybmGayDdNwdu51CcQUxxPxJJXnlTCgs7y+b2/cAb546hsFuCRuA2GGyYiGtNgMSuN7cE 3ea6jTT8IlaSX6K2z2U7p40Q4RtB0AYhGV5lLcn/bDqUtYHEsha0URr2vCb5TRej4G4C sy4aVxFlOqj+BV4JvaQ6y7zr1Ue1wcPAiU2druQcf44pxPrES0V/WLsOmxLR7HdZTCq8 RcRpv7p3+nXUynMYX2RkUILT786j3YQ4GKVLR0VrzgGVbflx48EuGQ7e+31hEzlTvJx/ RstA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VFygFQ5l; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w27-20020aa7955b000000b0063aff3e35ddsi4157895pfq.303.2023.04.14.04.02.23; Fri, 14 Apr 2023 04:02:40 -0700 (PDT) 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=VFygFQ5l; 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 S230149AbjDNK73 (ORCPT + 99 others); Fri, 14 Apr 2023 06:59:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbjDNK72 (ORCPT ); Fri, 14 Apr 2023 06:59:28 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D04A69ECF; Fri, 14 Apr 2023 03:59:18 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33EAS9kH012550; Fri, 14 Apr 2023 10:58:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=hDqRpuaN4PvvGQUgBdd+SN7are6DfzlZ1XCPEcl9Rv4=; b=VFygFQ5l6Aii6XwSAr2WkGp9AYBajN3JI95LN+DlfIiFknw97dshJYwNZ9nFOWSv4WIE 7E92z2vGOFWFSUBbSq3B9S0qSO28HBZcvEg14gki14jZscDlMhivtbQ5V166ZYE+P21i 0otgAN0ScNhQ9qAxxhPy+EaeF9F8CCCeiBR+9YjDfXk+tVFWHbqoItPB3f/oDVw0Jcyt w4vX9KfCkRjKc9wfwrTSy/O0VoRDu5MA1XL0oXdDLwV0LnRsAl54/VG/nn1dEi6zYZlE dci8vOyxscXC1ePD6GHcoTam7Z6HBImaz6l5mbVBoiBvcjxY5qOdiIXpppANvL7tUs/R Kw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pxdtek2x7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Apr 2023 10:58:45 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33EAwiWu002691 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Apr 2023 10:58:44 GMT Received: from [10.216.10.230] (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.42; Fri, 14 Apr 2023 03:58:35 -0700 Message-ID: <0fb3c4da-f0e0-eb14-2194-cbf8703f82ab@quicinc.com> Date: Fri, 14 Apr 2023 16:28:31 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH V12 3/4] arm64: dts: qcom: Add support for ipq9574 SoC and RDP433 variant Content-Language: en-US To: Konrad Dybcio , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , References: <20230410135948.11970-1-quic_devipriy@quicinc.com> <20230410135948.11970-4-quic_devipriy@quicinc.com> <411c8a57-9c9e-c799-91c4-5338f9d15799@linaro.org> From: Devi Priya In-Reply-To: <411c8a57-9c9e-c799-91c4-5338f9d15799@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed 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-ORIG-GUID: w6lTem9mOtoXIEecZ11mV2-6CyvKON3z X-Proofpoint-GUID: w6lTem9mOtoXIEecZ11mV2-6CyvKON3z X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-14_05,2023-04-14_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=999 clxscore=1015 spamscore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 mlxscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304140099 X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 4/14/2023 4:27 PM, Konrad Dybcio wrote: > > > On 14.04.2023 12:01, Devi Priya wrote: >> >> >> On 4/13/2023 2:16 AM, Konrad Dybcio wrote: >>> >>> >>> On 10.04.2023 15:59, Devi Priya wrote: >>>> Add initial device tree support for Qualcomm IPQ9574 SoC and >>>> Reference Design Platform(RDP) 433 which is based on IPQ9574 >>>> family of SoCs >>>> >>>> Co-developed-by: Anusha Rao >>>> Signed-off-by: Anusha Rao >>>> Co-developed-by: Poovendhan Selvaraj >>>> Signed-off-by: Poovendhan Selvaraj >>>> Signed-off-by: Devi Priya >>>> --- >>> >>>> +    soc: soc@0 { >>>> +        compatible = "simple-bus"; >>>> +        #address-cells = <1>; >>>> +        #size-cells = <1>; >>>> +        ranges = <0 0 0 0xffffffff>; >>> this is equal to: >>> >>> ranges; >> >> Konrad, on updating (ranges = <0 0 0 0xffffffff>; --> ranges;) >> we see the below warnings: >> arch/arm64/boot/dts/qcom/ipq9574.dtsi:103.3-10: Warning (ranges_format): >> /soc@0:ranges: empty "ranges" property but its #address-cells (1) >> differs from / (2) >> arch/arm64/boot/dts/qcom/ipq9574.dtsi:103.3-10: Warning (ranges_format): /soc@0:ranges: empty "ranges" property but its #size-cells (1) differs >> from / (2) >> >> Looks like, empty ranges property isn't supported if the parent and >> child address spaces are non-identical. >> Would you suggest to retain the ranges as such? >> (ranges = <0 0 0 0xffffffff>;) >> >> Thanks, >> Devi Priya > Oh right, you have address/size cells = 2 at the top level. > Forget about this change. Yup, thanks! Best Regards, Devi Priya > > Konrad >>> >>> Could you fix that up when applying, Bjorn, should there be >>> no other issues? >>> >>> Reviewed-by: Konrad Dybcio >>> >> Thank you! >>> Konrad >>> >>>> + >>>> +        tlmm: pinctrl@1000000 { >>>> +            compatible = "qcom,ipq9574-tlmm"; >>>> +            reg = <0x01000000 0x300000>; >>>> +            interrupts = ; >>>> +            gpio-controller; >>>> +            #gpio-cells = <2>; >>>> +            gpio-ranges = <&tlmm 0 0 65>; >>>> +            interrupt-controller; >>>> +            #interrupt-cells = <2>; >>>> + >>>> +            uart2_pins: uart2-state { >>>> +                pins = "gpio34", "gpio35"; >>>> +                function = "blsp2_uart"; >>>> +                drive-strength = <8>; >>>> +                bias-disable; >>>> +            }; >>>> +        }; >>>> + >>>> +        gcc: clock-controller@1800000 { >>>> +            compatible = "qcom,ipq9574-gcc"; >>>> +            reg = <0x01800000 0x80000>; >>>> +            clocks = <&xo_board_clk>, >>>> +                 <&sleep_clk>, >>>> +                 <0>, >>>> +                 <0>, >>>> +                 <0>, >>>> +                 <0>, >>>> +                 <0>; >>>> +            #clock-cells = <1>; >>>> +            #reset-cells = <1>; >>>> +            #power-domain-cells = <1>; >>>> +        }; >>>> + >>>> +        sdhc_1: mmc@7804000 { >>>> +            compatible = "qcom,ipq9574-sdhci", "qcom,sdhci-msm-v5"; >>>> +            reg = <0x07804000 0x1000>, <0x07805000 0x1000>; >>>> +            reg-names = "hc", "cqhci"; >>>> + >>>> +            interrupts = , >>>> +                     ; >>>> +            interrupt-names = "hc_irq", "pwr_irq"; >>>> + >>>> +            clocks = <&gcc GCC_SDCC1_AHB_CLK>, >>>> +                 <&gcc GCC_SDCC1_APPS_CLK>, >>>> +                 <&xo_board_clk>; >>>> +            clock-names = "iface", "core", "xo"; >>>> +            non-removable; >>>> +            status = "disabled"; >>>> +        }; >>>> + >>>> +        blsp1_uart2: serial@78b1000 { >>>> +            compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; >>>> +            reg = <0x078b1000 0x200>; >>>> +            interrupts = ; >>>> +            clocks = <&gcc GCC_BLSP1_UART3_APPS_CLK>, >>>> +                 <&gcc GCC_BLSP1_AHB_CLK>; >>>> +            clock-names = "core", "iface"; >>>> +            status = "disabled"; >>>> +        }; >>>> + >>>> +        intc: interrupt-controller@b000000 { >>>> +            compatible = "qcom,msm-qgic2"; >>>> +            reg = <0x0b000000 0x1000>,  /* GICD */ >>>> +                  <0x0b002000 0x2000>,  /* GICC */ >>>> +                  <0x0b001000 0x1000>,  /* GICH */ >>>> +                  <0x0b004000 0x2000>;  /* GICV */ >>>> +            #address-cells = <1>; >>>> +            #size-cells = <1>; >>>> +            interrupt-controller; >>>> +            #interrupt-cells = <3>; >>>> +            interrupts = ; >>>> +            ranges = <0 0x0b00c000 0x3000>; >>>> + >>>> +            v2m0: v2m@0 { >>>> +                compatible = "arm,gic-v2m-frame"; >>>> +                reg = <0x00000000 0xffd>; >>>> +                msi-controller; >>>> +            }; >>>> + >>>> +            v2m1: v2m@1000 { >>>> +                compatible = "arm,gic-v2m-frame"; >>>> +                reg = <0x00001000 0xffd>; >>>> +                msi-controller; >>>> +            }; >>>> + >>>> +            v2m2: v2m@2000 { >>>> +                compatible = "arm,gic-v2m-frame"; >>>> +                reg = <0x00002000 0xffd>; >>>> +                msi-controller; >>>> +            }; >>>> +        }; >>>> + >>>> +        timer@b120000 { >>>> +            compatible = "arm,armv7-timer-mem"; >>>> +            reg = <0x0b120000 0x1000>; >>>> +            #address-cells = <1>; >>>> +            #size-cells = <1>; >>>> +            ranges; >>>> + >>>> +            frame@b120000 { >>>> +                reg = <0x0b121000 0x1000>, >>>> +                      <0x0b122000 0x1000>; >>>> +                frame-number = <0>; >>>> +                interrupts = , >>>> +                         ; >>>> +            }; >>>> + >>>> +            frame@b123000 { >>>> +                reg = <0x0b123000 0x1000>; >>>> +                frame-number = <1>; >>>> +                interrupts = ; >>>> +                status = "disabled"; >>>> +            }; >>>> + >>>> +            frame@b124000 { >>>> +                reg = <0x0b124000 0x1000>; >>>> +                frame-number = <2>; >>>> +                interrupts = ; >>>> +                status = "disabled"; >>>> +            }; >>>> + >>>> +            frame@b125000 { >>>> +                reg = <0x0b125000 0x1000>; >>>> +                frame-number = <3>; >>>> +                interrupts = ; >>>> +                status = "disabled"; >>>> +            }; >>>> + >>>> +            frame@b126000 { >>>> +                reg = <0x0b126000 0x1000>; >>>> +                frame-number = <4>; >>>> +                interrupts = ; >>>> +                status = "disabled"; >>>> +            }; >>>> + >>>> +            frame@b127000 { >>>> +                reg = <0x0b127000 0x1000>; >>>> +                frame-number = <5>; >>>> +                interrupts = ; >>>> +                status = "disabled"; >>>> +            }; >>>> + >>>> +            frame@b128000 { >>>> +                reg = <0x0b128000 0x1000>; >>>> +                frame-number = <6>; >>>> +                interrupts = ; >>>> +                status = "disabled"; >>>> +            }; >>>> +        }; >>>> +    }; >>>> + >>>> +    timer { >>>> +        compatible = "arm,armv8-timer"; >>>> +        interrupts = , >>>> +                 , >>>> +                 , >>>> +                 ; >>>> +    }; >>>> +};