From patchwork Fri Apr 3 06:12:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 11471861 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9AE5E159A for ; Fri, 3 Apr 2020 06:13:02 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 5AC2C20737 for ; Fri, 3 Apr 2020 06:13:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="i7awOStC"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="rEJG/rWJ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=microchiptechnology.onmicrosoft.com header.i=@microchiptechnology.onmicrosoft.com header.b="Cs05agOm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5AC2C20737 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TB7ZU8I90FXjfDBZSslRF0qhAtetWoBSvptfk+1hP0g=; b=i7awOStClaLlCC GRG3/VM9YBpKtL4ncErzwAs3EvV23YiTay80QXx4Ap4svzXQ+ygjw6LTOtyiVPBSxF1f/vEk11zqz NaPnvl9BMjr+8y7bn+f5ek7/qMqm8nExvOpUsEjlQUtzRcRHkS3WB3PQjppJ+2yc4WaTUDC7qrKqu bQZfNgqivekAx6qyqoJQND6pRsOb+NLIm7uQK3jNtLp384YfEgQtWj/UUTSZ3NqJrDWcKU0WKKMsP OI+C15Tk090D1Kk006WOw9U7REFXkPA+c6NDhxW6C4g1jPL9HMFbsZNJp4NmlFL5OfHtO74VLYRWy c5x/WIgyXpb9qlBrthPw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jKFZb-0007XD-2b; Fri, 03 Apr 2020 06:12:59 +0000 Received: from esa5.microchip.iphmx.com ([216.71.150.166]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jKFZ9-00075J-Pf for linux-arm-kernel@lists.infradead.org; Fri, 03 Apr 2020 06:12:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1585894352; x=1617430352; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=fNnQvjyw1TE1h8Lsg4ys6eq8cOcNnmmkGQuk25MT1Xk=; b=rEJG/rWJ1sFHptcTwOZu6VOfnFJTB9jByz0WXopm+BexXoUwjyu7ZCXI 0zR9nWo89kAZB2ZTU3quwCGVxJ7L9DCs3p1/uu2/ZBdWvrxn4b6F7wWz9 y+Zb33MJDBLH482nVsSH3GwSC38t1lhT3RTAIku3Aswz/LVrFVDekK7yL vOybLGZkgcbs+fwHkutqjnInjghHIV2S5YGLqy5pkOOCQTjTCvJRseqX+ IN7oMmJOQwI0hnxN07qnZ7m6JhH0EvUEGTu5V88H0hk5+kzFLfpocSrp+ Tl0DDe8KodRp10JFoG9aagSIwavxJ2u/wXP354hDPvBh/Z1n6YLhDtpep g==; IronPort-SDR: qFfHUNChj6kl6JlzGb7RrRD8mbIPAdzErcIuCCI4WuLvMFw3TRiCpwt+hp4JQv+wTaT3IH+7sy u2HmGQ8QgpuSZURrHxrN7Q/6V7K9FPeR8CYOKkv40FEu5swB6x2k2Aiqc3H2fn5Zq55/fjwgXR meM5pxBugLR5Lm86gL3SrhwV1B5Dj8YJynsIaO4PR4LVOteVC1hturwxyG1P7vgOzxJNAux6Af bXRW2JnlzVcXgurkhWhZKL5rBbkmbHRn4DcRqnuhZPvEgQaBW55wI1+dNqemqisSKormVf46Ox ikQ= X-IronPort-AV: E=Sophos;i="5.72,338,1580799600"; d="scan'208";a="71316160" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 02 Apr 2020 23:12:30 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 2 Apr 2020 23:12:29 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 2 Apr 2020 23:12:29 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k/XjjRDbprXkd7l5QRg09VgdGFCYi8sBiDC0rri8w7dJl/Gg/mKMYyusdHbEB+D/TFS4nT/5mwBOWv3LSZK6IteoH7feDM6m72/KwFKJ3CTfWHoYHy/qf9x6HRK1QyfllT+STN+LUWh5ugkJUbv7ltbQtg2Qfn3XF7NUfxTiMfvLtU9j0wui0otaLz94TsGLGgcDpeEJFs/vSsL5PnUo0EHFISlIrU9Ic5AeXLyfVQj9dEUGds/9KSGhwtLCViGDLB7yABZxZADOUmSqt3oVXQQubzTpniOhtCWsA/GLTw1MGjMcCEBEkKgLROnc3iq4fyFX2V+i0altSt7SyDCZhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=erPspkDGNUBAlW8s3Mn+FTmXPWYPkAZq8tR7QgIssII=; b=inuzxaMxopUg8FMelTvNgwD+2yaj5Xj3PtAz31YUwtaNbGz4wSD3VbeVIp/4bP6jKQ0rnAk7516HkAmN9vlao++u7e8QoadC6ziSNXPJLU/rIA84yY4Jam2vZajINWuqTl5Dl3OkSmBTRf0kqand8X4t0/st58g4YUhz7KknhKoXeN3n8CzsLYeF7NdoiYCwty5FB/+3tn1GIWQWC1Ay6JEMvVeKFlPTWvYXDKY1EQuEW2YQvEIDLhaCAnrXiKeAjvE/evOgEmoUaqaAOduRYdF8NPF0c/xbZwp2noe2srT6AYU5CvtF2CF9PBS4LxC+wJNinChUAlOfo++rMyIuSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=erPspkDGNUBAlW8s3Mn+FTmXPWYPkAZq8tR7QgIssII=; b=Cs05agOmohnLh6b4gD3adbKM3AaDuITY/lUzp6DPkrevxUDyLh/oSlmFli9YD5qz5GUhJ7M0e1Kpn9l7QLZ0yMWbSsDUle+faRAspgcruJDGBo+sGhvbnEM94oY/94j7mLtOShMOTTC4paxLFRulY7wornDbV9RE+DT3tImnSX0= Received: from BY5PR11MB4419.namprd11.prod.outlook.com (2603:10b6:a03:1c8::13) by BY5PR11MB4183.namprd11.prod.outlook.com (2603:10b6:a03:18e::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.16; Fri, 3 Apr 2020 06:12:28 +0000 Received: from BY5PR11MB4419.namprd11.prod.outlook.com ([fe80::e918:9196:b47e:9692]) by BY5PR11MB4419.namprd11.prod.outlook.com ([fe80::e918:9196:b47e:9692%3]) with mapi id 15.20.2856.019; Fri, 3 Apr 2020 06:12:28 +0000 From: To: , , Subject: [PATCH 5/5] ARM: dts: at91: at91-sama5d27_som1: Enable eeprom device Thread-Topic: [PATCH 5/5] ARM: dts: at91: at91-sama5d27_som1: Enable eeprom device Thread-Index: AQHWCX7ZEkLCBK86+EmFjdsQPC+j9w== Date: Fri, 3 Apr 2020 06:12:27 +0000 Message-ID: <20200403061222.1277147-5-tudor.ambarus@microchip.com> References: <20200403061222.1277147-1-tudor.ambarus@microchip.com> In-Reply-To: <20200403061222.1277147-1-tudor.ambarus@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tudor.Ambarus@microchip.com; x-originating-ip: [94.177.32.156] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c65513a2-78fa-4cb6-b63f-08d7d795fc78 x-ms-traffictypediagnostic: BY5PR11MB4183: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-bypassexternaltag: True x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 0362BF9FDB x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR11MB4419.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(39860400002)(396003)(136003)(376002)(346002)(366004)(6512007)(6506007)(478600001)(2906002)(6636002)(2616005)(186003)(6486002)(71200400001)(1076003)(26005)(36756003)(316002)(66946007)(8936002)(86362001)(54906003)(110136005)(66556008)(64756008)(66446008)(8676002)(81166006)(81156014)(4326008)(107886003)(5660300002)(91956017)(76116006)(66476007); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2nS1i3Ce2cyjtiTAONomtjQrQKv0TOgOhiNhD+UEU05GJM4JtttkOm27TtjJZgwiRD2FhCrHQC4G4gBRYCk6hUdmIu7E+sLLC8IzZjksDHEPnfiij0aNtS7E1mkWSm7KZOEUneFRs6ixuczFHdJ8+4yQViW9sQTVw9RFE4YaIrlLI1HL1NLZXG628LxpWhjnD5v5K0CE3M52r891F/gKq7AyoduNkTcxuJfL/dLd7o2ywhz2X4BptWEQv+6VnnWl/CWF2ptgBKFby0XWnipu/zBIz3krcg8f6f8kkCcWMSLkvw/Bjxsom5oqpZ+ki9JgJ5L+wex8zyWitPVN3Zc5Mtq+WVCJF1ggo+MR+0MVNmosPvGccC3GTMcJXTt/ySFbaX2f4voOg4hIsaUEFUGnCbPeO1Z2HF7lRZsnE7ZgWPdXimi1u4owACjiVKgqMe3G x-ms-exchange-antispam-messagedata: mR8HssJwAWf33jCi/CL1IVzuh5fTH26mWSz4/y3VU4Ss6nhQQJ74KkYxcXwOl5S4ryQLMhtEl1HNXRPLZWvBoLsDothXfMnWrDxFiAXxKqxUACbAZ8V5YkvvPTzXENoPVse97tVx8uWv5p6K7fQLRg== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: c65513a2-78fa-4cb6-b63f-08d7d795fc78 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2020 06:12:27.4487 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SvEnQbKXYuqa6pXVdPW+QBF1ZZSA+dBHObN3qdOjZGuxyF5GY/o8HI4rrNQ75udOg4vd/f/r56dwJHE3syO2y6zWViOTpsnTuqaLuAXfHEY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4183 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200402_231231_854896_27765549 X-CRM114-Status: GOOD ( 11.13 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [216.71.150.166 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, Tudor.Ambarus@microchip.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Ludovic Desroches There is an EEPROM on at91-sama5d27_som1 connected to i2c0. i2c0 node has to be moved from at91-sama5d27_som1_ek to at91-sama5d27_som1. Enable the i2c EEPROM found on at91-sama5d27_som1. Add an alias for the i2c node. Signed-off-by: Ludovic Desroches Tested-by: Tudor Ambarus Signed-off-by: Tudor Ambarus --- arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 22 +++++++++++++++++++++ arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 14 ------------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d27_som1.dtsi b/arch/arm/boot/dts/at91-sama5d27_som1.dtsi index 919000f467e6..b1f994c0ae79 100644 --- a/arch/arm/boot/dts/at91-sama5d27_som1.dtsi +++ b/arch/arm/boot/dts/at91-sama5d27_som1.dtsi @@ -13,6 +13,10 @@ model = "Atmel SAMA5D27 SoM1"; compatible = "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5"; + aliases { + i2c0 = &i2c0; + }; + clocks { slow_xtal { clock-frequency = <32768>; @@ -89,7 +93,25 @@ }; }; + i2c0: i2c@f8028000 { + dmas = <0>, <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c0_default>; + status = "okay"; + + at24@50 { + compatible = "24c02"; + reg = <0x50>; + pagesize = <8>; + }; + }; + pinctrl@fc038000 { + pinctrl_i2c0_default: i2c0_default { + pinmux = , + ; + bias-disable; + }; pinctrl_qspi1_default: qspi1_default { sck_cs { diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts index 535627c6045b..b0853bf7901c 100644 --- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts +++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts @@ -20,7 +20,6 @@ serial0 = &uart1; /* DBGU */ serial1 = &uart4; /* mikro BUS 1 */ serial2 = &uart2; /* mikro BUS 2 */ - i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2; }; @@ -116,13 +115,6 @@ status = "okay"; }; - i2c0: i2c@f8028000 { - dmas = <0>, <0>; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c0_default>; - status = "okay"; - }; - pwm0: pwm@f802c000 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_mikrobus1_pwm &pinctrl_mikrobus2_pwm>; @@ -289,12 +281,6 @@ bias-disable; }; - pinctrl_i2c0_default: i2c0_default { - pinmux = , - ; - bias-disable; - }; - pinctrl_i2c1_default: i2c1_default { pinmux = , ;