Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2731338pxu; Sun, 29 Nov 2020 03:14:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAIIWHW4AMAMrycat843d5Izif3nvpyPeVIby36rKSwOx1ZjZfqMqUFBZ0bJhFcD6EsGqp X-Received: by 2002:a50:955b:: with SMTP id v27mr10235205eda.324.1606648469023; Sun, 29 Nov 2020 03:14:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606648469; cv=none; d=google.com; s=arc-20160816; b=Y+WPhhB+twV72KywHxOrCCp+pON+NBrTSmvYuKulxDb4IXl1iLOcYsgFPAiEDq+IOa V2hrjdVFb+iOMBWb9/ZmZnsqXJUXHouFf7JoishkvmTfJ3sjCENAcbQpfEw9vR1TTxtC pEZARNWZBGf66/e2BvGCKvKZ6J910rGUOTqGIOGMe2ajwJMVROgOHTuQq/OyI/na1ke+ D3XJ7+CvWUNNFMz2PPgeiOApqcfIiBtQ993ikzKllczamH1qih44PR2d4acPxP8TQFdQ QTrP+fybUZCxtNcfe26a/yoeJipkbfCVuYeoxUKJOG0RwQojWn21E8fzI3bKQiahjTGG z70Q== 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=5Rwi6JrG1Bh8jLLcugHVfWoJr8ivQS6AwCC3H82H1b4=; b=Pj+CgV9ShJHl3l/bjDZa3uuE8b95q+xgaP4+b0s8CyUeOel2uNfH02Lg5IKly5aj5B W+4i/OJSmC8eHpeZXrjelaeM/lcwm7kY3d+xpZCsSf7J9pcFt2hUIs5oqOSRihhR5Ygt IVrtRqjmPAiYiwG7kQzvna55H+YqXvqGg18lTTt2O36vG9BJFb+qe8JadRQFlSPp1ZE4 M2cm6rpYC+lte63vA3GMS1+DFS0MxsMDNlUh7J5/9pEHhRZSIL30inyu9VMFV2QUSYix yv/q1SHGfw2wahlg+NYmWqf4+Bi1C2OMuTFZe+GnI/GR5mjQkE46fTutrdEjvrf+uTAw yzzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=Ty9oCilm; 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 v7si11893382edj.402.2020.11.29.03.14.05; Sun, 29 Nov 2020 03:14:29 -0800 (PST) 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=Ty9oCilm; 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 S1727517AbgK2LJv (ORCPT + 99 others); Sun, 29 Nov 2020 06:09:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727420AbgK2LJt (ORCPT ); Sun, 29 Nov 2020 06:09:49 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED261C061A52 for ; Sun, 29 Nov 2020 03:08:24 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id w16so8042871pga.9 for ; Sun, 29 Nov 2020 03:08:24 -0800 (PST) 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=5Rwi6JrG1Bh8jLLcugHVfWoJr8ivQS6AwCC3H82H1b4=; b=Ty9oCilmE8NwmSmLvOfYQILMur+rnE1cbwhvpZ43RjMOm2PVKxqz9NZ3eptAmz+/s/ e3GHuCGcqQdNlb9W7Y4ecVmWqokECnv9IUh9jzNb2jlh7X8VQj0ecIQOGOWItVqOc5M7 /WHKM9N59j5iYDpspzSSFeGsgp52DzSz4JO60= 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=5Rwi6JrG1Bh8jLLcugHVfWoJr8ivQS6AwCC3H82H1b4=; b=BbTzYtWvjF+2S80RHD0fbGAljE/4Z81j3genMwHM6H+/Ft7+igzzPIb0uvSk746WBf 8GefmpjRKULtIYU16SBtXfeLWVgrlaUrklsXNyNCgnmVAZl/ilqm8mzUB1nIkRH1hyzE dW5I9zNsGnWyUxzWszITyewmPRXecC0FIvbDylESajzTZCgU48YYQqVDHeeRdf/d0LVP TcTuL1dppGGlUUAxCeXkh6JPZ5RDxnYrXwwk2x4W/MGm6fsy/LYRielKijloW/KfdM0k 2UW/CbYRugAaP71D3jK8Re5Zaf7TuoymPQI6gOZd41EtoYX/CTSltTKp1PDjl1Z/EjC0 mxmQ== X-Gm-Message-State: AOAM532BlxBVhrEhca5A0mspxpuvCG5Wa30frD4h1X0nf9IAlfeTpioT Pi7RKz4mEHBMF4gyrboZzovP7A== X-Received: by 2002:a17:90b:3591:: with SMTP id mm17mr20654240pjb.213.1606648104524; Sun, 29 Nov 2020 03:08:24 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id 21sm13095653pfw.105.2020.11.29.03.08.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2020 03:08:24 -0800 (PST) From: Daniel Palmer To: soc@kernel.org, linux-gpio@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linus.walleij@linaro.org, robh@kernel.org, w@1wt.eu, daniel@0x0f.com Subject: [PATCH v4 4/5] ARM: mstar: Add gpio controller to MStar base dtsi Date: Sun, 29 Nov 2020 20:08:01 +0900 Message-Id: <20201129110803.2461700-5-daniel@0x0f.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201129110803.2461700-1-daniel@0x0f.com> References: <20201129110803.2461700-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 Acked-by: Linus Walleij --- arch/arm/boot/dts/mstar-v7.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index f07880561e11..81369bc07f78 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -109,6 +109,16 @@ l3bridge: l3bridge@204400 { reg = <0x204400 0x200>; }; + gpio: gpio@207800 { + #gpio-cells = <2>; + reg = <0x207800 0x200>; + gpio-controller; + #interrupt-cells = <2>; + interrupt-controller; + interrupt-parent = <&intc_fiq>; + status = "disabled"; + }; + pm_uart: uart@221000 { compatible = "ns16550a"; reg = <0x221000 0x100>; -- 2.29.2