From patchwork Tue Jun 4 06:43:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13684752 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6FF75C25B7E for ; Tue, 4 Jun 2024 06:43:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=sBxhYOUHGPOJj+Oh+TP9e12XKFk5G9K5xOSnQRpIOaQ=; b=yhOgdjhgIfhNJFm7Wx9BuVN9WI FnkORfdXPaSufF2ihBSfXoDpFWiJcl7lMKqNFSNsOy8qLsClmFprWXNeHJ+MVLAD7mKVaRi5qhfXN vaHpjf34WSA6ZKJtTNGcvj1sTKBI5VevKvrbBx6E/dMMfSItKznOKmk8PdukV5VJIp3ilrLSXoNoC PdpLYj2M+ad6fF1rHMNHEWnWHAfx9V3DlKl7O/V+nBWG5RNgga9tVw30g/hsIri3iMZ9YsyOLRhDM blBcP1JkdRc9vY33reAuL7Llclo6aStUClmu+LlPYroW9XyyrSEFq8esYcowGhb3BSyTf13Mf/2L9 EXwjn0zQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sENtL-00000001PpB-3gmc; Tue, 04 Jun 2024 06:43:31 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sENtH-00000001Pnd-46MP; Tue, 04 Jun 2024 06:43:29 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-579fa270e53so5695066a12.3; Mon, 03 Jun 2024 23:43:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717483401; x=1718088201; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=sBxhYOUHGPOJj+Oh+TP9e12XKFk5G9K5xOSnQRpIOaQ=; b=lhJHrAgbdQV23yfWxJ/BpdTq9X7S4AeCV2i1tO5QiYDHz8YFBuTDhJdmiT9K6XrLMe 3JnuPZfrBDj2L61bCx3bRkFntrehXpe0nTbAvBsKObE9CUAQ857aJ2HxDUUgtMcZR9NF YZgLL5a0MNk5rfALmQqypxv9Z+JvcvT0FIqqzl/UkHTFyDVxix7fPGKIOKdaehMp0Z7F gdN4MoL0ct+CSiaiGkRUkryPsEJF+58GXNym06FBgznnVXtLCzsjRd79palY4KBlHZHl ddVBpohbnRMorIpyCltG1vAoYycbHMZOFvKUEkzrFvW2zVyh/koVjYi4SLvNt5YEGQIG Q4Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717483401; x=1718088201; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sBxhYOUHGPOJj+Oh+TP9e12XKFk5G9K5xOSnQRpIOaQ=; b=ADbdinAUmlEYHLB0r/hrnfHc7QZw3zBYP/CLdB0WPjZvQ4lqoxfhWpk93ML/3ITncE Pk+zW3IB45vXjtaVi2ydWg348DXX7j+lB4naieSPzdB185fWNMV03y9F3D8hqArvkr3N 8FhSeDY2P4wDPUSS3BmF4tEK3pBxbXGri8TNH3MUv0qSBOCxwM4e7RQ4TsF9Fgegzqik OCgC7CAzFsmwKEI3MxeuCCSzxKMoy6o+YQprKD5JOR4khCr7Vs9M3jJH8utVKcZCk8OG V0oVX4G8bLpODARX0I+sTgjMtgHlKP1CPHqDhp+6boPaQzROjIzR0kaN0YYjGjd2DGtZ JmPg== X-Forwarded-Encrypted: i=1; AJvYcCXxVP6EhhhzLJhnA2w67FhXgko/7om0hb3rFExf8JkS4okuxaJOeV01SMGCUEPgd+FUA4RdUwD85gjLTU+60EU6VJv8Ngzl0p162JFDQoEgKUxST0rtBlW136j/15go/zoXo7RF+9sNMpMYAVRyiW2RDpTigjGZRoU= X-Gm-Message-State: AOJu0YzHH+59qC1dhJCzg8M2amB/3tqfAIjxPThLTjyiC7FEo5ilQXlO G+X04NNknOu+M706+DVPvgYyrjs7KoH3QwqSnIQCBRXup7tRrhdK X-Google-Smtp-Source: AGHT+IFQqMxzojH0qBL1dQPA5ajhEaM/7SsZT+d1V8pDXCIjCCyjz5OqW9edI1UsR6hLYnhJ0ND2jQ== X-Received: by 2002:a17:907:7811:b0:a66:7b79:3573 with SMTP id a640c23a62f3a-a682022f8a8mr871437466b.25.1717483401084; Mon, 03 Jun 2024 23:43:21 -0700 (PDT) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a685b935b5csm547744066b.206.2024.06.03.23.43.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 23:43:20 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: AngeloGioacchino Del Regno , Matthias Brugger Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH V2 1/2] arm64: dts: mediatek: mt7988: add PWM controller Date: Tue, 4 Jun 2024 08:43:01 +0200 Message-Id: <20240604064302.487-1-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240603_234328_261519_53FE86A4 X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki MT7988 has on-SoC controller that can control up to 8 PWM interfaces. Signed-off-by: Rafał Miłecki --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index 3eb5396dea22..27098f724b7a 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -105,6 +105,25 @@ clock-controller@1001e000 { #clock-cells = <1>; }; + pwm@10048000 { + compatible = "mediatek,mt7988-pwm"; + reg = <0 0x10048000 0 0x1000>; + clocks = <&infracfg CLK_INFRA_66M_PWM_BCK>, + <&infracfg CLK_INFRA_66M_PWM_HCK>, + <&infracfg CLK_INFRA_66M_PWM_CK1>, + <&infracfg CLK_INFRA_66M_PWM_CK2>, + <&infracfg CLK_INFRA_66M_PWM_CK3>, + <&infracfg CLK_INFRA_66M_PWM_CK4>, + <&infracfg CLK_INFRA_66M_PWM_CK5>, + <&infracfg CLK_INFRA_66M_PWM_CK6>, + <&infracfg CLK_INFRA_66M_PWM_CK7>, + <&infracfg CLK_INFRA_66M_PWM_CK8>; + clock-names = "top", "main", "pwm1", "pwm2", "pwm3", + "pwm4", "pwm5", "pwm6", "pwm7", "pwm8"; + #pwm-cells = <2>; + status = "disabled"; + }; + usb@11190000 { compatible = "mediatek,mt7988-xhci", "mediatek,mtk-xhci"; reg = <0 0x11190000 0 0x2e00>, From patchwork Tue Jun 4 06:43:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13684753 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5B357C27C52 for ; Tue, 4 Jun 2024 06:43:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qw6WC+UXhi6yL4LfVmRqUq3NflMpRwcFjuQvOiKMoxw=; b=ivkp8bOpUK4TGOArIM7qjxwZYT ZrnQfMAzmW+hJtfzb14CLdRCgJl6QBcNBC1RzuZ9gKJumoKKD+IhNJooM3FgyvQex885zFvfxMpFF D8JD6589abRgkJ2bDBKh13D4aiS6RHScqNHKobmjnc/i6RZ7ViWzTUNvsiutHttVRDmlQI848xP4+ vbh91NX3FumCEebruX8mzarG1Ft/ZaEAWusO6vQctuXbWfNgoQG8f+5yznpo4pYDuYAX2rm5OmkwJ 8B1bYjQRYwWDoaN/Bpw3YmL11pPhMeuJplMXulehbCaY+Jby8/xaNb9jbE3qVkM72lUR+tn631uPh JtGO3Djg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sENtO-00000001PqD-0DEp; Tue, 04 Jun 2024 06:43:34 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sENtJ-00000001Pne-1q1Y; Tue, 04 Jun 2024 06:43:30 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a68c8b90c85so300699466b.2; Mon, 03 Jun 2024 23:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717483403; x=1718088203; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qw6WC+UXhi6yL4LfVmRqUq3NflMpRwcFjuQvOiKMoxw=; b=RJKZvUI8Q//7s+b/1aW/xPdXKGGPbIxnG4lvh9pxY7zrZKdGloT9fgGZtjo2gzsCem UFv29oDn8QMsJHODRUJALtGdrtlVvl1eZUZc0jwLe2eDXRFJGbhlNeSHlvZQfOqi+66G u6qMxbNBqG/CHaNdi5bS2S8mn+zsEiaTGO8z9LYFaZrP8xYJKnS7PX4Gks5sO+CC3Smz uFhNcKyDj4gAOLBuD/g2F0wUKbNf8dHwFxrCxY2VCr4kqoLRKKlmmso/uAt/m5y/cQOU 3K+tBkcdqmQti3KZ4tEJ1iF5v5YlasYSbB6b+ZRU9rYq5rTMnzcrPzaA9a7Gy1JdJVg2 gI2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717483403; x=1718088203; 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=qw6WC+UXhi6yL4LfVmRqUq3NflMpRwcFjuQvOiKMoxw=; b=Oqk6WW+ZulnBdom/XbMRcfxMIDDeXC9kdHZR4JO53gAsCUGa468UIY+vFr3AFS3Qy4 yMt/B3m9Ep9K8yy1Fx5g2eQWLZG0Phs8IRLXvQCh02qM5x1sKx/GgTU4mfmELvtBrokF XwKFcltfCDvAPVnDemWJgCQP1OFcC+pMUC0sEOkfP9dYj71YzNqw7XgPAt6M+1J1yx9e B/AGuIG3u53oNvgXamxXONyH21kvMJifX5CR7oUghkYy+MSrOZZFXVlPBnL2Juxr+WGE yHF7BbVlLoYDI/b2JuFlzHRTfSuuGdbD676LTB+CwehYodg7s2BV9zwzGn2+YeLffCnE Ku8g== X-Forwarded-Encrypted: i=1; AJvYcCXnxYJxHledcTAj4zyRRraFbtPmq53ZGdRsLe0PKlBfbw6IAsvvPqgwOMZ8eDzIClVM9jMbIfbG6uw5H9K1uLfuVnguzii5nbGIbU9JIgahb/mSxT79YHrXC8x+ycTXQ//8vEIL733nbJq6kRClcmxhpbojZ/V4+uo= X-Gm-Message-State: AOJu0YxZbAJzi+Z0DDYN6/31Z4LavjbrNliTnPLcUEBxHSIMN101Pysc MSvYGG84jC23piYkitqrB/gFTlHdj/AWh2ogXhUMuys5F44VqrIa X-Google-Smtp-Source: AGHT+IFM3r6LYUVRqzzZNZE9WJH6tfwcLl5rjHZzDzgNIDhWshPhkcaNi+w42odT4TUUFKx5/iekBA== X-Received: by 2002:a17:906:65d3:b0:a66:4b54:9c87 with SMTP id a640c23a62f3a-a682234b89amr931690866b.76.1717483403197; Mon, 03 Jun 2024 23:43:23 -0700 (PDT) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a685b935b5csm547744066b.206.2024.06.03.23.43.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 23:43:22 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: AngeloGioacchino Del Regno , Matthias Brugger Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH V2 2/2] arm64: dts: mediatek: mt7988: add I2C controllers Date: Tue, 4 Jun 2024 08:43:02 +0200 Message-Id: <20240604064302.487-2-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240604064302.487-1-zajec5@gmail.com> References: <20240604064302.487-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240603_234329_486098_8B5F710A X-CRM114-Status: GOOD ( 10.38 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki MT7988 has three on-SoC I2C controllers that are the same hardware blocks as already noticed on MT7981 chipsets. Signed-off-by: Rafał Miłecki --- V2: Don't put board-specific clock-div & clock-frequency in the SoC dtsi Thanks Angelo! arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index 27098f724b7a..aa728331e876 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -124,6 +124,45 @@ pwm@10048000 { status = "disabled"; }; + i2c@11003000 { + compatible = "mediatek,mt7981-i2c"; + reg = <0 0x11003000 0 0x1000>, + <0 0x10217080 0 0x80>; + interrupts = ; + clocks = <&infracfg CLK_INFRA_I2C_BCK>, + <&infracfg CLK_INFRA_66M_AP_DMA_BCK>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c@11004000 { + compatible = "mediatek,mt7981-i2c"; + reg = <0 0x11004000 0 0x1000>, + <0 0x10217100 0 0x80>; + interrupts = ; + clocks = <&infracfg CLK_INFRA_I2C_BCK>, + <&infracfg CLK_INFRA_66M_AP_DMA_BCK>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c@11005000 { + compatible = "mediatek,mt7981-i2c"; + reg = <0 0x11005000 0 0x1000>, + <0 0x10217180 0 0x80>; + interrupts = ; + clocks = <&infracfg CLK_INFRA_I2C_BCK>, + <&infracfg CLK_INFRA_66M_AP_DMA_BCK>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + usb@11190000 { compatible = "mediatek,mt7988-xhci", "mediatek,mtk-xhci"; reg = <0 0x11190000 0 0x2e00>,