Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7121779rdb; Wed, 3 Jan 2024 05:30:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBu/VJREtv4FOhfHQY4vKSSyQpDaZ8B6ob/f1p5B3dIuLQVUH+vkX9qKaZZuR7rR0Sc+I+ X-Received: by 2002:a05:6a00:4fcb:b0:6da:147e:171 with SMTP id le11-20020a056a004fcb00b006da147e0171mr11492253pfb.22.1704288605821; Wed, 03 Jan 2024 05:30:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704288605; cv=none; d=google.com; s=arc-20160816; b=vQR/x1jwj4Q8BiwvA/qnwXjS631fAufMEgSL97UwLvJjh/b3su01uhGYOeivGDBvBk 5UQXivGo5T9QnPPu5IScUW7moOARCrmxRIsJBTC3s0YcTE+GLPOWYhBVTSgbjWZJPq/d mPfw5Tc5MnAlxagfyN7MhoBGqonoYwqu0NCfjwhHXWAZBqgnibCf/xerLvqx/B+sFpWB j+N8Bqn/UquDe4oJUPaterALXWCyB3mCwEl8rKenrp4jUvracLL2eCiJQGZd3FGoJIFH 67/04/4jGyG92MTtgr/GIdsqSDlKbX0W5AV+dryhfrMR5R9CIuu2TVKu0PiRGQ8HEp2A nTcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=k0eAX7Pjr0Es3oRTW4OzPPCh10C3Ug4Yt616FM0odEI=; fh=v+Tej7Da5neO4ppxb9KCbYb3QrHrU+S9AJJBYfP4W+0=; b=FIs2ZUAOuTpDnN7f0T7NaB8ukSkor+iXS3iaRqy213PQ4QWUetGlYiT+ZzyMTncPq3 lFxIjGMdJEA6dPP0AX7W/AQGFSoW8i4FyPXsIOZy/gKRLaZeJEd5ZnEsrMfabGWQai16 +peeBpdY8/5ugPRvPEBc3UQQlmQCt0lIS6B+Gw3MUFAGzbtKPWbKsenrIakJasZ4Lv5/ rTfSIMkGO8oVD32cdT2+oA/0yz9L6qUWijqCCqPnNC85sdZcXh5e31RLWWg6cK5mJCdk H4yAwhZEgGMyiToOzbxem9ADGlt4ubYh3msG3IOvWhBAUtJ2GLNSy78zKWbMPNazF72C tfuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=WM6GUEEW; spf=pass (google.com: domain of linux-kernel+bounces-15571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id fc2-20020a056a002e0200b006da25c2400dsi9807793pfb.365.2024.01.03.05.30.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 05:30:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=WM6GUEEW; spf=pass (google.com: domain of linux-kernel+bounces-15571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3138D283139 for ; Wed, 3 Jan 2024 13:29:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FF061A58A; Wed, 3 Jan 2024 13:29:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="WM6GUEEW" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67A02199D1 for ; Wed, 3 Jan 2024 13:29:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 9DE9C3F5B9 for ; Wed, 3 Jan 2024 13:29:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1704288540; bh=k0eAX7Pjr0Es3oRTW4OzPPCh10C3Ug4Yt616FM0odEI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WM6GUEEWe+rxS5koIZUL7U9myOQ3w+TEwgopTSYCukMvq6JnqTCqcC2dXlu7P9/ND EdfQawsbwMIDKRmscuWXM1ZpSf861n37gpH5HfPm69ZElzO8s83c2Bg+qsSP/53Z3v y45uPdUGn7rPHJgJ16XNMyul+m/u2iaN0J9lrzgn64w/xvEGwMwS2SV1q7X4MzTP0O fMavVB2G49PBBHA+0yN+Mk4eOKlGOHT06OJyptaf17jAUUFVxzxBflpaGd/dp1V2sv pm9W6dCWMqhcqYKlJNHBo1+ZwdH0WB0h0aFjO/EJ5p/PlCBvVVj+yPX1muRRUs8ApC 7XG1GEAIrzbtw== Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-a2888d63b80so29538866b.0 for ; Wed, 03 Jan 2024 05:29:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704288536; x=1704893336; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k0eAX7Pjr0Es3oRTW4OzPPCh10C3Ug4Yt616FM0odEI=; b=syJLBIjYDNNQqhEhnl7W9LyOqlYwv5HWwCvN+K91+jSQLhTcsyW9ox1Trvvncl2/Lr +j/BhAfv07vgGDiSscee9XwBGj2H/rPMGx+giGoBDdUyBsjlRCIg4L+/blxaTWwRZKLS D26mqc/6xUq+dmGQ7InJyzwENbxWYcI2wxIwEeaQakjoqHjJS+mrk9C65hZczxZWsEr9 NiNmVO4k/jYDGKzLypigOrjOIAu2gRIf2Z4/faFugp1R5Kc1tV5GIq4Dux/dxzKK7Wgn NXajBPsc1q0m/P5o1FRC+LyqWIRjMRAY2TZ1ONXvY2fBrxI1VTM2njSPabIqzzVG0kCm bKOw== X-Gm-Message-State: AOJu0Yx5spR45Zi7R55NekuORU8XLm7aGYhRykUI3u5k0fJHfr1lBa8t ZsDuHMJGZB4X9iQN+PWG6C5GwGmpHqomf4OheAsABb34ia70tyZwYt0o1NrfdzMuxcTrs36huDT 0szOYmhmbfo55SXt54VJfvviawkub6evvBm6OCEB63CaK5Th83Na3wavR X-Received: by 2002:a17:906:ae81:b0:a24:8deb:3524 with SMTP id md1-20020a170906ae8100b00a248deb3524mr9998282ejb.54.1704288536392; Wed, 03 Jan 2024 05:28:56 -0800 (PST) X-Received: by 2002:a17:906:ae81:b0:a24:8deb:3524 with SMTP id md1-20020a170906ae8100b00a248deb3524mr9998278ejb.54.1704288536233; Wed, 03 Jan 2024 05:28:56 -0800 (PST) Received: from stitch.. ([2a01:4262:1ab:c:5af0:999b:bb78:7614]) by smtp.gmail.com with ESMTPSA id eu18-20020a170907299200b00a26e53be089sm9549873ejc.44.2024.01.03.05.28.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 05:28:55 -0800 (PST) From: Emil Renner Berthing To: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt , Drew Fustini Subject: [PATCH v2 3/8] riscv: dts: thead: Add TH1520 pin control nodes Date: Wed, 3 Jan 2024 14:28:40 +0100 Message-ID: <20240103132852.298964-4-emil.renner.berthing@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240103132852.298964-1-emil.renner.berthing@canonical.com> References: <20240103132852.298964-1-emil.renner.berthing@canonical.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add nodes for pin controllers on the T-Head TH1520 RISC-V SoC. Signed-off-by: Emil Renner Berthing --- .../boot/dts/thead/th1520-beaglev-ahead.dts | 4 ++++ .../dts/thead/th1520-lichee-module-4a.dtsi | 4 ++++ arch/riscv/boot/dts/thead/th1520.dtsi | 24 +++++++++++++++++++ 3 files changed, 32 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts index 70e8042c8304..6c56318a8705 100644 --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts @@ -44,6 +44,10 @@ &osc_32k { clock-frequency = <32768>; }; +&aonsys_clk { + clock-frequency = <73728000>; +}; + &apb_clk { clock-frequency = <62500000>; }; diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi index a802ab110429..9865925be372 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi +++ b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi @@ -25,6 +25,10 @@ &osc_32k { clock-frequency = <32768>; }; +&aonsys_clk { + clock-frequency = <73728000>; +}; + &apb_clk { clock-frequency = <62500000>; }; diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi index ba4d2c673ac8..e65a306ff575 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -134,6 +134,12 @@ osc_32k: 32k-oscillator { #clock-cells = <0>; }; + aonsys_clk: aonsys-clk { + compatible = "fixed-clock"; + clock-output-names = "aonsys_clk"; + #clock-cells = <0>; + }; + apb_clk: apb-clk-clock { compatible = "fixed-clock"; clock-output-names = "apb_clk"; @@ -242,6 +248,12 @@ portd: gpio-controller@0 { }; }; + padctrl1_apsys: pinctrl@ffe7f3c000 { + compatible = "thead,th1520-group2-pinctrl"; + reg = <0xff 0xe7f3c000 0x0 0x1000>; + clocks = <&apb_clk>; + }; + gpio0: gpio@ffec005000 { compatible = "snps,dw-apb-gpio"; reg = <0xff 0xec005000 0x0 0x1000>; @@ -278,6 +290,12 @@ portb: gpio-controller@0 { }; }; + padctrl0_apsys: pinctrl@ffec007000 { + compatible = "thead,th1520-group3-pinctrl"; + reg = <0xff 0xec007000 0x0 0x1000>; + clocks = <&apb_clk>; + }; + uart2: serial@ffec010000 { compatible = "snps,dw-apb-uart"; reg = <0xff 0xec010000 0x0 0x4000>; @@ -414,6 +432,12 @@ porte: gpio-controller@0 { }; }; + padctrl_aosys: pinctrl@fffff4a000 { + compatible = "thead,th1520-group1-pinctrl"; + reg = <0xff 0xfff4a000 0x0 0x2000>; + clocks = <&aonsys_clk>; + }; + ao_gpio1: gpio@fffff52000 { compatible = "snps,dw-apb-gpio"; reg = <0xff 0xfff52000 0x0 0x1000>; -- 2.43.0