Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp127731pxt; Wed, 4 Aug 2021 17:54:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxOzT7sB+E/oH68maVi33IFPGTrP8v7mXxooZ9ylRUq7FJxiasEMzOdUa6rKOwJ/6Qs5y7 X-Received: by 2002:a92:d407:: with SMTP id q7mr328922ilm.203.1628124881885; Wed, 04 Aug 2021 17:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628124881; cv=none; d=google.com; s=arc-20160816; b=NrAM1klWZxsA0u08wQ4ffDKD+9gcZXtzJultcYXJlrYrxYI1ODCGTsdcx80Ci5qNzF UmqiFVL/tF7q7wpxcECiebXaK0wTLPzdE/+MGQ9SMRfs3lU/RdGfaUkDg4CVmo5I+WSt n+JsW/wf+rOV8qm2UOYvsiF1kyzP72DFvvw7KjNNo3WFYRt27F7F3mYr7k08KYHDCFqV CU6boeRIQYttR0jv5V4+yq2VMl37qIu9l3ilbqkQJQp9L3qfm9mpPrkac81QbhJJGHJY nKChpGgrLZzl1+ktX6BKo4fMSmiKcdDMwx1L+JEyimg4pa1m9rJJkxZ+38O6I0RxeXkk 3C+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to:dkim-signature; bh=kLWUtHA3a5xY5N4esWD+HgIy7cu1PUh6hkksxjyOzDA=; b=hxwavY1eWsAXXWYeP/92rWnpMjyEBcl9DCgtfCY0BsrW1Tu/dVMNrvUwchqKlduJGG +HEUsHzv1aN4kNYkRHcJrEpp1OFJMvSI274MUgFAa+0bYn6E/LKT0nptp+XEAh3G6yEq +1hUJBWQ3zLXvOTKSwIaOP6OP43dP1Y51tfr6aItRcEoGEE6bACp2J+QLhyzRAjgkIq3 oL+ZqbW2i7bvQ1kVr0KOb7YmOazjMGdRVQtiPJPgIvZqIr7YzFmELPOAHrrfPoRTUyEo S7HUwunu2j9l0pZk0zQMHXac6ShrohAkBs6Wtajim0e7QknW1pQ8YjplBcY4ZbAtKUUZ 7h8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=QEiioed2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l2si4340745jak.45.2021.08.04.17.54.28; Wed, 04 Aug 2021 17:54:41 -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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=QEiioed2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240318AbhHDSg7 (ORCPT + 99 others); Wed, 4 Aug 2021 14:36:59 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:44364 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240313AbhHDSg6 (ORCPT ); Wed, 4 Aug 2021 14:36:58 -0400 Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPS id 17F023F36D for ; Wed, 4 Aug 2021 18:36:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1628102204; bh=kLWUtHA3a5xY5N4esWD+HgIy7cu1PUh6hkksxjyOzDA=; h=To:Cc:References:From:Subject:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=QEiioed295tlhKw5C0JyTnJTg/9K+9RKyHvE5KwGfbSQmRS9btrYGJdQi5/ofnBbe 9Fyyu6sl8y/vDp0pbM3g0sO0W1pVWwdvocgJ/GvuLfeJQaHwIteuu/db9j4To3Fujk t/Etl26CDchJKRyblq9tPQqanCia0K22e0NTivexFbqxhElGBDalzsQ1T56aH0WZKs xsUR8InbVrVdwOhN6Vmqb8n1VMC8a6tPJ22Q+gPLXIN3+0suIhEv7sRifxKH1JcRy1 rpjLwhf4yZfazOdjOMi6SY1tNDG5ZqmKu7Oop2BazqBSaR5yJK/mthsLnvB0yXNg9i ihOajgbuYBcdg== Received: by mail-ed1-f69.google.com with SMTP id y19-20020a0564021713b02903bbfec89ebcso1874809edu.16 for ; Wed, 04 Aug 2021 11:36:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:subject:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kLWUtHA3a5xY5N4esWD+HgIy7cu1PUh6hkksxjyOzDA=; b=ifjFVi+Mcu/G0Hg6ec/ZQLRb5DAV9R2btvLAfwtR1Y93MTzbZ8lOOVUBL4opog9RMY YWSYJ1wRF8U0FDT+X8CNBpcicFvkKP0b0jmZY9uZCm4Oa3g2kb/c7l3VcVDd7jlnEl+z j8dLSRv9wrSV2BRlf0TXs/XkJimvTGaYDC6rsKa1vUemwaHsvFJ6o36ia1YCk6TBNyPz Cc2R09AOJ/VcUTDHYo8pWLb+uR3CuKKD6hXGmg0uI0MsaPmJmbgrKmgMDMfu+FuA/0M1 j/8S6Sfz2ONyA80BctoBqmWqGXtpU8ryNTQ7M+E2b7vGZFYk5qYhD8rnPd450poN2vVN EHnA== X-Gm-Message-State: AOAM533eZtNFRsYsnFKVWn8cHeX8jH1D85r95xUwLwhsZFEsHmAcqkKp 3W5ay0dAfAvMl7DrYdv/wAuzeFmNZpnw8oH691J5oR1/K5Ymn1mOugylCa/NWbx4084/ZOB1H2F rs2Ug4GEQoNgZ2hPw2JVxI1M4FHxc8Rfdq4h6IWqbvA== X-Received: by 2002:a17:906:9c84:: with SMTP id fj4mr572948ejc.356.1628102203674; Wed, 04 Aug 2021 11:36:43 -0700 (PDT) X-Received: by 2002:a17:906:9c84:: with SMTP id fj4mr572916ejc.356.1628102203469; Wed, 04 Aug 2021 11:36:43 -0700 (PDT) Received: from [192.168.8.102] ([86.32.43.172]) by smtp.gmail.com with ESMTPSA id cm1sm1248761edb.68.2021.08.04.11.36.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Aug 2021 11:36:42 -0700 (PDT) To: Sam Protsenko , Marc Zyngier Cc: Sylwester Nawrocki , Chanwoo Choi , Linus Walleij , Tomasz Figa , Rob Herring , Stephen Boyd , Michael Turquette , Jiri Slaby , Greg Kroah-Hartman , Charles Keepax , Ryu Euiyoul , Tom Gall , Sumit Semwal , John Stultz , Amit Pundir , devicetree , linux-arm Mailing List , linux-clk , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Linux Samsung SOC , "open list:SERIAL DRIVERS" References: <20210730144922.29111-1-semen.protsenko@linaro.org> <20210730144922.29111-13-semen.protsenko@linaro.org> <15871f8ced3c757fad1ab3b6e62c4e64@misterjones.org> From: Krzysztof Kozlowski Subject: Re: [PATCH 12/12] arm64: dts: exynos: Add Exynos850 SoC support Message-ID: Date: Wed, 4 Aug 2021 20:36:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/08/2021 16:39, Sam Protsenko wrote: > Hi Marc, > > On Fri, 30 Jul 2021 at 19:50, Marc Zyngier wrote: >> >> On 2021-07-30 15:49, Sam Protsenko wrote: >>> Samsung Exynos850 is ARMv8-based mobile-oriented SoC. >>> >>> Features: >>> * CPU: Cortex-A55 Octa (8 cores), up to 2 GHz >>> * Memory interface: LPDDR4/4x 2 channels (12.8 GB/s) >>> * SD/MMC: SD 3.0, eMMC5.1 DDR 8-bit >>> * Modem: 4G LTE, 3G, GSM/GPRS/EDGE >>> * RF: Quad GNSS, WiFi 5 (802.11ac), Bluetooth 5.0 >>> * GPU: Mali-G52 MP1 >>> * Codec: 1080p 60fps H64, HEVC, JPEG HW Codec >>> * Display: Full HD+ (2520x1080)@60fps LCD >>> * Camera: 16+5MP/13+8MP ISP, MIPI CSI 4/4/2, FD, DRC >>> * Connectivity: USB 2.0 DRD, USI (SPI/UART/I2C), HSI2C, I3C, ADC, >>> Audio >>> >>> This patch adds minimal SoC support. Particular board device tree files >>> can include exynos850.dtsi file to get SoC related nodes, and then >>> reference those nodes further as needed. >>> >>> Signed-off-by: Sam Protsenko >>> --- >>> .../boot/dts/exynos/exynos850-pinctrl.dtsi | 782 ++++++++++++++++++ >>> arch/arm64/boot/dts/exynos/exynos850-usi.dtsi | 30 + >>> arch/arm64/boot/dts/exynos/exynos850.dtsi | 245 ++++++ >>> 3 files changed, 1057 insertions(+) >>> create mode 100644 arch/arm64/boot/dts/exynos/exynos850-pinctrl.dtsi >>> create mode 100644 arch/arm64/boot/dts/exynos/exynos850-usi.dtsi >>> create mode 100644 arch/arm64/boot/dts/exynos/exynos850.dtsi >>> >>> diff --git a/arch/arm64/boot/dts/exynos/exynos850-pinctrl.dtsi >>> b/arch/arm64/boot/dts/exynos/exynos850-pinctrl.dtsi >>> new file mode 100644 >>> index 000000000000..4cf0a22cc6db >> >> [...] >> >>> + gic: interrupt-controller@12a00000 { >>> + compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic"; >> >> One thing for sure, it cannot be both. And given that it is >> an A55-based SoC, it isn't either. It is more likely a GIC400. >> > > Yes, it's GIC-400, thanks for pointing that out. Will fix that in v2. > >>> + #interrupt-cells = <3>; >>> + #address-cells = <0>; >>> + interrupt-controller; >>> + reg = <0x0 0x12a01000 0x1000>, >>> + <0x0 0x12a02000 0x1000>, >> >> This is wrong. It is architecturally set to 8kB. >> > > Nice catch! Actually there is an error (typo?) in SoC's TRM, saying > that Virtual Interface Control Register starts at 0x3000 offset (from > 0x12a00000), where it obviously should be 0x4000, that's probably > where this dts error originates from. Btw, I'm also seeing the same > error in exynos7.dtsi. What's the error exactly? The "Virtual interface control register" offset (3rd region) is set properly to 0x4000 on Exynos7. Also one for the Exynos5433 looks correct. > Though I don't have a TRM for Exynos7 SoCs, so > not sure if I should go ahead and fix that too. Anyway, for Exynos850, > I'll fix that in v2 series. However while we are at addresses - why are you using address-cells 2? It adds everywhere additional 0x0 before actual address. Best regards, Krzysztof