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.0 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 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 DCCF9C433E0 for ; Tue, 5 Jan 2021 18:57:01 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 7F0AB22D04 for ; Tue, 5 Jan 2021 18:57:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7F0AB22D04 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject: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=yL9YN791PenzO3gg6pI+eKEB9HsWCTYYp8BOqMb8+p4=; b=CElGBJ5hUH/4QZrv+lg5yW+fd oLwxtSeGOfXRZ92JJCkjtYHhbrWWBDXHfaxgVrMCh9qbaecS1X3Y1oOan2xosGTz87EKv6k5kcawB nrT5zy0kfmzHTwSSCX/yF94xVCwNDohyvTJSDKc1M25h42Bwm65zFCSdMQXMIlRhCLPNxXzc3zhKq vjFJxc6K8sHYJ/z1MzUDOKWiS5SUXnIS1sQxEH3Gew4a3Ni8CQb2M7x4Wly8z3XCVPu1NuCLVpcz1 Q7hYK1vglmwFpM4AsHjPNFi28l4zRewg9QPVUpXu66/M1BsPt+cxFaNwvBofF8RpNYkL4IzwFxTui OSZ44PCFw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwrU7-0004Jk-Oh; Tue, 05 Jan 2021 18:55:11 +0000 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwrU4-0004JK-B2 for linux-arm-kernel@lists.infradead.org; Tue, 05 Jan 2021 18:55:09 +0000 Received: by mail-ot1-x335.google.com with SMTP id 11so654538oty.9 for ; Tue, 05 Jan 2021 10:55:07 -0800 (PST) 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=+2rmJ7rO2uS2hBmyj+YzKv9yfpBQq9dsoeHnIPlFvL0=; b=ER6jP+3xUTRXUs5XMtJGCq7c2fOPisokSs6cY/tiRt+TLtUBsv9eXNx02wpNyr+7iT N/VYrWOnbH3OoBxp9NRoBDgO8PIQjeFQrNrZ24dksdLekiswnmPYMH0REZXeFAuRDNXg YfdcGr6mPPB+7zNrShW8o7dikqkhSprMbwvdFT00iKazT/YboEJExVg0/eB6woDR2lnu BFYb+bzh3uHu2yARgQuqC07TVBWYo5QCWgWa6IpT0fLwtEr2o9XGnPPt4AIV2yBvPNtT aQ7jJGd5KP1wyKVByKItjjZAWbiQyD7lGnP1EqgJnn5eHycsHcseuN4a7KXpsDyRnp2f 9SIg== 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=+2rmJ7rO2uS2hBmyj+YzKv9yfpBQq9dsoeHnIPlFvL0=; b=lJV+4LF1Qvn+KgijSe32Oi4zOTkmHn8VFI1gM7pHbdSDkREnjfClgFoE753J3ZZ7Zr 7WzhsqwrJmHvt+l94lSVONgd2Dof9b/AO5T1eFAeZgye9QDm4dhLV0SCF1lkXgyWR0vK Z8KjunIyfnT/ERMA5oXY1Ra8MNpDu3G4aUsN6k8jC/EXRCXK1PDRJG5gD6jkxlV7bii+ O85DNJ2sDN6XdyMn/0ScYGEKfysrbGzT81vYaw0hgne59Gb5YIPei9uLTJ0x1m9D0Qw3 JbLNoiTfVrIhtvhFzYz1PBLWLosjcE06JUMO46aPAX/aPAB1eTzl1Bsq50D+gciUlMbL 48UA== X-Gm-Message-State: AOAM533QnQo6iC4X0AbThsOUbdnLUeieqRsvEokma76x52AA2uiYOdC7 2rJb31U3QTJ/JMhf5iyWq2aKew== X-Google-Smtp-Source: ABdhPJyNjwP47POIj0FHQbuOix0/540C0CI1ZQ5RQ8zhgdhqr5aDnyUpcIGhTI16w4f+pIJuZM4pvA== X-Received: by 2002:a9d:224:: with SMTP id 33mr705506otb.98.1609872906029; Tue, 05 Jan 2021 10:55:06 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id c14sm17589otp.19.2021.01.05.10.55.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jan 2021 10:55:05 -0800 (PST) Date: Tue, 5 Jan 2021 12:55:03 -0600 From: Bjorn Andersson To: Varadarajan Narayanan Subject: Re: [PATCH 6/7] arm64: dts: Add ipq5018 SoC and MP03 board support Message-ID: References: <1601270140-4306-1-git-send-email-varada@codeaurora.org> <1601270140-4306-7-git-send-email-varada@codeaurora.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1601270140-4306-7-git-send-email-varada@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210105_135508_725015_9A74A459 X-CRM114-Status: GOOD ( 21.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, nsekar@codeaurora.org, sboyd@kernel.org, catalin.marinas@arm.com, mturquette@baylibre.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, agross@kernel.org, p.zabel@pengutronix.de, linux-arm-msm@vger.kernel.org, sricharan@codeaurora.org, will@kernel.org, linus.walleij@linaro.org, linux-arm-kernel@lists.infradead.org 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 28 Sep 00:15 CDT 2020, Varadarajan Narayanan wrote: > Add initial device tree support for the Qualcomm IPQ5018 SoC and > MP03.1-C2 board. > > Signed-off-by: Varadarajan Narayanan > --- > Documentation/devicetree/bindings/arm/qcom.yaml | 7 + > arch/arm64/boot/dts/qcom/Makefile | 1 + > arch/arm64/boot/dts/qcom/ipq5018-mp03.1-c2.dts | 30 ++++ > arch/arm64/boot/dts/qcom/ipq5018.dtsi | 201 ++++++++++++++++++++++++ > 4 files changed, 239 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/ipq5018-mp03.1-c2.dts > create mode 100644 arch/arm64/boot/dts/qcom/ipq5018.dtsi > > diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml > index 6031aee..694063f 100644 > --- a/Documentation/devicetree/bindings/arm/qcom.yaml > +++ b/Documentation/devicetree/bindings/arm/qcom.yaml > @@ -28,6 +28,7 @@ description: | > apq8074 > apq8084 > apq8096 > + ipq5018 > ipq6018 > ipq8074 > mdm9615 > @@ -49,6 +50,7 @@ description: | > hk01 > idp > liquid > + mp03 > mtp > qrd > sbc > @@ -142,6 +144,11 @@ properties: > > - items: > - enum: > + - qcom,ipq5018-mp03 > + - const: qcom,ipq5018 > + > + - items: > + - enum: > - qcom,ipq8064-ap148 > - const: qcom,ipq8064 > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index d8f1466..3873970 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -4,6 +4,7 @@ dtb-$(CONFIG_ARCH_QCOM) += apq8096-db820c.dtb > dtb-$(CONFIG_ARCH_QCOM) += apq8096-ifc6640.dtb > dtb-$(CONFIG_ARCH_QCOM) += ipq6018-cp01-c1.dtb > dtb-$(CONFIG_ARCH_QCOM) += ipq8074-hk01.dtb > +dtb-$(CONFIG_ARCH_QCOM) += ipq5018-mp03.1-c2.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8916-mtp.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8916-longcheer-l8150.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a3u-eur.dtb > diff --git a/arch/arm64/boot/dts/qcom/ipq5018-mp03.1-c2.dts b/arch/arm64/boot/dts/qcom/ipq5018-mp03.1-c2.dts > new file mode 100644 > index 00000000..41bb3b3 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/ipq5018-mp03.1-c2.dts > @@ -0,0 +1,30 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) > +/* > + * IPQ5018 CP01 board device tree source > + * > + * Copyright (c) 2019, The Linux Foundation. All rights reserved. > + */ > + > +/dts-v1/; > + > +#include "ipq5018.dtsi" > + > +/ { > + model = "Qualcomm Technologies, Inc. IPQ5018/AP-MP03-C2"; > + compatible = "qcom,ipq5018-mp03", "qcom,ipq5018"; > + > + aliases { > + serial0 = &blsp1_uart1; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + bootargs-append = " swiotlb=1"; > + }; > +}; > + > +&blsp1_uart1 { > + pinctrl-0 = <&serial_1_pins>; > + pinctrl-names = "default"; > + status = "ok"; > +}; > diff --git a/arch/arm64/boot/dts/qcom/ipq5018.dtsi b/arch/arm64/boot/dts/qcom/ipq5018.dtsi > new file mode 100644 > index 00000000..12492a4 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/ipq5018.dtsi > @@ -0,0 +1,201 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) > +/* > + * IPQ5018 SoC device tree source > + * > + * Copyright (c) 2019, The Linux Foundation. All rights reserved. > + */ > + > +#include > +#include > +#include > + > +/ { > + #address-cells = <2>; > + #size-cells = <2>; > + interrupt-parent = <&intc>; > + > + clocks { > + sleep_clk: sleep-clk { > + compatible = "fixed-clock"; > + clock-frequency = <32000>; > + #clock-cells = <0>; > + }; > + > + xo: xo { > + compatible = "fixed-clock"; > + clock-frequency = <24000000>; > + #clock-cells = <0>; > + }; > + }; > + > + cpus: cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + > + CPU0: cpu@0 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + reg = <0x0>; > + enable-method = "psci"; > + next-level-cache = <&L2_0>; > + }; > + > + CPU1: cpu@1 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + enable-method = "psci"; > + reg = <0x1>; > + next-level-cache = <&L2_0>; > + }; > + > + L2_0: l2-cache { > + compatible = "cache"; > + cache-level = <0x2>; > + }; > + }; > + > + pmuv8: pmu { > + compatible = "arm,cortex-a53-pmu"; > + interrupts = + IRQ_TYPE_LEVEL_HIGH)>; > + }; > + > + psci: psci { > + compatible = "arm,psci-1.0"; > + method = "smc"; > + }; > + > + reserved-memory { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + tz: tz@4ac00000 { > + reg = <0x0 0x4ac00000 0x0 0x00400000>; > + no-map; > + }; > + }; > + > + soc: soc { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0 0 0 0xffffffff>; > + dma-ranges; You can't have an empty dma-ranges when the bus and the parent node has different #address/size-cells. See 77e9c198b155 ("arm64: dts: qcom: clear the warnings caused by empty dma-ranges") > + compatible = "simple-bus"; > + > + tlmm: pinctrl@1000000 { > + compatible = "qcom,ipq5018-pinctrl"; > + reg = <0x01000000 0x300000>; > + interrupts = ; > + gpio-controller; > + #gpio-cells = <2>; > + gpio-ranges = <&tlmm 0 80>; > + interrupt-controller; > + #interrupt-cells = <2>; > + > + serial_1_pins: serial1-pinmux { > + pins = "gpio31", "gpio32", "gpio33", "gpio34"; > + function = "blsp1_uart1"; > + drive-strength = <8>; > + bias-pull-down; > + }; > + }; > + > + gcc: gcc@1800000 { > + compatible = "qcom,gcc-ipq5018"; > + reg = <0x01800000 0x80000>; > + clocks = <&xo>, <&sleep_clk>; > + clock-names = "xo", "sleep_clk"; > + #clock-cells = <1>; > + #reset-cells = <1>; > + }; > + > + blsp1_uart1: serial@78af000 { > + compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; > + reg = <0x078af000 0x200>; > + interrupts = ; > + clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>, > + <&gcc GCC_BLSP1_AHB_CLK>; > + clock-names = "core", "iface"; > + status = "disabled"; > + }; > + > + intc: interrupt-controller@b000000 { > + compatible = "qcom,msm-qgic2"; > + interrupt-controller; > + #interrupt-cells = <0x3>; > + reg = <0x0b000000 0x1000>, /*GICD*/ > + <0x0b002000 0x1000>, /*GICC*/ > + <0x0b001000 0x1000>, /*GICH*/ > + <0x0b004000 0x1000>; /*GICV*/ > + interrupts = ; > + }; > + > + timer { This isn't a mmio device, so move it outside /soc Thanks, Bjorn > + compatible = "arm,armv8-timer"; > + interrupts = , > + , > + , > + ; > + }; > + > + timer@b120000 { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + compatible = "arm,armv7-timer-mem"; > + reg = <0x0b120000 0x1000>; > + clock-frequency = <19200000>; > + > + frame@b120000 { > + frame-number = <0>; > + interrupts = , > + ; > + reg = <0x0b121000 0x1000>, > + <0x0b122000 0x1000>; > + }; > + > + frame@b123000 { > + frame-number = <1>; > + interrupts = ; > + reg = <0xb123000 0x1000>; > + status = "disabled"; > + }; > + > + frame@b124000 { > + frame-number = <2>; > + interrupts = ; > + reg = <0x0b124000 0x1000>; > + status = "disabled"; > + }; > + > + frame@b125000 { > + frame-number = <3>; > + interrupts = ; > + reg = <0x0b125000 0x1000>; > + status = "disabled"; > + }; > + > + frame@b126000 { > + frame-number = <4>; > + interrupts = ; > + reg = <0x0b126000 0x1000>; > + status = "disabled"; > + }; > + > + frame@b127000 { > + frame-number = <5>; > + interrupts = ; > + reg = <0x0b127000 0x1000>; > + status = "disabled"; > + }; > + > + frame@b128000 { > + frame-number = <6>; > + interrupts = ; > + reg = <0x0b128000 0x1000>; > + status = "disabled"; > + }; > + }; > + }; > +}; > -- > 2.7.4 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel