Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3420534pxf; Mon, 29 Mar 2021 01:32:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFNiooc5jOy7u5QCePv3GvlgqGbihHW2efHpG2Wfnf47QVGmSqnn0eHqkSWjY26mZatlnv X-Received: by 2002:a05:6402:699:: with SMTP id f25mr27632522edy.47.1617006766959; Mon, 29 Mar 2021 01:32:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617006766; cv=none; d=google.com; s=arc-20160816; b=EI+E20D1NOiS7KMbhN9rYDfVC3DftQtMG1PMJs8WwVK456ulg4ws52iOal28K+tHrT M9hMKpgYLcaqhxDXox8wAx9aGsc6i5wY7r3+fJ/8c9NCUnt+J83HEWiE5XGiI/KOJ7UX bfD3PY+K7BD6zU/sovn9dlojCqQiqZ8wXcNVujk5cIi/cgpfuoFP3OxGhWLRsrpS9upn YICY751kJIGR0dDToaDwirOKw2s2A5v0T7spRo6bO0eDvmC91Z+GH/ergRqFwBTMq1SC apIsNqsMouX123Jg8L226cJoYRZ+isQEzdVtFGnJAvHxxnO47BsFQNBTNDan2c4V6U+7 l3Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=POG8SgudbWDUFFIdBAnszbLiwy+Mc4nrzMeRwqsQvuE=; b=s2GPfp7gmTLpr8nV+FE+zD2nWsob8Qsd/OBkqIdUgi8zV9NWB3kltSS2+HKUiDNdnM I1FoXy8z4OToASUlvP1Vr8iN9dgsquAydtSwty1ZZ94I4lQKK/9uKQHCW6hy8ydqQqcF Tmd7l6aSP74dJ5zl47jIDS8B7P+VYuelAyujQbyjfqJ5MAZtvFto241HnouvTYwDngbf xMIqFEJmRmgeC0fYq2XYZB8v8uO56d0pBfKKFV9rWKkowPKmFChokYtscNLodj5bS7JZ Mj5W2Jc6FfhlIYKIgumO1IvNv2BUUDIHTEZuee8ZOyYalreHU3qahuLDAct/h0q6kdrC ZpxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iWUEW83j; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si13951511ejd.137.2021.03.29.01.32.24; Mon, 29 Mar 2021 01:32:46 -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=@linuxfoundation.org header.s=korg header.b=iWUEW83j; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233674AbhC2Ibf (ORCPT + 99 others); Mon, 29 Mar 2021 04:31:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:36578 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232317AbhC2IT6 (ORCPT ); Mon, 29 Mar 2021 04:19:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 65F3B61477; Mon, 29 Mar 2021 08:19:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617005997; bh=2TW9CPbQ/+CJJBqvvlc7FFDOu/dSgrA0mwKG1D8j9BY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iWUEW83jxwrVeNVnKPRYutYHEMBCylKy+F5RgXMhhgcDyfVASenVCBW1MEnewM+yV kgub5OqgmzvISZohnb1HJGGdZsLRjxYf6YIfBCYAL85ntQVOKs6tvGlJN6upUJbvZP 8Q1uS5WO9xTB8qyFVqxfsa/E4GoAjduirb8VAg3U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Ferre , Sandeep Sheriker Mallikarjun , Tudor Ambarus Subject: [PATCH 5.10 081/221] ARM: dts: at91: sam9x60: fix mux-mask to match products datasheet Date: Mon, 29 Mar 2021 09:56:52 +0200 Message-Id: <20210329075631.917184845@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicolas Ferre commit 2c69c8a1736eace8de491d480e6e577a27c2087c upstream. Fix the whole mux-mask table according to datasheet for the sam9x60 product. Too much functions for pins were disabled leading to misunderstandings when enabling more peripherals or taking this table as an example for another board. Take advantage of this fix to move the mux-mask in the SoC file where it belongs and use lower case letters for hex numbers like everywhere in the file. Signed-off-by: Nicolas Ferre Fixes: 1e5f532c2737 ("ARM: dts: at91: sam9x60: add device tree for soc and board") Cc: # 5.6+ Cc: Sandeep Sheriker Mallikarjun Reviewed-by: Tudor Ambarus Link: https://lore.kernel.org/r/20210310152006.15018-1-nicolas.ferre@microchip.com Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/dts/at91-sam9x60ek.dts | 8 -------- arch/arm/boot/dts/sam9x60.dtsi | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) --- a/arch/arm/boot/dts/at91-sam9x60ek.dts +++ b/arch/arm/boot/dts/at91-sam9x60ek.dts @@ -334,14 +334,6 @@ }; &pinctrl { - atmel,mux-mask = < - /* A B C */ - 0xFFFFFEFF 0xC0E039FF 0xEF00019D /* pioA */ - 0x03FFFFFF 0x02FC7E68 0x00780000 /* pioB */ - 0xffffffff 0xF83FFFFF 0xB800F3FC /* pioC */ - 0x003FFFFF 0x003F8000 0x00000000 /* pioD */ - >; - adc { pinctrl_adc_default: adc_default { atmel,pins = ; --- a/arch/arm/boot/dts/sam9x60.dtsi +++ b/arch/arm/boot/dts/sam9x60.dtsi @@ -606,6 +606,15 @@ compatible = "microchip,sam9x60-pinctrl", "atmel,at91sam9x5-pinctrl", "atmel,at91rm9200-pinctrl", "simple-bus"; ranges = <0xfffff400 0xfffff400 0x800>; + /* mux-mask corresponding to sam9x60 SoC in TFBGA228L package */ + atmel,mux-mask = < + /* A B C */ + 0xffffffff 0xffe03fff 0xef00019d /* pioA */ + 0x03ffffff 0x02fc7e7f 0x00780000 /* pioB */ + 0xffffffff 0xffffffff 0xf83fffff /* pioC */ + 0x003fffff 0x003f8000 0x00000000 /* pioD */ + >; + pioA: gpio@fffff400 { compatible = "microchip,sam9x60-gpio", "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; reg = <0xfffff400 0x200>;