From patchwork Sun Nov 21 11:50:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 12693207 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 6FFADC433F5 for ; Sun, 21 Nov 2021 11:52:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=U/LzHIqxqRHRrVIP7g5OA7Ju470h3PFZgRvsQMQ5dIA=; b=twXONAQYXmT02Q ssxEgxnwiB7iMwlXymbmOOScrYxVWCAA4TrDeeZuqpHcsGhwovG3gW8o5e42azl7SfyGKm68SKLYg rsd+cIv3azqJG9pxRMjnPdGYFOP25b4foG03oV9/jx1BppIrvDl98W4UFU26sy7XGicjee/w9nn5Q WhkzcdOkWOb5Mg4U1nREOwmgan7TdGcA/QTa2a8Ml+8N3+0yCHd5vBNmb601LYCbfhM8REfdZlObF yATbyFApBE8KlXPJBXr1KzEIe02H8iiYBvH/yKAxTpH0Qw6kpS99wsGBAI41fXXpij51jXVYd0qUM ETBAxrnYC5IcrklRFDrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1molMK-00DXee-Ky; Sun, 21 Nov 2021 11:50:12 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1molMH-00DXeE-11 for linux-arm-kernel@lists.infradead.org; Sun, 21 Nov 2021 11:50:10 +0000 Received: by mail-wm1-x334.google.com with SMTP id b184-20020a1c1bc1000000b0033140bf8dd5so11205386wmb.5 for ; Sun, 21 Nov 2021 03:50:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AQmd9SukAAF43qeHe/hCA71TFxm5LvRKe4XmZtcUxKc=; b=RDBLjNI76TODJM5qgyUj027n20BGoY1WOj3Sk4nSnC6FBvtLMT33IwaMDmdfTDYFk2 5gZrxAkjvuSPuGCqJOWY5SMu0IqlALluQyjPAehA5A1MXs9pSrbScBUDV05crA0YqeLp yJHH2utY3c7U/Mlrf347VYeNpa11wGoCGqA/jY7c8nWwAc2gM5Nmc1pyKXzRGgSn9Z0w YiyniT8plYjOUsC1pjJWPW1KgxJ8am5hcXNIg/IRA87P0vwOtpDbGNVsWfsgVO1c4OpL Z4Tji7oXKQoGU7+/Ky+YIiquaU1bNobwpqc0LwP75b8qeI5w35E3L13iGnr49J6u3UdC p9lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AQmd9SukAAF43qeHe/hCA71TFxm5LvRKe4XmZtcUxKc=; b=qkCqJKvlhHzhx9EFR8Un9zoA99336FvLonmxuoo7t/CuvilUain/WPrL+vewrptZnn fkX6bTO4jlAqXPjq0y4eRe6/6fmBaUXOWuBl6Xo2ahAutkW/bh5MSrtuBSVYO0fWRPla xLc0iKGSVCtCrRrGbnw5OLfLQaMoyNf+deL6VLm/I/sHHMm5ThbvjaYrjdig5MZMbrtL FpuCK7KjnxkbwR0AX+npE75oofUSb4QP4vVI4mO4vlco8l+JGXTXMlWGeS5f5lXEV/oL 9wwgh2URYH2dc4eBjayyYQctaCRwSgNzV8lkpecpLSZhX0Ct+lBAwgMRpkthqG7xwgqU 3pOg== X-Gm-Message-State: AOAM5326U3QlKZSCZBWCHw1+x9MnyqfebvQ8wQmRYGP/9C30swlG+leH oQXT3CvusDAaxMq7gaHJ/9c= X-Google-Smtp-Source: ABdhPJzkhFF5ybtUoDP7TCWR73DLqGOFVRq0CK/YuNI+VJs8DFIFv3aOv6EVyx43I5Ml2MGHzwWBtA== X-Received: by 2002:a1c:488:: with SMTP id 130mr19311234wme.157.1637495405798; Sun, 21 Nov 2021 03:50:05 -0800 (PST) Received: from kista.localdomain (cpe-86-58-29-253.static.triera.net. [86.58.29.253]) by smtp.gmail.com with ESMTPSA id m36sm6575118wms.25.2021.11.21.03.50.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Nov 2021 03:50:05 -0800 (PST) From: Jernej Skrabec To: mripard@kernel.org, wens@csie.org Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Jernej Skrabec Subject: [PATCH] arm64: dts: allwinner: h6: tanix-tx6: Add I2C node Date: Sun, 21 Nov 2021 12:50:02 +0100 Message-Id: <20211121115002.693329-1-jernej.skrabec@gmail.com> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211121_035009_095321_A2169AF9 X-CRM114-Status: GOOD ( 10.68 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Tanix TX6 has a LED display driven by FD650. Currently there is no Linux driver nor any binding for it. However, we can at least provide I2C node in DT, so user space scripts or programs can manually control it. Signed-off-by: Jernej Skrabec --- arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts index 6c10ff7f4b1c..7c37aa4c60cb 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts @@ -32,6 +32,14 @@ hdmi_con_in: endpoint { }; }; + /* used for FD650 LED display driver */ + i2c { + compatible = "i2c-gpio"; + sda-gpios = <&pio 7 6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; /* PH6 */ + scl-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; /* PH5 */ + i2c-gpio,delay-us = <5>; + }; + reg_vcc1v8: regulator-vcc1v8 { compatible = "regulator-fixed"; regulator-name = "vcc1v8";