From patchwork Fri May 8 12:30:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 226069 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD164C47247 for ; Fri, 8 May 2020 13:23:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A4BAF208CA for ; Fri, 8 May 2020 13:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588944237; bh=l7jXQ0Nv4LX/b1f7hXnhfQP4Wj09qrFnhZeaypEDbR4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=jV1IkVdiwEjICina0KMgDDa2rT7XqiTcA0Re6H5fHVm2MzmISkYT5EGcCVvIm4kA4 njLHSSEZm8hQZC+FYeXDe7z+oGvrxmYgfsKMp/tHubHNi/18C2jucGPfqMYR4uWp8x VvKr6oHB/cxOATeWpsyQndLiZHi8q7vtWCbrGEtM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728739AbgEHNXu (ORCPT ); Fri, 8 May 2020 09:23:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:52312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728212AbgEHMhm (ORCPT ); Fri, 8 May 2020 08:37:42 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C1979207DD; Fri, 8 May 2020 12:37:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588941462; bh=l7jXQ0Nv4LX/b1f7hXnhfQP4Wj09qrFnhZeaypEDbR4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aHC3vOVeLrs3i0mgjW+lvViiFq7Ngc2rTmDvHERnP+Nym6+dKxVRpyots1DQZV8MZ Pqo6L0HDp7jnkC3JDNWNW49RJfUMSkXRpUnBSTImuGhStxckd2hvPA2VRwY9o8qvjv r7nOf6iT+t8iPMQd5oAe0l/bqix94XaqrWK+tYcE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Roger Shimizu , Andrew Lunn , Gregory CLEMENT Subject: [PATCH 4.4 041/312] ARM: dts: orion5x: fix the missing mtd flash on linkstation lswtgl Date: Fri, 8 May 2020 14:30:32 +0200 Message-Id: <20200508123127.443188044@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200508123124.574959822@linuxfoundation.org> References: <20200508123124.574959822@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Roger Shimizu commit 44361a2cc13493fc41216d33bb9a562ec3a9cc4e upstream. MTD flash stores u-boot and u-boot environment on linkstation lswtgl. The latter one can be easily read/write by u-boot-tools package in Debian. Fixes: dc57844a736f ("ARM: dts: orion5x: add buffalo linkstation ls-wtgl") Signed-off-by: Roger Shimizu Reviewed-by: Andrew Lunn Signed-off-by: Gregory CLEMENT Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/dts/orion5x-linkstation-lswtgl.dts | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) --- a/arch/arm/boot/dts/orion5x-linkstation-lswtgl.dts +++ b/arch/arm/boot/dts/orion5x-linkstation-lswtgl.dts @@ -228,6 +228,37 @@ }; }; +&devbus_bootcs { + status = "okay"; + devbus,keep-config; + + flash@0 { + compatible = "jedec-flash"; + reg = <0 0x40000>; + bank-width = <1>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + header@0 { + reg = <0 0x30000>; + read-only; + }; + + uboot@30000 { + reg = <0x30000 0xF000>; + read-only; + }; + + uboot_env@3F000 { + reg = <0x3F000 0x1000>; + }; + }; + }; +}; + &mdio { status = "okay";