Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3504378pxu; Sun, 11 Oct 2020 12:12:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxikAv4c/HW2xddzGICAZr8rfz2jC1DGY9MRCekI1F+Y3JBK9kB9VZUkOBf0ZQyR2BPSA6 X-Received: by 2002:aa7:cacd:: with SMTP id l13mr23864edt.177.1602443551369; Sun, 11 Oct 2020 12:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602443551; cv=none; d=google.com; s=arc-20160816; b=y54RTP1mvXZASvDJjKXeUZWB8xLhPFmWxa7GrTz66MmXCbFocRaMvlv60WBCC8X4mV vA1hCD6vKH2NEuFTfXL5Mk4i0P2V3hcGGub6xWZWl5RCedZ5VTldPd7lwYQcYxe/7HPr 7vcWFK/Y5gndVfyPkIp06z7bzoo3w6ntz/mZvOzTJrH+qMgb22nAZCLZ9EVc3XQPKg++ d38NHcsHUzqvIt0pbr5qRa61MscjqheMANVxBGGISy3aNww46u4GQ6g51DXRLVy3KDNZ YB/966c/It5CMhTHFdfinDjtW8/AZmpTNBr6SH/zKqyA+OcAyl1/fGdB6eGNW22Js9/u og9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rJcvc1wxEFUx12YJeTHq7xa7YNZGOLOFOQF9lnDCs7w=; b=JF+3L1nU7/TLCrU3sDMKrdAOWPBHHGg79EeqfpXafIviBHcU+/WCVA0FAUW17zed8r 1E9POSuZ5lo3/w1VN1VVLH5p9e+nF+PyN7u8RVCEACPDnSStiaXWEN0tNYXUbBl6CNIk BgwriSOTt9gCXsMWIR16hrlsmlfbwAv+Ut4F0KssSxviCKLXh7q7QKYxoEEO6QIf4pur EitIKg0DMRsVmSkCVpmKDA082ezDv3aH/FMA9S6SVMj0Yng1GC6/7Q5pN1G9pbrvFhM/ axgy6aQFq1yq68KvEpocIZ6MOfnhKo49zJveyAMSTMDOuewPZun+0YUjbJslG38raT7w OsCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=h46K4WPX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p9si5109717edy.462.2020.10.11.12.12.08; Sun, 11 Oct 2020 12:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=h46K4WPX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730607AbgJKCs4 (ORCPT + 99 others); Sat, 10 Oct 2020 22:48:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730452AbgJKCsy (ORCPT ); Sat, 10 Oct 2020 22:48:54 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 543C8C0613D0 for ; Sat, 10 Oct 2020 19:48:53 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id d1so1930079pfc.0 for ; Sat, 10 Oct 2020 19:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rJcvc1wxEFUx12YJeTHq7xa7YNZGOLOFOQF9lnDCs7w=; b=h46K4WPXZDrLBc0f4uQ+mmjJZ5oLyMHWw2JKRUg1blaUfMCt9h0Ave03cC6+h8g6Gz ksLUj7M44W9vl7kjzWMNQu5fppSJ3lifKsjMxJ/HrzVail3GpsPc3N8Cj8J7Qbz7KJjK 83bBV47Za8daVYIHiIM/0ilci+a+vfxylKyTg= 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:mime-version:content-transfer-encoding; bh=rJcvc1wxEFUx12YJeTHq7xa7YNZGOLOFOQF9lnDCs7w=; b=WoW9ZYY5TKHsntFBoT4liohBdNq/B1cR/tgxmbr9vc7Iyxri2mn+HV+3cDlANNU3Pf eLYl6fvWM+Dj0Xyxij76dHASunPUn7jyrU6BeWfUi2j3Uoz1QPJVLMkz25oE5K4tStbb fmtV8A9DtgAMZdk5wSsCifMW7I20P5+nthDU3RcStlv1ptzhSdnu28VA1FzuZ3g6a+NZ dSuEUXQRbS9jBg6d8utb47IXzXWPl1wBUbCGK++2HtX7rv/EK+bixmqMuOtW6gxRwi7G /nozgWu37I3F/QHMMypH834uyMaxqxJJv3vkkUeGHN84vtVdbrds7Q4u/ZF/fd5TAS/5 eZPQ== X-Gm-Message-State: AOAM531mexrDbobHmcee6f6WYcrgKQYY7uJLxl+IFD60pI++KFk1gVWj 8zrZfQ4lbcSc9wJs0R/KUbWqHQ== X-Received: by 2002:a17:90a:f0d7:: with SMTP id fa23mr12050837pjb.108.1602384532897; Sat, 10 Oct 2020 19:48:52 -0700 (PDT) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id z25sm14832836pgl.6.2020.10.10.19.48.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Oct 2020 19:48:52 -0700 (PDT) From: Daniel Palmer To: linux-gpio@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH 4/5] ARM: mstar: Add gpio controller to MStar base dtsi Date: Sun, 11 Oct 2020 11:48:30 +0900 Message-Id: <20201011024831.3868571-5-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201011024831.3868571-1-daniel@0x0f.com> References: <20201011024831.3868571-1-daniel@0x0f.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The GPIO controller is at the same address in all of the currently known chips so create a node for it in the base dtsi. Some extra properties are needed to actually use it so disable it by default. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-v7.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index f07880561e11..669aada6f286 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -109,6 +109,13 @@ l3bridge: l3bridge@204400 { reg = <0x204400 0x200>; }; + gpio: gpio@207800 { + #gpio-cells = <2>; + reg = <0x207800 0x200>; + gpio-controller; + status = "disabled"; + }; + pm_uart: uart@221000 { compatible = "ns16550a"; reg = <0x221000 0x100>; -- 2.27.0