Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp904133rwo; Sat, 22 Jul 2023 02:37:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlHD9PRPavYcFuz5DzNE/p37A/0mv/cBE6gkpzcb6VdgxQbJ2IG1yZ+B8XCmJVaGzrITTuH1 X-Received: by 2002:a05:6870:f59b:b0:19c:b5bc:e868 with SMTP id eh27-20020a056870f59b00b0019cb5bce868mr5367088oab.58.1690018649693; Sat, 22 Jul 2023 02:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690018649; cv=none; d=google.com; s=arc-20160816; b=QTDlKYGh/ssv5EimepZPrb6IKOlTalqba+22QpSNsIaqiTox7AXBPS8EwPO2t6q2Ny 2bTk/8Lyt8txq20yBj8st4BDU9ROgehkDBy0hbT1BVWCNOa679N3CPR1iqSmBDidsotO 5ZG5pFTqGNUTbrQoRlC1BoXzXmVSpmY2XYucX9sos7azixNKuPqeDVVS8+Nc5AZhIfNd BfIGSxE2aebFOUPG7aAyRr0PNp1AhkssIdwvWYxHjD0wAYloKNXa/cMxvqsHdLyxxHLe S5gesp1PA61a2uJxjYDNKNPVjgQWWJvTTdZMCiFh4s4gxqmwfFSXk5UrxD481tAGckc8 yovw== 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=ny814m9gzq+Ob9vj2yLBGuOvxN+pshyDPV5HjC/GEAk=; fh=hqJRLP2DqJBv4dpJQLxa+X8QWhgPoUcsTSa6dzH5+CU=; b=Mdjc2O9RJPc50Dt12TjNDIK5qwhhAYLiYN6sG47LBZbgW/rzEEpseoXINOygW4glnE WrPDZRaZminoAqJUxJORFvxrgU7fxNbsMGlnc0ryIUUdlW4jbZRqNlVMd0jQjrerhMXr JFJO20nzUvonwo50/rYuVn0nrrIPGC86VzyJbE7i0mHbt5lmXEGRPW20zYsPZVkWVHyJ rhb+rCBKxYecO7Gnm7wTmAdn1u4uwyD2G6+PpZ35jr4Zkl93zvaQZFhjN5l907rK0WsN vxQjjKxHp9CpNRIy9g/zFIee/TYhDnF8z3wJ/uZAjeqQvYgul/01loHv5PMNoy6SDYqj 0aMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NVo7nwO3; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j64-20020a638043000000b005533f397576si4945122pgd.46.2023.07.22.02.37.17; Sat, 22 Jul 2023 02:37:29 -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; dkim=pass header.i=@linaro.org header.s=google header.b=NVo7nwO3; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229591AbjGVJZt (ORCPT + 99 others); Sat, 22 Jul 2023 05:25:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjGVJZr (ORCPT ); Sat, 22 Jul 2023 05:25:47 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFB142D46 for ; Sat, 22 Jul 2023 02:25:45 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-51d95aed33aso3630250a12.3 for ; Sat, 22 Jul 2023 02:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690017944; x=1690622744; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ny814m9gzq+Ob9vj2yLBGuOvxN+pshyDPV5HjC/GEAk=; b=NVo7nwO3gE/bJodg4uEVVkqgSBQp0dAI/Wv5nmuSrPOJhED358gZ/3mIu2vFOAqEmm PnWC/EspHvBd20sgweZmuiYA+H4PIRZufN4fWED4QomiMiLWmm0hp3Ghx16d061qpRP7 EzOvpFrUlpvPtI2bSiknnI6QQ1S9hlJKntCSPxK/CmT6O5hA0MtckZSgpOeSPW7LRHl2 xHlwImk/g3jG+QZ7Up1bajMFwRqao1bQxkMNpKo28sx3MvCmFNEKm2kXdcnbcZxtnQpa PmHxYJQNCFqiT+lW6pdfIFdNf9EGuoeisFmDlx6wJGNiylCBTCHQ/ryQ5VOg3Tabkt7F G0Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690017944; x=1690622744; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ny814m9gzq+Ob9vj2yLBGuOvxN+pshyDPV5HjC/GEAk=; b=O/IdD2rcoL03AQlK49w3ahiWfBaUjABRfaHDbKHaKw48lsM9MiXGpDzKTrkAZs6xyW 2ICVV6GMf9jxDkag6Bp/xMXMIT7tqblKaGZ6qM0Uc66IxI7jUhDAZGmnQyIayhQ/Myt7 8HSYey2jDS9lqQt4CZGANDiRAbd/zeSEgGGdJYgDWkVROWAAYQp6ALSnxI/9YnVTKcWW bA47cT1zAN4FKwEXQASxZkcT2bxLFGjgNUt33zINwssU06Cj1mH0Sh0Shnf335YpVHtE ma2pqEW7W440vymbdxDueVEkzYX7PKpOYS5XSrh5QL9fs8R+RGxrEpA2z0YZt1mQE4Wr qV7A== X-Gm-Message-State: ABy/qLb7YbYnMfR7/c5MK/yu/i8Hg+GPLqgBx8B3f7lZVixF7/k7S3nq tLL278CnFoN3iX3jyl2aQN0IGQ== X-Received: by 2002:a05:6402:2da:b0:51d:a488:3b3d with SMTP id b26-20020a05640202da00b0051da4883b3dmr3288580edx.35.1690017944148; Sat, 22 Jul 2023 02:25:44 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id b25-20020aa7d499000000b0050bc4eb9846sm3163598edr.1.2023.07.22.02.25.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Jul 2023 02:25:43 -0700 (PDT) Message-ID: Date: Sat, 22 Jul 2023 11:25:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 08/10] arm64: dts: Add DTS for Marvell PXA1908 and samsung,coreprimevelte Content-Language: en-US To: =?UTF-8?Q?Duje_Mihanovi=c4=87?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hardening@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, afaerber@suse.com References: <20230721210042.21535-1-duje.mihanovic@skole.hr> <20230721210042.21535-9-duje.mihanovic@skole.hr> From: Krzysztof Kozlowski In-Reply-To: <20230721210042.21535-9-duje.mihanovic@skole.hr> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 21/07/2023 22:37, Duje Mihanović wrote: > Add DTS for Marvell PXA1908 SoC and Samsung Galaxy Core Prime Value > Edition LTE, a smartphone based on said SoC. > > Signed-off-by: Duje Mihanović > --- > arch/arm64/boot/dts/marvell/Makefile | 1 + > .../pxa1908-samsung-coreprimevelte.dts | 321 ++++++++++++++++++ > arch/arm64/boot/dts/marvell/pxa1908.dtsi | 298 ++++++++++++++++ > 3 files changed, 620 insertions(+) > create mode 100644 arch/arm64/boot/dts/marvell/pxa1908-samsung-coreprimevelte.dts > create mode 100644 arch/arm64/boot/dts/marvell/pxa1908.dtsi > > diff --git a/arch/arm64/boot/dts/marvell/Makefile b/arch/arm64/boot/dts/marvell/Makefile > index 79ac09b58a89..0e277a0d368b 100644 > --- a/arch/arm64/boot/dts/marvell/Makefile > +++ b/arch/arm64/boot/dts/marvell/Makefile > @@ -27,3 +27,4 @@ dtb-$(CONFIG_ARCH_MVEBU) += cn9132-db-B.dtb > dtb-$(CONFIG_ARCH_MVEBU) += cn9130-crb-A.dtb > dtb-$(CONFIG_ARCH_MVEBU) += cn9130-crb-B.dtb > dtb-$(CONFIG_ARCH_MVEBU) += ac5-98dx35xx-rd.dtb > +dtb-$(CONFIG_ARCH_MMP) += pxa1908-samsung-coreprimevelte.dtb > diff --git a/arch/arm64/boot/dts/marvell/pxa1908-samsung-coreprimevelte.dts b/arch/arm64/boot/dts/marvell/pxa1908-samsung-coreprimevelte.dts > new file mode 100644 > index 000000000000..3e10a77a106e > --- /dev/null > +++ b/arch/arm64/boot/dts/marvell/pxa1908-samsung-coreprimevelte.dts > @@ -0,0 +1,321 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +#include "pxa1908.dtsi" > +#include > +#include > + > +/ { > + pxa,rev-id = <3928 2>; Drop. This is not documented. It does not look like you tested the DTS against bindings. Please run `make dtbs_check` (see Documentation/devicetree/bindings/writing-schema.rst or https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/ for instructions). > + model = "Samsung Galaxy Core Prime VE LTE"; > + compatible = "samsung,coreprimevelte", "marvell,pxa1908"; Missing bindings. > + > + /* Bootloader fills this in */ > + memory { > + device_type = "memory"; > + reg = <0 0 0 0>; > + }; > + > + reserved-memory { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + framebuffer@17000000 { > + reg = <0 0x17000000 0 0x1800000>; > + no-map; > + }; > + > + gpu@9000000 { > + reg = <0 0x9000000 0 0x1000000>; > + }; > + > + /* Communications processor, aka modem */ > + cp@3000000 { > + reg = <0 0x3000000 0 0x5000000>; > + }; > + > + cm3@a000000 { > + reg = <0 0xa000000 0 0x80000>; > + }; > + > + seclog@8000000 { > + reg = <0 0x8000000 0 0x100000>; > + }; > + > + ramoops@8100000 { > + compatible = "ramoops"; > + reg = <0 0x8100000 0 0x40000>; > + record-size = <0x8000>; > + console-size = <0x20000>; > + max-reason = <5>; > + }; > + }; > + > + fb0: framebuffer@17177000 { > + compatible = "simple-framebuffer"; > + reg = <0 0x17177000 0 (480 * 800 * 4)>; > + width = <480>; > + height = <800>; > + stride = <(480 * 4)>; > + format = "a8r8g8b8"; > + }; > + > + muic-i2c { > + compatible = "i2c-gpio"; > + sda-gpios = <&gpio 30 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; > + scl-gpios = <&gpio 29 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; > + i2c-gpio,delay-us = <3>; > + i2c-gpio,timeout-ms = <100>; > + #address-cells = <1>; > + #size-cells = <0>; > + pinctrl-names = "default"; > + pinctrl-0 = <&muic_i2c_pins>; > + > + muic: extcon@14 { > + compatible = "siliconmitus,sm5504-muic"; > + reg = <0x14>; > + interrupt-parent = <&gpio>; > + interrupts = <0 IRQ_TYPE_EDGE_FALLING>; > + }; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + pinctrl-names = "default"; > + pinctrl-0 = <&gpio_keys_pins>; > + autorepeat; > + > + key-home { > + label = "Home"; > + linux,code = ; > + gpios = <&gpio 50 GPIO_ACTIVE_LOW>; > + }; > + > + key-volup { > + label = "Volume Up"; > + linux,code = ; > + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; > + }; > + > + key-voldown { > + label = "Volume Down"; > + linux,code = ; > + gpios = <&gpio 17 GPIO_ACTIVE_LOW>; > + }; > + }; > + > + chosen {}; chosen is usually at the top (as alphabetical order suggests) > +}; > + > +&smmu { > + status = "okay"; > +}; > + > +&pmx { > + pinctrl-single,gpio-range = <&range 55 55 0>, > + <&range 110 32 0>, > + <&range 52 1 0>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&board_pins_1 &board_pins_2 &board_pins_3>; > + > + board_pins_1: pinmux_board_1 { No underscores in node names. ... > diff --git a/arch/arm64/boot/dts/marvell/pxa1908.dtsi b/arch/arm64/boot/dts/marvell/pxa1908.dtsi > new file mode 100644 > index 000000000000..7131b2070b72 > --- /dev/null > +++ b/arch/arm64/boot/dts/marvell/pxa1908.dtsi > @@ -0,0 +1,298 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/dts-v1/; > + > +#include > +#include > + > +/ { > + model = "Marvell Armada PXA1908"; > + compatible = "marvell,pxa1908"; Undocumented compatible. Please run scripts/checkpatch.pl and fix reported warnings. Some warnings can be ignored, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear. Best regards, Krzysztof