Message ID | 20170522140208.24652-16-javier@dowhile0.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 65326601C2 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 22 May 2017 14:09:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 557D7284F3 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 22 May 2017 14:09:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A16728697; Mon, 22 May 2017 14:09:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ABB03284F3 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 22 May 2017 14:09:17 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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=28GF+Nv/iwz/9/MgBJfFH+P6YcLoy3prIr4Fc9Mvxds=; b=HEf7IYumT0MKEDANeurLFCSa5r COue+F2FwKyKYVkk9AUsAmWJsDSOoH7vP3QQqHCB8uDCHuDWUkEzFJPcGHO+/lvrh7AxceQr7NtAh LBwbvZArI/kmf1TiYHxKf4aNOv4PEeM1FrC8+vIvgWDddgAg8n+tFfDinr5JU5rpdLiBgWCFtuYO8 /aSn5S+5FyuS1z1PRU6rfIBfYfCY0cD0aiRFBBjYW0dg/xygCzvqHEMi2KOh1vgINqfFymbM6vwa2 Tl+YPS2rKma+yPxGaNk880Is/Z0qLxVjs6/DRDdS9QZ2bX8N16KlCXpj6PkZLoNqbywL8zni2IGlm nDSyE7fw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dCo1K-0005Wg-NK; Mon, 22 May 2017 14:09:14 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCnvY-0005y0-AR for linux-arm-kernel@bombadil.infradead.org; Mon, 22 May 2017 14:03:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=JcO3e09OsjG2Me0KPyk9Gj0beT8Pm02WNdjlXMLZTFY=; b=jI4vPD7uNGxxFqb29xw3NZvHh rbNfNkwjNwUhPSwcnK1sBM279gTU8hOwFvUnasUAIp2+SPOT8Du9YvF3ZDaJGIW4cKABscOmaBInV yWU1EVYIRYMjVAWiSdekBJTGrQ8PIIvSQaU1btJVoePSJp5oxBf/MtIk5sJ3a9sCFYQDJabi9aunW LkOcRC6ucVouhCeMVbFYov8vulghSzYdZSaa3+72g+9ZyonYR0hdVawqdYOI41pzEHBYhVM8hLt21 WOvoRAUOQcz16XoivFvv3V+yQBtVfkW/nyJCmrgel9mSF92PykyX43tiqPqFWvKlwdNDjp8aPEIYY UJUoXYSgg==; Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCnvT-0001HP-Ok for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2017 14:03:14 +0000 Received: by mail-wm0-x244.google.com with SMTP id k15so32223387wmh.3 for <linux-arm-kernel@lists.infradead.org>; Mon, 22 May 2017 07:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dowhile0-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JcO3e09OsjG2Me0KPyk9Gj0beT8Pm02WNdjlXMLZTFY=; b=NcN7DtF+nmq3Ozhp0FkUmqEk7Fjy+Fx6EZhOT58eQU12RbaWg1B0DXoFEDIDAgD/X5 mv11hJ269uO3PlcpaJX/hEtVMY9X0neaomuWh2Mo0rEo8Lcvsx73HEGcEhtfObDlv2bL cKl8lzBHCxnnZ6qwUZmJndPIIUMVZcpyf5zNRcB0wxztrnaKWz4kFINJjzyjH9qvRSQV KOOYsN/zu7RtP2bb3if34GHET6aDUVs3Q/0odDd1M8Ry1SxTR8KbqOBiDG221Ek8HRUZ 0Vg1OoauI9/A+2VD2mmFAiFLKQUTU3Hw1YolDzI15aJp7PDuYGlMXEChsi9Rm7SgOIN2 zBmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JcO3e09OsjG2Me0KPyk9Gj0beT8Pm02WNdjlXMLZTFY=; b=sR1T+Iy+QHMq63paRJgfhZosK//oh93mhZZ8RcjFOL/9N24kVl91JxJ2UkZConHZ38 /2VA5YDImfp/9MGwYxyg8a+N+11YEDvccvkAZJnIqmGfGkUNLqEVuHC7ml42eZgpAbXN +jF5HU0OgqX1vTs+9R8GoXLvmueQ9Cm7irytM/RnRpWAd33bHbRr6l8cdZoC2h/BscVx g4KFWgIen04p4Cr3u2FhkSb9vgDzF1Oyym7SD2yozqtlJ6uw9x5YLreaqntWRTrTBQ7i iddVZ0X0tXwmG1JEx/knglUFdSuRxE1hAFsF88zPD/OmibS7by0oDRnbqR8vq3fwyFkk iDBA== X-Gm-Message-State: AODbwcC3QhXtLs4L27agdOQF6M1TVAhbmBU0JSeRLgcERxNuzZkq3xeZ T4b9y9l4kZtjSsr5 X-Received: by 10.28.197.11 with SMTP id v11mr28656233wmf.84.1495461772096; Mon, 22 May 2017 07:02:52 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id m191sm33821774wmg.30.2017.05.22.07.02.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 May 2017 07:02:51 -0700 (PDT) From: Javier Martinez Canillas <javier@dowhile0.org> To: linux-kernel@vger.kernel.org Subject: [PATCH v4 15/20] arm64: zynqmp: Add generic compatible string for I2C EEPROM Date: Mon, 22 May 2017 16:02:03 +0200 Message-Id: <20170522140208.24652-16-javier@dowhile0.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170522140208.24652-1-javier@dowhile0.org> References: <20170522140208.24652-1-javier@dowhile0.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170522_150311_838433_0622772B X-CRM114-Status: GOOD ( 18.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org, Rob Herring <robh@kernel.org>, Catalin Marinas <catalin.marinas@arm.com>, Wolfram Sang <wsa@the-dreams.de>, Will Deacon <will.deacon@arm.com>, Michal Simek <michal.simek@xilinx.com>, Rob Herring <robh+dt@kernel.org>, linux-arm-kernel@lists.infradead.org, Javier Martinez Canillas <javier@dowhile0.org>, =?UTF-8?q?S=C3=B6ren=20Brinkmann?= <soren.brinkmann@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-ep108.dts b/arch/arm64/boot/dts/xilinx/zynqmp-ep108.dts index ef1b9e573af0..53907b7a7fd9 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-ep108.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-ep108.dts @@ -55,7 +55,7 @@ status = "okay"; clock-frequency = <400000>; eeprom@54 { - compatible = "at,24c64"; + compatible = "atmel,24c64"; reg = <0x54>; }; }; @@ -64,7 +64,7 @@ status = "okay"; clock-frequency = <400000>; eeprom@55 { - compatible = "at,24c64"; + compatible = "atmel,24c64"; reg = <0x55>; }; };
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken into account so the driver defines only a set of compatible strings using the "atmel" vendor as a generic fallback for compatible I2C devices. So add this generic fallback to the device node compatible string to make the device to match the driver using the OF device ID table. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> --- Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: None Changes in v2: None arch/arm64/boot/dts/xilinx/zynqmp-ep108.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)