Go to advanced search

by hnwangkg163
Mon Mar 25, 2019 10:27 am
Forum: Device Tree
Topic: How to use 2 SC16IS752,I USE I2C
Replies: 52
Views: 4475

Re: How to use 2 SC16IS752,I USE I2C

Should I also use the latest kernel for testing?
i think it is my kernel version problem

Code: Select all

[email protected]:/boot/overlays $ uname -r
4.14.50-v7+
by hnwangkg163
Mon Mar 25, 2019 7:54 am
Forum: Device Tree
Topic: How to use 2 SC16IS752,I USE I2C
Replies: 52
Views: 4475

Re: How to use 2 SC16IS752,I USE I2C

cd /boot/overlays ls -al and find this: -rwxr-xr-x 1 root root 1356 Mar 25 15:46 sc16is752-i2c.dtbo sudo reboot,but as same... [email protected]:/boot/overlays $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --...
by hnwangkg163
Mon Mar 25, 2019 7:03 am
Forum: Device Tree
Topic: How to use 2 SC16IS752,I USE I2C
Replies: 52
Views: 4475

Re: How to use 2 SC16IS752,I USE I2C

sudo cp sc16is752-i2c.dtbo /lib/modules/4.14.50-v7+/kernel/drivers/tty/serial/ and add dtoverlay=sc16is752-i2c,int_pin=18,addr=0x4c dtoverlay=sc16is752-i2c,int_pin=25,addr=0x48 sudo reboot then: [email protected]:~ $ ls /dev/ttySC ttySC0 ttySC1 error: [email protected]:~ $ dmesg -l err [ 3.712372] brcmfm...
by hnwangkg163
Wed Mar 13, 2019 9:52 am
Forum: Device Tree
Topic: How to use 2 SC16IS752,I USE I2C
Replies: 52
Views: 4475

Re: How to use 2 SC16IS752,I USE I2C

Ok, because the products we designed have been produced and sold, and now we have received several feedbacks that we cannot use two modules. If you plan this, can you tell me here that it has been fixed? Now I can only write code to drive this module myself to make it work.
by hnwangkg163
Wed Mar 13, 2019 9:42 am
Forum: Device Tree
Topic: How to use 2 SC16IS752,I USE I2C
Replies: 52
Views: 4475

Re: How to use 2 SC16IS752,I USE I2C

