Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4703663pxb; Sat, 12 Feb 2022 15:31:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzn9vk2jqsSKh4c7R7d5dletXwpF600vEWwLU5DgRAvWYUb4dzrF5ZYqjSz8kxHKGplpnmE X-Received: by 2002:a17:907:d1e:: with SMTP id gn30mr6478217ejc.75.1644708680630; Sat, 12 Feb 2022 15:31:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644708680; cv=none; d=google.com; s=arc-20160816; b=koL6aX4w3pxkU/f4jev3D+YPnmn/Akdbihc93aXp9n8lYe8n6xFLsQNPkz1PRBNmFW RUG8qvCHhTJhevPtnNLRDnk+2Gk8LdzVja5Ta7Xc9ZuTVdBD4gHHwM/GkCnnbWa7tEyW AX55yXIb5AI9o9BIQJAKnXJ4arps9tofiPfmBvetpc/zP9z+4SIeDvGQm64wg5gO4NeO Vg+pO2y01SdABx/NY/1iFb9FbM1i1gmZy/GJTDRpfN8rVToDEh4csjwz1F8rtKnppzEG xEoNVMSAonthlzNejVNTA+3CZ1eNYBOl7s0p1/Qif2oGEjzt5pNf2cQHQsJ0tTS33b6n tTbw== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=X3PaDMR8+PfNCu9HSVeF64I3rmiKpfgBp/WxGyhnalg=; b=EQvXga781F7ZH9cK67ci/rB9OSEi7KZZvIgrwltLSU54mmNLRaP7BIULNP1zLBuxAb kYF3ShZchZI/2rGf1pBJdEt0zuFXMEx2kkC2DIAC3acAzm0ZDpOO2o5/o1tqYjQAizE4 UJlIMu8FFdHGNnPeDqOjp5fRncixHmBbI3+ziRAoBMeebIKOcX8TtKbQRZIlALsXKKiv icKvq1xCiGr89Xjcf9BYA3KDPdqjxW1B2llYWDIR7OWRGYGSdhZhhVrHgCDJeX/jepCf axZyE6qL/wI/Z+yAEbiIsqiPVjTsbuZTnPqk7BzjNWTm/+6mlV+mf0ZdTG3l60boPhdp cQCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=dbD9vKrp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fy1si11838266ejc.779.2022.02.12.15.30.48; Sat, 12 Feb 2022 15:31:20 -0800 (PST) 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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=dbD9vKrp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237506AbiBLQiS (ORCPT + 99 others); Sat, 12 Feb 2022 11:38:18 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231560AbiBLQiQ (ORCPT ); Sat, 12 Feb 2022 11:38:16 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E8F2240B3 for ; Sat, 12 Feb 2022 08:38:12 -0800 (PST) Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (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-internal-0.canonical.com (Postfix) with ESMTPS id B86DB3F4B4 for ; Sat, 12 Feb 2022 16:38:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1644683890; bh=X3PaDMR8+PfNCu9HSVeF64I3rmiKpfgBp/WxGyhnalg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dbD9vKrp6jXKKVkVWjEoh9u8HCme+pctLZvGWid71wRH/ZDPwlhzQxXI3xQW3x2wf Bs5/Fil2lYqhtJ1K77D9PfMydLAZurCMZrRp7lJ6/g4XNmWn2emJ8lmbPFYwXL52j+ +syBBN72kleqQbl9YbNJwD5wKo2jQ8TSRZQR1JqYkc14T92f18ZGmDYDZwYaS65soS JmrwLbQbU7ZUhsQ+WIfbzN9gRPhBGcKL4SnRL7w0QLa0zgjFjkewvftyxD8oI/R8Zi 1Y0HcODV5G+QOkLHtbXdMx0TvXrV8OFi76GsBfXxP+uxE/WmqDTqzWQC/O6IGVJfNs TwGT4NC/Hn45Q== Received: by mail-ed1-f71.google.com with SMTP id g5-20020a056402090500b0040f28e1da47so7358373edz.8 for ; Sat, 12 Feb 2022 08:38:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=X3PaDMR8+PfNCu9HSVeF64I3rmiKpfgBp/WxGyhnalg=; b=07mUcmoauBjj9BNVkaRpSDap2oOrlV+vwGDL1G0QRNs/UKQZ0r7tURrTvB8NnkFMlm Z44r5COYW+HlecCrUZy2vHXY1NnNpeaJm6krrolB6HMhLLzoN5bAmxYIzorXGCOlfh+k PvOG7fdOTXZAg4mnNt86mzdQwxTkPSmzk6Ay8cmQMlcKeCAXi3fDJI6H6Hhw8hvlpBab ZvrrfrfWCDUnR8ejHQt46yfHZpPmbGkgpYbdrMC5uqC1bGrjYjiPrLvFivWAEaSReeD3 lDAU5qj5S37JdYCOXSTMQ4RtRyqds1tII3g/g5xQt8JY5JTQAWkW56rj75z3BX2dqU5T vz4A== X-Gm-Message-State: AOAM532UZeYuLzwkWkl0kSGOB2odzRVVcCgEpzme7CSVNr2vVElnxBhF r1cRaE3LhZ6s/dTafrZS1KqInv46jpP8xAq8fCyYj3ACfQVtY4I8TVQ/6zvP0HLtGSyfanQOOQL NglMfSkv7TYH1ZMEstS8NpJZ+mZuAt01J0YOhZBOOEw== X-Received: by 2002:a05:6402:278c:: with SMTP id b12mr7210731ede.103.1644683890416; Sat, 12 Feb 2022 08:38:10 -0800 (PST) X-Received: by 2002:a05:6402:278c:: with SMTP id b12mr7210710ede.103.1644683890187; Sat, 12 Feb 2022 08:38:10 -0800 (PST) Received: from [192.168.0.101] (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id fd21sm290486ejc.44.2022.02.12.08.38.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 12 Feb 2022 08:38:09 -0800 (PST) Message-ID: <59c02065-7da9-4665-9038-82b3b6bda339@canonical.com> Date: Sat, 12 Feb 2022 17:38:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v5 1/1] arm64: dts: exynos: Add initial device tree support for Exynos7885 SoC Content-Language: en-US To: David Virag Cc: Sam Protsenko , phone-devel@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220206231816.127650-1-virag.david003@gmail.com> <20220206231816.127650-2-virag.david003@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20220206231816.127650-2-virag.david003@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 07/02/2022 00:18, David Virag wrote: > Add initial Exynos7885 device tree nodes with dts for the Samsung Galaxy > A8 (2018), a.k.a. "jackpotlte", with model number "SM-A530F". > Currently this includes some clock support, UART support, and I2C nodes. > > Signed-off-by: David Virag > --- > Changes in v2: > - Remove address-cells, and size-cells from dts, since they are > already in the dtsi. > - Lower case hex in memory node > - Fix node names with underscore instead of hyphen > - Fix line breaks > - Fix "-key" missing from gpio keys node names > - Use the form without "key" in gpio key labels on all keys > - Suffix pin configuration node names with "-pins" > - Remove "fimc_is_mclk" nodes from pinctrl dtsi for now > - Use macros for "samsung,pin-con-pdn", and "samsung,pin-con-pdn" > - Add comment about Arm PMU > - Rename "clock-oscclk" to "osc-clock" > - Include exynos-syscon-restart.dtsi instead of rewriting its contents > > Changes in v3: > - Fix typo (seperate -> separate) > > Changes in v4: > - Fixed leading 0x in clock-controller nodes > - Actually suffixed pin configuration node names with "-pins" > - Seperated Cortex-A53 and Cortex-A73 PMU > > Changes in v5: > - Use "-gpio-bank" suffix in gpio bank nodes > - Remove interrupts from gpio-keys > - Move oscclk clock-frequency to board dts > - Seperate cmu_core clock names into 4 lines > - Use EXYNOS5420_PIN_DRV_LVx macros > - Add missing include from pinctrl dtsi > - Drop decon pinctrl nodes > - Order pinctrls by addresses > > arch/arm64/boot/dts/exynos/Makefile | 7 +- > .../boot/dts/exynos/exynos7885-jackpotlte.dts | 93 ++ > .../boot/dts/exynos/exynos7885-pinctrl.dtsi | 855 ++++++++++++++++++ > arch/arm64/boot/dts/exynos/exynos7885.dtsi | 440 +++++++++ > 4 files changed, 1392 insertions(+), 3 deletions(-) > create mode 100644 arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts > create mode 100644 arch/arm64/boot/dts/exynos/exynos7885-pinctrl.dtsi > create mode 100644 arch/arm64/boot/dts/exynos/exynos7885.dtsi > Tried to apply and there was a conflict in Makefile, so this looks like based on something wrong. Patches should be based on maintainer's tree, which can be easily achieved by basing just on linux-next. Anyway, I fixed the conflicts but it fails new pinctrl schema (already in next) with few errors. This looks like the same error exynos850 had: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git/commit/?h=next/dt64&id=daeb1c2b50fb98118d6318b5fdbd9ef9bdfaeaf5 also maybe: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git/commit/?h=next/dt64&id=f377d4d4beafca755d2b6e6368895b1f3fb383c6 DTSI or schema might need adjustement. > diff --git a/arch/arm64/boot/dts/exynos/Makefile b/arch/arm64/boot/dts/exynos/Makefile > index b41e86df0a84..c68c4ad577ac 100644 > --- a/arch/arm64/boot/dts/exynos/Makefile > +++ b/arch/arm64/boot/dts/exynos/Makefile > @@ -1,6 +1,7 @@ > # SPDX-License-Identifier: GPL-2.0 > dtb-$(CONFIG_ARCH_EXYNOS) += \ > - exynos5433-tm2.dtb \ > - exynos5433-tm2e.dtb \ > - exynos7-espresso.dtb \ > + exynos5433-tm2.dtb \ > + exynos5433-tm2e.dtb \ > + exynos7-espresso.dtb \ > + exynos7885-jackpotlte.dtb \ Please rebase. > exynosautov9-sadk.dtb > diff --git a/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts b/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts > new file mode 100644 > index 000000000000..d707dba906d1 > --- /dev/null > +++ b/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts > @@ -0,0 +1,93 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Samsung Galaxy A8 2018 (jackpotlte/SM-A530F) device tree source > + * > + * Copyright (c) 2021 Samsung Electronics Co., Ltd. > + * Copyright (c) 2021 Dávid Virág > + * No need for blank line. > + */ > + > +/dts-v1/; > +#include "exynos7885.dtsi" > +#include > +#include > +#include > + > +/ { > + model = "Samsung Galaxy A8 (2018)"; > + compatible = "samsung,jackpotlte", "samsung,exynos7885"; > + chassis-type = "handset"; > + > + aliases { > + serial0 = &serial_0; > + serial1 = &serial_1; > + serial2 = &serial_2; > + }; > + > + chosen { > + stdout-path = &serial_2; > + }; > + > + memory@80000000 { > + device_type = "memory"; > + reg = <0x0 0x80000000 0x3da00000>, > + <0x0 0xc0000000 0x40000000>, > + <0x8 0x80000000 0x40000000>; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + pinctrl-names = "default"; > + pinctrl-0 = <&key_volup &key_voldown &key_power>; > + > + volup-key { > + label = "Volume Up"; > + linux,code = ; > + gpios = <&gpa1 5 GPIO_ACTIVE_LOW>; > + }; > + > + voldown-key { > + label = "Volume Down"; > + linux,code = ; > + gpios = <&gpa1 6 GPIO_ACTIVE_LOW>; > + }; > + > + power-key { > + label = "Power"; > + linux,code = ; > + gpios = <&gpa1 7 GPIO_ACTIVE_LOW>; > + wakeup-source; > + }; > + }; > +}; > + > +&serial_2 { > + status = "okay"; > +}; > + > +&pinctrl_alive { > + key_volup: key-volup-pins { > + samsung,pins = "gpa1-5"; > + samsung,pin-function = ; > + samsung,pin-pud = ; > + samsung,pin-drv = ; > + }; > + > + key_voldown: key-voldown-pins { > + samsung,pins = "gpa1-6"; > + samsung,pin-function = ; > + samsung,pin-pud = ; > + samsung,pin-drv = ; > + }; > + > + key_power: key-power-pins { > + samsung,pins = "gpa1-7"; > + samsung,pin-function = ; > + samsung,pin-pud = ; > + samsung,pin-drv = ; > + }; > +}; > + > +&oscclk { Order overriden nodes alphabeticall by label name, so (ossclk, pinctrl_alive, serial). Best regards, Krzysztof