Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp708835pxj; Wed, 16 Jun 2021 11:42:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEyXmLMwDkMbD0mvDRuQjiYxY/NW8zeRLxcCz+/hTB8N4em8p5dnJ6CXvuHexRRQJKwrZI X-Received: by 2002:a50:d7d5:: with SMTP id m21mr1408146edj.134.1623868941951; Wed, 16 Jun 2021 11:42:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623868941; cv=none; d=google.com; s=arc-20160816; b=O3hD99Bn3bD5KCS5J2I3I/6IeOFpxglB3a4DaWlJQqShm4Aq4RM5EXYhPTpKClVQQd LsRLM+Jxhcv5hS0rGjECda2E8WHALkqBLOIoWqmEHZ+3mp4e9RQawgLQNwI0wsCC0dw3 hf8ThBVLsBzMM6NoyI0t796GRycSA+zyoLXje6agQG9dYhHdKBzWC/iwfKFtgsa4uzm0 nVQvleKL9H0lfX9AmotXYFlx5i4wdcrl06bcVDbW9UknCn9h9/bzRT684o0L23SQ5p2c JqF1ciu3taZB1w7MHojRt7Z3rZLBIFrN4jo/3H8xaOKnSKtLouBV0gDWSBiTWJsPVG9l A4Gw== 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 :cc:to:subject:from:date; bh=hUfwIEiQ2UOcf0OjyusPtWOu5UWodHYSNW1bMXcUdrg=; b=e9yPCYTlhAUELn3qEh9b+Zq8onG0yOD/azDEH0vQgtQo6J3ndRN3PHyM5A/8K+jIUa 2UlQThw0/05UEQsIjCqfe3MX/CNTMAo9fuqcfDH8R6eBSfUwmBQLbEhHPFhUBwm6oEt1 FQxj45qZU5u3dQVMaAZgOLWK0s+qzHNLyxiUDzbOMeFJuAfeHmEZ3hKpEevWHHzYz8R9 ++PSSCjhSSqwai6egBKqa5dXRRJFjQ42gbbYhRmt7gW159Z+l/t7jJewGTeN9mwIPdTS PWaHJXKnPgmXDcwad7WpC7Br3tN2wISXLHFMhSDjEYgSOofTAB96b6+m18mhH9kAaomm OqSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si2937675ejf.128.2021.06.16.11.41.59; Wed, 16 Jun 2021 11:42:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232558AbhFPNEE (ORCPT + 99 others); Wed, 16 Jun 2021 09:04:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232842AbhFPNED (ORCPT ); Wed, 16 Jun 2021 09:04:03 -0400 Received: from relay06.th.seeweb.it (relay06.th.seeweb.it [IPv6:2001:4b7a:2000:18::167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D3B7C06175F for ; Wed, 16 Jun 2021 06:01:56 -0700 (PDT) Received: from [192.168.1.79] (bband-dyn73.178-41-129.t-com.sk [178.41.129.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id B28843ED71; Wed, 16 Jun 2021 15:01:53 +0200 (CEST) Date: Wed, 16 Jun 2021 15:01:47 +0200 From: Martin Botka Subject: Re: [PATCH v3 1/2] arch: arm64: dts: qcom: Add support for SM6125 To: Bjorn Andersson Cc: ~postmarketos/upstreaming@lists.sr.ht, konrad.dybcio@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Andy Gross , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: In-Reply-To: References: <20210613080522.25230-1-martin.botka@somainline.org> X-Mailer: geary/40.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 15 2021 at 07:29:49 PM -0500, Bjorn Andersson wrote: > On Sun 13 Jun 03:05 CDT 2021, Martin Botka wrote: > >> This commits adds the Device tree file for SM6125 SoC. >> >> Signed-off-by: Martin Botka > > Thanks for your work on this Martin, just spotted a few minor > finishing > touches below. :) > >> --- >> Changes in V2: >> Update compatibles for mailbox & pinctrl >> Changes in V3: >> Fix reg for sdhci1 >> Replace hc_mem with hc and core_mem with core >> arch/arm64/boot/dts/qcom/sm6125.dtsi | 603 >> +++++++++++++++++++++++++++ >> 1 file changed, 603 insertions(+) >> create mode 100644 arch/arm64/boot/dts/qcom/sm6125.dtsi >> >> diff --git a/arch/arm64/boot/dts/qcom/sm6125.dtsi >> b/arch/arm64/boot/dts/qcom/sm6125.dtsi > [..] >> + soc { >> + #address-cells = <1>; >> + #size-cells = <1>; >> + ranges = <0x00 0x00 0x00 0xffffffff>; >> + compatible = "simple-bus"; >> + >> + tcsr_mutex_regs: syscon@340000 { > > It's no longer valid to have a stray syscon like this, so please > update > this in accordance with the tcsr mutex binding. > > If this platform needs to poke at the registers at the end of the > memory > region, you can do compatible = "qcom,tcsr-mutex", "syscon"; to make > it > represent both things. ack > >> + compatible = "syscon"; >> + reg = <0x00340000 0x20000>; >> + }; >> + >> + tlmm: pinctrl@500000 { >> + compatible = "qcom,sm6125-tlmm"; >> + reg = <0x00500000 0x400000>, >> + <0x00900000 0x400000>, >> + <0x00d00000 0x400000>; >> + reg-names = "west", "south", "east"; >> + interrupts = ; >> + gpio-controller; >> + gpio-ranges = <&tlmm 0 0 134>; >> + #gpio-cells = <2>; >> + interrupt-controller; >> + #interrupt-cells = <2>; >> + >> + sdc2_state_on: sdc2-on { > > As I just forced Konrad to move the on-state definition to the board > file, can you please do the same? ofc > >> + clk { >> + pins = "sdc2_clk"; >> + bias-disable; >> + drive-strength = <16>; >> + }; >> + >> + cmd { >> + pins = "sdc2_cmd"; >> + bias-pull-up; >> + drive-strength = <10>; >> + }; >> + >> + data { >> + pins = "sdc2_data"; >> + bias-pull-up; >> + drive-strength = <10>; >> + }; >> + >> + sd-cd { >> + pins = "gpio98"; >> + bias-pull-up; >> + drive-strength = <2>; >> + }; >> + }; >> + >> + sdc2_state_off: sdc2-off { > > This should be common between all boards (except possibly the cd > line), > so this is okay to share here. Do you want me to move the cd as well or do you want it to stay in here? > >> + clk { >> + pins = "sdc2_clk"; >> + bias-disable; >> + drive-strength = <2>; >> + }; >> + >> + cmd { >> + pins = "sdc2_cmd"; >> + bias-pull-up; >> + drive-strength = <2>; >> + }; >> + >> + data { >> + pins = "sdc2_data"; >> + bias-pull-up; >> + drive-strength = <2>; >> + }; >> + >> + sd-cd { >> + pins = "gpio98"; >> + bias-disable; >> + drive-strength = <2>; >> + }; >> + }; >> + }; >> + > [..] >> + >> + usb3: usb@4ef8800 { >> + compatible = "qcom,msm8996-dwc3", "qcom,dwc3"; >> + reg = <0x04ef8800 0x400>; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + ranges; >> + >> + clocks = <&gcc GCC_USB30_PRIM_MASTER_CLK>, >> + <&gcc GCC_SYS_NOC_USB3_PRIM_AXI_CLK>, >> + <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>, >> + <&gcc GCC_USB3_PRIM_CLKREF_CLK>, >> + <&gcc GCC_USB30_PRIM_SLEEP_CLK>, >> + <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>; >> + >> + assigned-clocks = <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>, >> + <&gcc GCC_USB30_PRIM_MASTER_CLK>; >> + assigned-clock-rates = <19200000>, <66666667>; >> + >> + power-domains = <&gcc USB30_PRIM_GDSC>; >> + qcom,select-utmi-as-pipe-clk; > > Stray space at the end of this line. Oopsie. > >> + status = "disabled"; >> + >> + usb3_dwc3: dwc3@4e00000 { > > These should be usb@ now. ack > >> + compatible = "snps,dwc3"; >> + reg = <0x04e00000 0xcd00>; >> + interrupts = ; >> + phys = <&hsusb_phy1>; >> + phy-names = "usb2-phy"; >> + snps,dis_u2_susphy_quirk; >> + snps,dis_enblslpm_quirk; >> + maximum-speed = "high-speed"; >> + dr_mode = "peripheral"; >> + }; >> + }; > > Thanks, > Bjorn