if: dtoverlay=sc16is752-i2c,int_pin=18,addr=0x4c dtoverlay=sc16is752-i2c,int_pin=25,addr=0x48 ^[[[email protected]:i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- --...
by hnwangkg163
Wed Mar 13, 2019 9:15 am
Forum: Device Tree
Topic: How to use 2 SC16IS752,I USE I2C
Replies: 52
Views: 4475

Re: How to use 2 SC16IS752,I USE I2C

and i found it: [email protected] { compatible = "brcm,bcm2835-i2c"; clocks = <0x8 0x14>; status = "okay"; #address-cells = <0x1>; interrupts = <0x2 0x15>; #size-cells = <0x0>; phandle = <0x24>; reg = <0x7e804000 0x1000>; clock-frequency = <0x186a0>; pinctrl-0 = <0x14>; pinctrl-names = "default"; sc16is7...
by hnwangkg163
Wed Mar 13, 2019 9:14 am
Forum: Device Tree
Topic: How to use 2 SC16IS752,I USE I2C
Replies: 52
Views: 4475

Re: How to use 2 SC16IS752,I USE I2C

<stdout>: Warning (unit_address_vs_reg): Node /soc has a reg or ranges property, but no unit name <stdout>: Warning (unit_address_vs_reg): Node /soc/vchiq has a reg or ranges property, but no unit name <stdout>: Warning (unit_address_vs_reg): Node /soc/gpiomem has a reg or ranges property, but no u...
by hnwangkg163
Wed Mar 13, 2019 1:13 am
Forum: Device Tree
Topic: How to use 2 SC16IS752,I USE I2C
Replies: 52
Views: 4475

Re: How to use 2 SC16IS752,I USE I2C

[email protected]:~ $ dtc -I fs /proc/device-tree | pastebinit <stdout>: Warning (unit_address_vs_reg): Node /soc has a reg or ranges property, but no unit name <stdout>: Warning (unit_address_vs_reg): Node /soc/vchiq has a reg or ranges property, but no unit name <stdout>: Warning (unit_address_vs_re...
by hnwangkg163
Tue Mar 12, 2019 11:40 am
Forum: Device Tree
Topic: How to use 2 SC16IS752,I USE I2C
Replies: 52
Views: 4475

Re: How to use 2 SC16IS752,I USE I2C

[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.14.50-v7+ ([email protected]) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1122 SMP Tue Jun 19 18 [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d [ 0.000000] CPU: div instru...
by hnwangkg163
Tue Mar 12, 2019 11:39 am
Forum: Device Tree
Topic: How to use 2 SC16IS752,I USE I2C
Replies: 52
Views: 4475

Re: How to use 2 SC16IS752,I USE I2C

The strange thing is that both of us use dtoverlay=sc16is752-i2c,int_pin=18,addr=0x48 dtoverlay=sc16is752-i2c,int_pin=25,addr=0x4c I2C found that only one device is working [email protected]:~ $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- --...
by hnwangkg163
Tue Mar 12, 2019 11:34 am
Forum: Device Tree
Topic: How to use 2 SC16IS752,I USE I2C
Replies: 52
Views: 4475

Re: How to use 2 SC16IS752,I USE I2C

What I want is that both are connected, and then I can generate 4 devices, ttySC0 ttySC1, ttySC2 ttySC3.
by hnwangkg163
Tue Mar 12, 2019 11:33 am
Forum: Device Tree
Topic: How to use 2 SC16IS752,I USE I2C
Replies: 52
Views: 4475

Re: How to use 2 SC16IS752,I USE I2C

Step 2: config.txt: dtoverlay=sc16is752-i2c,int_pin=18,addr=0x48 #dtoverlay=sc16is752-i2c,int_pin=25,addr=0x4c [email protected]:~ $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- ...
by hnwangkg163
Tue Mar 12, 2019 11:17 am
Forum: Device Tree
Topic: How to use 2 SC16IS752,I USE I2C
Replies: 52
Views: 4475

Re: How to use 2 SC16IS752,I USE I2C

This is our product. https://www.waveshare.com/serial-expansion-hat.htm If only one is plugged in, it can be used. Now it is found that once two overlays are used, and two boards are connected through the DuPont line to ensure that the INT pins are inconsistent, finally only the module will work, vi...
by hnwangkg163
Tue Mar 12, 2019 10:00 am
Forum: Device Tree
Topic: How to use 2 SC16IS752,I USE I2C
Replies: 52
Views: 4475

How to use 2 SC16IS752,I USE I2C

Hello, we are waveshare, how can I add two SC16IS752, I added the following in config.txt: dtoverlay=sc16is752-i2c,int_pin=18,addr=0x48 dtoverlay=sc16is752-i2c,int_pin=25,addr=0x4c and i reboot raspberryPi I am running ls /dev/tty https://user-images.githubusercontent.com/36142105/54187994-bff3b780-...
by hnwangkg163
Fri Sep 14, 2018 6:28 am
Forum: Advanced users
Topic: How to use SC16IS752???
Replies: 7
Views: 590

Re: How to use SC16IS752???

I got it.
by hnwangkg163
Wed Sep 12, 2018 2:24 am
Forum: Advanced users
Topic: How to use SC16IS752???
Replies: 7
Views: 590

Re: How to use SC16IS752???

Change dtoverlay=sc16is752-i2c to dtoverlay=sc16is752-spi1 and Connection is like this VCC = 5V GND = GND RESET = 3.3V A0/CS = CE1 A1/SI = MOSI NC/SO = MISO IRQ = 24 I2C/SPI = GND SCL/SCLK = SCLK SDA/VSS = GND minicom: sudo minicom -D /dev/ttySC0 Serial port setup : | E - Bps/Par/Bits : 9600 8N1 | F...
by hnwangkg163
Wed Sep 12, 2018 2:14 am
Forum: Advanced users
Topic: How to use SC16IS752???
Replies: 7
Views: 590

Re: How to use SC16IS752???

But thank you all, because I am a Chinese student, English is not very good.
by hnwangkg163
Wed Sep 12, 2018 2:08 am
Forum: Advanced users
Topic: How to use SC16IS752???
Replies: 7
Views: 590

Re: How to use SC16IS752???

Yesterday I have solved the problem of I2C. There is no problem with the I2C address. The I2C address is really 7 digits. The data sheet is an eight digit. I have already done this. The problem is caused by the crystal on the module I bought.
by hnwangkg163
Tue Sep 11, 2018 6:36 am
Forum: Advanced users
Topic: How to use SC16IS752???
Replies: 7
Views: 590

How to use SC16IS752???

How to use SC16IS752 I did this: Sudo vim /boot/config.txt Then add the following: Dtparam=spi=on Dtoverlay=sc16is752-spi1 Then restart the Raspberry Pi Sudo reboot run: Lsmod Find: Sc16is7xx 20480 0 And at: ttySC and ttySC1 are generated under /dev Then I use minicom to operate one of them: Sudo mi...

Go to advanced search