From patchwork Thu Jun 28 04:24:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10493041 Return-Path: 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 9F4526022E for ; Thu, 28 Jun 2018 04:25:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E3CD2A406 for ; Thu, 28 Jun 2018 04:25:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 820402A44C; Thu, 28 Jun 2018 04:25:38 +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=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 17AA52A406 for ; Thu, 28 Jun 2018 04:25:38 +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=dpgqha9NdrlJJ4Uc55vANIuoEAVx+gLcJyZI2pbuf/E=; b=bjgyGeCDTaatG9KIwFP6CLiI7D NsGGWeRKs7T6vknTuEbgcUiX7ZyBqyCgKmSgUzOof/P5LdiaR6P/YbwzhE2GoG4jvg5a26ngJ5VxH 84ikHdBVuUWvFkwOKmuaFzH0ZggrOSRHYpeuirIvpcZQE7pjjoz5xzEELwRxiSb5Ijw3wILVYu3Do LDjMHnx0fL6VcO1DyhgaeCvjsVXnEyhaG9cBgvZddYdEnvzP+cSFz969gp2qCMp2yuiNRgLKprvqu gAXjajc4GPRNTKYW+Ukn0Bg44nLrLR+K8Sv1Tm8HiifoULW28oJZXFBenQ4NXhVY3L2cZsoniGFDt m7mr4ozg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYOUs-00020C-Iu; Thu, 28 Jun 2018 04:25:30 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYOUN-0000Lx-Ji for linux-arm-kernel@lists.infradead.org; Thu, 28 Jun 2018 04:25:01 +0000 Received: by mail-pf0-x242.google.com with SMTP id j3-v6so1975215pfh.11 for ; Wed, 27 Jun 2018 21:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bdK4ynP43AhULcihW/50rpf/tDG4BCKIMP413TMh16Q=; b=vhe4ukmMPFFxhlU8Q4oGb5Lwim6MKyDmgxmMxJkbYDc2bZ5mIJVdkZcj9uz51auSSD FHShnD/xC/oz3/56hwlzUoBmSnsl0NHRj7kREFwJ66kjRPwFHRSLN2g+dT45/0DjRqpd BD3oc8a0fF55fmnnAWmaaMYJdtZ+xAwslMU1+C4tuPPzzPxsPfu0nuCF9R1PRiCmz+tx JiH0TcVaA+TpAu63nFQ2T8N8hrhLEHKrM6EBcJngUaCl0QDdE6+WrNGLf1lTTr/quYj9 WQzJGRQHn2ql85GYtzpnSoxfGqB0XlMiPaQoW+JN9zfgQuDdKyw16n2Af+E6xsqCVrVF lG9Q== 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=bdK4ynP43AhULcihW/50rpf/tDG4BCKIMP413TMh16Q=; b=cCZ/YGfmkbpWnKJHdKD/IKfVS6wu2GfAfpWWAFiFHmC2mZYtPxivwQErqpbR3wNxww BNNgRih4HY3AbiEF4qVQA8cA5R7pXGXuqkh4X9l7dd4xNRTC+T3RsEcbs6lPFGzb1kZ7 M7itfLnJG7NUgOgQoh/zrKMSZLjDVUmPOts487SBBZCQrF2BHS/7bDuRddNBmbP7Xp0v VD1ZiwAEFpmVkcMOzv7sLckGjrnIo4a6Nw/BJqwUTJHY4LN6Ypzgk0UVIlMlxGCB1c1+ KeCQhprD7SAY5mdTfNrKWZVwGhaHWzydSK8f1awC35otoZaf/w+8ZXHJ40+7jBM/p1cD B6NA== X-Gm-Message-State: APt69E28prRImVfX9cI4z84yVT7KzmP1yQ088ghJ2N964HzXxSvYWgxS 68sF6VsDnXwuqOe6GhfFbKQ= X-Google-Smtp-Source: ADUXVKKheTL+PhlKx3yFPrqltTXYPl6U6HRVkVkIiEekfTMkEhj2gZPYB99TZHS+fbzIf+sIGTiXqw== X-Received: by 2002:a65:6094:: with SMTP id t20-v6mr7614819pgu.264.1530159888984; Wed, 27 Jun 2018 21:24:48 -0700 (PDT) Received: from localhost.localdomain (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id t19-v6sm12328577pfj.169.2018.06.27.21.24.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Jun 2018 21:24:48 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH 1/4] ARM: dts: imx51-zii-rdu1: Populate RAVE SP EEPROM nodes Date: Wed, 27 Jun 2018 21:24:21 -0700 Message-Id: <20180628042424.12664-2-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180628042424.12664-1-andrew.smirnov@gmail.com> References: <20180628042424.12664-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180627_212459_647123_F42C4B6B X-CRM114-Status: GOOD ( 14.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nikita Yushchenko , Mark Rutland , devicetree@vger.kernel.org, Andrey Smirnov , linux-kernel@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org, Fabio Estevam , cphealy@gmail.com, Lucas Stach MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP ZII's RDU1s come with up to 3 EEPROMs attached to RAVE SP. Add corresponding nodes to make them availible. Cc: Fabio Estevam Cc: Nikita Yushchenko Cc: Lucas Stach Cc: cphealy@gmail.com Cc: Shawn Guo Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Andrey Smirnov --- arch/arm/boot/dts/imx51-zii-rdu1.dts | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/imx51-zii-rdu1.dts b/arch/arm/boot/dts/imx51-zii-rdu1.dts index ad2445dfa91d..c6da263cf210 100644 --- a/arch/arm/boot/dts/imx51-zii-rdu1.dts +++ b/arch/arm/boot/dts/imx51-zii-rdu1.dts @@ -578,6 +578,8 @@ rave-sp { compatible = "zii,rave-sp-rdu1"; current-speed = <38400>; + #address-cells = <1>; + #size-cells = <1>; watchdog { compatible = "zii,rave-sp-watchdog"; @@ -590,6 +592,33 @@ pwrbutton { compatible = "zii,rave-sp-pwrbutton"; }; + + eeprom@a3 { + compatible = "zii,rave-sp-eeprom"; + reg = <0xa3 0x2000>; + #address-cells = <1>; + #size-cells = <1>; + zii,eeprom-name = "dds-eeprom"; + }; + + eeprom@a4 { + compatible = "zii,rave-sp-eeprom"; + reg = <0xa4 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + zii,eeprom-name = "main-eeprom"; + }; + + eeprom@ae { + compatible = "zii,rave-sp-eeprom"; + reg = <0xae 0x200>; + zii,eeprom-name = "switch-eeprom"; + /* + * Not all RDU1s have this functionality, so we + * rely on the bootloader to enable this + */ + status = "disabled"; + }; }; };