Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2994426imm; Mon, 24 Sep 2018 13:43:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV61aPuLv2YNS/brw31j+B9TB+VhxZyTcRhE6R8JT8cUhVjL5ZBVbQapU7d7YacGgsG1uNuv5 X-Received: by 2002:a17:902:18a:: with SMTP id b10-v6mr456880plb.62.1537821784380; Mon, 24 Sep 2018 13:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537821784; cv=none; d=google.com; s=arc-20160816; b=VH42eiGIfCFIjjB1fj40obZLbLSeno+ZiTRiVHVvgMXSfQXyt2RgTaNaPXPO6SUzyJ EdphACtiXhUHzuDlp/3i12Lg0ymEZg8GNbVOwmSCA67FefEpodNs7agGUxpa/NsbJvri VvuO+Qhz1BixLVcW0V0FGucyk88IVjHC0gjnKME8FJtXQ0qYAgnR9aemkxLWTEGM0Wev bfXbg+acztCZS8KY84IUPPMCTg+/bATGxYRrhVW+nJ+jettcl1yO3EkpDlAeqlApf1RL mT0IdR5rJvcpBJrSTYG+zRJk6jdbzuB1jBKegKz01McpPb88OFLcedg2hkwlhJ6ngxYD WT+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=sGofNUiTmZom2KfzYhnMvqOPaxJFp7PCC3gi9qTl/0w=; b=q9Vu4vzr7unqGuCcbV5zOfNEbjYLJhJt7dsNJaRDhC2XDDShV/0vhLxz1JhEs2p+YA k/XCPLVlMBtyuzAI8amfS75QUzYSvrKOa3OTqngwE/AKjwfFn54AuhF9o9QtCcwac6gL fogvwFOoY7O5WkOEI34LfttvtKbKmHZsXrF+NWLhEMwTiSptjX0f4jD23yR/KINEAuft Bn8ocRqwHILLIOczbyxjv2gdmP8Vszd0T0w+lL2vZlQuLYwJ3bb27FcfUwFbuRA6bykj zTvNzqeVAaO4qd/14VGPvz/dYf7l0dxU1/sS3yjA2BxNlCHRG89bOJ5dYV2M1683sCMc NORA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=IcT1wtbU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17-v6si288612plz.467.2018.09.24.13.42.48; Mon, 24 Sep 2018 13:43:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=IcT1wtbU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728009AbeIYCqj (ORCPT + 99 others); Mon, 24 Sep 2018 22:46:39 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38364 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727544AbeIYCqi (ORCPT ); Mon, 24 Sep 2018 22:46:38 -0400 Received: by mail-wm1-f67.google.com with SMTP id z16-v6so4946287wmi.3; Mon, 24 Sep 2018 13:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=sGofNUiTmZom2KfzYhnMvqOPaxJFp7PCC3gi9qTl/0w=; b=IcT1wtbUtuoooF6co6E/wMrcw1P4JdM5wXsrBIjVBqIFFuQqeRxq7ERr4QJ48pyD5k U2wNcDfZE3svaW/TLlYkD4i81eKthZ2FBw8Ldlj/GfvNpQM+zQauN9sNWuSzBTkMT0g+ mLODU+V5leBV3VzquPVe5iEJh/WfhH1y49NdoVoH9i7ASnICsewG9K/mJqbwZEb+YQUL UCnFQjo5CcTyjHANobjSrztYRSDFmGbz3Edta3UW3dCUXkv2NrbweMdmeSnucwR3bFhA K3OBDWyVvpTvc1eMv4ptUnAqh0QNR0a6ZWyxSDlkZP9lz7tC35bDv9WAyhPLO16nHExk rpEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=sGofNUiTmZom2KfzYhnMvqOPaxJFp7PCC3gi9qTl/0w=; b=aW8ZmQnrmwfN6R3gEruieEbr5EGJPGQ8a8keG7/AxNN60Bhr5caGxzUWujbYtzM7fp ZEXfE8NBqIqTo1UkFlt3Qu5o7bCbtI6QtVR951hg0h9gLjJ9cZtVJL30W25WcOUuO28G WV53Q/yJsqkLIbCvB0OmoKmQhLccXItUbRq3kNrpwgUfxs2sF8dplLVm8/uYw313Dgr+ qscawkmDMyEclNB9bDtoucDnVf7LQAl2ke46ZxxVGkBAFNKOZvNkiSLFD4ne+QhFcUD8 GTcfchcflAkksAgfhG98cXiAQlfnL3+29VlHKBkaHuZ2T1frHGLxeidKaqKKm8EDLibR zIcg== X-Gm-Message-State: ABuFfogobiY/uo1yEmkfcN7OY6pLBHrZHxDCcV9VONSpmlCWPutdCnLd sLd3DxvwxIlmEC5qKa/XEIV+AFU= X-Received: by 2002:a1c:668b:: with SMTP id a133-v6mr89006wmc.50.1537821755853; Mon, 24 Sep 2018 13:42:35 -0700 (PDT) Received: from android-dhcp-8-1-0-d4-38-9c-a2-1f-05.home (host86-147-9-252.range86-147.btcentralplus.com. [86.147.9.252]) by smtp.gmail.com with ESMTPSA id 75-v6sm118218wml.21.2018.09.24.13.42.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 13:42:35 -0700 (PDT) Date: Mon, 24 Sep 2018 21:42:29 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <20180924191929.GQ1367@tuxbook-pro> References: <20180811162549.12312-1-ctatlor97@gmail.com> <20180924191929.GQ1367@tuxbook-pro> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] arm64: dts: sdm630 SoC and Sony Pioneer (Xperia XA2) support To: Bjorn Andersson CC: linux-arm-msm@vger.kernel.org, Andy Gross , David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Craig Message-ID: <18147804-E195-4A4F-B215-77E8E4FF7C88@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24 September 2018 20:19:29 BST, Bjorn Andersson wrote: >On Sat 11 Aug 09:25 PDT 2018, Craig Tatlor wrote: > >> Initial device tree support for Qualcomm SDM630 SoC and >> Sony Pioneer (Xperia XA2)=2E >>=20 >> SDM630 is based off of the SDM660 soc and all SDM660 specific drivers >are >> compatible with it=2E SDM660 is also based off of MSM8998 so it uses >some >> of its drivers aswell=2E > >Consider adding both sdm630 and sdm660 compatibles to the bindings and >drivers and use the right one in the dts, in case we find details that >differs in the future=2E This includes pinctrl and GCC? > >>=20 >> The device tree is based on the CAF 4=2E4 kernel tree=2E >>=20 >> The device can be booted into the initrd with a shell over UART=2E >>=20 >> Signed-off-by: Craig Tatlor >[=2E=2E] >> diff --git a/arch/arm64/boot/dts/qcom/sdm630-pins=2Edtsi >b/arch/arm64/boot/dts/qcom/sdm630-pins=2Edtsi >> new file mode 100644 >> index 000000000000=2E=2E78b79c1076f1 >> --- /dev/null >> +++ b/arch/arm64/boot/dts/qcom/sdm630-pins=2Edtsi >> @@ -0,0 +1,17 @@ >> +// SPDX-License-Identifier: GPL-2=2E0 >> +/* Copyright (c) 2018, Craig Tatlor=2E */ >> + >> +&tlmm { >> + blsp1_uart1_default: blsp1_uart1_default { >> + pinmux { >> + pins =3D "gpio0", "gpio1", "gpio2", "gpio3"; >> + function =3D "gpio"; > >Please put these in the sdm630=2Edtsi directly, rather than spreading the >pins out in a separate file=2E > Okay, just followed what 8996 did >> + }; >> + >> + pinconf { >> + pins =3D "gpio0", "gpio1", "gpio2", "gpio3"; >> + drive-strength =3D <2>; >> + bias-disable; > >Please extend &blsp1_uart1_default in the pioneer dtsi with these >"electrical properties"=2E Are you meaning to put this in the pioneer DTS or just drive strength and = bias? > >> + }; >> + }; >> +}; >[=2E=2E] >> diff --git a/arch/arm64/boot/dts/qcom/sdm630-pioneer=2Edtsi >b/arch/arm64/boot/dts/qcom/sdm630-pioneer=2Edtsi >> new file mode 100644 >> index 000000000000=2E=2E512792c23369 >> --- /dev/null >> +++ b/arch/arm64/boot/dts/qcom/sdm630-pioneer=2Edtsi >> @@ -0,0 +1,22 @@ >> +// SPDX-License-Identifier: GPL-2=2E0 >> +/* Copyright (c) 2018, Craig Tatlor=2E */ >> + >> +#include "sdm630=2Edtsi" >> + >> +/ { >> + aliases { >> + serial0 =3D &blsp1_uart1; >> + }; >> + >> + chosen { >> + stdout-path =3D "serial0:115200n8"; >> + }; >> +}; >> + >> +&soc { >> + serial@c170000 { > >Please reference this by &blsp1_uart1, rather than duplicating the >hierarchy=2E Okay, should the same still apply once more stuff is in soc? Or should I u= se references for them? > >> + status =3D "okay"; >> + pinctrl-names =3D "default"; >> + pinctrl-0 =3D <&blsp1_uart1_default>; >> + }; >> +}; >> diff --git a/arch/arm64/boot/dts/qcom/sdm630=2Edtsi >b/arch/arm64/boot/dts/qcom/sdm630=2Edtsi >> new file mode 100644 >> index 000000000000=2E=2E8a544979b7c0 >> --- /dev/null >> +++ b/arch/arm64/boot/dts/qcom/sdm630=2Edtsi >> @@ -0,0 +1,383 @@ >> +// SPDX-License-Identifier: GPL-2=2E0 >> +/* Copyright (c) 2018, Craig Tatlor=2E */ >> + >> +#include >> +#include >> + >> +/ { >> + model =3D "Qualcomm Technologies, Inc=2E SDM630"; > >We expect the board to always override this, so no need to specify it >here=2E Yup >> + >> + interrupt-parent =3D <&intc>; >> + >> + qcom,msm-id =3D <318 0x0>; >> + >> + #address-cells =3D <2>; >> + #size-cells =3D <2>; >> + >> + chosen { }; >> + >> + memory { >> + device_type =3D "memory"; >> + /* We expect the bootloader to fill in the reg */ >> + reg =3D <0 0 0 0>; >> + }; >> + >> + > >Extra empty line=2E Okay >> + cpus { >[=2E=2E] >> + >> + timer { > >Please sort these nodes by name, except for "soc" which is convenient >to have last=2E Okay > >> + compatible =3D "arm,armv8-timer"; >> + interrupts =3D , >> + , >> + , >> + ; >> + }; >[=2E=2E] >> + firmware { >> + scm { >> + compatible =3D "qcom,scm-sdm660"; >> + }; >> + }; >> + >> + > >Extra empty line=2E Okay > >> + rpm-glink { >> + compatible =3D "qcom,glink-rpm"; >> + >> + interrupts =3D ; >> + >> + qcom,rpm-msg-ram =3D <&rpm_msg_ram>; >> + >> + mboxes =3D <&apcs_glb 0>; > >Remove a few of these extra empty lines and add the rpm_requests >channel >here while you're at it: > Sure > rpm_requests: glink-channel { > compatible =3D "qcom,rpm-sdm660"; > qcom,glink-channels =3D "rpm_requests"; > }; > >> + }; >> + >> + soc: soc { >> + #address-cells =3D <1>; >> + #size-cells =3D <1>; >> + ranges =3D <0 0 0 0xffffffff>; >> + compatible =3D "simple-bus"; >> + >> + intc: interrupt-controller@17a00000 { > >Please sort these nodes by base address=2E > Will do >> + compatible =3D "arm,gic-v3"; >> + reg =3D <0x17a00000 0x10000>, >> + <0x17b00000 0x100000>; >> + #interrupt-cells =3D <3>; >> + #address-cells =3D <1>; >> + #size-cells =3D <1>; >> + ranges; >> + interrupt-controller; >> + #redistributor-regions =3D <1>; >> + redistributor-stride =3D <0x0 0x20000>; >> + interrupts =3D ; >> + }; >> + >> + gcc: clock-controller@100000 { >> + compatible =3D "qcom,gcc-sdm660"; >> + #clock-cells =3D <1>; >> + #reset-cells =3D <1>; >> + #power-domain-cells =3D <1>; >> + reg =3D <0x100000 0x94000>; > >Please 0-pad addresses in "reg", makes it easier to sort them as well >(but keep the @address after the node name unpadded) Sure, how much should I pad up to? > >> + }; >> + >[=2E=2E] >> + rpm_msg_ram: memory@778000 { >> + compatible =3D "qcom,rpm-msg-ram"; >> + reg =3D <0x778000 0x7000>; >> + }; >> + >> + apcs_glb: mailbox@17911000 { >> + compatible =3D "qcom,msm8998-apcs-hmss-global"; > >Please update the apcs ipc driver with a sdm660 compatible and update >this=2E Right > >> + reg =3D <0x17911000 0x1000>; >> + >> + #mbox-cells =3D <1>; >> + }; > >Regards, >Bjorn