Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp801515qtx; Mon, 31 Oct 2022 14:18:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM40HFQP17c8Qybo07qsO5hdwGRRCQiR/sag8fz/LiGtb3aOxHhAuXeOQ51aiPbb2V/L6VRo X-Received: by 2002:a05:6a00:2481:b0:56b:dc84:7ad1 with SMTP id c1-20020a056a00248100b0056bdc847ad1mr16586463pfv.43.1667251128042; Mon, 31 Oct 2022 14:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667251128; cv=none; d=google.com; s=arc-20160816; b=UltIZlp7pXHJ8wxfQYbVT9xWDSDosl0Q94a4UzV3y1DdhpxohbbF1sguPHYGWdBk7/ Kv0eH2h5LnRANujvD/QknJIRsqRDQoVD57DdE/Es7CTIxy7McRmZjC2D6MFOYetsyY/U /1n+2p7SQ6ZJhzApdmdswtL7x/BqpLOeNrgJL4Kwm4Mb9G8QfY/x/KYtzbfcbANW1bwV 8MIVTrJPy72ZA7+p+mdK2+i9fTEIXIBJ7c7ESmm22OoF300sqYNAWX5vswvlfYgFm45I oEdYTlaeyZn0wkZ6cAzzarF4CIpqCJTAYOr/UM1kYcAoL3eLVWKD0O2ACl72r2pkoPVh GgWA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=nJ/BxdWUY75M9U38fNjhjnCRe+XVgADOy9QtLlPJCUw=; b=oqGT/UdIr4YoAnuPLt7XCijmBaaM+aSOJixhjROJVRr33kKzKU53jhJSbWRs+DhDdI naiwaeRwu/S9hIq5Zx1Tfhsk+sAzKRaPZuFDWggRY79aDxUAm+zJjl12F4t4TfYE37O4 s4Q9c2Qn3vvgTg76xvlOnorHnfOMMFmmIlSChqqXGJHjXSKv9asNPF9pYg180nROheRg 0+CPXo0r46jvg2a8qkGFkFnIWAjUcTKbhVpNzmawFCLqJnwD3NgXJo8Sqoho5prGeiCy eovNuXKqgWvP8IYV3aNx9MYyUIjdBP5aM1BA5MT4Y6ZPKKfI1zbhwWongbikuESbDJPP Fb/Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k1-20020a63ff01000000b00456b507fb2asi10474731pgi.446.2022.10.31.14.18.33; Mon, 31 Oct 2022 14:18:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229912AbiJaVDH (ORCPT + 99 others); Mon, 31 Oct 2022 17:03:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiJaVDF (ORCPT ); Mon, 31 Oct 2022 17:03:05 -0400 Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [5.144.164.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA50312AF7; Mon, 31 Oct 2022 14:02:52 -0700 (PDT) Received: from [192.168.1.101] (95.49.29.156.neoplus.adsl.tpnet.pl [95.49.29.156]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 8CC253EAF5; Mon, 31 Oct 2022 22:02:49 +0100 (CET) Message-ID: <4dda8dbb-a951-2207-32f6-2d6748e75087@somainline.org> Date: Mon, 31 Oct 2022 22:02:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 1/1] arm64: dts: qcom: Add MSM8976 device tree To: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221030194311.197909-1-a39.skl@gmail.com> <20221030194311.197909-2-a39.skl@gmail.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20221030194311.197909-2-a39.skl@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 On 30.10.2022 20:42, Adam Skladowski wrote: > Add a base DT for MSM8976 SoC. > > Signed-off-by: Adam Skladowski > --- > arch/arm64/boot/dts/qcom/msm8976.dtsi | 1357 +++++++++++++++++++++++++ Not sure if code that's not compiled anywhere will be accepted. > 1 file changed, 1357 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/msm8976.dtsi > > diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi b/arch/arm64/boot/dts/qcom/msm8976.dtsi > new file mode 100644 > index 0000000000000..461593eb04635 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/msm8976.dtsi > @@ -0,0 +1,1357 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* Copyright (c) 2022, The Linux Foundation. All rights reserved. */ > + > +#include > +#include > +#include > +#include > +#include > + > +/ { > + interrupt-parent = <&intc>; > + > + #address-cells = <2>; > + #size-cells = <2>; > + > + chosen { }; > + > + clocks { > + sleep_clk: sleep-clk { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <32768>; > + }; > + > + xo_board: xo-board { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <19200000>; Let me directly quote Krzysztof: """ This a DTSI for the SoC and these clocks do not exist on the SoC. So as usual - either they are part of board, or at least you move there the frequency to indicate that, or put them in DTSI and include from the board. See entire thread: https://lore.kernel.org/linux-arm-msm/9fbe1bf5-a84d-c56b-1c0e-6848ee3d30fe@linaro.org/ """ > + clock-output-names = "xo"; > + }; > + }; > + > + cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + > + CPU0: cpu@0 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + reg = <0x0>; > + enable-method = "psci"; > + capacity-dmips-mhz = <1024>; > + next-level-cache = <&L2_0>; > + #cooling-cells = <2>; > + > + l1-icache { > + compatible = "cache"; > + }; > + l1-dcache { > + compatible = "cache"; > + }; > + }; > + > + CPU1: cpu@1 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + reg = <0x1>; > + enable-method = "psci"; > + capacity-dmips-mhz = <1024>; > + next-level-cache = <&L2_0>; > + #cooling-cells = <2>; > + > + l1-icache { > + compatible = "cache"; > + }; > + l1-dcache { > + compatible = "cache"; > + }; > + }; > + > + CPU2: cpu@2 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + reg = <0x2>; > + enable-method = "psci"; > + capacity-dmips-mhz = <1024>; > + next-level-cache = <&L2_0>; > + #cooling-cells = <2>; > + > + l1-icache { > + compatible = "cache"; > + }; > + l1-dcache { > + compatible = "cache"; > + }; > + }; > + > + CPU3: cpu@3 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + reg = <0x3>; > + enable-method = "psci"; > + capacity-dmips-mhz = <1024>; > + next-level-cache = <&L2_0>; > + #cooling-cells = <2>; > + > + l1-icache { > + compatible = "cache"; > + }; > + l1-dcache { > + compatible = "cache"; > + }; > + }; > + > + CPU4: cpu@100 { > + device_type = "cpu"; > + compatible = "arm,cortex-a72"; > + reg = <0x100>; > + enable-method = "psci"; > + capacity-dmips-mhz = <1830>; > + next-level-cache = <&L2_1>; > + #cooling-cells = <2>; > + > + l1-icache { > + compatible = "cache"; > + }; > + l1-dcache { > + compatible = "cache"; > + }; > + }; > + > + CPU5: cpu@101 { > + device_type = "cpu"; > + compatible = "arm,cortex-a72"; > + reg = <0x101>; > + enable-method = "psci"; > + capacity-dmips-mhz = <1830>; > + next-level-cache = <&L2_1>; > + #cooling-cells = <2>; > + > + l1-icache { > + compatible = "cache"; > + }; > + l1-dcache { > + compatible = "cache"; > + }; > + }; > + > + CPU6: cpu@102 { > + device_type = "cpu"; > + compatible = "arm,cortex-a72"; > + reg = <0x102>; > + enable-method = "psci"; > + capacity-dmips-mhz = <1830>; > + next-level-cache = <&L2_1>; > + #cooling-cells = <2>; > + > + l1-icache { > + compatible = "cache"; > + }; > + l1-dcache { > + compatible = "cache"; > + }; > + }; > + > + CPU7: cpu@103 { > + device_type = "cpu"; > + compatible = "arm,cortex-a72"; > + reg = <0x103>; > + enable-method = "psci"; > + capacity-dmips-mhz = <1830>; > + next-level-cache = <&L2_1>; > + #cooling-cells = <2>; > + > + l1-icache { > + compatible = "cache"; > + }; > + l1-dcache { > + compatible = "cache"; > + }; > + }; > + > + cpu-map { > + cluster0 { > + core0 { > + cpu = <&CPU0>; > + }; > + core1 { > + cpu = <&CPU1>; > + }; > + core2 { > + cpu = <&CPU2>; > + }; > + core3 { > + cpu = <&CPU3>; > + }; > + }; > + > + cluster1 { > + core0 { > + cpu = <&CPU4>; > + }; > + core1 { > + cpu = <&CPU5>; > + }; > + core2 { > + cpu = <&CPU6>; > + }; > + core3 { > + cpu = <&CPU7>; > + }; > + }; > + }; > + > + L2_0: l2-cache_0 { > + compatible = "cache"; > + cache-level = <2>; > + }; > + > + L2_1: l2-cache_1 { > + compatible = "cache"; > + cache-level = <2>; > + }; > + }; > + > + firmware { > + scm: scm { > + compatible = "qcom,scm-msm8976", "qcom,scm"; > + clocks = <&gcc GCC_CRYPTO_CLK>, > + <&gcc GCC_CRYPTO_AXI_CLK>, > + <&gcc GCC_CRYPTO_AHB_CLK>; > + clock-names = "core", "bus", "iface"; > + #reset-cells = <1>; > + }; > + }; > + > + memory { memory@address, you can check what bootloader passes here in sysfs > + device_type = "memory"; > + /* We expect the bootloader to fill in the reg */ > + reg = <0 0 0 0>; and also add the address here. > + }; > + > + pmu { > + compatible = "arm,cortex-a53-pmu"; > + interrupts = ; > + }; > + > + psci { > + compatible = "arm,psci-1.0"; > + method = "smc"; > + }; > + > + reserved-memory { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + cont_splash_mem: memory@83000000 { > + reg = <0x0 0x83000000 0x0 0x2800000>; > + }; If it's not used for simplefb and not used as a carveout in drm/msm (one can do that instead of dynamic allocation), it just takes up memory. > + > + ext_region: memory@85b00000 { > + reg = <0x0 0x85b00000 0x0 0x500000>; > + no-map; > + }; > + > + msm_imem: memory@86000000 { compatible = "qcom,msm8976-imem", "syscon", "simple-mfd"; rename to sram@86.. + move to mmio you can check qcs404 for reference > + reg = <0x0 0x86000000 0x0 0x300000>; > + no-map; > + }; > + > + smem_mem: memory@86300000 { > + compatible = "qcom,smem"; > + reg = <0x0 0x86300000 0x0 0x100000>; > + qcom,rpm-msg-ram = <&rpm_msg_ram>; > + hwlocks = <&tcsr_mutex 3>; > + no-map; > + }; > + > + memory@86400000 { > + reg = <0x0 0x86400000 0x0 0x800000>; > + no-map; > + }; > + > + mpss_mem: memory@86c00000 { > + reg = <0x0 0x86c00000 0x0 0x5600000>; > + no-map; > + }; > + > + adsp_fw_mem: memory@8c200000 { > + reg = <0x0 0x8c200000 0x0 0x1000000>; > + no-map; > + }; > + > + wcnss_fw_mem: memory@8d200000 { > + reg = <0x0 0x8d200000 0x0 0x2600000>; > + no-map; > + }; > + > + venus_mem: memory@8f800000 { > + reg = <0x0 0x8f800000 0x0 0x500000>; > + no-map; > + }; > + > + memory@d5700000 { > + compatible = "qcom,rmtfs-mem"; > + reg = <0x0 0xd5700000 0x0 0x200000>; > + no-map; > + > + qcom,client-id = <1>; > + }; > + > + mba_mem: mba_mem@d5a00000 { > + reg = <0x0 0xd5a00000 0x0 0x100000>; > + no-map; > + }; > + }; > + > + smd { > + compatible = "qcom,smd"; > + > + rpm { > + interrupts = ; > + qcom,ipc = <&apcs 8 0>; > + qcom,smd-edge = <15>; > + > + rpm_requests: rpm-requests { > + compatible = "qcom,rpm-msm8976"; > + qcom,smd-channels = "rpm_requests"; > + > + rpmcc: rpmcc { > + compatible = "qcom,rpmcc-msm8976", "qcom,rpmcc"; > + clocks = <&xo_board>; > + clock-names = "xo"; > + #clock-cells = <1>; > + }; > + > + rpmpd: power-controller { > + compatible = "qcom,msm8976-rpmpd"; > + #power-domain-cells = <1>; > + operating-points-v2 = <&rpmpd_opp_table>; > + > + clocks = <&xo_board>; > + clock-names = "ref"; > + > + rpmpd_opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + rpmpd_opp_ret: opp1 { > + opp-level = ; > + }; > + > + rpmpd_opp_ret_plus: opp2 { > + opp-level = ; > + }; > + > + rpmpd_opp_min_svs: opp3 { > + opp-level = ; > + }; > + > + rpmpd_opp_low_svs: opp4 { > + opp-level = ; > + }; > + > + rpmpd_opp_svs: opp5 { > + opp-level = ; > + }; > + > + rpmpd_opp_svs_plus: opp6 { > + opp-level = ; > + }; > + > + rpmpd_opp_nom: opp7 { > + opp-level = ; > + }; > + > + rpmpd_opp_nom_plus: opp8 { > + opp-level = ; > + }; > + > + rpmpd_opp_turbo: opp9 { > + opp-level = ; > + }; > + }; > + }; > + }; > + }; > + }; > + > + smsm { > + compatible = "qcom,smsm"; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + qcom,ipc-1 = <&apcs 8 13>; > + qcom,ipc-3 = <&apcs 8 19>; > + > + apps_smsm: apps@0 { > + reg = <0>; > + > + #qcom,smem-state-cells = <1>; > + }; > + > + hexagon_smsm: hexagon@1 { > + reg = <1>; > + interrupts = ; > + > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + > + wcnss_smsm: wcnss@6 { > + reg = <6>; > + interrupts = ; > + > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > + > + smp2p-adsp { > + compatible = "qcom,smp2p"; > + qcom,smem = <443>, <429>; > + > + interrupts = ; > + > + mboxes = <&apcs 10>; > + > + qcom,local-pid = <0>; > + qcom,remote-pid = <2>; > + > + smp2p_adsp_out: master-kernel { > + qcom,entry-name = "master-kernel"; > + #qcom,smem-state-cells = <1>; > + }; > + > + smp2p_adsp_in: slave-kernel { > + qcom,entry-name = "slave-kernel"; > + > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > + > + smp2p-modem { > + compatible = "qcom,smp2p"; > + qcom,smem = <435>, <428>; > + > + interrupts = ; > + > + qcom,ipc = <&apcs 8 14>; > + > + qcom,local-pid = <0>; > + qcom,remote-pid = <1>; > + > + modem_smp2p_out: master-kernel { > + qcom,entry-name = "master-kernel"; > + > + #qcom,smem-state-cells = <1>; > + }; > + > + modem_smp2p_in: slave-kernel { > + qcom,entry-name = "slave-kernel"; > + > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > + > + smp2p-wcnss { > + compatible = "qcom,smp2p"; > + qcom,smem = <451>, <431>; > + > + interrupts = ; > + > + qcom,ipc = <&apcs 8 18>; > + > + qcom,local-pid = <0>; > + qcom,remote-pid = <4>; > + > + wcnss_smp2p_out: master-kernel { > + qcom,entry-name = "master-kernel"; > + > + #qcom,smem-state-cells = <1>; > + }; > + > + wcnss_smp2p_in: slave-kernel { > + qcom,entry-name = "slave-kernel"; > + > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > + > + soc: soc@0 { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0 0 0 0xffffffff>; > + compatible = "simple-bus"; > + > + rpm_msg_ram: sram@60000 { > + compatible = "qcom,rpm-msg-ram"; > + reg = <0x60000 0x8000>; Pad addr to 8 hex digits, please. > + }; > + > + rng@22000 { This node should be above rpm_msg_ram address-wise. > + compatible = "qcom,prng"; > + reg = <0x00022000 0x1000>; > + clocks = <&gcc GCC_PRNG_AHB_CLK>; > + clock-names = "core"; > + }; > + > + qfprom@a4000 { > + compatible = "qcom,qfprom"; > + reg = <0x000a4000 0x1000>; > + #address-cells = <1>; > + #size-cells = <1>; > + > + tsens_caldata: caldata@218 { > + reg = <0x218 0x18>; > + }; > + }; > + > + tsens0: thermal-sensor@4a9000 { > + compatible = "qcom,msm8976-tsens", "qcom,tsens-v1"; > + reg = <0x4a9000 0x1000>, /* TM */ > + <0x4a8000 0x1000>; /* SROT */ > + #qcom,sensors = <11>; > + interrupts = ; > + interrupt-names = "uplow"; > + nvmem-cells = <&tsens_caldata>; > + nvmem-cell-names = "calib"; > + #thermal-sensor-cells = <1>; > + }; > + > + restart@4ab000 { > + compatible = "qcom,pshold"; > + reg = <0x4ab000 0x4>; > + }; > + > + tlmm: pinctrl@1000000 { > + compatible = "qcom,msm8976-pinctrl"; > + reg = <0x1000000 0x300000>; > + interrupts = ; > + gpio-controller; > + gpio-ranges = <&tlmm 0 0 158>; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + > + mdss_te_default: mdss-te-pins { Subnodes are supposed to have a -pins suffix, parent nodes should end in -state. > + pins = "gpio24"; > + function = "mdp_vsync"; > + drive-strength = <2>; > + bias-pull-down; > + }; > + > + sdc1_clk_on: sdc1-clk-on-state { > + pins = "sdc1_clk"; > + bias-disable; > + drive-strength = <16>; > + }; > + > + sdc1_clk_off: sdc1-clk-off-state { > + pins = "sdc1_clk"; > + bias-disable; > + drive-strength = <2>; > + }; > + > + sdc1_cmd_on: sdc1-cmd-on-state { > + pins = "sdc1_cmd"; > + bias-disable; > + drive-strength = <10>; > + }; > + > + sdc1_cmd_off: sdc1-cmd-off-state { > + pins = "sdc1_cmd"; > + bias-disable; > + drive-strength = <2>; > + }; > + > + sdc1_data_on: sdc1-data-on-state { > + pins = "sdc1_data"; > + bias-pull-up; > + drive-strength = <10>; > + }; > + > + sdc1_data_off: sdc1-data-off-state { > + pins = "sdc1_data"; > + bias-pull-up; > + drive-strength = <2>; > + }; > + > + sdc1_rclk_on: sdc1-rclk-on-state { > + pins = "sdc1_rclk"; > + bias-pull-down; > + }; > + > + sdc1_rclk_off: sdc1-rclk-off-state { > + pins = "sdc1_rclk"; > + bias-pull-down; > + }; > + > + sdc2_clk_on: sdc2-clk-on-state { > + pins = "sdc2_clk"; > + drive-strength = <16>; > + bias-disable; > + }; > + > + sdc2_clk_off: sdc2-clk-off-state { > + pins = "sdc2_clk"; > + bias-disable; > + drive-strength = <2>; > + }; > + > + sdc2_cmd_on: sdc2-cmd-on-state { > + pins = "sdc2_cmd"; > + bias-pull-up; > + drive-strength = <10>; > + }; > + > + sdc2_cmd_off: sdc2-cmd-off-state { > + pins = "sdc2_cmd"; > + bias-pull-up; > + drive-strength = <2>; > + }; > + > + sdc2_data_on: sdc2-data-on-state { > + pins = "sdc2_data"; > + bias-pull-up; > + drive-strength = <10>; > + }; > + > + sdc2_data_off: sdc2-data-off-state { > + pins = "sdc2_data"; > + bias-pull-up; > + drive-strength = <2>; > + }; > + > + sdc2_cd_on: cd-on-state { > + pins = "gpio100"; > + function = "gpio"; > + drive-strength = <2>; > + bias-pull-up; > + }; > + > + sdc2_cd_off: cd-off-state { > + pins = "gpio100"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + gpio_key_default: gpio-key-default-state { > + pins = "gpio113"; > + function = "gpio"; > + drive-strength = <2>; > + bias-pull-up; > + }; > + > + i2c_1_default: i2c-1-default-state { > + pins = "gpio2", "gpio3"; > + function = "blsp_i2c1"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_1_sleep: i2c-1-sleep-state { > + pins = "gpio2", "gpio3"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_2_default: i2c-2-default-state { > + pins = "gpio6", "gpio7"; > + function = "blsp_i2c2"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_2_sleep: i2c-2-sleep-state { > + pins = "gpio6", "gpio7"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_3_default: i2c-3-default-state { > + pins = "gpio10", "gpio11"; > + function = "blsp_i2c3"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_3_sleep: i2c-3-sleep-state { > + pins = "gpio10", "gpio11"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_4_default: i2c-4-default-state { > + pins = "gpio14", "gpio15"; > + function = "blsp_i2c4"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_4_sleep: i2c-4-sleep-state { > + pins = "gpio14", "gpio15"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_5_default: i2c-5-default-state { > + pins = "gpio136", "gpio137"; > + function = "blsp_i2c5"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_5_sleep: i2c-5-sleep-state { > + pins = "gpio136", "gpio137"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_6_default: i2c-6-default-state { > + pins = "gpio22", "gpio23"; > + function = "blsp_i2c6"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_6_sleep: i2c-6-sleep-state { > + pins = "gpio22", "gpio23"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_7_default: i2c-7-default-state { > + pins = "gpio110", "gpio111"; > + function = "blsp_i2c7"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_7_sleep: i2c-7-sleep-state { > + pins = "gpio110", "gpio111"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_8_default: i2c-8-default-state { > + pins = "gpio18", "gpio19"; > + function = "blsp_i2c8"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + i2c_8_sleep: i2c-8-sleep-state { > + pins = "gpio18", "gpio19"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > + }; > + > + gcc: clock-controller@1800000 { > + compatible = "qcom,gcc-msm8976-v1.1"; > + reg = <0x1800000 0x80000>; Please pad addr to 8 hex digits. > + #clock-cells = <1>; > + #reset-cells = <1>; > + #power-domain-cells = <1>; > + clocks = <&xo_board>, > + <&xo_board>, Any reason SMD XO doesn't fit here? > + <&dsi0_phy 1>, > + <&dsi0_phy 0>, > + <&dsi1_phy 1>, > + <&dsi1_phy 0>; > + clock-names = "xo", > + "xo_a", > + "dsi0pll", > + "dsi0pllbyte", > + "dsi1pll", > + "dsi1pllbyte"; > + }; > + > + tcsr_mutex: hwlock@1905000 { > + compatible = "qcom,tcsr-mutex"; > + reg = <0x1905000 0x20000>; Please pad addr to 8 hex digits. > + #hwlock-cells = <1>; > + }; > + > + tcsr: syscon@1937000 { > + compatible = "syscon"; > + reg = <0x1937000 0x30000>; Please pad addr to 8 hex digits. > + }; > + > + mdss: mdss@1a00000 { > + compatible = "qcom,mdss"; > + > + reg = <0x1a00000 0x1000>, > + <0x1ab0000 0x1040>; Please pad addr to 8 hex digits here and in all subnodes. > + reg-names = "mdss_phys", > + "vbif_phys"; > + > + power-domains = <&gcc MDSS_GDSC>; > + interrupts = ; > + > + interrupt-controller; > + #interrupt-cells = <1>; > + > + clocks = <&gcc GCC_MDSS_AHB_CLK>, > + <&gcc GCC_MDSS_AXI_CLK>, > + <&gcc GCC_MDSS_VSYNC_CLK>, > + <&gcc GCC_MDSS_MDP_CLK>; > + clock-names = "iface", > + "bus", > + "vsync", > + "core"; > + > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + status = "disabled"; > + > + mdp: mdp@1a01000 { > + compatible = "qcom,mdp5"; > + reg = <0x1a01000 0x89000>; > + reg-names = "mdp_phys"; > + > + interrupt-parent = <&mdss>; > + interrupts = <0>; > + > + power-domains = <&gcc MDSS_GDSC>; > + > + clocks = <&gcc GCC_MDSS_AHB_CLK>, > + <&gcc GCC_MDSS_AXI_CLK>, > + <&gcc GCC_MDSS_MDP_CLK>, > + <&gcc GCC_MDSS_VSYNC_CLK>, > + <&gcc GCC_MDP_TBU_CLK>, > + <&gcc GCC_MDP_RT_TBU_CLK>; > + clock-names = "iface", > + "bus", > + "core", > + "vsync", > + "tbu", > + "tbu_rt"; > + iommus = <&apps_iommu 0x17>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + mdp5_intf1_out: endpoint { > + remote-endpoint = <&dsi0_in>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + mdp5_intf2_out: endpoint { > + remote-endpoint = <&dsi1_in>; > + }; > + }; > + }; > + }; > + > + dsi0: dsi@1a94000 { > + compatible = "qcom,mdss-dsi-ctrl"; > + reg = <0x1a94000 0x2d4>; > + reg-names = "dsi_ctrl"; > + > + interrupt-parent = <&mdss>; > + interrupts = <4>; > + > + assigned-clocks = <&gcc GCC_MDSS_BYTE0_CLK_SRC>, > + <&gcc GCC_MDSS_PCLK0_CLK_SRC>; > + assigned-clock-parents = <&dsi0_phy 0>, > + <&dsi0_phy 1>; > + > + clocks = <&gcc GCC_MDSS_MDP_CLK>, > + <&gcc GCC_MDSS_AHB_CLK>, > + <&gcc GCC_MDSS_AXI_CLK>, > + <&gcc GCC_MDSS_BYTE0_CLK>, > + <&gcc GCC_MDSS_PCLK0_CLK>, > + <&gcc GCC_MDSS_ESC0_CLK>; > + clock-names = "mdp_core", > + "iface", > + "bus", > + "byte", > + "pixel", > + "core"; > + > + phys = <&dsi0_phy>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + status = "disabled"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + dsi0_in: endpoint { > + remote-endpoint = <&mdp5_intf1_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + dsi0_out: endpoint { > + }; > + }; > + }; > + }; > + > + dsi0_phy: phy@1a94400 { > + compatible = "qcom,dsi-phy-28nm-hpm-fam-b"; > + reg = <0x1a94400 0x20c>, > + <0x1a94b80 0x2c>, > + <0x1a94a00 0xd4>; > + reg-names = "dsi_phy", > + "dsi_phy_regulator", > + "dsi_pll"; > + > + #clock-cells = <1>; > + #phy-cells = <0>; > + > + clocks = <&gcc GCC_MDSS_AHB_CLK>, <&xo_board>; > + clock-names = "iface", "ref"; > + > + status = "disabled"; > + }; > + > + dsi1: dsi@1a96000 { > + compatible = "qcom,mdss-dsi-ctrl"; > + reg = <0x1a96000 0x2d4>; > + reg-names = "dsi_ctrl"; > + > + interrupt-parent = <&mdss>; > + interrupts = <5>; > + > + assigned-clocks = <&gcc GCC_MDSS_BYTE1_CLK_SRC>, > + <&gcc GCC_MDSS_PCLK1_CLK_SRC>; > + assigned-clock-parents = <&dsi1_phy 0>, > + <&dsi1_phy 1>; > + > + clocks = <&gcc GCC_MDSS_MDP_CLK>, > + <&gcc GCC_MDSS_AHB_CLK>, > + <&gcc GCC_MDSS_AXI_CLK>, > + <&gcc GCC_MDSS_BYTE1_CLK>, > + <&gcc GCC_MDSS_PCLK1_CLK>, > + <&gcc GCC_MDSS_ESC1_CLK>; > + clock-names = "mdp_core", > + "iface", > + "bus", > + "byte", > + "pixel", > + "core"; > + > + phys = <&dsi1_phy>; > + > + status = "disabled"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + dsi1_in: endpoint { > + remote-endpoint = <&mdp5_intf2_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + dsi1_out: endpoint { > + }; > + }; > + }; > + }; > + > + dsi1_phy: phy@1a96400 { > + compatible = "qcom,dsi-phy-28nm-hpm-fam-b"; > + reg = <0x1a96400 0x20c>, > + <0x1a96b80 0x2c>, > + <0x1a96a00 0xd4>; > + reg-names = "dsi_phy", > + "dsi_phy_regulator", > + "dsi_pll"; > + > + #clock-cells = <1>; > + #phy-cells = <0>; > + > + clocks = <&gcc GCC_MDSS_AHB_CLK>, <&xo_board>; > + clock-names = "iface", "ref"; > + > + status = "disabled"; > + }; > + }; > + > + apps_iommu: iommu@1e00000 { > + compatible = "qcom,msm-iommu-v1"; > + ranges = <0 0x1e20000 0x20000>; Please pad addr to 8 hex digits. > + > + clocks = <&gcc GCC_SMMU_CFG_CLK>, > + <&gcc GCC_APSS_TCU_CLK>; > + clock-names = "iface", "bus"; > + > + qcom,iommu-secure-id = <17>; > + > + #address-cells = <1>; > + #iommu-cells = <1>; > + #size-cells = <1>; > + > + // mdp_0 Please use /* C-style */ comments. > + iommu-ctx@17000 { > + compatible = "qcom,msm-iommu-v1-ns"; > + reg = <0x17000 0x1000>; Please pad addr to 8 hex digits. I see it happening a lot below, so I'll stop repeating myself. > + interrupts = ; > + }; > + > + }; > + > + spmi_bus: spmi@200f000 { > + compatible = "qcom,spmi-pmic-arb"; > + reg = <0x200f000 0x1000>, > + <0x2400000 0x800000>, > + <0x2c00000 0x800000>, > + <0x3800000 0x200000>, > + <0x200a000 0x2100>; > + reg-names = "core", "chnls", "obsrvr", "intr", "cnfg"; > + interrupt-names = "periph_irq"; > + interrupts = ; > + qcom,ee = <0>; > + qcom,channel = <0>; > + interrupt-controller; > + > + #interrupt-cells = <4>; > + #address-cells = <2>; > + #size-cells = <0>; > + }; > + > + sdhc_1: mmc@7824900 { > + compatible = "qcom,sdhci-msm-v4"; > + > + reg = <0x7824900 0x500>, <0x7824000 0x800>; > + reg-names = "hc", "core"; > + > + interrupts = , > + ; > + interrupt-names = "hc_irq", "pwr_irq"; > + > + clocks = <&gcc GCC_SDCC1_AHB_CLK>, > + <&gcc GCC_SDCC1_APPS_CLK>, > + <&xo_board>; > + clock-names = "iface", "core", "xo"; > + > + power-domains = <&rpmpd MSM8976_VDDCX>; > + operating-points-v2 = <&sdhc1_opp_table>; > + > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_rclk_on>; > + pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_rclk_off>; > + > + mmc-hs400-1_8v; > + mmc-hs200-1_8v; > + mmc-ddr-1_8v; > + bus-width = <8>; > + non-removable; > + > + status = "disabled"; > + > + sdhc1_opp_table: opp-table-sdhc1 { > + compatible = "operating-points-v2"; > + > + opp-100000000 { > + opp-hz = /bits/ 64 <100000000>; > + required-opps = <&rpmpd_opp_svs>; > + }; > + > + opp-186400000 { > + opp-hz = /bits/ 64 <186400000>; > + required-opps = <&rpmpd_opp_nom>; > + }; > + > + opp-372800000 { > + opp-hz = /bits/ 64 <372800000>; > + required-opps = <&rpmpd_opp_nom>; > + }; > + }; > + }; > + > + sdhc_2: mmc@7864900 { > + compatible = "qcom,sdhci-msm-v4"; > + > + reg = <0x7864900 0x500>, <0x7864000 0x800>; > + reg-names = "hc", "core"; > + > + interrupts = , > + ; > + interrupt-names = "hc_irq", "pwr_irq"; > + > + clocks = <&gcc GCC_SDCC2_AHB_CLK>, > + <&gcc GCC_SDCC2_APPS_CLK>, > + <&xo_board>; > + clock-names = "iface", "core", "xo"; > + > + power-domains = <&rpmpd MSM8976_VDDCX>; > + operating-points-v2 = <&sdhc2_opp_table>; > + > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>; > + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>; > + > + bus-width = <4>; > + > + status = "disabled"; > + > + sdhc2_opp_table: opp-table-sdhc2 { > + compatible = "operating-points-v2"; > + > + opp-50000000 { > + opp-hz = /bits/ 64 <50000000>; > + required-opps = <&rpmpd_opp_svs>; > + }; > + > + opp-200000000 { > + opp-hz = /bits/ 64 <200000000>; > + required-opps = <&rpmpd_opp_nom>; > + }; > + }; > + }; > + > + i2c_1: i2c@78b5000 { > + compatible = "qcom,i2c-qup-v2.2.1"; > + reg = <0x78b5000 0x600>; > + interrupts = ; > + clock-names = "core", "iface"; > + clocks = <&gcc GCC_BLSP1_QUP1_I2C_APPS_CLK>, > + <&gcc GCC_BLSP1_AHB_CLK>; > + > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&i2c_1_default>; > + pinctrl-1 = <&i2c_1_sleep>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + status = "disabled"; > + }; > + > + i2c_2: i2c@78b6000 { > + compatible = "qcom,i2c-qup-v2.2.1"; > + reg = <0x78b6000 0x600>; > + interrupts = ; > + clock-names = "core", "iface"; > + clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, > + <&gcc GCC_BLSP1_AHB_CLK>; > + > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&i2c_2_default>; > + pinctrl-1 = <&i2c_2_sleep>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + status = "disabled"; > + }; > + > + i2c_3: i2c@78b7000 { > + compatible = "qcom,i2c-qup-v2.2.1"; > + reg = <0x78b7000 0x600>; > + interrupts = ; > + clock-names = "core", "iface"; > + clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>, > + <&gcc GCC_BLSP1_AHB_CLK>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&i2c_3_default>; > + pinctrl-1 = <&i2c_3_sleep>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + status = "disabled"; > + }; > + > + i2c_4: i2c@78b8000 { > + compatible = "qcom,i2c-qup-v2.2.1"; > + reg = <0x78b8000 0x600>; > + interrupts = ; > + clock-names = "core", "iface"; > + clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>, > + <&gcc GCC_BLSP1_AHB_CLK>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&i2c_4_default>; > + pinctrl-1 = <&i2c_4_sleep>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + status = "disabled"; > + }; > + > + i2c_5: i2c@7af5000 { > + compatible = "qcom,i2c-qup-v2.2.1"; > + reg = <0x7af5000 0x600>; > + interrupts = ; > + clock-names = "core", "iface"; > + clocks = <&gcc GCC_BLSP2_QUP1_I2C_APPS_CLK>, > + <&gcc GCC_BLSP2_AHB_CLK>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&i2c_5_default>; > + pinctrl-1 = <&i2c_5_sleep>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + status = "disabled"; > + }; > + > + i2c_6: i2c@7af6000 { > + compatible = "qcom,i2c-qup-v2.2.1"; > + reg = <0x7af6000 0x600>; > + interrupts = ; > + clock-names = "core", "iface"; > + clocks = <&gcc GCC_BLSP2_QUP2_I2C_APPS_CLK>, > + <&gcc GCC_BLSP2_AHB_CLK>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&i2c_6_default>; > + pinctrl-1 = <&i2c_6_sleep>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + status = "disabled"; > + }; > + > + i2c_7: i2c@7af7000 { > + compatible = "qcom,i2c-qup-v2.2.1"; > + reg = <0x7af7000 0x600>; > + interrupts = ; > + clock-names = "core", "iface"; > + clocks = <&gcc GCC_BLSP2_QUP3_I2C_APPS_CLK>, > + <&gcc GCC_BLSP2_AHB_CLK>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&i2c_7_default>; > + pinctrl-1 = <&i2c_7_sleep>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + status = "disabled"; > + }; > + > + i2c_8: i2c@7af8000 { > + compatible = "qcom,i2c-qup-v2.2.1"; > + reg = <0x7af8000 0x600>; > + interrupts = ; > + clock-names = "core", "iface"; > + clocks = <&gcc GCC_BLSP2_QUP4_I2C_APPS_CLK>, > + <&gcc GCC_BLSP2_AHB_CLK>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&i2c_8_default>; > + pinctrl-1 = <&i2c_8_sleep>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + status = "disabled"; > + }; > + > + intc: interrupt-controller@b000000 { > + compatible = "qcom,msm-qgic2"; > + interrupt-controller; > + #interrupt-cells = <3>; > + reg = <0x0b000000 0x1000>, <0x0b002000 0x1000>; reg second, please > + }; > + > + apcs: mailbox@b011000 { > + compatible = "qcom,msm8976-apcs-kpss-global", "syscon"; > + reg = <0xb011000 0x1000>; > + #mbox-cells = <1>; > + }; > + > + timer@b120000 { > + compatible = "arm,armv7-timer-mem"; > + reg = <0xb120000 0x1000>; > + #address-cells = <0x01>; > + #size-cells = <0x01>; > + ranges; > + > + frame@b121000 { > + frame-number = <0>; > + interrupts = , > + ; > + reg = <0xb121000 0x1000>, > + <0xb122000 0x1000>; reg first, please, here and below. Konrad > + }; > + > + frame@b123000 { > + frame-number = <1>; > + interrupts = ; > + reg = <0xb123000 0x1000>; > + status = "disabled"; > + }; > + > + frame@b124000 { > + frame-number = <2>; > + interrupts = ; > + reg = <0xb124000 0x1000>; > + status = "disabled"; > + }; > + > + frame@b125000 { > + frame-number = <3>; > + interrupts = ; > + reg = <0xb125000 0x1000>; > + status = "disabled"; > + }; > + > + frame@b126000 { > + frame-number = <4>; > + interrupts = ; > + reg = <0xb126000 0x1000>; > + status = "disabled"; > + }; > + > + frame@b127000 { > + frame-number = <5>; > + interrupts = ; > + reg = <0xb127000 0x1000>; > + status = "disabled"; > + }; > + > + frame@b128000 { > + frame-number = <6>; > + interrupts = ; > + reg = <0xb128000 0x1000>; > + status = "disabled"; > + }; > + }; > + }; > + > + timer { > + compatible = "arm,armv8-timer"; > + interrupts = , > + , > + , > + ; > + }; > +};