From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3EFBAECAAD5 for ; Thu, 8 Sep 2022 11:06:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=T0wSdpu5WdTODZTdAZwCifNgYgS+knk9O5QGVTwaguA=; b=36fMoTyAbGBuE4 UFtmTzRH2BX95OiuKai715tUdTaRQvcbbGSN4kBIwb6dGXuk/thtF2OiPEcoXBKxWRduyYRjfjyxJ Bx9YLuTXLaRCv0ExhtTTHrNKfgQoXZjWOiOHaF8oF1KxkbmQDx0EOMhBhdtf53CBmL9mFtR3ka1p6 I5hQbQBhhtAGXKWa7yuxJNOJvx31QPNefOEgxH8vob3GWu5m/iBGcNAtDzPVeush59M5k4x6o+wgO SkM6IkgnGTsHL3seMd1zBBqfwyYjCYK5IJ3eQDxNP9gyJgMb6iQQjY3hsJ54p+akvfkJ7q6dsEzKO LaTQbR4g5GJynHQLvrMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWFL4-002YIl-D6; Thu, 08 Sep 2022 11:04:54 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWFKz-002YEV-7x for linux-arm-kernel@lists.infradead.org; Thu, 08 Sep 2022 11:04:52 +0000 Received: by mail-lf1-x134.google.com with SMTP id w8so27048958lft.12 for ; Thu, 08 Sep 2022 04:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=U4E7tvJ0cK6VylVw75NAe0M7sqnMkBPhRkEg5cBpB4Y=; b=DohWmCgRefLemL54TzZRKIj5xLPKl6IPiXNAa9OuNmmdark+xppfaPLU7NpuAFy1nq oyc1MC3uT3O7ddArgCfluyiPhnzDzABpncwD3xJJcQKlM4LhQ2S3txnmp2zVoBFyLVTj 4LReIBy79oXTx0hVeS7pnNIAsXVJdtKJRRK7mg7O6ffTIJKCA5CWS8QL4apCqncFKbip AjkIBXUCjQZ6RhrOw5hZplfy4jQ0IDulTHLUy5pZlLk4mKRh8XZ8azBcwrWei7Ntpsbw d3qsEyBux9BNpyKgfabLcAmYJcPCN1jd/s1E/9WlSej4aBHcsfhx33Smzi3jzYALRwBu VAxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=U4E7tvJ0cK6VylVw75NAe0M7sqnMkBPhRkEg5cBpB4Y=; b=oJDiQ5x0yd9nx9L7XwHjflfhXKGY6nYSaIKUh0pTH/sLXrbwVgTjz1RHk2LwNP3CHl aK/EW1NRQkR6W8iSTIjy2yHjtpA88Q8AzsnqhJcLse+A5Z7KsMEcqVDpmZ3/YHUW0rTa OC2QaZREQewi7xq9jrML/c6cY3eP7Q6wNqpmzWsAqyYd8Ub+VkLDvVmFtFko3N70/zeo cC673f5PwkHF6rjdHYTF6fbrXewCqMLaV9CkHgFYyRd+318HUvDOObNAMqnS4dCBwMpT D4EsZ7Dk72qFbxgB630PA9ZUZ58fD7vGyEmEVNN+uokKBI6MW7dC/Ai3wrTGrmtf1Zex iEdA== X-Gm-Message-State: ACgBeo32Ev0oclHbbaeWvYnc4W70d+a40stWXxURqKL/Swc2zLI1GAst nUPFvmPBYCb6pRFOttCh2N6tqA== X-Google-Smtp-Source: AA6agR5SGVF6aJThZOB+TPEqq+DmSy6UlYhXoGhAsv7SukTqjP2ylbQ97Rru1D8uRX1+WNfrnAOJXQ== X-Received: by 2002:a05:6512:555:b0:497:9dda:6e91 with SMTP id h21-20020a056512055500b004979dda6e91mr2875046lfl.78.1662635086049; Thu, 08 Sep 2022 04:04:46 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id a12-20020a05651c210c00b0026ac7cd51afsm1225181ljq.57.2022.09.08.04.04.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Sep 2022 04:04:45 -0700 (PDT) Message-ID: <6fb37c95-1bb3-aef0-eca8-3f6e3b868e3e@linaro.org> Date: Thu, 8 Sep 2022 13:04:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [linux][PATCH 6/6] ARM: dts: at91: sam9x60_curiosity: Add device tree for sam9x60_curiosity board Content-Language: en-US To: Hari Prasath , nicolas.ferre@microchip.com, claudiu.beznea@microchip.com, davem@davemloft.net, krzysztof.kozlowski+dt@linaro.org, alexandre.belloni@bootlin.com, arnd@arndb.de, olof@lixom.net, soc@kernel.org, manikandan.m@microchip.com, michael@walle.cc, horatiu.vultur@microchip.com, kavyasree.kotagiri@microchip.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, durai.manickamkr@microchip.com References: <20220907092054.29915-1-Hari.PrasathGE@microchip.com> <20220907092054.29915-7-Hari.PrasathGE@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <20220907092054.29915-7-Hari.PrasathGE@microchip.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220908_040449_373360_B9F302EC X-CRM114-Status: GOOD ( 19.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 07/09/2022 11:20, Hari Prasath wrote: > From: Manikandan M > > Add device tree file for sam9x60_curiosity board. > > Signed-off-by: Durai Manickam KR > Signed-off-by: Manikandan M > Signed-off-by: Hari Prasath > --- > .../devicetree/bindings/arm/atmel-at91.yaml | 6 + Bindings are separate patches. > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/at91-sam9x60_curiosity.dts | 532 ++++++++++++++++++ > 3 files changed, 539 insertions(+) > create mode 100644 arch/arm/boot/dts/at91-sam9x60_curiosity.dts > > diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.yaml b/Documentation/devicetree/bindings/arm/atmel-at91.yaml > index 2b7848bb7769..fae3a3090fbd 100644 > --- a/Documentation/devicetree/bindings/arm/atmel-at91.yaml > +++ b/Documentation/devicetree/bindings/arm/atmel-at91.yaml > @@ -97,6 +97,12 @@ properties: > - const: microchip,sam9x60 > - const: atmel,at91sam9 > > + - description: SAM9X60 Curiosity board > + items: > + - const: microchip,sam9x60-curiosity > + - const: microchip,sam9x60 > + - const: atmel,at91sam9 This should be rather together with previous entry as an enum. > + > - description: Nattis v2 board with Natte v2 power board > items: > - const: axentia,nattis-2 > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 595e870750cd..cd60cda5d187 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -51,6 +51,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \ > at91sam9x25ek.dtb \ > at91sam9x35ek.dtb > dtb-$(CONFIG_SOC_SAM9X60) += \ > + at91-sam9x60_curiosity.dtb \ > at91-sam9x60ek.dtb > dtb-$(CONFIG_SOC_SAM_V7) += \ > at91-kizbox2-2.dtb \ > diff --git a/arch/arm/boot/dts/at91-sam9x60_curiosity.dts b/arch/arm/boot/dts/at91-sam9x60_curiosity.dts > new file mode 100644 > index 000000000000..75e6727b5e3a > --- /dev/null > +++ b/arch/arm/boot/dts/at91-sam9x60_curiosity.dts > @@ -0,0 +1,532 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * at91-sam9x60_curiosity.dts - Device Tree file for Microchip SAM9X60 CURIOSITY board > + * > + * Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries > + * > + * Author: Manikandan M > + */ > +/dts-v1/; > +#include "sam9x60.dtsi" > +#include > + > +/ { > + model = "Microchip SAM9X60 CURIOSITY"; > + compatible = "microchip,sam9x60-curiosity", "microchip,sam9x60", "atmel,at91sam9"; > + > + aliases { > + i2c0 = &i2c0; > + i2c1 = &i2c6; > + serial2 = &uart7; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + memory@20000000 { > + reg = <0x20000000 0x8000000>; > + }; > + > + clocks { > + slow_xtal { No underscores in node names... If you override nodes, do it via label. > + clock-frequency = <32768>; > + }; > + > + main_xtal { > + clock-frequency = <24000000>; > + }; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_key_gpio_default>; > + status = "okay"; Okay is by default. > + > + button-user { > + label = "PB_USER"; > + gpios = <&pioA 29 GPIO_ACTIVE_LOW>; > + linux,code = ; > + wakeup-source; > + }; > + }; > + > + leds { > + compatible = "gpio-leds"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_gpio_leds>; > + status = "okay"; Ditto > + > + red { Does not look like you tested the DTS against bindings. Please run `make dtbs_check` (see Documentation/devicetree/bindings/writing-schema.rst for instructions). You need to fix all warnings in your DTS. > + label = "red"; > + gpios = <&pioD 17 GPIO_ACTIVE_HIGH>; > + }; > + > + green { > + label = "green"; > + gpios = <&pioD 19 GPIO_ACTIVE_HIGH>; > + }; > + > + blue { > + label = "blue"; > + gpios = <&pioD 21 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "heartbeat"; > + }; > + }; > + > + regulators: regulators { > + compatible = "simple-bus"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + vdd_1v8: fixed-regulator-vdd_1v8@0 { No underscores in node names. No prefix "fixed-". This is just a regulator. > + compatible = "regulator-fixed"; > + regulator-name = "VDD_1V8"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-always-on; > + status = "okay"; Really? > + }; > + > + vdd_1v15: fixed-regulator-vdd_1v15@1 { > + compatible = "regulator-fixed"; > + regulator-name = "VDD_1V15"; > + regulator-min-microvolt = <1150000>; > + regulator-max-microvolt = <1150000>; > + regulator-always-on; > + status = "okay"; > + }; > + > + vdd1_3v3: fixed-regulator-vdd1_3v3@2 { > + compatible = "regulator-fixed"; > + regulator-name = "VDD1_3V3"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-always-on; > + status = "okay"; > + }; > + }; > +}; > + > +&adc { > + vddana-supply = <&vdd1_3v3>; > + vref-supply = <&vdd1_3v3>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_adc_default &pinctrl_adtrg_default>; > + status = "okay"; > +}; > + > +&can0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_can0_rx_tx>; > + status = "disabled"; /* Conflict with dbgu. */ > +}; > + > +&can1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_can1_rx_tx>; > + status = "okay"; > +}; > + > +&dbgu { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_dbgu>; > + status = "okay"; /* Conflict with can0. */ > +}; > + > +&ebi { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_ebi_addr_nand &pinctrl_ebi_data_0_7>; > + status = "okay"; > + > + nand_controller: nand-controller { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_nand_oe_we &pinctrl_nand_cs &pinctrl_nand_rb>; > + status = "okay"; > + > + nand@3 { > + reg = <0x3 0x0 0x800000>; > + rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>; > + cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>; > + nand-bus-width = <8>; > + nand-ecc-mode = "hw"; > + nand-ecc-strength = <8>; > + nand-ecc-step-size = <512>; > + nand-on-flash-bbt; > + label = "atmel_nand"; > + > + partitions { > + compatible = "fixed-partitions"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + at91bootstrap@0 { > + label = "at91bootstrap"; > + reg = <0x0 0x40000>; > + }; > + > + uboot@40000 { > + label = "u-boot"; > + reg = <0x40000 0xc0000>; > + }; > + > + ubootenvred@100000 { > + label = "U-Boot Env Redundant"; > + reg = <0x100000 0x40000>; > + }; > + > + ubootenv@140000 { > + label = "U-Boot Env"; > + reg = <0x140000 0x40000>; > + }; > + > + dtb@180000 { > + label = "device tree"; > + reg = <0x180000 0x80000>; > + }; > + > + kernel@200000 { > + label = "kernel"; > + reg = <0x200000 0x600000>; > + }; > + > + rootfs@800000 { > + label = "rootfs"; > + reg = <0x800000 0x1f800000>; > + }; > + }; > + }; > + }; > +}; > + > +&flx0 { > + atmel,flexcom-mode = ; > + status = "okay"; > + > + i2c0: i2c@600 { > + dmas = <0>, <0>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_flx0_default>; > + i2c-analog-filter; > + i2c-digital-filter; > + i2c-digital-filter-width-ns = <35>; > + status = "okay"; ?? > + > + eeprom@53 { > + compatible = "atmel,24c02"; > + reg = <0x53>; > + pagesize = <16>; > + status = "okay"; > + }; > + }; > +}; > + > +&flx6 { > + atmel,flexcom-mode = ; > + status = "okay"; > + > + i2c6: i2c@600 { > + dmas = <0>, <0>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_flx6_default>; > + i2c-analog-filter; > + i2c-digital-filter; > + i2c-digital-filter-width-ns = <35>; > + status = "disabled"; > + }; > +}; > + > +&flx7 { > + atmel,flexcom-mode = ; > + status = "okay"; > + > + uart7: serial@200 { > + #address-cells = <1>; > + #size-cells = <0>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_flx7_default>; > + status = "okay"; > + }; > +}; > + > +&macb0 { > + phy-mode = "rmii"; > + #address-cells = <1>; > + #size-cells = <0>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_macb0_rmii>; > + status = "okay"; > + > + ethernet-phy@0 { > + reg = <0x0>; > + }; > +}; > + > +&pinctrl { > + adc { > + pinctrl_adc_default: adc_default { No underscores in node names. Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel