From patchwork Thu Jun 28 09:50:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10493407 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F1A69601BE for ; Thu, 28 Jun 2018 09:52:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCF0F29655 for ; Thu, 28 Jun 2018 09:52:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0DDD2976F; Thu, 28 Jun 2018 09:52:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 794DA29655 for ; Thu, 28 Jun 2018 09:52:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=5FV5+ebk/cXpT5VxG0S34nATP3f287CfUPGbiGAazng=; b=TYt+NR0OKGs5IgMX8neHgR5+2F s8d7m+eNrEeOWEpmcHzzQig0OtG/oVizN3pvg355stnI5C/hYC1olaqvwkau1aPDzQx1x7ITXziNp 1xpnv6E6vY7Rpjj/Qp5oaMg55k/08sCiVIvqWc9iENqa4sMeTrYi+UnxE8b2XjAITJlH9T1dyWOdn vu8wAbqOMkbd10tbTSDZMfJSVVMsRfwmamqwu+CH+4cUTyI2CWmFg2u1yPVRzF1kNa2yh0/BxA004 b2l4oyFKdJ9YIyTvv5ObJmtQDNx9wLRk+6mqtJ3hp3wg6Trxhsf2/pLSxDuS9n4JwonU7Ad72KILM 8id5xj3Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYTba-0001th-Io; Thu, 28 Jun 2018 09:52:46 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYTa4-0000ys-TJ for linux-arm-kernel@lists.infradead.org; Thu, 28 Jun 2018 09:51:16 +0000 Received: by mail-wm0-x242.google.com with SMTP id 69-v6so8288130wmf.3 for ; Thu, 28 Jun 2018 02:51:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=frbKSIF89GflW3+z22mSDA56hRFvD/sm+vaBa9n0Ajs=; b=rCVvx/d2zxrzpbKcoqlB3hP2ugVvlgqP4GfF8oum8cY3ZdqRLUOQ1yfR82XkpakHug gjTMSPvoJdJVXJVJfyShuWKkQsp47Qf7N7WC1i5TWTVfqpoPrfOGkhL4ZGvmdkUDedBR Dq18X7RW2Sgn7jQTVXl8TjK/xM7oceVgLv8/91RO/luKOhAr1fDZs9t6mCG+2MvkEG42 DnhcQYwfL0TiuzeSXu6YTRn5Kg47LEgIrkCOAUrcbARKRmmMzjkELz41cNDJ4N/VOXCV /4sz9e7Wf+w37vOtRu1ofWdn3rtWuovM/ZoTMTQzrkh421xwj6+eTH25SQiJhStppNQX pYDg== 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; bh=frbKSIF89GflW3+z22mSDA56hRFvD/sm+vaBa9n0Ajs=; b=E+lcu0UG/QVhP9LyWQqDsKsMS3bVptK15Rmi6rDAPHwwvMoSZAv+dlTbGMyeO4P8RF dkh4IVomrYIU7vy8hAt9r+ymDL8sLhGEPdqRMM3ap0iHR4VDRclWHbtS2Zca0hcN4/ev sKq3VYPwnEs+F7hZxVpyY+eSbOyhDaMEJ0XrPDBoUzZbN0SOgV9U1xqZTn2H1mbywtcA rVI3MMrK893VKllJiarW+Hp1ghfQioteOneH0f2fFDvyrntENGPX2S7Lp0JRI6y1L7P6 5gLB7rnz3wFgDHs6RxY3x5borp57O97IlfOBCem+NJUKcSbN1Zjd84s6WhJviTkTl4YT oXyA== X-Gm-Message-State: APt69E2i5SeYVpPMUDDWWG3J35wl7L4qWH7e5WT2WyhUhMjJZGS2/pIH +mAiKeoh8gcV7Li7WIilSpKCOw== X-Google-Smtp-Source: AAOMgpdDr292Ui7GPlXiuVL4ZBtsr4G07zfZTqlJQusgM58R/GUb7gemFV+tCZaMd1m1+21zCohy9g== X-Received: by 2002:a1c:c74e:: with SMTP id x75-v6mr8252449wmf.93.1530179461447; Thu, 28 Jun 2018 02:51:01 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id w67-v6sm6413476wmw.0.2018.06.28.02.51.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 02:51:00 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [PATCH 1/3] ARM64: dts: meson-axg: add s400 microphone card leds Date: Thu, 28 Jun 2018 11:50:52 +0200 Message-Id: <20180628095054.13433-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180628095054.13433-1-jbrunet@baylibre.com> References: <20180628095054.13433-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180628_025113_085850_17609136 X-CRM114-Status: GOOD ( 11.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The microphone card connected to the s400 has 6 leds controlled through an additional i2c gpio controller. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 42 ++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts index dff9b15eb3c0..d926f8956db8 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts +++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts @@ -62,6 +62,40 @@ clock-frequency = <32768>; pwms = <&pwm_ab 0 30518 0>; /* PWM_A at 32.768KHz */ }; + + speaker-leds { + compatible = "gpio-leds"; + + aled1 { + label = "speaker:aled1"; + gpios = <&gpio_speaker 7 0>; + }; + + aled2 { + label = "speaker:aled2"; + gpios = <&gpio_speaker 6 0>; + }; + + aled3 { + label = "speaker:aled3"; + gpios = <&gpio_speaker 5 0>; + }; + + aled4 { + label = "speaker:aled4"; + gpios = <&gpio_speaker 4 0>; + }; + + aled5 { + label = "speaker:aled5"; + gpios = <&gpio_speaker 3 0>; + }; + + aled6 { + label = "speaker:aled6"; + gpios = <&gpio_speaker 2 0>; + }; + }; }; ðmac { @@ -112,6 +146,14 @@ status = "okay"; pinctrl-0 = <&i2c_ao_sck_10_pins>, <&i2c_ao_sda_11_pins>; pinctrl-names = "default"; + + gpio_speaker: gpio-controller@1f { + compatible = "nxp,pca9557"; + reg = <0x1f>; + gpio-controller; + #gpio-cells = <2>; + vcc-supply = <&vddao_3v3>; + }; }; &pwm_ab {