Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5292030rwb; Wed, 9 Aug 2023 01:32:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFlPkwQJbMs4YTTIJJFbcEFNpwIDcwlQivH8S9b80AXh6Hogck8pNGKAVgGWIifx+vgQglF X-Received: by 2002:a17:902:d2c9:b0:1b8:b285:ec96 with SMTP id n9-20020a170902d2c900b001b8b285ec96mr2748383plc.23.1691569957886; Wed, 09 Aug 2023 01:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691569957; cv=none; d=google.com; s=arc-20160816; b=Lv2sGVARxYskV5oFryyG0g92njCRdFpfKJG6MurLl57LqiTPLKDyr9m2IEsV8JEAjG NID/5wOH3OxOOUAMKxjIDvZkwrv9EUtjkz+wclaDvWEWSVhPkuAxlRGzkO647DIwATOP 4o8GT5aRv2UM+QPzfVwJUmB9stArIWqsVL8sKWpOSf8jslSeGLHqfeutSyQXujJ0toqv IT9KqRgWyOL8e++tn4hJAvAdyACINbfHoEb22AFCU2N3DW0pJIgFIgqld5FOcmrUOBuC 7p4hGRKfiEScPjQqZIxzgkF//A/7oyHmVmPxt/NMkrtWrqLFhoihjqZUO+Au9sTQzV8C CBvA== 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:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=oA4Y4YVJk393hhh41gsTxcc/kNbbX/n08U98oNmh4/w=; fh=Tvs/1RYASutjvDPLuAFyQTtj/c75RjONLcreNbRgvGs=; b=Vk/zu+hLnrYZ4jWG+jH0iThVowgpuEPfqXPyPtCJdPms1rI+d+XSQr33mZkSCwnQ+L 2nLzhqxfEbZ9mgjYhRRnnx81viY1cEJDrZRizOV+nMsZENvrEu5QXr9jnMmwNQJRiBWC Iy5EKyTWl/oDeQdvIHtEDwbiJqLHYyOvhmIb6Jl0aRmw/mz/d97ON5bwwdjcx+cw7wyZ astQSPqZcyA4Wat8R7ylEhoaItTeWSPK+EZxINTy7WUV1lg+7fWFjTlb+1Q3Dy4PN8iq sYPd57mlIfjExuLLpb5m2H+8lrAGN/LDax6X9ryzU4wcAl0KgnDOlEXt4zcq2X83SqB9 siyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b="hZ/72Sv7"; 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 m5-20020a170902e40500b001b9e3a18270si8346368ple.420.2023.08.09.01.32.25; Wed, 09 Aug 2023 01:32:37 -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=@tuxon.dev header.s=google header.b="hZ/72Sv7"; 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 S231356AbjHIHCF (ORCPT + 99 others); Wed, 9 Aug 2023 03:02:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230359AbjHIHCD (ORCPT ); Wed, 9 Aug 2023 03:02:03 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A392C1BCF for ; Wed, 9 Aug 2023 00:02:02 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-269304c135aso3230058a91.3 for ; Wed, 09 Aug 2023 00:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1691564522; x=1692169322; 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:message-id:reply-to; bh=oA4Y4YVJk393hhh41gsTxcc/kNbbX/n08U98oNmh4/w=; b=hZ/72Sv75WYBkFU1n2H+ug8kvhWmdwucgKI4Hmadno8B5LfsJ7dn9ObXfcwz4Fkk+Q fYBDABKRxpSjcPE9PVLt8pJqP1OKPSE1050SpHdv/h2qLni7QWjnBCujCWS5/3wifvAx E0tISjHn5ijK3CCVy0QGAAHFbqAEfDsoDZ9Oz++vFCSS0MMMWxTJnJwz7TSadbBvwtCJ FCVvqcdNIonx8Anp+xXwZK5MnRb/eigUrrAjOEl0/1lTsITyd8QbsR6/agcCojI48z8F BcQNQJeCprAqD5TmGv7yHUV1zIs+sv74Z9NBxqm5JxdgBTRgHw3c6ALqlgFLokt4S+Po N2gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691564522; x=1692169322; 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:message-id:reply-to; bh=oA4Y4YVJk393hhh41gsTxcc/kNbbX/n08U98oNmh4/w=; b=YW8p7vJ/Uy38keKZoI1QyrXv3xHBEQ3CEzZGY+fD0fkqdJM2DR21p3gM9sy7PTDT/c jBUFuZhzudVgj+J+LrOVxr6EMfJzURda6zj7wdEYMffoYltl6LGGp620bE2JdxfHEXqk /XZ5h0e4wH0K1mnzJBx+HRtBkLIsioEpMfHWnfP9fblaVVK6BVltUvQNbSAjDDLYut4f oH5k25bqQqbHlps1+Pg7v7GAUbJmzcacK6HoEFFFe1ZSIDmNJske4jJgq65qsqEMIpKu 3t6PDE8mLnAm2nqEqpjSkmO3/B/aGd3KU3y3MLJVMFKz/jDbtXlk+Tfj3AEBDNpSj6RD 4/3w== X-Gm-Message-State: AOJu0YyFtBRfzeXXHT+8Cp/D8J5UNSd2tcaY+8HSNj5bPXp5hRFPnUIt pyE/A30c2jcCRFE3ix7+TuiqzUdPUfZKjQmXHQdVo9d7 X-Received: by 2002:a17:90a:ec0c:b0:268:1f0a:9f12 with SMTP id l12-20020a17090aec0c00b002681f0a9f12mr1436168pjy.29.1691564522040; Wed, 09 Aug 2023 00:02:02 -0700 (PDT) Received: from [10.0.2.15] ([82.78.167.79]) by smtp.gmail.com with ESMTPSA id gq9-20020a17090b104900b002694da8a9cdsm669814pjb.48.2023.08.09.00.01.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Aug 2023 00:02:01 -0700 (PDT) Message-ID: <91a5c6e5-eff1-0fcd-32fe-71a081f4e1f6@tuxon.dev> Date: Wed, 9 Aug 2023 10:01:48 +0300 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 v3 50/50] ARM: dts: at91: sam9x75_curiosity: add sam9x75 curiosity board Content-Language: en-US To: Varshini Rajendran , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, claudiu.beznea@microchip.com, andre.przywara@arm.com, f.fainelli@gmail.com, romain.perier@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mihai Sain - M19926 References: <20230728103114.267845-1-varshini.rajendran@microchip.com> From: claudiu beznea In-Reply-To: <20230728103114.267845-1-varshini.rajendran@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_FMBLA_NEWDOM28, NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, 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 28.07.2023 13:31, Varshini Rajendran wrote: > Add device tree file for sam9x75 curiosity board. > > Signed-off-by: Varshini Rajendran > --- > arch/arm/boot/dts/microchip/Makefile | 5 + > .../dts/microchip/at91-sam9x75_curiosity.dts | 311 ++++++++++++++++++ > 2 files changed, 316 insertions(+) > create mode 100644 arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts > > diff --git a/arch/arm/boot/dts/microchip/Makefile b/arch/arm/boot/dts/microchip/Makefile > index 0f5193d05a31..f3d604c30325 100644 > --- a/arch/arm/boot/dts/microchip/Makefile > +++ b/arch/arm/boot/dts/microchip/Makefile > @@ -10,6 +10,7 @@ DTC_FLAGS_at91-sama5d3_eds := -@ > DTC_FLAGS_at91-sama5d3_xplained := -@ > DTC_FLAGS_at91-sama5d4_xplained := -@ > DTC_FLAGS_at91-sama7g5ek := -@ > +DTC_FLAGS_at91-sam9x75_curiosity := -@ > dtb-$(CONFIG_SOC_AT91RM9200) += \ > at91rm9200ek.dtb \ > mpa1600.dtb > @@ -61,6 +62,10 @@ dtb-$(CONFIG_SOC_SAM9X60) += \ > at91-sam9x60_curiosity.dtb \ > at91-sam9x60ek.dtb > # Enables support for device-tree overlays > +DTC_FLAGS_at91-sam9x75_curiosity := -@ > +dtb-$(CONFIG_SOC_SAM9X7) += \ > + at91-sam9x75_curiosity.dtb > +# Enables support for device-tree overlays > DTC_FLAGS_at91-sama5d27_som1_ek := -@ > DTC_FLAGS_at91-sama5d27_wlsom1_ek := -@ > DTC_FLAGS_at91-sama5d2_icp := -@ > diff --git a/arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts b/arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts > new file mode 100644 > index 000000000000..a9ecb02a9f3c > --- /dev/null > +++ b/arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts > @@ -0,0 +1,311 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * at91-sam9x75_curiosity.dts - Device Tree file for Microchip SAM9X75 Curiosity board > + * > + * Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries > + * > + * Author: Varshini Rajendran > + */ > +/dts-v1/; > +#include "sam9x7.dtsi" > +#include > + > +/ { > + model = "Microchip SAM9X75 Curiosity"; > + compatible = "microchip,sam9x75-curiosity", "microchip,sam9x7", "atmel,at91sam9"; > + > + aliases { > + i2c0 = &i2c6; > + i2c1 = &i2c7; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + clocks { > + clock-slowxtal { > + clock-frequency = <32768>; > + }; > + > + clock-mainxtal { > + clock-frequency = <24000000>; > + }; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_key_gpio_default>; > + > + button-user { > + label = "USER"; > + gpios = <&pioC 9 GPIO_ACTIVE_LOW>; > + linux,code = ; > + wakeup-source; > + }; > + }; > + > + leds { > + compatible = "gpio-leds"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_led_gpio_default>; > + > + led-0 { > + label = "red"; > + gpios = <&pioC 19 GPIO_ACTIVE_HIGH>; > + }; > + > + led-1 { > + label = "green"; > + gpios = <&pioC 21 GPIO_ACTIVE_HIGH>; > + }; > + > + led-2 { > + label = "blue"; > + gpios = <&pioC 20 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "heartbeat"; > + }; > + }; > + > + memory@20000000 { > + device_type = "memory"; > + reg = <0x20000000 0x10000000>; > + }; > +}; > + > +&dbgu { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_dbgu>; > + status = "okay"; > +}; > + > +&dma0 { > + status = "okay"; > +}; > + > +&ehci0 { > + status = "okay"; > +}; > + > +&flx6 { > + atmel,flexcom-mode = ; > + status = "okay"; > + > + i2c6 { > + #address-cells = <1>; > + #size-cells = <0>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_flx6_default>; > + i2c-analog-filter; > + i2c-digital-filter; > + i2c-digital-filter-width-ns = <35>; > + status = "okay"; > + > + pmic@5b { > + compatible = "microchip,mcp16502"; > + reg = <0x5b>; > + > + regulators { > + vdd_3v3: VDD-IO { Mihai reported that having '-' in node name for this PMIC driver leads to failures on probe. Can you also check on your side? > + regulator-name = "VDD_IO"; > + regulator-min-microvolt = <3000000>;