From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755470AbdGKHle (ORCPT ); Tue, 11 Jul 2017 03:41:34 -0400 Received: from esa2.microchip.iphmx.com ([68.232.149.84]:20170 "EHLO esa2.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753306AbdGKHlb (ORCPT ); Tue, 11 Jul 2017 03:41:31 -0400 X-IronPort-AV: E=Sophos;i="5.40,345,1496127600"; d="scan'208";a="4555105" From: Ludovic Desroches To: , , CC: , , , , , , Ludovic Desroches Subject: [PATCH 0/3] Fix SMC layout register for sama5d2 Date: Tue, 11 Jul 2017 09:40:12 +0200 Message-ID: <20170711074015.30440-1-ludovic.desroches@microchip.com> X-Mailer: git-send-email 2.12.2 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The offset of some registers of the SMC is different between sama5d3/sama5d4 and sama5d2. An helper function has been added to retrieve the correct layout with the help of a new compatible string for sama5d2. The atmel-ebi device will store the register layout to allow the nand controller to setup correctly the data interface. Ludovic Desroches (3): mfd: syscon: update Atmel SMC binding doc mfd: syscon: atmel-smc: add helper to retrieve register layout ARM: dts: at91: sama5d2: use sama5d2 compatible string for SMC .../devicetree/bindings/mfd/atmel-smc.txt | 1 + arch/arm/boot/dts/sama5d2.dtsi | 2 +- drivers/memory/atmel-ebi.c | 13 +++-- drivers/mfd/atmel-smc.c | 67 +++++++++++++++++----- drivers/mtd/nand/atmel/nand-controller.c | 10 +++- include/linux/mfd/syscon/atmel-smc.h | 32 ++++++++--- 6 files changed, 94 insertions(+), 31 deletions(-) -- 2.12.2